From: Louis Jeckel Date: Tue, 3 Nov 2020 18:48:56 +0000 (+0100) Subject: link on images X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a7bc8f3bcf30be1af3a225ee1fcb2e48d32ae305;p=psq.git link on images --- diff --git a/public/assets/admin/js/main-form.a90934d4.js b/public/assets/admin/js/main-form.a90934d4.js new file mode 100644 index 0000000..e161d07 --- /dev/null +++ b/public/assets/admin/js/main-form.a90934d4.js @@ -0,0 +1,5 @@ +(function(e){function t(t){for(var i,a,s=t[0],c=t[1],l=t[2],d=0,h=[];d=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r,o=!0,a=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function p(e){return b(e)||k(e)||g(e)||m()}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){if(e){if("string"===typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function k(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function b(e){if(Array.isArray(e))return y(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),function(n,a){"object"==N(t)&&"object"==N(e)?e.exports=a():(r=[],i=a,o="function"===typeof i?i.apply(t,r):i,void 0===o||(e.exports=o))}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==N(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=117)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o}));var i=function(e){A(n,e);var t=x(n);function n(e,i,r){var o;return w(this,n),o=t.call(this,"".concat(e).concat(r?" "+JSON.stringify(r):"").concat(a(e))),o.name="CKEditorError",o.context=i,o.data=r,o}return C(n,[{key:"is",value:function(e){return"CKEditorError"===e}}],[{key:"rethrowUnexpectedError",value:function(e,t){if(e.is&&e.is("CKEditorError"))throw e;var i=new n(e.message,t);throw i.stack=e.stack,i}}]),n}(M(Error));function r(e,t){var n;(n=console).warn.apply(n,p(s(e,t)))}function o(e,t){var n;(n=console).error.apply(n,p(s(e,t)))}function a(e){return"\nRead more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-"+e}function s(e,t){var n=a(e);return t?[e,t,n]:[e,n]}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,i,r,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(r," */")),c=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(c).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEERA,YAAa,CACb,2BAA2B,CCF3B,qCHYA,CAGD,+BACC,aAAc,CACd,oCAAqC,CACrC,4BAwBD,CAtBC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CACC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,mDACD,CAIA,gEACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-base-foreground);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-base-foreground);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(22);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(24);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDACC,yBAA0B,CAC1B,cAAe,CACf,KACD,CAEA,kEACC,QAAS,CACT,iBACD,CCPA,qDCCA,oCAA8B,CDE7B,sBAAuB,CACvB,wBAAyB,CACzB,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(26);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAOA,gBACC,oBAAqB,CACrB,iBAyDD,CAvDC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UAOD,CCcA,iEACC,YACD,CDdA,oCAGC,kCAAmC,CAEnC,YAAa,CACb,yBAA0B,CAE1B,iBA8BD,CA5BC,+DACC,oBACD,CAEA,oHAEC,WACD,CAEA,oHAMC,QAAS,CACT,WACD,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAQF,mCACC,mCACD,CEhEA,MACC,sDACD,CAEA,gBAEC,iBAiED,CA/DC,oCACC,mCACD,CAGC,8CACC,gCAAiC,CAGjC,sCACD,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEACC,SAAU,CACV,eAAgB,CAChB,sBACD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAIF,uBExEC,eFoGD,CA5BA,qFEpEE,qCFgGF,CA5BA,uBG1EC,oCAA8B,CH8E9B,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CAGT,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"../tooltip/mixins/_tooltip.css\";\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\n\t\t/* Disable main button's tooltip when the dropdown is open. Otherwise the panel may\n\t\tpartially cover the tooltip */\n\t\t&.ck-on {\n\t\t\t@mixin ck-tooltip_disabled;\n\t\t}\n\t}\n\n\t& .ck-dropdown__panel {\n\t\t/* This is to get rid of flickering when the tooltip is shown under the panel,\n\t\twhich looks like the panel moves vertically a pixel down and up. */\n\t\t-webkit-backface-visibility: hidden;\n\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(28);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YACC,yBAA0B,CAC1B,0BAA2B,CAG3B,uBAAwB,CAQxB,qBAcD,CAZC,0BARA,aAAc,CAGd,cAgBA,CAJC,yBAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\tcolor: inherit;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\n\t\t/* Allows dynamic coloring of the icons. */\n\t\tcolor: inherit;\n\n\t\t&:not([fill]) {\n\t\t\t/* Needed by FF. */\n\t\t\tfill: currentColor;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(30);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,'.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s,.ck.ck-tooltip.ck-tooltip_sw{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{top:calc(var(--ck-tooltip-arrow-size)*-1 + 1px);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_sw{right:50%;left:auto}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text{left:auto;right:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{left:auto;right:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,sDAEC,iBAAkB,CAGlB,mBAAoB,CAIpB,kCACD,CAEA,eAEC,iBAAkB,CAClB,SAAU,CACV,YAAa,CACb,yBAWD,CATC,iCACC,oBAOD,CALC,uCACC,UAAW,CACX,OAAQ,CACR,QACD,CCxBF,MACC,2BACD,CAEA,eACC,QAAS,CAMT,KAAM,CAON,sCA6FD,CA3FC,iCChBA,eDqCA,CArBA,yGCZC,qCDiCD,CArBA,iCAGC,cAAe,CACf,eAAgB,CAChB,kCAAmC,CACnC,wDAAyD,CACzD,6CAA8C,CAC9C,iBAAkB,CAClB,SAYD,CAVC,uCAMC,sCAAuC,CACvC,kBAAmB,CACnB,QACD,CAYD,yDAEC,4CAA+C,CAC/C,0BASD,CAPC,yGAEC,+CAAkD,CAClD,0BAA6B,CAC7B,6BAAoF,CAApF,sDAAoF,CAApF,8BAAoF,CAApF,4BAAoF,CACpF,8CAAsG,CAAtG,gDAAsG,CAAtG,+CAAsG,CAAtG,kBACD,CAaD,6BACC,SAAU,CACV,SAWD,CATC,+CACC,SAAU,CACV,2CACD,CAEA,qDACC,SAAU,CACV,OACD,CAYD,4BACC,yCAA4C,CAC5C,2BAQD,CANC,oDACC,4CAA+C,CAC/C,0BAA6B,CAC7B,6BAAoF,CAApF,+BAAoF,CAApF,8BAAoF,CAApF,mDAAoF,CACpF,8CAAsG,CAAtG,qBAAsG,CAAtG,+CAAsG,CAAtG,6CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-tooltip,\n.ck.ck-tooltip .ck-tooltip__text::after {\n\tposition: absolute;\n\n\t/* Without this, hovering the tooltip could keep it visible. */\n\tpointer-events: none;\n\n\t/* This is to get rid of flickering when transitioning opacity in Chrome.\n\tIt\'s weird but it works. */\n\t-webkit-backface-visibility: hidden;\n}\n\n.ck.ck-tooltip {\n\t/* Tooltip is hidden by default. */\n\tvisibility: hidden;\n\topacity: 0;\n\tdisplay: none;\n\tz-index: var(--ck-z-modal);\n\n\t& .ck-tooltip__text {\n\t\tdisplay: inline-block;\n\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-tooltip-arrow-size: 5px;\n}\n\n.ck.ck-tooltip {\n\tleft: 50%;\n\n\t/*\n\t * Prevent blurry tooltips in LoDPI environments.\n\t * See https://github.com/ckeditor/ckeditor5/issues/1802.\n\t */\n\ttop: 0;\n\n\t/*\n\t * For the transition to work, the tooltip must be controlled\n\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t * i.e. when scanning the toolbar with mouse cursor.\n\t */\n\ttransition: opacity .2s ease-in-out .2s;\n\n\t& .ck-tooltip__text {\n\t\t@mixin ck-rounded-corners;\n\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\tbackground: var(--ck-color-tooltip-background);\n\t\tposition: relative;\n\t\tleft: -50%;\n\n\t\t&::after {\n\t\t\t/*\n\t\t\t * For the transition to work, the tooltip must be controlled\n\t\t\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t\t\t * i.e. when scanning the toolbar with mouse cursor.\n\t\t\t */\n\t\t\ttransition: opacity .2s ease-in-out .2s;\n\t\t\tborder-style: solid;\n\t\t\tleft: 50%;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\t&.ck-tooltip_s,\n\t&.ck-tooltip_sw {\n\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( 100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\t/* 1px addresses gliches in rendering causing gap between the triangle and the text */\n\t\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size) + 1px);\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: transparent transparent var(--ck-color-tooltip-background) transparent;\n\t\t\tborder-width: 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south-west of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\n\t&.ck-tooltip_sw {\n\t\tright: 50%;\n\t\tleft: auto;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: auto;\n\t\t\tright: calc( -2 * var(--ck-tooltip-arrow-size));\n\t\t}\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tleft: auto;\n\t\t\tright: 0;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip north of the element.\n\t *\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t * V\n\t * [element]\n\t */\n\t&.ck-tooltip_n {\n\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( -100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: var(--ck-color-tooltip-background) transparent transparent transparent;\n\t\t\tborder-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(32);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(var(--ck-spacing-small)*-1);margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BCCC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6BD,CE/BC,qDACC,aAqBD,CAHC,oBAnBD,qDAoBE,YAEF,CADC,CFvBF,6BAKC,iBAAkB,CAClB,mBAAoB,CACpB,kBAAmB,CACnB,oBAyBD,CAvBC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEkBA,iEACC,kBAAmB,CACnB,SACD,CAbA,yFACC,YACD,CC7BD,6BCAC,oDD0ID,CCvIE,6EACC,0DACD,CAEA,+EACC,2DAA4C,CAC5C,uEACD,CAID,qDACC,6DACD,CDhBD,6BEDC,eF2ID,CA1IA,wIEGE,qCFuIF,CA1IA,6BAKC,kBAAmB,CACnB,cAAe,CACf,qBAAsB,CACtB,8BAA+B,CAC/B,iBAAkB,CAGlB,2CAA4C,CAC5C,4CAA6C,CAI7C,aAAc,CAGd,iBAAkB,CAGlB,4BAA6B,CAG7B,4DAA8D,CAG9D,uBA6GD,CA3GC,oFGjCA,YAAa,CACb,2BAA2B,CCF3B,2CJsCA,CAIC,kJAEC,aACD,CAGD,iEAEC,iBAAkB,CAClB,mBAAoB,CACpB,aAAc,CACd,cAAe,CAIf,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAEA,uFK3FD,kCL6FC,CAGA,yFKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAOE,6CAAgD,CAChD,mCAEF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDiIA,CC9HC,yFACC,qDACD,CAEA,2FACC,sDAA4C,CAC5C,kEACD,CAID,iEACC,wDACD,CDmHA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC7IC,mDDkJD,CC/IE,2FACC,yDACD,CAEA,6FACC,0DAA4C,CAC5C,sEACD,CAID,mEACC,4DACD,CD6HD,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../tooltip/mixins/_tooltip.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\t@mixin ck-tooltip_enabled;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n\n\t&:hover {\n\t\t@mixin ck-tooltip_visible;\n\t}\n\n\t/* Get rid of the native focus outline around the tooltip when focused (but not :hover). */\n\t&:focus:not(:hover) {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t\tbox-shadow: inset 0 2px 2px var($(prefix)-active-shadow);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(34);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,YAAa,CACb,qBAcD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAGC,oBAAqB,CACrB,0CACD,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BACC,gBAAiB,CACjB,UAAW,CACX,eAAgB,CAChB,eAAgB,CAKhB,mIAiCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,2DACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBACC,UAAW,CACX,UAAW,CACX,sCACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(36);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - var(--ck-switch-button-toggle-spacing)*2)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*0.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var(--ck-switch-button-translation)*-1))}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,mDAAoD,CACpD,qCAAsC,CACtC,gKAKD,CAGC,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDC3BA,eDoEA,CAzCA,yICvBC,qCDgED,CAzCA,2DAKE,gBAoCF,CAzCA,2DAUE,iBA+BF,CAzCA,iDAcC,8BAAiC,CAEjC,0CAA2C,CAC3C,uDAwBD,CAtBC,2EC9CD,eD2DC,CAbA,6LC1CA,qCAAsC,CD4CpC,+CAWF,CAbA,2EAMC,6CAA8C,CAC9C,+CAAgD,CAChD,gDAAiD,CACjD,yDAA0D,CAG1D,uBACD,CAEA,uDACC,6DAKD,CAHC,iFACC,+DACD,CAIF,6DExEA,kCF0EA,CAEA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,yDAMF,CAXA,2FASE,kEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: 1.0769230769em;\n\t--ck-switch-button-toggle-spacing: 1px;\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2 * var(--ck-switch-button-toggle-spacing)\n\t);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease;\n\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\t/* Leave some tiny bit of space around the inner part of the switch */\n\t\t\tmargin: var(--ck-switch-button-toggle-spacing);\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t&.ck-on .ck-button__toggle {\n\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t}\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t/*\n\t\t\t * Move the toggle switch to the right. It will be animated.\n\t\t\t */\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(38);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAMC,6DACC,gBACD,CAGC,6DACC,qCACD,CCRF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown {\n\t& .ck.ck-toolbar .ck.ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& .ck-dropdown__panel .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(40);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDIpC,wBAAyB,CACzB,2BAA4B,CAC5B,4BAEF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(42);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,YAAa,CACb,oBAAqB,CACrB,kBAyCD,CAvCC,kCACC,YAAa,CACb,kBAAmB,CACnB,kBAAmB,CACnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE3CF,eCGC,eD0FD,CA7FA,qECOE,qCDsFF,CA7FA,eAGC,6CAA8C,CAC9C,iCAAkC,CAClC,+CAwFD,CAtFC,yCACC,kBAAmB,CACnB,SAAU,CACV,aAAc,CACd,yCAA0C,CAM1C,kCAAmC,CACnC,qCACD,CAGC,oCAEC,kCAAmC,CACnC,qCAAsC,CAGtC,oCACD,CAIA,kEACC,YACD,CAGD,oFAGC,kCAAmC,CACnC,qCACD,CAEA,mCAEC,SAgBD,CAbC,0DAEC,UAAW,CAGX,QAAS,CAGT,eAAgB,CAGhB,QACD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAvFF,qCA2FE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JACC,wBAAyB,CACzB,2BACD,CAGA,2JACC,yBAA0B,CAC1B,4BACD,CAID,qGACC,mCACD,CAGA,yLACC,mCACD,CAWA,qHACC,cACD,CAIC,6JACC,yBAA0B,CAC1B,4BACD,CAGA,2JACC,wBAAyB,CACzB,2BACD,CAID,qGACC,oCACD,CAGA,yLACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > * {\n\t\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\t\tmargin-top: var(--ck-spacing-small);\n\t\t\tmargin-bottom: var(--ck-spacing-small);\n\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *,\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so any border is pointless. */\n\t\t\tborder: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(44);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(46);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAEC,eAAgB,CAGhB,mBAAoB,CACpB,kBAAmB,CAEnB,aAAc,CACd,cAAe,CACf,iBAAkB,CAClB,0BACD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/**\n * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(48);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,qCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBACC,oCAAqC,CACrC,qCAAsC,CACtC,wCAAyC,CACzC,yCAA0C,CAC1C,SAAU,CACV,8BAA+B,CAC/B,QAmCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCACC,YAAa,CACb,2CACD,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(0, 0%, 0%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-table__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(50);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck .ck-button.ck-color-table__remove-color{display:flex;align-items:center;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-font/theme/fontcolor.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-font/fontcolor.css"],names:[],mappings:"AAKA,4CACC,YAAa,CACb,kBAAmB,CACnB,UACD,CAEA,8BACC,iBACD,CCNA,4CACC,qEAAyE,CACzE,2BAA4B,CAC5B,4BAeD,CAbC,wDACC,mDACD,CAEA,kEAEE,uCAMF,CARA,kEAME,sCAEF",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-button.ck-color-table__remove-color {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n}\n\nlabel.ck.ck-color-grid__label {\n\tfont-weight: unset;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck .ck-button.ck-color-table__remove-color {\n\tpadding: calc(var(--ck-spacing-standard) / 2 ) var(--ck-spacing-standard);\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\n\t&:not(:focus) {\n\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(52);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: .7em;\n\t}\n\n\t& .text-small {\n\t\tfont-size: .85em;\n\t}\n\n\t& .text-big {\n\t\tfont-size: 1.4em;\n\t}\n\n\t& .text-huge {\n\t\tfont-size: 1.8em;\n\t}\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(55);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,mBAEC,iBAUD,CARC,iDACC,qCACD,CC0BA,8DACC,YACD,CClCD,MACC,gDAAyD,CACzD,4CACD,CAMC,qDAGE,6BAA8B,CAC9B,gCAQF,CAZA,qDASE,4BAA6B,CAC7B,+BAEF,CAEA,0CAGC,eAmBD,CAtBA,oDCnBA,eDyCA,CAtBA,+ICfC,qCAAsC,CDuBpC,4BAA6B,CAC7B,+BAaH,CAtBA,oDAeE,6BAA8B,CAC9B,gCAMF,CAHC,8CACC,mCACD,CASA,0KACC,wDACD,CAGC,sKACC,2DACD,CAIA,sKACC,4DACD,CAMF,uCCpEA,eD8EA,CAVA,qHChEC,qCD0ED,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../tooltip/mixins/_tooltip.css";\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n\n\t/* Disable tooltips for the buttons when the button is "open" */\n\t&.ck-splitbutton_open > .ck-button {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t& > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: unset;\n\t\t\t\tborder-bottom-left-radius: unset;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled) {\n\t\t\t\tborder-left-color: var(--ck-color-split-button-hover-border);\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled) {\n\t\t\t\tborder-right-color: var(--ck-color-split-button-hover-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(57);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{color:var(--ck-highlight-pen-red);background-color:transparent}.ck-content .pen-green{color:var(--ck-highlight-pen-green);background-color:transparent}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-highlight/theme/highlight.css"],names:[],mappings:"AAKA,MACC,oCAA+C,CAC/C,mCAA+C,CAC/C,kCAA8C,CAC9C,kCAA8C,CAC9C,8BAAwC,CACxC,gCACD,CAGC,2BACC,kDACD,CAFA,0BACC,iDACD,CAFA,yBACC,gDACD,CAFA,yBACC,gDACD,CAIA,qBACC,iCAAqC,CAGrC,4BACD,CALA,uBACC,mCAAqC,CAGrC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n@define-mixin highlight-marker-color $color {\n\t.ck-content .marker-$color {\n\t\tbackground-color: var(--ck-highlight-marker-$color);\n\t}\n}\n\n@define-mixin highlight-pen-color $color {\n\t.ck-content .pen-$color {\n\t\tcolor: var(--ck-highlight-pen-$color);\n\n\t\t/* Override default yellow background of `` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n}\n\n@mixin highlight-marker-color yellow;\n@mixin highlight-marker-color green;\n@mixin highlight-marker-color pink;\n@mixin highlight-marker-color blue;\n\n@mixin highlight-pen-color red;\n@mixin highlight-pen-color green;\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(59);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border);filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCJC,eD4ID,CAxIA,iFCAE,qCDwIF,CAxIA,qBENC,oCAA8B,CFU9B,eAAgB,CAEhB,2CAA4C,CAC5C,6CAiID,CA9HE,+GAEC,OAAQ,CACR,QAAS,CACT,kBACD,CAIA,uFAEC,oDAAoH,CAApH,kDAAoH,CAApH,qDAAoH,CAApH,kBACD,CAEA,4CACC,gDACD,CAEA,uFAHC,6BAA8E,CAA9E,8BAA8E,CAA9E,4BAMD,CAHA,2CACC,oDAAkF,CAClF,yCACD,CAIA,uFAEC,oDAAoH,CAApH,qBAAoH,CAApH,qDAAoH,CAApH,+CACD,CAEA,4CACC,6CAAkE,CAClE,uDACD,CAEA,uFAJC,6BAAkE,CAAlE,+BAAkE,CAAlE,8BAOD,CAHA,2CACC,iDAAkF,CAClF,4CACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,8CACD,CAIA,2GAEC,+CAAkD,CAClD,8CACD,CAIA,2GAEC,gDAAmD,CACnD,8CACD,CAIA,6GAEC,SAAU,CACV,uDAA0D,CAC1D,8CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,8CACD,CAIA,6GAEC,SAAU,CACV,uDAA0D,CAC1D,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: var(--ck-balloon-arrow-offset);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: var(--ck-balloon-arrow-offset);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(61);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{margin:15px 0;height:4px;background:#dedede;border:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-horizontal-line/theme/horizontalline.css"],names:[],mappings:"AAMA,yCAEC,iBACD,CAEA,eACC,aAAc,CACd,UAAW,CACX,kBAA2B,CAC3B,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n\n.ck-editor__editable .ck-horizontal-line {\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n}\n\n.ck-content hr {\n\tmargin: 15px 0;\n\theight: 4px;\n\tbackground: hsl(0, 0%, 87%);\n\tborder: 0;\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(63);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,'.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(var(--ck-widget-outline-thickness)*-0.5);left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-0.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAChB,2BAwBD,CAtBC,mDACC,iBAAkB,CAClB,OAAQ,CACR,QAAS,CACT,qCACD,CAEA,qFAEC,iDAAoD,CACpD,kBAAoB,CAEpB,0BACD,CAEA,oFAEC,oDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CACd,iBAAkB,CAClB,OAAQ,CACR,QAAS,CACT,qCACD,CAMD,2EACC,YAAa,CACb,iBAAkB,CAClB,MAAO,CACP,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHACC,qDAA0D,CAC1D,aACD,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CACC,8CAA+C,CAC/C,+CAAgD,CAChD,oDAAqD,CACrD,mBAAoB,CACpB,uMAAyM,CAb1M,SAAU,CACV,mBA0DA,CA1CC,mDACC,UAAW,CACX,UAAW,CACX,8BAA+B,CAC/B,6BAA8B,CAC9B,cAgBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLACC,0DAA2D,CAC3D,2DAA4D,CAC5D,mBAAoB,CACpB,uEACD,CAOD,8GACC,gBACD,CAKA,mDACC,mBAAoB,CACpB,UAAW,CACX,mFAAoF,CAMpF,oCAAwC,CACxC,oCACD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CASE,0jBACC,SACD,CASF,mPACC,SACD,CAcC,iRAxLF,SAAU,CACV,mBAyLE,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(65);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,sBAAuB,CACvB,6BAA8B,CAC9B,8BAA+B,CAG/B,yDAAiE,CAEjE,gCAAiC,CACjC,6CAAsD,CACtD,uCACD,CAOA,8DAEC,iBAuBD,CArBC,4EACC,iBAOD,CALC,qFAGC,aACD,CAWD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CACtD,0CAA2C,CAC3C,qDAAsD,CACtD,6CAA8C,CAC9C,kCAAmC,CACnC,aAAc,CACd,+BA4BD,CA1BC,gLAIC,iBACD,CAEA,0CACC,oCAAuC,CACvC,qCACD,CAEA,2CACC,oCAAuC,CACvC,sCACD,CAEA,8CACC,uCAA0C,CAC1C,sCACD,CAEA,6CACC,uCAA0C,CAC1C,qCACD,CC7ED,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eACC,gDAAiD,CACjD,mBAAoB,CACpB,yBAA0B,CAC1B,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGC/BA,YAAa,CACb,2BAA2B,CCF3B,qCAA8B,CFqC7B,iEACD,CAIA,4EACC,WAAY,CACZ,qBAAsB,CAGtB,4BAA6B,CAC7B,SAAU,CAMV,6SAG6F,CAG7F,iEAAkE,CAGlE,2BAA4B,CAC5B,mDAqBD,CAnBC,qFAEC,wCAAyC,CACzC,yCAA0C,CAC1C,oDASD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFACC,SAAU,CACV,oDACD,CAKC,oMACC,SAAU,CACV,6CAMD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-resizer-size: 10px;\n\t--ck-resizer-border-width: 1px;\n\t--ck-resizer-border-radius: 2px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget. */\n\t&:hover {\n\t\t& .ck-widget__selection-handle {\n\t\t\tvisibility: visible;\n\t\t}\n\t}\n\n\t/* Show the selection handle when the widget is selected. */\n\t&.ck-widget_selected .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: var(--ck-spacing-small);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var( --ck-resizer-tooltip-offset );\n\t\tleft: var( --ck-resizer-tooltip-offset );\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var( --ck-resizer-tooltip-offset );\n\t\tright: var( --ck-resizer-tooltip-offset );\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var( --ck-resizer-tooltip-offset );\n\t\tright: var( --ck-resizer-tooltip-offset );\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var( --ck-resizer-tooltip-offset );\n\t\tleft: var( --ck-resizer-tooltip-offset );\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget. */\n\t&:hover .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& .ck-widget__selection-handle,\n\t\t\t& .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(67);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css"],names:[],mappings:"AAKA,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBACD,CAEA,+DACC,gCACD,CAEA,uCACC,UAAW,CACX,sBAAuB,CACvB,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view .ck-labeled-field-view__status {\n\tfont-size: var(--ck-font-size-small);\n\tmargin-top: var(--ck-spacing-small);\n\n\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\tThe status could be very long. */\n\twhite-space: normal;\n}\n\n.ck.ck-labeled-field-view .ck-labeled-field-view__status_error {\n\tcolor: var(--ck-color-base-error);\n}\n\n.ck.ck-labeled-field-view > .ck.ck-label {\n\twidth: 100%;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(69);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/inputtext/inputtext.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AASA,MACC,0BACD,CAEA,kBCFC,eDyCD,CAvCA,2ECEE,qCDqCF,CAvCA,kBEJC,qCAA8B,CFQ9B,2CAA4C,CAC5C,6CAA8C,CAC9C,6DAA8D,CAC9D,oCAAqC,CAGrC,4CAA6C,CAG7C,4DA0BD,CAxBC,wBGlBA,YAAa,CACb,2BAA2B,CDF3B,8DFsBA,CAEA,4BACC,sDAAuD,CACvD,oDAAqD,CACrD,yCAMD,CAJC,kCE7BD,uEFgCC,CAGD,2BACC,+CAAgD,CAChD,2CAKD,CAHC,iCEvCD,oEFyCC,CAIF,+BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-text-width: 18em;\n}\n\n.ck.ck-input-text {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-text-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow), var(--ck-inner-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow), var(--ck-inner-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-text-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow), var(--ck-inner-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-text-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(71);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,'.ck-vertical-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-standard)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-text-width)*0.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAOA,mCACC,UAAW,CACX,OAAQ,CACR,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAC5B,8BAA+B,CAC/B,SACD,CCTC,oCDaC,wCACC,UAAW,CACX,OAAQ,CACR,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAC5B,8BAA+B,CAC/B,SACD,CCnBD,CCAD,qDACC,kDACD,CAEA,uBACC,kCAkED,CAhEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,0CA6CF,CA3CE,8CACC,8DAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAID,iGAEC,kCAAmC,CACnC,qCAAsC,CAEtC,eAAgB,CAChB,QAAS,CACT,gDAaD,CApBA,0OAcE,aAMF,CAGC,yMACC,kDACD,CDpEF",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button::after {\n\tcontent: "";\n\twidth: 0;\n\tposition: absolute;\n\tright: -1px;\n\ttop: var(--ck-spacing-small);\n\tbottom: var(--ck-spacing-small);\n\tz-index: 1;\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\tposition: absolute;\n\t\t\tright: -1px;\n\t\t\ttop: var(--ck-spacing-small);\n\t\t\tbottom: var(--ck-spacing-small);\n\t\t\tz-index: 1;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-standard);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-text-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\tborder-radius: 0;\n\t\t\tborder: 0;\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(74);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCACC,oCAAqC,CACrC,kCAAmC,CACnC,qCACD,CAGA,iEACC,uCAAwC,CAGxC,mCACD,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(76);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBCJC,oCAA8B,CDO9B,eAAgB,CAEhB,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CAEtC,UAAW,CACX,WACD,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(78);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/image.css"],names:[],mappings:"AAKA,mBACC,aAAc,CACd,UAAW,CACX,iBAAkB,CAGlB,eAeD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image {\n\tdisplay: table;\n\tclear: both;\n\ttext-align: center;\n\n\t/* Make sure there is some space between the content and the image. Center image by default. */\n\tmargin: 1em auto;\n\n\t& img {\n\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\tdisplay: block;\n\n\t\t/* Center the image if its width is smaller than the content's width. */\n\t\tmargin: 0 auto;\n\n\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\tmax-width: 100%;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(80);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,8BACC,qBAAsB,CACtB,mBAAoB,CACpB,qBAAsB,CACtB,UAAsB,CACtB,wBAAiC,CACjC,YAAa,CACb,eAAgB,CAChB,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: hsl(0, 0%, 20%);\n\tbackground-color: hsl(0, 0%, 97%);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(82);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAKA,+BACC,iBACD,CAGA,gDACC,iBAAkB,CAClB,KAAM,CACN,MACD,CCPC,yCACC,oBACD,CAID,gDACC,UAAW,CACX,OAAQ,CACR,gDAAiD,CACjD,oBACD,CAEA,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable .image {\n\tposition: relative;\n}\n\n/* Upload progress bar. */\n.ck.ck-editor__editable .image .ck-progress-bar {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable .image {\n\t/* Showing animation. */\n\t&.ck-appear {\n\t\tanimation: fadeIn 700ms;\n\t}\n}\n\n/* Upload progress bar. */\n.ck.ck-editor__editable .image .ck-progress-bar {\n\theight: 2px;\n\twidth: 0;\n\tbackground: var(--ck-color-upload-bar-background);\n\ttransition: width 100ms;\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(84);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,'.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BACC,aAAc,CACd,iBAAkB,CAClB,QAAS,CACT,UAAW,CACX,iBAMD,CAJC,qCACC,UAAW,CACX,iBACD,CCVD,MACC,iCAA8C,CAC9C,+CAA4D,CAE5D,gCAAiC,CACjC,gCACD,CAEA,+BACC,sCAAuC,CACvC,uCAAwC,CACxC,SAAU,CACV,uDAAwD,CACxD,wEAA0E,CAC1E,qCAAuC,CACvC,0BAAgC,CAGhC,0CAA2C,CAG3C,sBAyBD,CAtBC,qCAEC,QAAS,CAET,OAAQ,CACR,SAAU,CACV,QAAS,CACT,OAAQ,CAER,mCAAoC,CACpC,yBAA0B,CAC1B,oFAAqF,CACrF,sFAAuF,CAEvF,4CAA6C,CAC7C,sBAAyB,CACzB,mBAAsB,CACtB,4BAA6B,CAG7B,qBACD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GACC,SAAU,CACV,OAAQ,CACR,QACD,CACA,IACC,UAAY,CACZ,QACD,CACA,GACC,SAAU,CACV,UAAY,CACZ,YACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\tborder-radius: 50%;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t--ck-image-upload-icon-size: 20px;\n\t--ck-image-upload-icon-width: 2px;\n}\n\n.ck-image-upload-complete-icon {\n\twidth: var(--ck-image-upload-icon-size);\n\theight: var(--ck-image-upload-icon-size);\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: var(--ck-image-upload-icon-size);\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(86);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,'.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCACC,iBAAkB,CAClB,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,KAAM,CACN,MAMD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCACD,CAEA,iCAEC,UAAW,CACX,QACD,CAEA,kCACC,UAAW,CACX,WAUD,CARC,yCACC,8CAA+C,CAC/C,+CAAgD,CAChD,iBAAkB,CAClB,8DAA+D,CAC/D,kCAAmC,CACnC,yDACD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(88);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(90);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-image-insert__panel{padding:var(--ck-spacing-standard)}.ck.ck-image-insert__ck-finder-button{display:block;width:100%;margin:var(--ck-spacing-standard) auto;border:1px solid #ccc;border-radius:var(--ck-border-radius)}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{padding:0;margin:0;border:none}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,kCACD,CAEA,sCACC,aAAc,CACd,UAAW,CACX,sCAAuC,CACvC,qBAAiC,CACjC,qCACD,CAGA,oDACC,SAAU,CACV,QAAS,CACT,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-standard);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(92);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0;outline:1px solid var(--ck-color-resizer)}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all;width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nesw-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nesw-resize}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CACb,iBAAkB,CAGlB,mBAAoB,CAEpB,MAAO,CACP,KAAM,CAEN,yCACD,CAGC,2EACC,aACD,CAGD,gCACC,iBAAkB,CAGlB,kBAAmB,CAEnB,4BAA6B,CAC7B,6BAA8B,CAC9B,uCAAwC,CACxC,gDAA6D,CAC7D,6CAyBD,CAvBC,oEACC,4BAA+B,CAC/B,6BAAgC,CAChC,kBACD,CAEA,qEACC,4BAA+B,CAC/B,8BAAiC,CACjC,kBACD,CAEA,wEACC,+BAAkC,CAClC,8BAAiC,CACjC,kBACD,CAEA,uEACC,+BAAkC,CAClC,6BAAgC,CAChC,kBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var( --ck-resizer-offset );\n\t\tleft: var( --ck-resizer-offset );\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var( --ck-resizer-offset );\n\t\tright: var( --ck-resizer-offset );\n\t\tcursor: nesw-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var( --ck-resizer-offset );\n\t\tright: var( --ck-resizer-offset );\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var( --ck-resizer-offset );\n\t\tleft: var( --ck-resizer-offset );\n\t\tcursor: nesw-resize;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(94);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAKA,iCACC,cAAe,CAMf,aAAc,CACd,qBAWD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAGD,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `
` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `
` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `
` element uses `display:block`, so `
` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(96);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BACD,CAGC,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n}\n\n.ck-content {\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(98);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDACD,CAMA,4BACC,8CACD,CAGA,sCACC,WAAY,CACZ,gDAAiD,CACjD,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(100);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block;padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAAc,CEpBd,SAAU,CACV,oCFoBD,CElBC,wDACC,oFAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CACC,kCAAmC,CACnC,QAAS,CACT,eAAgB,CAChB,QAAS,CACT,gDAAiD,CACjD,SAaD,CAnBA,4GAaE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,aAUD,CARC,wEACC,QAAS,CACT,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-text-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tborder: 0;\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\twidth: 50%;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin-left: 0;\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tborder: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(102);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCKA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EACC,kCAAmC,CACnC,kCAAmC,CACnC,sBAAuB,CACvB,cAAe,CAIf,oCAAqC,CACrC,aAAc,CACd,iBAKD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDvDD,oCC2DC,wDACC,8DAMD,CAJC,0EACC,WAAY,CACZ,cACD,CAGD,gJAME,aAEF,CD1ED",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-text-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(104);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,'.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(var(--ck-spacing-standard)*3);background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAQC,0CACC,YAAa,CACb,qBAAsB,CACtB,kBAmBD,CCpBA,kFACC,aAqBD,CAHC,oBAnBD,kFAoBE,YAEF,CADC,CDlBA,sEAIC,cAAe,CAEf,iBAUD,CCoBD,wFACC,kBAAmB,CACnB,SACD,CD3BE,wGACC,eAAgB,CAChB,aACD,CAQD,+UACC,YACD,CAYF,2LACC,mBACD,CE/CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA4FD,CA1FC,0CACC,0CAA+C,CAC/C,0CA4BD,CA1BC,uEACC,qDAAsD,CACtD,kDAAmD,CACnD,qCAAsC,CACtC,uBAA2B,CAC3B,qBAMD,CAJC,gFACC,UAAW,CACX,WACD,CAGD,4EACC,sDAAuD,CACvD,kBAAmB,CACnB,iBAAkB,CAClB,iBAAkB,CAClB,sBAOD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDACC,eAAgB,CAChB,gBACD,CAEA,oFACC,gvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,48BACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t@mixin ck-tooltip_enabled;\n\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t&:hover {\n\t\t\t\t@mixin ck-tooltip_visible;\n\t\t\t}\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(106);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBACC,YAAa,CACb,sBAAuB,CACvB,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(108);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CAGX,YAAa,CAIb,aAAc,CAId,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\tmargin: 1em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(110);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,8DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-focused-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-table-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(112);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAEC,oJAA2J,CAC3J,yFACD,CAEA,qCACC,iBACD,CAEA,uCACC,+CAAgD,CAChD,iDAAkD,CAClD,iDAAkD,CAClD,4CAA6C,CAC7C,iBAMD,CAJC,6CACC,yCAA0C,CAC1C,6CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\twidth: var(--ck-insert-table-dropdown-box-width);\n\theight: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(114);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,yDACD,CAGC,0IAEC,iBAAkB,CAClB,uBAAwB,CACxB,aAAc,CACd,gBAsBD,CAnBC,sJACC,UAAW,CACX,mBAAoB,CACpB,yDAA0D,CAC1D,iBAAkB,CAClB,KAAM,CACN,MAAO,CACP,OAAQ,CACR,QACD,CAEA,wTAEC,4BACD,CAEA,kLACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t& .ck-widget_selected {\n\t\t\toutline: unset;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.default=r},function(e,t,n){var i=n(2),r=n(116);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var i=n(1),r=n.n(i)()(!0);r.push([e.i,".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAEC,eAAgB,CAChB,aAgCD,CA9BC,yBAEC,wBAAyB,CACzB,gBAAiB,CAIjB,UAAW,CACX,WAAY,CAIZ,yBAiBD,CAfC,wDAEC,aAAc,CACd,YAAa,CAKb,wBACD,CAEA,4BACC,eAAiB,CACjB,2BACD,CAMF,+BACC,gBACD,CAEA,+BACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\tmargin: 1em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the ediitor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n'],sourceRoot:""}]),t.default=r},function(e,t,n){"use strict";var i=a.mark(uc),r=a.mark(dc),o=a.mark(nh);n.r(t);var l=n(4),d=l.a.Symbol,h=Object.prototype,f=h.hasOwnProperty,m=h.toString,g=d?d.toStringTag:void 0,k=function(e){var t=f.call(e,g),n=e[g];try{e[g]=void 0;var i=!0}catch(e){}var r=m.call(e);return i&&(t?e[g]=n:delete e[g]),r},b=Object.prototype.toString,y=function(e){return b.call(e)},_=d?d.toStringTag:void 0,M=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?k(e):y(e)},T=function(e,t){return function(n){return e(t(n))}},I=T(Object.getPrototypeOf,Object),P=function(e){return null!=e&&"object"==N(e)},B=Function.prototype,L=Object.prototype,z=B.toString,j=L.hasOwnProperty,R=z.call(Object),F=function(e){if(!P(e)||"[object Object]"!=M(e))return!1;var t=I(e);if(null===t)return!0;var n=j.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&z.call(n)==R},V=function(){this.__data__=[],this.size=0},U=function(e,t){return e===t||e!=e&&t!=t},H=function(e,t){for(var n=e.length;n--;)if(U(e[n][0],t))return n;return-1},W=Array.prototype.splice,K=function(e){var t=this.__data__,n=H(t,e);return!(n<0)&&(n==t.length-1?t.pop():W.call(t,n,1),--this.size,!0)},G=function(e){var t=this.__data__,n=H(t,e);return n<0?void 0:t[n][1]},$=function(e){return H(this.__data__,e)>-1},q=function(e,t){var n=this.__data__,i=H(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},rt={};rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Arguments]"]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object Boolean]"]=rt["[object DataView]"]=rt["[object Date]"]=rt["[object Error]"]=rt["[object Function]"]=rt["[object Map]"]=rt["[object Number]"]=rt["[object Object]"]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object WeakMap]"]=!1;var ot=function(e){return P(e)&&it(e.length)&&!!rt[M(e)]},at=function(e){return function(t){return e(t)}},st=n(6),ct=st.a&&st.a.isTypedArray,lt=ct?at(ct):ot,ut=Object.prototype.hasOwnProperty,dt=function(e,t){var n=Xe(e),i=!n&&Je(e),r=!n&&!i&&Object(et.a)(e),o=!n&&!i&&!r&<(e),a=n||i||r||o,s=a?$e(e.length,String):[],c=s.length;for(var l in e)!t&&!ut.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||nt(l,c))||s.push(l);return s},ht=Object.prototype,ft=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ht)},vt=T(Object.keys,Object),pt=Object.prototype.hasOwnProperty,mt=function(e){if(!ft(e))return vt(e);var t=[];for(var n in Object(e))pt.call(e,n)&&"constructor"!=n&&t.push(n);return t},gt=function(e){return null!=e&&it(e.length)&&!ie(e)},kt=function(e){return gt(e)?dt(e):mt(e)},bt=function(e,t){return e&&Ge(t,kt(t),e)},yt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},wt=Object.prototype.hasOwnProperty,_t=function(e){if(!ne(e))return yt(e);var t=ft(e),n=[];for(var i in e)("constructor"!=i||!t&&wt.call(e,i))&&n.push(i);return n},Ct=function(e){return gt(e)?dt(e,!0):_t(e)},At=function(e,t){return e&&Ge(t,Ct(t),e)},xt=n(10),Et=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n3&&void 0!==arguments[3]&&arguments[3];if(F(t))this._setObjectToTarget(e,t,i);else{var r=t.split(".");t=r.pop();var o,a=v(r);try{for(a.s();!(o=a.n()).done;){var s=o.value;F(e[s])||(e[s]={}),e=e[s]}}catch(c){a.e(c)}finally{a.f()}if(F(n))return F(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,n,i);i&&void 0!==e[t]||(e[t]=n)}}},{key:"_getFromSource",value:function(e,t){var n=t.split(".");t=n.pop();var i,r=v(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(!F(e[o])){e=null;break}e=e[o]}}catch(a){r.e(a)}finally{r.f()}return e?In(e[t]):void 0}},{key:"_setObjectToTarget",value:function(e,t,n){var i=this;Object.keys(t).forEach((function(r){i._setToTarget(e,r,t[r],n)}))}}]),e}();function In(e){return Mn(e,Pn)}function Pn(e){return Sn(e)?e:void 0}var On=function(){return function e(){e.called=!0}},Nn=function e(t,n){w(this,e),this.source=t,this.name=n,this.path=[],this.stop=On(),this.off=On()},Bn=new Array(256).fill().map((function(e,t){return("0"+t.toString(16)).slice(-2)}));function Ln(){var e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,i=4294967296*Math.random()>>>0;return"e"+Bn[e>>0&255]+Bn[e>>8&255]+Bn[e>>16&255]+Bn[e>>24&255]+Bn[t>>0&255]+Bn[t>>8&255]+Bn[t>>16&255]+Bn[t>>24&255]+Bn[n>>0&255]+Bn[n>>8&255]+Bn[n>>16&255]+Bn[n>>24&255]+Bn[i>>0&255]+Bn[i>>8&255]+Bn[i>>16&255]+Bn[i>>24&255]}var zn={get:function(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},jn=(n(7),n(0)),Rn=Symbol("listeningTo"),Fn=Symbol("emitterId"),Vn={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,e,t,n)},once:function(e,t,n){var i=!1;this.listenTo(this,e,(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o3&&void 0!==arguments[3]?arguments[3]:{};this[Rn]||(this[Rn]={});var a=this[Rn];Hn(e)||Un(e);var s=Hn(e);(i=a[s])||(i=a[s]={emitter:e,callbacks:{}}),(r=i.callbacks[t])||(r=i.callbacks[t]=[]),r.push(n),function(e,t){var n=Wn(e);if(!n[t]){for(var i=t,r=null,o=[];""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},o.push(n[i]),r&&n[i].childEvents.push(r),r=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){var a,s=v(o);try{for(s.s();!(a=s.n()).done;){var c=a.value;c.callbacks=n[i].callbacks.slice()}}catch(l){s.e(l)}finally{s.f()}n[i].childEvents.push(r)}}}(e,t);var c,l=Kn(e,t),u=zn.get(o.priority),d={callback:n,priority:u},h=v(l);try{for(h.s();!(c=h.n()).done;){for(var f=c.value,p=!1,m=0;m1?r-1:0),a=1;a-1?Gn(e,t.substr(0,t.lastIndexOf(":"))):null}function $n(e,t,n){var i,r=v(e);try{for(r.s();!(i=r.n()).done;){var o=u(i.value,2),a=o[0],s=o[1];s?"function"==typeof s&&(s=s(t.name)):s=t.name;var c=new Nn(t.source,s);c.path=p(t.path),a.fire.apply(a,[c].concat(p(n)))}}catch(l){r.e(l)}finally{r.f()}}function qn(e,t,n){var i,r=Kn(e,t),o=v(r);try{for(o.s();!(i=o.n()).done;)for(var a=i.value,s=0;s1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(this,e);var i=Yn(t);if(i||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i){var r,o=v(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;this._items.push(a),this._itemMap.set(this._getItemIdBeforeAdding(a),a)}}catch(s){o.e(s)}finally{o.f()}}}return C(e,[{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"addMany",value:function(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new jn.a("collection-add-item-invalid-index",this);for(var n=0;nh&&u--}}catch(k){d.e(k)}finally{d.f()}var f,p=v(i._skippedIndexesFromExternal);try{for(p.s();!(f=p.n()).done;){var m=f.value;u>=m&&u++}}catch(k){p.e(k)}finally{p.f()}n._bindToExternalToInternalMap.set(r,c),n._bindToInternalToExternalMap.set(c,r),n.add(c,u);for(var g=0;gt&&e.push(t),e}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(e){var t,n=this._idProperty;if(n in e){if(t=e[n],"string"!=typeof t)throw new jn.a("collection-add-invalid-id",this);if(this.get(t))throw new jn.a("collection-add-item-already-exists",this)}else e[n]=t=Ln();return t}},{key:"_remove",value:function(e){var t,n,i,r=!1,o=this._idProperty;if("string"==typeof e?(n=e,i=this._itemMap.get(n),r=!i,i&&(t=this._items.indexOf(i))):"number"==typeof e?(t=e,i=this._items[t],r=!i,i&&(n=i[o])):(i=e,n=i[o],t=this._items.indexOf(i),r=-1==t||!this._itemMap.get(n)),r)throw new jn.a("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(a),this.fire("remove",i,t),[i,t]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}}]),e}();Qn(Zn,Vn);var Jn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];w(this,e),this._context=t,this._plugins=new Map,this._availablePlugins=new Map;var r,o=v(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.pluginName&&this._availablePlugins.set(a.pluginName,a)}}catch(f){o.e(f)}finally{o.f()}this._contextPlugins=new Map;var s,c=v(i);try{for(c.s();!(s=c.n()).done;){var l=u(s.value,2),d=l[0],h=l[1];this._contextPlugins.set(d,h),this._contextPlugins.set(h,d),d.pluginName&&this._availablePlugins.set(d.pluginName,d)}}catch(f){c.e(f)}finally{c.f()}}return C(e,[{key:Symbol.iterator,value:a.mark((function e(){var t,n,i;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=v(this._plugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(i=n.value,e.t0="function"==typeof i[0],!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"get",value:function(e){var t=this._plugins.get(e);if(!t){var n=e;throw"function"==typeof e&&(n=e.pluginName||e.name),new jn.a("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return t}},{key:"has",value:function(e){return this._plugins.has(e)}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this,i=this._context,r=new Set,o=[],a=f(e),s=f(t),c=function(e){var t,n=[],i=v(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;h(r)||n.push(r)}}catch(o){i.e(o)}finally{i.f()}return n.length?n:null}(e);if(c){var l="plugincollection-plugin-not-found";return Object(jn.b)(l,{plugins:c}),Promise.reject(new jn.a(l,i,{plugins:c}))}return Promise.all(a.map(u)).then((function(){return d(o,"init")})).then((function(){return d(o,"afterInit")})).then((function(){return o}));function u(e){if(!s.includes(e)&&!n._plugins.has(e)&&!r.has(e))return function(e){return new Promise((function(a){r.add(e),e.requires&&e.requires.forEach((function(n){var r=h(n);if(e.isContextPlugin&&!r.isContextPlugin)throw new jn.a("plugincollection-context-required",null,{plugin:r.name,requiredBy:e.name});if(t.includes(r))throw new jn.a("plugincollection-required",i,{plugin:r.name,requiredBy:e.name});u(r)}));var s=n._contextPlugins.get(e)||new e(i);n._add(e,s),o.push(s),a()}))}(e).catch((function(t){throw Object(jn.b)("plugincollection-load",{plugin:e}),t}))}function d(e,t){return e.reduce((function(e,i){return i[t]?n._contextPlugins.has(i)?e:e.then(i[t].bind(i)):e}),Promise.resolve())}function h(e){return"function"==typeof e?e:n._availablePlugins.get(e)}function f(e){return e.map((function(e){return h(e)})).filter((function(e){return!!e}))}}},{key:"destroy",value:function(){var e,t=[],n=v(this);try{for(n.s();!(e=n.n()).done;){var i=u(e.value,2),r=i[1];"function"!=typeof r.destroy||this._contextPlugins.has(r)||t.push(r.destroy())}}catch(o){n.e(o)}finally{n.f()}return Promise.all(t)}},{key:"_add",value:function(e,t){this._plugins.set(e,t);var n=e.pluginName;if(n){if(this._plugins.has(n))throw new jn.a("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}]),e}();function Xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new jn.a("translation-service-quantity-not-a-number",null,{quantity:n});var i=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===i&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);var r=t.id||t.string;if(0===i||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,r))return 1!==n?t.plural:t.string;var o=window.CKEDITOR_TRANSLATIONS[e].dictionary,a=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||function(e){return 1===e?0:1};if("string"==typeof o[r])return o[r];var s=Number(a(n));return o[r][s]}Qn(Jn,Vn),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var ei=["ar","fa","he","ku","ug"],ti=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w(this,e),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=ni(this.uiLanguage),this.contentLanguageDirection=ni(this.contentLanguage),this.t=function(e,n){return t._t(e,n)}}return C(e,[{key:"_t",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(t)||(t=[t]),"string"==typeof e&&(e={string:e});var n=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,(function(e,n){return n0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),i=e.getAncestors(t),r=0;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),i=ri(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]t.data.length)throw new jn.a("view-textproxy-wrong-offsetintext",this);if(i<0||n+i>t.data.length)throw new jn.a("view-textproxy-wrong-length",this);this.data=t.data.substring(n,n+i),this.offsetInText=n}return C(e,[{key:"is",value:function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this.textNode:this.parent;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}}]),e}();function li(e){return Yn(e)?new Map(e):function(e){var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e)}var ui=function(){function e(){w(this,e),this._patterns=[],this.add.apply(this,arguments)}return C(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0?e:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}]),e}();function di(e,t){if("function"==typeof t)return t(e);var n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?e.test(t):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){var n=[];for(var i in e){var r=e[i];if(!t.hasAttribute(i))return null;var o=t.getAttribute(i);if(!0===r)n.push(i);else if(r instanceof RegExp){if(!r.test(o))return null;n.push(i)}else{if(o!==r)return null;n.push(i)}}return n}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){var n,i=[],r=v(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o instanceof RegExp){var a,s=t.getClassNames(),c=v(s);try{for(c.s();!(a=c.n()).done;){var l=a.value;o.test(l)&&i.push(l)}}catch(u){c.e(u)}finally{c.f()}if(0===i.length)return null}else{if(!t.hasClass(o))return null;i.push(o)}}}catch(u){r.e(u)}finally{r.f()}return i}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){var n=[];for(var i in e){var r=e[i];if(!t.hasStyle(i))return null;var o=t.getStyle(i);if(r instanceof RegExp){if(!r.test(o))return null;n.push(i)}else{if(o!==r)return null;n.push(i)}}return n}(t.styles,e),!n.styles))&&n}var hi=function(e){return"symbol"==N(e)||P(e)&&"[object Symbol]"==M(e)},fi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vi=/^\w*$/,pi=function(e,t){if(Xe(e))return!1;var n=N(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hi(e))||vi.test(e)||!fi.test(e)||null!=t&&e in Object(t)};function mi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(mi.Cache||ze),n}mi.Cache=ze;var gi=mi,ki=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bi=/\\(\\)?/g,yi=function(e){var t=gi(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ki,(function(e,n,i,r){t.push(i?r.replace(bi,"$1"):n||e)})),t})),wi=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++nr?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}($i),Qi=function(e,t){return Yi(Ki(e,t,Ui),e+"")},Zi=function(e,t,n){if(!ne(n))return!1;var i=N(t);return!!("number"==i?gt(n)&&nt(t,n.length):"string"==i&&t in n)&&U(n[t],e)},Ji=function(e){return Qi((function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,a&&Zi(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),t=Object(t);++i1){var n=t.splice(0,t.length-1).join("."),i=Ni(this._styles,n);i&&!Array.from(Object.keys(i)).length&&this.remove(n)}}},{key:"isEmpty",get:function(){var e=Object.entries(this._styles);return!Array.from(e).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}}]),e}(),ir=function(){function e(){w(this,e),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}return C(e,[{key:"toNormalizedForm",value:function(e,t,n){if(ne(t))or(n,rr(e),t);else if(this._normalizers.has(e)){var i=this._normalizers.get(e),r=i(t),o=r.path,a=r.value;or(n,o,a)}else or(n,e,t)}},{key:"getNormalized",value:function(e,t){if(!e)return Xi({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){var n=this._extractors.get(e);if("string"==typeof n)return Ni(t,n);var i=n(e,t);if(i)return i}return Ni(t,rr(e))}},{key:"getReducedForm",value:function(e,t){var n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}},{key:"getRelatedStyles",value:function(e){return this._consumables.get(e)||[]}},{key:"setNormalizer",value:function(e,t){this._normalizers.set(e,t)}},{key:"setExtractor",value:function(e,t){this._extractors.set(e,t)}},{key:"setReducer",value:function(e,t){this._reducers.set(e,t)}},{key:"setStyleRelation",value:function(e,t){this._mapStyleNames(e,t);var n,i=v(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._mapStyleNames(r,[e])}}catch(o){i.e(o)}finally{i.f()}}},{key:"_mapStyleNames",value:function(e,t){var n;this._consumables.has(e)||this._consumables.set(e,[]),(n=this._consumables.get(e)).push.apply(n,p(t))}}]),e}();function rr(e){return e.replace("-",".")}function or(e,t,n){var i=n;ne(n)&&(i=Xi({},Ni(e,t),n)),tr(e,t,i)}var ar=function(e){A(n,e);var t=x(n);function n(e,i,r,o){var a;if(w(this,n),a=t.call(this,e),a.name=i,a._attrs=function(e){e=li(e);var t,n=v(e);try{for(n.s();!(t=n.n()).done;){var i=u(t.value,2),r=i[0],o=i[1];null===o?e.delete(r):"string"!=typeof o&&e.set(r,String(o))}}catch(a){n.e(a)}finally{n.f()}return e}(r),a._children=[],o&&a._insertChild(0,o),a._classes=new Set,a._attrs.has("class")){var s=a._attrs.get("class");sr(a._classes,s),a._attrs.delete("class")}return a._styles=new nr(a.document.stylesProcessor),a._attrs.has("style")&&(a._styles.setTo(a._attrs.get("style")),a._attrs.delete("style")),a._customProperties=new Map,E(a)}return C(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.t0=this._classes.size>0,!e.t0){e.next=4;break}return e.next=4,"class";case 4:if(e.t1=this._styles.isEmpty,e.t1){e.next=8;break}return e.next=8,"style";case 8:return e.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttributes",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(this._attrs.entries(),"t0",1);case 1:if(e.t1=this._classes.size>0,!e.t1){e.next=5;break}return e.next=5,["class",this.getAttribute("class")];case 5:if(e.t2=this._styles.isEmpty,e.t2){e.next=9;break}return e.next=9,["style",this.getAttribute("style")];case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttribute",value:function(e){if("class"==e)return this._classes.size>0?p(this._classes).join(" "):void 0;if("style"==e){var t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(e)}},{key:"hasAttribute",value:function(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}},{key:"isSimilar",value:function(e){if(!(e instanceof n))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;var t,i=v(this._attrs);try{for(i.s();!(t=i.n()).done;){var r=u(t.value,2),o=r[0],a=r[1];if(!e._attrs.has(o)||e._attrs.get(o)!==a)return!1}}catch(p){i.e(p)}finally{i.f()}var s,c=v(this._classes);try{for(c.s();!(s=c.n()).done;){var l=s.value;if(!e._classes.has(l))return!1}}catch(p){c.e(p)}finally{c.f()}var d,h=v(this._styles.getStyleNames());try{for(h.s();!(d=h.n()).done;){var f=d.value;if(!e._styles.has(f)||e._styles.getAsString(f)!==this._styles.getAsString(f))return!1}}catch(p){h.e(p)}finally{h.f()}return!0}},{key:"hasClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]&&arguments[0],t=[];if(e){var n,i=v(this.getChildren());try{for(i.s();!(n=i.n()).done;){var r=n.value;t.push(r._clone(e))}}catch(a){i.e(a)}finally{i.f()}}var o=new this.constructor(this.document,this.name,this._attrs,t);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,i=0,r=function(e,t){return"string"==typeof t?[new si(e,t)]:(Yn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new si(e,t):t instanceof ci?new si(e,t.data):t})))}(this.document,t),o=v(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,a.document=this.document,this._children.splice(e,0,a),e++,i++}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}},{key:"_addClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.add(e)}))}},{key:"_removeClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.delete(e)}))}},{key:"_setStyle",value:function(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}},{key:"_removeStyle",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._styles.remove(e)}))}},{key:"_setCustomProperty",value:function(e,t){this._customProperties.set(e,t)}},{key:"_removeCustomProperty",value:function(e){return this._customProperties.delete(e)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}}]),n}(ai);function sr(e,t){var n=t.split(/\s+/);e.clear(),n.forEach((function(t){return e.add(t)}))}var cr=function(e){A(n,e);var t=x(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=lr,a}return C(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}]),n}(ar);function lr(){var e=p(this.getChildren()),t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(!r.is("uiElement"))return null}}catch(o){i.e(o)}finally{i.f()}return this.childCount}var ur=Ji((function(e,t){Ge(t,Ct(t),e)})),dr=Symbol("observableProperties"),hr=Symbol("boundObservables"),fr=Symbol("boundProperties"),vr={set:function(e,t){var n=this;if(ne(e))Object.keys(e).forEach((function(t){n.set(t,e[t])}),this);else{mr(this);var i=this[dr];if(e in this&&!i.has(e))throw new jn.a("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function(){return i.get(e)},set:function(t){var n=i.get(e),r=this.fire("set:"+e,e,t,n);void 0===r&&(r=t),n===r&&i.has(e)||(i.set(e,r),this.fire("change:"+e,e,r,n))}}),this[e]=t}},bind:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1)throw new jn.a("observable-bind-to-no-callback",this);if(r>1&&n.callback)throw new jn.a("observable-bind-to-extra-callback",this);n.to.forEach((function(e){if(e.properties.length&&e.properties.length!==r)throw new jn.a("observable-bind-to-properties-length",t);e.properties.length||(e.properties=t._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(i[0]).callback=n.callback),e=this._observable,this._to.forEach((function(t){var n,i=e[hr];i.get(t.observable)||e.listenTo(t.observable,"change",(function(r,o){n=i.get(t.observable)[o],n&&n.forEach((function(t){yr(e,t.property)}))}))})),function(e){var t;e._bindings.forEach((function(n,i){e._to.forEach((function(r){t=r.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([r.observable,t]),function(e,t,n,i){var r=e[hr],o=r.get(n),a=o||{};a[i]||(a[i]=new Set),a[i].add(t),o||r.set(n,a)}(e._observable,n,r.observable,t)}))}))}(this),this._bindProperties.forEach((function(e){yr(t._observable,e)}))}function kr(e,t,n){if(this._bindings.size>1)throw new jn.a("observable-bind-to-many-not-one-binding",this);this.to.apply(this,p(function(e,t){var n=e.map((function(e){return[e,t]}));return Array.prototype.concat.apply([],n)}(e,t)).concat([n]))}function br(e){return e.every((function(e){return"string"==typeof e}))}function yr(e,t){var n,i=e[fr].get(t);i.callback?n=i.callback.apply(e,i.to.map((function(e){return e[0][e[1]]}))):(n=i.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}var wr=function(e){A(n,e);var t=x(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.set("isReadOnly",!1),a.set("isFocused",!1),a.bind("isReadOnly").to(e),a.bind("isFocused").to(e,"isFocused",(function(t){return t&&e.selection.editableElement==D(a)})),a.listenTo(e.selection,"change",(function(){a.isFocused=e.isFocused&&e.selection.editableElement==D(a)})),a}return C(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"destroy",value:function(){this.stopListening()}}]),n}(cr);Qn(wr,pr);var _r=Symbol("rootName"),Cr=function(e){A(n,e);var t=x(n);function n(e,i){var r;return w(this,n),r=t.call(this,e,i),r.rootName="main",r}return C(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"rootName",get:function(){return this.getCustomProperty(_r)},set:function(e){this._setCustomProperty(_r,e)}},{key:"_name",set:function(e){this.name=e}}]),n}(wr),Ar=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(w(this,e),!t.boundaries&&!t.startPosition)throw new jn.a("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new jn.a("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this.position=xr._createAt(t.startPosition):this.position=xr._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}return C(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,i;do{var r;i=this.position,r=this.next(),t=r.done,n=r.value}while(!t&&e(n));t||(this.position=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e,t=this.position.clone(),n=this.position,i=t.parent;if(null===i.parent&&t.offset===i.childCount)return{done:!0};if(i===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};if(i instanceof si){if(t.isAtEnd)return this.position=xr._createAfter(i),this._next();e=i.data[t.offset]}else e=i.getChild(t.offset);if(e instanceof ar)return this.shallow?t.offset++:t=new xr(e,0),this.position=t,this._formatReturnValue("elementStart",e,n,t,1);if(e instanceof si){if(this.singleCharacters)return t=new xr(e,0),this.position=t,this._next();var r,o=e.data.length;return e==this._boundaryEndParent?(o=this.boundaries.end.offset,r=new ci(e,0,o),t=xr._createAfter(r)):(r=new ci(e,0,e.data.length),t.offset++),this.position=t,this._formatReturnValue("text",r,n,t,o)}if("string"==typeof e){var a;a=this.singleCharacters?1:(i===this._boundaryEndParent?this.boundaries.end.offset:i.data.length)-t.offset;var s=new ci(i,t.offset,a);return t.offset+=a,this.position=t,this._formatReturnValue("text",s,n,t,a)}return t=xr._createAfter(i),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",i,n,t)}},{key:"_previous",value:function(){var e,t=this.position.clone(),n=this.position,i=t.parent;if(null===i.parent&&0===t.offset)return{done:!0};if(i==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};if(i instanceof si){if(t.isAtStart)return this.position=xr._createBefore(i),this._previous();e=i.data[t.offset-1]}else e=i.getChild(t.offset-1);if(e instanceof ar)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",e,n,t,1)):(t=new xr(e,e.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,n,t));if(e instanceof si){if(this.singleCharacters)return t=new xr(e,e.data.length),this.position=t,this._previous();var r,o=e.data.length;if(e==this._boundaryStartParent){var a=this.boundaries.start.offset;r=new ci(e,a,e.data.length-a),o=r.data.length,t=xr._createBefore(r)}else r=new ci(e,0,e.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",r,n,t,o)}if("string"==typeof e){var s;if(this.singleCharacters)s=1;else{var c=i===this._boundaryStartParent?this.boundaries.start.offset:0;s=t.offset-c}t.offset-=s;var l=new ci(i,t.offset,s);return this.position=t,this._formatReturnValue("text",l,n,t,s)}return t=xr._createBefore(i),this.position=t,this._formatReturnValue("elementStart",i,n,t,1)}},{key:"_formatReturnValue",value:function(e,t,n,i,r){return t instanceof ci&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=xr._createAfter(t.textNode):(i=xr._createAfter(t.textNode),this.position=i)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=xr._createBefore(t.textNode):(i=xr._createBefore(t.textNode),this.position=i))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:r}}}}]),e}(),xr=function(){function e(t,n){w(this,e),this.parent=t,this.offset=n}return C(e,[{key:"getShiftedBy",value:function(t){var n=e._createAt(this),i=n.offset+t;return n.offset=i<0?0:i,n}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Ar(t);return n.skip(e),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),i=0;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}},{key:"is",value:function(e){return"position"===e||"view:position"===e}},{key:"isEqual",value:function(e){return this.parent==e.parent&&this.offset==e.offset}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"compareWith",value:function(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";var t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);var i=ri(t,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return t[i]0&&void 0!==arguments[0]?arguments[0]:{};return e.startPosition=this,new Ar(e)}},{key:"clone",value:function(){return new e(this.parent,this.offset)}},{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var e=this.parent;!(e instanceof wr);){if(!e.parent)return null;e=e.parent}return e}}],[{key:"_createAt",value:function(t,n){if(t instanceof e)return new this(t.parent,t.offset);var i=t;if("end"==n)n=i.is("$text")?i.data.length:i.childCount;else{if("before"==n)return this._createBefore(i);if("after"==n)return this._createAfter(i);if(0!==n&&!n)throw new jn.a("view-createpositionat-offset-required",i)}return new e(i,n)}},{key:"_createAfter",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new jn.a("view-position-after-root",t,{root:t});return new e(t.parent,t.index+1)}},{key:"_createBefore",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText);if(!t.parent)throw new jn.a("view-position-before-root",t,{root:t});return new e(t.parent,t.index)}}]),e}(),Er=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;w(this,e),this.start=t.clone(),this.end=n?n.clone():t.clone()}return C(e,[{key:Symbol.iterator,value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(new Ar({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getEnlarged",value:function(){var t=this.start.getLastMatchingPosition(Dr,{direction:"backward"}),n=this.end.getLastMatchingPosition(Dr);return t.parent.is("$text")&&t.isAtStart&&(t=xr._createBefore(t.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=xr._createAfter(n.parent)),new e(t,n)}},{key:"getTrimmed",value:function(){var t=this.start.getLastMatchingPosition(Dr);if(t.isAfter(this.end)||t.isEqual(this.end))return new e(t,t);var n=this.end.getLastMatchingPosition(Dr,{direction:"backward"}),i=t.nodeAfter,r=n.nodeBefore;return i&&i.is("$text")&&(t=new xr(i,0)),r&&r.is("$text")&&(n=new xr(r,r.data.length)),new e(t,n)}},{key:"isEqual",value:function(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(this.clone()),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Ar(e)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}},{key:"clone",value:function(){return new e(this.start,this.end)}},{key:"getItems",value:a.mark((function e(){var t,n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=s.length>0&&void 0!==s[0]?s[0]:{},t.boundaries=this,t.ignoreElementEnd=!0,n=new Ar(t),i=v(n),e.prev=4,i.s();case 6:if((r=i.n()).done){e.next=12;break}return o=r.value,e.next=10,o.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](4),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:a.mark((function e(){var t,n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},t.boundaries=this,n=new Ar(t),e.next=5,n.position;case 5:i=v(n),e.prev=6,i.s();case 8:if((r=i.n()).done){e.next=14;break}return o=r.value,e.next=12,o.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](6),i.e(e.t0);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"is",value:function(e){return"range"===e||"view:range"===e}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromParentsAndOffsets",value:function(e,t,n,i){return new this(new xr(e,t),new xr(n,i))}},{key:"_createFromPositionAndShift",value:function(e,t){var n=e,i=e.getShiftedBy(t);return t>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}},{key:"_createOn",value:function(e){var t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(xr._createBefore(e),t)}}]),e}();function Dr(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function Mr(e){var t,n=0,i=v(e);try{for(i.s();!(t=i.n()).done;){t.value;n++}}catch(r){i.e(r)}finally{i.f()}return n}var Sr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;w(this,e),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,n,i)}return C(e,[{key:"getRanges",value:a.mark((function e(){var t,n,i;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=v(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.clone();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=v(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.start.isBefore(t.start)||(t=i)}}catch(r){n.e(r)}finally{n.f()}return t?t.clone():null}},{key:"getLastRange",value:function(){var e,t=null,n=v(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.end.isAfter(t.end)||(t=i)}}catch(r){n.e(r)}finally{n.f()}return t?t.clone():null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"isEqual",value:function(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=v(this._ranges);try{for(n.s();!(t=n.n()).done;){var i,r=t.value,o=!1,a=v(e._ranges);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(r.isEqual(s)){o=!0;break}}}catch(c){a.e(c)}finally{a.f()}if(!o)return!1}}catch(c){n.e(c)}finally{n.f()}return!0}},{key:"isSimilar",value:function(e){if(this.isBackward!=e.isBackward)return!1;var t=Mr(this.getRanges());if(t!=Mr(e.getRanges()))return!1;if(0==t)return!0;var n,i=v(this.getRanges());try{for(i.s();!(n=i.n()).done;){var r=n.value;r=r.getTrimmed();var o,a=!1,s=v(e.getRanges());try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c=c.getTrimmed(),r.start.isEqual(c.start)&&r.end.isEqual(c.end)){a=!0;break}}}catch(l){s.e(l)}finally{s.f()}if(!a)return!1}}catch(l){i.e(l)}finally{i.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(t,n,i){if(null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof e||t instanceof Tr)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Er)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof xr)this._setRanges([new Er(t)]),this._setFakeOptions(n);else if(t instanceof ai){var r,o=!!i&&!!i.backward;if(void 0===n)throw new jn.a("view-selection-setto-required-second-parameter",this);r="in"==n?Er._createIn(t):"on"==n?Er._createOn(t):new Er(xr._createAt(t,n)),this._setRanges([r],o),this._setFakeOptions(i)}else{if(!Yn(t))throw new jn.a("view-selection-setto-not-selectable",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new jn.a("view-selection-setfocus-no-ranges",this);var n=xr._createAt(e,t);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.pop(),"before"==n.compareWith(i)?this._addRange(new Er(n,i),!0):this._addRange(new Er(i,n)),this.fire("change")}}},{key:"is",value:function(e){return"selection"===e||"view:selection"===e}},{key:"_setRanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e),this._ranges=[];var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._addRange(r)}}catch(o){i.e(o)}finally{i.f()}this._lastRangeBackward=!!t}},{key:"_setFakeOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}},{key:"_addRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof Er))throw new jn.a("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}},{key:"_pushRange",value:function(e){var t,n=v(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(e.isIntersecting(i))throw new jn.a("view-selection-range-intersects",this,{addedRange:e,intersectingRange:i})}}catch(r){n.e(r)}finally{n.f()}this._ranges.push(new Er(e.start,e.end))}},{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}}]),e}();Qn(Sr,Vn);var Tr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;w(this,e),this._selection=new Sr,this._selection.delegate("change").to(this),this._selection.setTo(t,n,i)}return C(e,[{key:"getRanges",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(e){return this._selection.isEqual(e)}},{key:"isSimilar",value:function(e){return this._selection.isSimilar(e)}},{key:"is",value:function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}}]),e}();Qn(Tr,Vn);var Ir=function(){function e(t){w(this,e),this.selection=new Tr,this.roots=new Zn({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}return C(e,[{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"destroy",value:function(){this.roots.map((function(e){return e.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,i=v(this._postFixers);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(t=r(e),t)break}}catch(o){i.e(o)}finally{i.f()}}while(t)}}]),e}();Qn(Ir,pr);var Pr=function(e){A(n,e);var t=x(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=Or,a._priority=10,a._id=null,a._clonesGroup=null,a}return C(n,[{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new jn.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return null!==this.id||null!==e.id?this.id===e.id:c(O(n.prototype),"isSimilar",this).call(this,e)&&this.priority==e.priority}},{key:"_clone",value:function(e){var t=c(O(n.prototype),"_clone",this).call(this,e);return t._priority=this._priority,t._id=this._id,t}},{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}}]),n}(ar);function Or(){if(Nr(this))return null;for(var e=this.parent;e&&e.is("attributeElement");){if(Nr(e)>1)return null;e=e.parent}return!e||Nr(e)>1?null:this.childCount}function Nr(e){return Array.from(e.getChildren()).filter((function(e){return!e.is("uiElement")})).length}Pr.DEFAULT_PRIORITY=10;var Br=function(e){A(n,e);var t=x(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=Lr,a}return C(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof ai||Array.from(t).length>0))throw new jn.a("view-emptyelement-cannot-add",[this,t])}}]),n}(ar);function Lr(){return null}var zr=navigator.userAgent.toLowerCase(),jr={isMac:function(e){return e.indexOf("macintosh")>-1}(zr),isGecko:function(e){return!!e.match(/gecko\/\d+/)}(zr),isSafari:function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(zr),isAndroid:function(e){return e.indexOf("android")>-1}(zr),isBlink:function(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}(zr),features:{isRegExpUnicodePropertySupported:function(){var e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}()}},Rr={"⌘":"ctrl","⇧":"shift","⌥":"alt"},Fr={ctrl:"⌘",shift:"⇧",alt:"⌥"},Vr=function(){for(var e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448},t=65;t<=90;t++){var n=String.fromCharCode(t);e[n.toLowerCase()]=t}for(var i=48;i<=57;i++)e[i-48]=i;for(var r=112;r<=123;r++)e["f"+(r-111)]=r;return e}();function Ur(e){var t;if("string"==typeof e){if(t=Vr[e.toLowerCase()],!t)throw new jn.a("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?Vr.alt:0)+(e.ctrlKey?Vr.ctrl:0)+(e.shiftKey?Vr.shift:0);return t}function Hr(e){return"string"==typeof e&&(e=qr(e)),e.map((function(e){return"string"==typeof e?Ur(e):e})).reduce((function(e,t){return t+e}),0)}function Wr(e){return jr.isMac?qr(e).map((function(e){return Fr[e.toLowerCase()]||e})).reduce((function(e,t){return e.slice(-1)in Rr?e+t:e+"+"+t})):e}function Kr(e){return e==Vr.arrowright||e==Vr.arrowleft||e==Vr.arrowup||e==Vr.arrowdown}function Gr(e,t){var n="ltr"===t;switch(e){case Vr.arrowleft:return n?"left":"right";case Vr.arrowright:return n?"right":"left";case Vr.arrowup:return"up";case Vr.arrowdown:return"down"}}function $r(e,t){var n=Gr(e,t);return"down"===n||"right"===n}function qr(e){return e.split(/\s*\+\s*/)}var Yr=function(e){A(n,e);var t=x(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=Zr,a}return C(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof ai||Array.from(t).length>0))throw new jn.a("view-uielement-cannot-add",this)}},{key:"render",value:function(e){return this.toDomElement(e)}},{key:"toDomElement",value:function(e){var t,n=e.createElement(this.name),i=v(this.getAttributeKeys());try{for(i.s();!(t=i.n()).done;){var r=t.value;n.setAttribute(r,this.getAttribute(r))}}catch(o){i.e(o)}finally{i.f()}return n}}]),n}(ar);function Qr(e){e.document.on("keydown",(function(t,n){return function(e,t,n){if(t.keyCode==Vr.arrowright){var i=t.domTarget.ownerDocument.defaultView.getSelection(),r=1==i.rangeCount&&i.getRangeAt(0).collapsed;if(r||t.shiftKey){var o=i.focusNode,a=i.focusOffset,s=n.domPositionToView(o,a);if(null===s)return;var c=!1,l=s.getLastMatchingPosition((function(e){return e.item.is("uiElement")&&(c=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))}));if(c){var u=n.viewPositionToDom(l);r?i.collapse(u.parent,u.offset):i.extend(u.parent,u.offset)}}}}(0,n,e.domConverter)}))}function Zr(){return null}var Jr=function(e){A(n,e);var t=x(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=Xr,a}return C(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof ai||Array.from(t).length>0))throw new jn.a("view-rawelement-cannot-add",[this,t])}}]),n}(ar);function Xr(){return null}var eo=function(){function e(t,n){w(this,e),this.document=t,this._children=[],n&&this._insertChild(0,n)}return C(e,[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"is",value:function(e){return"documentFragment"===e||"view:documentFragment"===e}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,i=0,r=function(e,t){return"string"==typeof t?[new si(e,t)]:(Yn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new si(e,t):t instanceof ci?new si(e,t.data):t})))}(this.document,t),o=v(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,this._children.splice(e,0,a),e++,i++}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n2&&void 0!==arguments[2]?arguments[2]:{},i=new Pr(this.document,e,t);return n.priority&&(i._priority=n.priority),n.id&&(i._id=n.id),i}},{key:"createContainerElement",value:function(e,t){return new cr(this.document,e,t)}},{key:"createEditableElement",value:function(e,t){var n=new wr(this.document,e,t);return n._document=this.document,n}},{key:"createEmptyElement",value:function(e,t){return new Br(this.document,e,t)}},{key:"createUIElement",value:function(e,t,n){var i=new Yr(this.document,e,t);return n&&(i.render=n),i}},{key:"createRawElement",value:function(e,t,n){var i=new Jr(this.document,e,t);return i.render=n||function(){},i}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){F(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"breakAttributes",value:function(e){return e instanceof xr?this._breakAttributes(e):this._breakAttributesRange(e)}},{key:"breakContainer",value:function(e){var t=e.parent;if(!t.is("containerElement"))throw new jn.a("view-writer-break-non-container-element",this.document);if(!t.parent)throw new jn.a("view-writer-break-root",this.document);if(e.isAtStart)return xr._createBefore(t);if(!e.isAtEnd){var n=t._clone(!1);this.insert(xr._createAfter(t),n);var i=new Er(e,xr._createAt(t,"end")),r=new xr(n,0);this.move(i,r)}return xr._createAfter(t)}},{key:"mergeAttributes",value:function(e){var t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){var i=n.parent,r=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new xr(i,r))}var o=n.getChild(t-1),a=n.getChild(t);if(!o||!a)return e;if(o.is("$text")&&a.is("$text"))return ao(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){var s=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new xr(o,s))}return e}},{key:"mergeContainers",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new jn.a("view-writer-merge-containers-invalid-position",this.document);var i=t.getChild(t.childCount-1),r=i instanceof si?xr._createAt(i,"end"):xr._createAt(t,"end");return this.move(Er._createIn(n),xr._createAt(t,"end")),this.remove(Er._createOn(n)),r}},{key:"insert",value:function(e,t){so(t=Yn(t)?p(t):[t],this.document);var n=no(e);if(!n)throw new jn.a("view-writer-invalid-position-container",this.document);var i,r=this._breakAttributes(e,!0),o=n._insertChild(r.offset,t),a=v(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;this._addToClonedElementsGroup(s)}}catch(d){a.e(d)}finally{a.f()}var c=r.getShiftedBy(o),l=this.mergeAttributes(r);if(0===o)return new Er(l,l);l.isEqual(r)||c.offset--;var u=this.mergeAttributes(c);return new Er(l,u)}},{key:"remove",value:function(e){var t=e instanceof Er?e:Er._createOn(e);if(uo(t,this.document),t.isCollapsed)return new eo(this.document);var n,i=this._breakAttributesRange(t,!0),r=i.start,o=i.end,a=r.parent,s=o.offset-r.offset,c=a._removeChildren(r.offset,s),l=v(c);try{for(l.s();!(n=l.n()).done;){var u=n.value;this._removeFromClonedElementsGroup(u)}}catch(h){l.e(h)}finally{l.f()}var d=this.mergeAttributes(r);return t.start=d,t.end=d.clone(),new eo(this.document,c)}},{key:"clear",value:function(e,t){uo(e,this.document);var n,i=e.getWalker({direction:"backward",ignoreElementEnd:!0}),r=v(i);try{for(r.s();!(n=r.n()).done;){var o=n.value,a=o.item,s=void 0;if(a.is("element")&&t.isSimilar(a))s=Er._createOn(a);else if(!o.nextPosition.isAfter(e.start)&&a.is("$textProxy")){var c=a.getAncestors().find((function(e){return e.is("element")&&t.isSimilar(e)}));c&&(s=Er._createIn(c))}s&&(s.end.isAfter(e.end)&&(s.end=e.end),s.start.isBefore(e.start)&&(s.start=e.start),this.remove(s))}}catch(l){r.e(l)}finally{r.f()}}},{key:"move",value:function(e,t){var n;if(t.isAfter(e.end)){var i=(t=this._breakAttributes(t,!0)).parent,r=i.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=i.childCount-r}else n=this.remove(e);return this.insert(t,n)}},{key:"wrap",value:function(e,t){if(!(t instanceof Pr))throw new jn.a("view-writer-wrap-invalid-attribute",this.document);if(uo(e,this.document),e.isCollapsed){var n=e.start;n.parent.is("element")&&(r=n.parent,!Array.from(r.getChildren()).some((function(e){return!e.is("uiElement")})))&&(n=n.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))),n=this._wrapPosition(n,t);var i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new Er(n)}return this._wrapRange(e,t);var r}},{key:"unwrap",value:function(e,t){if(!(t instanceof Pr))throw new jn.a("view-writer-unwrap-invalid-attribute",this.document);if(uo(e,this.document),e.isCollapsed)return e;var n=this._breakAttributesRange(e,!0),i=n.start,r=n.end,o=i.parent,a=this._unwrapChildren(o,i.offset,r.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var c=this.mergeAttributes(a.end);return new Er(s,c)}},{key:"rename",value:function(e,t){var n=new cr(this.document,e,t.getAttributes());return this.insert(xr._createAfter(t),n),this.move(Er._createIn(t),xr._createAt(n,0)),this.remove(Er._createOn(t)),n}},{key:"clearClonedElementsGroup",value:function(e){this._cloneGroups.delete(e)}},{key:"createPositionAt",value:function(e,t){return xr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Er(e,t)}},{key:"createRangeOn",value:function(e){return Er._createOn(e)}},{key:"createRangeIn",value:function(e){return Er._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Sr(e,t,n)}},{key:"_wrapChildren",value:function(e,t,n,i){for(var r=t,o=[];r1&&void 0!==arguments[1]&&arguments[1],n=e.start,i=e.end;if(uo(e,this.document),e.isCollapsed){var r=this._breakAttributes(e.start,t);return new Er(r,r)}var o=this._breakAttributes(i,t),a=o.parent.childCount,s=this._breakAttributes(n,t);return o.offset+=o.parent.childCount-a,new Er(s,o)}},{key:"_breakAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.offset,i=e.parent;if(e.parent.is("emptyElement"))throw new jn.a("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new jn.a("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new jn.a("view-writer-cannot-break-raw-element",this.document);if(!t&&i.is("$text")&&lo(i.parent))return e.clone();if(lo(i))return e.clone();if(i.is("$text"))return this._breakAttributes(oo(e),t);if(n==i.childCount){var r=new xr(i.parent,i.index+1);return this._breakAttributes(r,t)}if(0===n){var o=new xr(i.parent,i.index);return this._breakAttributes(o,t)}var a=i.index+1,s=i._clone();i.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var c=i.childCount-n,l=i._removeChildren(n,c);s._appendChild(l);var u=new xr(i.parent,a);return this._breakAttributes(u,t)}},{key:"_addToClonedElementsGroup",value:function(e){if(e.root.is("rootElement")){if(e.is("element")){var t,n=v(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._addToClonedElementsGroup(i)}}catch(a){n.e(a)}finally{n.f()}}var r=e.id;if(r){var o=this._cloneGroups.get(r);o||(o=new Set,this._cloneGroups.set(r,o)),o.add(e),e._clonesGroup=o}}}},{key:"_removeFromClonedElementsGroup",value:function(e){if(e.is("element")){var t,n=v(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._removeFromClonedElementsGroup(i)}}catch(a){n.e(a)}finally{n.f()}}var r=e.id;if(r){var o=this._cloneGroups.get(r);o&&o.delete(e)}}}]),e}();function no(e){for(var t=e.parent;!lo(t);){if(!t)return;t=t.parent}return t}function io(e,t){return e.priorityt.priority)&&e.getIdentity()3&&void 0!==arguments[3]&&arguments[3];n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));var r=function(e,t,n){var i=_o(e,t,n);if(-1===i)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var r=Co(e,i),o=Co(t,i),a=_o(r,o,n),s=e.length-a,c=t.length-a;return{firstIndex:i,lastIndexOld:s,lastIndexNew:c}}(e,t,n);return i?function(e,t){var n=e.firstIndex,i=e.lastIndexOld,r=e.lastIndexNew;if(-1===n)return Array(t).fill("equal");var o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),r-n>0&&(o=o.concat(Array(r-n).fill("insert"))),i-n>0&&(o=o.concat(Array(i-n).fill("delete"))),r0&&n.push({index:i,type:"insert",values:e.slice(i,o)}),r-i>0&&n.push({index:i+(o-i),type:"delete",howMany:r-i}),n}(t,r)}function _o(e,t,n){for(var i=0;i200||a>200||o+a>300)return Ao.fastDiff(e,t,n,!0);if(as?-1:1;d[o+u]&&(d[o]=d[o+u].slice(0)),d[o]||(d[o]=[]),d[o].push(a>s?i:r);for(var f=Math.max(a,s),v=f-o;vu;v--)h[v]=f(v);h[u]=f(u),p++}while(h[u]!==l);return d[u].slice(1)}function xo(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function Eo(e){var t=e.parentNode;t&&t.removeChild(e)}function Do(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}Ao.fastDiff=wo;var Mo=function(){function e(t,n){w(this,e),this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}return C(e,[{key:"markToSync",value:function(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new jn.a("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}},{key:"render",value:function(){var e,t,n=v(this.markedChildren);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._updateChildrenMappings(i)}}catch(m){n.e(m)}finally{n.f()}this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent));var r,o=v(this.markedAttributes);try{for(o.s();!(r=o.n()).done;){var a=r.value;this._updateAttrs(a)}}catch(m){o.e(m)}finally{o.f()}var s,c=v(this.markedChildren);try{for(c.s();!(s=c.n()).done;){var l=s.value;this._updateChildren(l,{inlineFillerPosition:e})}}catch(m){c.e(m)}finally{c.f()}var u,d=v(this.markedTexts);try{for(d.s();!(u=d.n()).done;){var h=u.value;!this.markedChildren.has(h.parent)&&this.domConverter.mapViewToDom(h.parent)&&this._updateText(h,{inlineFillerPosition:e})}}catch(m){d.e(m)}finally{d.f()}if(e){var f=this.domConverter.viewPositionToDom(e),p=f.parent.ownerDocument;go(f.parent)?this._inlineFiller=f.parent:this._inlineFiller=So(p,f.parent,f.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n=this.domConverter.mapViewToDom(e).childNodes,i=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),r=this._diffNodeLists(n,i),o=this._findReplaceActions(r,n,i);if(-1!==o.indexOf("replace")){var a,s={equal:0,insert:0,delete:0},c=v(o);try{for(c.s();!(a=c.n()).done;){var l=a.value;if("replace"===l){var u=s.equal+s.insert,d=s.equal+s.delete,h=e.getChild(u);!h||h.is("uiElement")||h.is("rawElement")||this._updateElementMappings(h,n[d]),Eo(i[u]),s.equal++}else s[l]++}}catch(f){c.e(f)}finally{c.f()}}}}},{key:"_updateElementMappings",value:function(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}},{key:"_getInlineFillerPosition",value:function(){var e=this.selection.getFirstPosition();return e.parent.is("$text")?xr._createBefore(this.selection.getFirstPosition().parent):e}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&fo(t.parent)&&go(t.parent))}},{key:"_removeInlineFiller",value:function(){var e=this._inlineFiller;if(!go(e))throw new jn.a("view-renderer-filler-was-lost",this);ko(e)?e.parentNode.removeChild(e):e.data=e.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;var t=e.findAncestor((function(e){return e.hasAttribute("contenteditable")}));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(n===t.getFillerOffset())return!1;var i=e.nodeBefore,r=e.nodeAfter;return!(i instanceof si||r instanceof si)}},{key:"_updateText",value:function(e,t){var n=this.domConverter.findCorrespondingDomText(e),i=this.domConverter.viewToDom(e,n.ownerDocument),r=n.data,o=i.data,a=t.inlineFillerPosition;if(a&&a.parent==e.parent&&a.offset==e.index&&(o=mo+o),r!=o){var s,c=wo(r,o),l=v(c);try{for(l.s();!(s=l.n()).done;){var u=s.value;"insert"===u.type?n.insertData(u.index,u.values.join("")):n.deleteData(u.index,u.howMany)}}catch(d){l.e(d)}finally{l.f()}}}},{key:"_updateAttrs",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n,i=Array.from(t.attributes).map((function(e){return e.name})),r=e.getAttributeKeys(),o=v(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;t.setAttribute(a,e.getAttribute(a))}}catch(u){o.e(u)}finally{o.f()}var s,c=v(i);try{for(c.s();!(s=c.n()).done;){var l=s.value;e.hasAttribute(l)||t.removeAttribute(l)}}catch(u){c.e(u)}finally{c.f()}}}},{key:"_updateChildren",value:function(e,t){var n=this.domConverter.mapViewToDom(e);if(n){var i=t.inlineFillerPosition,r=this.domConverter.mapViewToDom(e).childNodes,o=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0,inlineFillerPosition:i}));i&&i.parent===e&&So(n.ownerDocument,o,i.offset);var a,s=this._diffNodeLists(r,o),c=0,l=new Set,u=v(s);try{for(u.s();!(a=u.n()).done;){var d=a.value;"delete"===d?(l.add(r[c]),Eo(r[c])):"equal"===d&&c++}}catch(b){u.e(b)}finally{u.f()}c=0;var h,f=v(s);try{for(f.s();!(h=f.n()).done;){var p=h.value;"insert"===p?(xo(n,c,o[c]),c++):"equal"===p&&(this._markDescendantTextToSync(this.domConverter.domToView(o[c])),c++)}}catch(b){f.e(b)}finally{f.f()}var m,g=v(l);try{for(g.s();!(m=g.n()).done;){var k=m.value;k.parentNode||this.domConverter.unbindDomElement(k)}}catch(b){g.e(b)}finally{g.f()}}}},{key:"_diffNodeLists",value:function(e,t){return Ao(e=function(e,t){var n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,Io.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;var i,r=[],o=[],a=[],s={equal:0,insert:0,delete:0},c=v(e);try{for(c.s();!(i=c.n()).done;){var l=i.value;"insert"===l?a.push(n[s.equal+s.insert]):"delete"===l?o.push(t[s.equal+s.delete]):(r=r.concat(Ao(o,a,To).map((function(e){return"equal"===e?"replace":e}))),r.push("equal"),o=[],a=[]),s[l]++}}catch(u){c.e(u)}finally{c.f()}return r.concat(Ao(o,a,To).map((function(e){return"equal"===e?"replace":e})))}},{key:"_markDescendantTextToSync",value:function(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element")){var t,n=v(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._markDescendantTextToSync(i)}}catch(r){n.e(r)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}},{key:"_updateFakeSelection",value:function(e){var t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){var t=e.createElement("div");return Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(e)){n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";var i=t.getSelection(),r=t.createRange();i.removeAllRanges(),r.selectNodeContents(n),i.addRange(r)}}},{key:"_updateDomSelection",value:function(e){var t=e.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(t)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.focus(),t.collapse(n.parent,n.offset),t.extend(i.parent,i.offset),jr.isGecko&&function(e,t){var n=e.parent;if(n.nodeType==Node.ELEMENT_NODE&&e.offset==n.childNodes.length-1){var i=n.childNodes[e.offset];i&&"BR"==i.tagName&&t.addRange(t.getRangeAt(0))}}(i,t)}}},{key:"_domSelectionNeedsUpdate",value:function(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;var t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}},{key:"_fakeSelectionNeedsUpdate",value:function(e){var t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var e,t=v(this.domDocuments);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.getSelection().rangeCount){var i=n.activeElement,r=this.domConverter.mapDomToView(i);i&&r&&n.getSelection().removeAllRanges()}}}catch(o){t.e(o)}finally{t.f()}}},{key:"_removeFakeSelection",value:function(){var e=this._fakeSelectionContainer;e&&e.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}]),e}();function So(e,t,n){var i=t instanceof Array?t:t.childNodes,r=i[n];if(fo(r))return r.data=mo+r.data,r;var o=e.createTextNode(mo);return Array.isArray(t)?i.splice(n,0,o):xo(t,n,o),o}function To(e,t){return Do(e)&&Do(t)&&!fo(e)&&!fo(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Io(e,t,n){return t===n||(fo(t)&&fo(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}Qn(Mo,pr);var Po={window:window,document:document};function Oo(e){for(var t=0;e.previousSibling;)e=e.previousSibling,t++;return t}function No(e){for(var t=[];e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}var Bo=po(document),Lo=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(this,e),this.document=t,this.blockFillerMode=n.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?po:vo,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}return C(e,[{key:"bindFakeSelection",value:function(e,t){this._fakeSelectionMapping.set(e,new Sr(t))}},{key:"fakeSelectionToView",value:function(e){return this._fakeSelectionMapping.get(e)}},{key:"bindElements",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"unbindDomElement",value:function(e){var t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);var n,i=v(e.childNodes);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.unbindDomElement(r)}}catch(o){i.e(o)}finally{i.f()}}}},{key:"bindDocumentFragments",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"viewToDom",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.is("$text")){var r=this._processDataFromViewText(e);return t.createTextNode(r)}if(this.mapViewToDom(e))return this.mapViewToDom(e);if(e.is("documentFragment"))n=t.createDocumentFragment(),i.bind&&this.bindDocumentFragments(n,e);else{if(e.is("uiElement"))return n=e.render(t),i.bind&&this.bindElements(n,e),n;n=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(n),i.bind&&this.bindElements(n,e);var o,a=v(e.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.setAttribute(s,e.getAttribute(s))}}catch(d){a.e(d)}finally{a.f()}}if(i.withChildren||void 0===i.withChildren){var c,l=v(this.viewChildrenToDom(e,t,i));try{for(l.s();!(c=l.n()).done;){var u=c.value;n.appendChild(u)}}catch(d){l.e(d)}finally{l.f()}}return n}},{key:"viewChildrenToDom",value:a.mark((function e(t,n){var i,r,o,s,c,l,u=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=u.length>2&&void 0!==u[2]?u[2]:{},r=t.getFillerOffset&&t.getFillerOffset(),o=0,s=v(t.getChildren()),e.prev=4,s.s();case 6:if((c=s.n()).done){e.next=17;break}if(l=c.value,e.t0=r===o,!e.t0){e.next=12;break}return e.next=12,this._blockFiller(n);case 12:return e.next=14,this.viewToDom(l,n,i);case 14:o++;case 15:e.next=6;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e["catch"](4),s.e(e.t1);case 22:return e.prev=22,s.f(),e.finish(22);case 25:if(e.t2=r===o,!e.t2){e.next=29;break}return e.next=29,this._blockFiller(n);case 29:case"end":return e.stop()}}),e,this,[[4,19,22,25]])}))},{key:"viewRangeToDom",value:function(e){var t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),i=document.createRange();return i.setStart(t.parent,t.offset),i.setEnd(n.parent,n.offset),i}},{key:"viewPositionToDom",value:function(e){var t,n,i,r=e.parent;if(r.is("$text")){var o=this.findCorrespondingDomText(r);if(!o)return null;var a=e.offset;return go(o)&&(a+=7),{parent:o,offset:a}}if(0===e.offset){if(t=this.mapViewToDom(r),!t)return null;i=t.childNodes[0]}else{var s=e.nodeBefore;if(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(e.nodeBefore),!n)return null;t=n.parentNode,i=n.nextSibling}return fo(i)&&go(i)?{parent:i,offset:7}:{parent:t,offset:n?Oo(n)+1:0}}},{key:"domToView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(e,this.blockFillerMode))return null;var n,i=this.getHostViewElement(e,this._domToViewMapping);if(i)return i;if(fo(e)){if(ko(e))return null;var r=this._processDataFromDomText(e);return""===r?null:new si(this.document,r)}if(this.isComment(e))return null;if(this.mapDomToView(e))return this.mapDomToView(e);if(this.isDocumentFragment(e))n=new eo(this.document),t.bind&&this.bindDocumentFragments(e,n);else{var o=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();n=new ar(this.document,o),t.bind&&this.bindElements(e,n);for(var a=e.attributes,s=a.length-1;s>=0;s--)n._setAttribute(a[s].name,a[s].value)}if(t.withChildren||void 0===t.withChildren){var c,l=v(this.domChildrenToView(e,t));try{for(l.s();!(c=l.n()).done;){var u=c.value;n._appendChild(u)}}catch(d){l.e(d)}finally{l.f()}}return n}},{key:"domChildrenToView",value:a.mark((function e(t){var n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=s.length>1&&void 0!==s[1]?s[1]:{},i=0;case 2:if(!(i1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:{};if(!this._domListeners||!this._domListeners[e]){var i={capture:!!n.useCapture,passive:!!n.usePassive},r=this._createDomListener(e,i);this._domNode.addEventListener(e,r,i),this._domListeners||(this._domListeners={}),this._domListeners[e]=r}},detach:function(e){var t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_createDomListener:function(e,t){var n=this,i=function(t){n.fire(e,t)};return i.removeListener=function(){n._domNode.removeEventListener(e,i,t),delete n._domListeners[e]},i}});var Wo=function(){function e(t){w(this,e),this.view=t,this.document=t.document,this.isEnabled=!1}return C(e,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}},{key:"checkShouldIgnoreEventFromTarget",value:function(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}]),e}();Qn(Wo,Vo);var Ko=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Go=function(e){return this.__data__.has(e)};function $o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ze;++ts))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,d=!0,h=2&n?new qo:void 0;for(o.set(e,t),o.set(t,e);++u=t||n<0||d&&e-l>=o}function m(){var e=ma();if(p(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-c);return d?Aa(n,o-(e-l)):n}(e))}function g(e){return s=void 0,h&&i?f(e):(i=r=void 0,a)}function k(){var e=ma(),n=p(e);if(i=arguments,r=this,c=e,n){if(void 0===s)return v(c);if(d)return clearTimeout(s),s=setTimeout(m,t),f(c)}return void 0===s&&(s=setTimeout(m,t)),a}return t=_a(t)||0,ne(n)&&(u=!!n.leading,o=(d="maxWait"in n)?Ca(_a(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),k.cancel=function(){void 0!==s&&clearTimeout(s),l=0,i=c=r=s=void 0},k.flush=function(){return void 0===s?a:g(ma())},k},Ea=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._fireSelectionChangeDoneDebounced=xa((function(e){return i.document.fire("selectionChangeDone",e)}),200),i}return C(n,[{key:"observe",value:function(){var e=this,t=this.document;t.on("keydown",(function(n,i){t.selection.isFake&&Kr(i.keyCode)&&e.isEnabled&&(i.preventDefault(),e._handleSelectionMove(i.keyCode))}),{priority:"lowest"})}},{key:"destroy",value:function(){c(O(n.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(e){var t=this.document.selection,n=new Sr(t.getRanges(),{backward:t.isBackward,fake:!1});e!=Vr.arrowleft&&e!=Vr.arrowup||n.setTo(n.getFirstPosition()),e!=Vr.arrowright&&e!=Vr.arrowdown||n.setTo(n.getLastPosition());var i={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}]),n}(Wo),Da=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.mutationObserver=e.getObserver(ha),i.selection=i.document.selection,i.domConverter=e.domConverter,i._documents=new WeakSet,i._fireSelectionChangeDoneDebounced=xa((function(e){return i.document.fire("selectionChangeDone",e)}),200),i._clearInfiniteLoopInterval=setInterval((function(){return i._clearInfiniteLoop()}),1e3),i._loopbackCounter=0,i}return C(n,[{key:"observe",value:function(e){var t=this,n=e.ownerDocument;this._documents.has(n)||(this.listenTo(n,"selectionchange",(function(e,i){t._handleSelectionChange(i,n)})),this._documents.add(n))}},{key:"destroy",value:function(){c(O(n.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionChange",value:function(e,t){if(this.isEnabled){var n=t.defaultView.getSelection();if(!this.checkShouldIgnoreEventFromTarget(n.anchorNode)){this.mutationObserver.flush();var i=this.domConverter.domSelectionToView(n);if(0!=i.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(i)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(i))this.view.forceRender();else{var r={oldSelection:this.selection,newSelection:i,domSelection:n};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}else this.view.hasDomSelection=!1}}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}]),n}(Wo),Ma=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e),i.domEventType=["focus","blur"],i.useCapture=!0;var r=i.document;return r.on("focus",(function(){r.isFocused=!0,i._renderTimeoutId=setTimeout((function(){return e.forceRender()}),50)})),r.on("blur",(function(t,n){var i=r.selection.editableElement;null!==i&&i!==n.target||(r.isFocused=!1,e.forceRender())})),i}return C(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),c(O(n.prototype),"destroy",this).call(this)}}]),n}(va),Sa=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e),i.domEventType=["compositionstart","compositionupdate","compositionend"];var r=i.document;return r.on("compositionstart",(function(){r.isComposing=!0})),r.on("compositionend",(function(){r.isComposing=!1})),i}return C(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(va),Ta=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.domEventType=["beforeinput"],i}return C(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(va);function Ia(e){return"[object Range]"==Object.prototype.toString.apply(e)}function Pa(e){var t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}var Oa=["top","right","bottom","left","width","height"],Na=function(){function e(t){w(this,e);var n=Ia(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Sn(t)||n)if(n){var i=e.getDomRangeRects(t);Ba(this,e.getBoundingRect(i))}else Ba(this,t.getBoundingClientRect());else if(Fo(t)){var r=t.innerWidth,o=t.innerHeight;Ba(this,{top:0,right:r,bottom:o,left:0,width:r,height:o})}else Ba(this,t)}return C(e,[{key:"clone",value:function(){return new e(this)}},{key:"moveTo",value:function(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}},{key:"moveBy",value:function(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}},{key:"getIntersection",value:function(t){var n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new e(n)}},{key:"getIntersectionArea",value:function(e){var t=this.getIntersection(e);return t?t.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var t=this._source,n=this.clone();if(!La(t))for(var i=t.parentNode||t.commonAncestorContainer;i&&!La(i);){var r=new e(i),o=n.getIntersection(r);if(!o)return null;o.getArea()t.bottom}function Va(e,t){return e.topt.right}function Wa(e){return Ia(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Ka(e){if(Ia(e)){var t=e.commonAncestorContainer;return fo(t)&&(t=t.parentNode),t}return e.parentNode}function Ga(e,t){var n=Wa(e),i=new Na(e);if(n===t)return i;for(var r=n;r!=t;){var o=r.frameElement,a=new Na(o).excludeScrollbarsAndBorders();i.moveBy(a.left,a.top),r=r.parent}return i}Object.assign({},{scrollViewportToShowTarget:za,scrollAncestorsToShowTarget:function(e){Ra(Ka(e),(function(){return new Na(e)}))}});var $a=function(){function e(t){var n=this;w(this,e),this.document=new Ir(t),this.domConverter=new Lo(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Mo(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new to(this.document),this.addObserver(ha),this.addObserver(Da),this.addObserver(Ma),this.addObserver(pa),this.addObserver(Ea),this.addObserver(Sa),jr.isAndroid&&this.addObserver(Ta),this.document.on("keydown",yo),Qr(this),this.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0}))}return C(e,[{key:"attachDomRoot",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",i=this.document.getRoot(n);i._name=e.tagName.toLowerCase();for(var r={},o=0,a=Array.from(e.attributes);o0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(e)}},{key:"addObserver",value:function(e){var t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);var n,i=v(this.domRoots);try{for(i.s();!(n=i.n()).done;){var r=u(n.value,2),o=r[0],a=r[1];t.observe(a,o)}}catch(s){i.e(s)}finally{i.f()}return t.enable(),t}},{key:"getObserver",value:function(e){return this._observers.get(e)}},{key:"disableObservers",value:function(){var e,t=v(this._observers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disable()}}catch(i){t.e(i)}finally{t.f()}}},{key:"enableObservers",value:function(){var e,t=v(this._observers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.enable()}}catch(i){t.e(i)}finally{t.f()}}},{key:"scrollToTheSelection",value:function(){var e=this.document.selection.getFirstRange();e&&za({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}},{key:"change",value:function(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new jn.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;var t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){jn.a.rethrowUnexpectedError(e,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var e,t=v(this._observers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.destroy()}}catch(i){t.e(i)}finally{t.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(e,t){return xr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Er(e,t)}},{key:"createRangeOn",value:function(e){return Er._createOn(e)}},{key:"createRangeIn",value:function(e){return Er._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Sr(e,t,n)}},{key:"_disableRendering",value:function(e){this._renderingDisabled=e,0==e&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}]),e}();Qn($a,pr);var qa=function(){function e(t){w(this,e),this.parent=null,this._attrs=li(t)}return C(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),i=e.getAncestors(t),r=0;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),i=ri(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]t.offsetSize)throw new jn.a("model-textproxy-wrong-offsetintext",this);if(i<0||n+i>t.offsetSize)throw new jn.a("model-textproxy-wrong-length",this);this.data=t.data.substring(n,n+i),this.offsetInText=n}return C(e,[{key:"is",value:function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}},{key:"getPath",value:function(){var e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"hasAttribute",value:function(e){return this.textNode.hasAttribute(e)}},{key:"getAttribute",value:function(e){return this.textNode.getAttribute(e)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}},{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}}]),e}(),Za=function(){function e(t){w(this,e),this._nodes=[],t&&this._insertNodes(0,t)}return C(e,[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"getNode",value:function(e){return this._nodes[e]||null}},{key:"getNodeIndex",value:function(e){var t=this._nodes.indexOf(e);return-1==t?null:t}},{key:"getNodeStartOffset",value:function(e){var t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((function(e,t){return e+t.offsetSize}),0)}},{key:"indexToOffset",value:function(e){if(e==this._nodes.length)return this.maxOffset;var t=this._nodes[e];if(!t)throw new jn.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(e){var t,n=0,i=v(this._nodes);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(e>=n&&e1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(e,t)}},{key:"toJSON",value:function(){return this._nodes.map((function(e){return e.toJSON()}))}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(e,t){return e+t.offsetSize}),0)}}]),e}(),Ja=function(e){A(n,e);var t=x(n);function n(e,i,r){var o;return w(this,n),o=t.call(this,i),o.name=e,o._children=new Za,r&&o._insertChild(0,r),o}return C(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"getNodeByPath",value:function(e){var t,n=this,i=v(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n=n.getChild(n.offsetToIndex(r))}}catch(o){i.e(o)}finally{i.f()}return n}},{key:"findAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1},n=t.includeSelf?this:this.parent;n;){if(n.name===e)return n;n=n.parent}return null}},{key:"toJSON",value:function(){var e=c(O(n.prototype),"toJSON",this).call(this);if(e.name=this.name,this._children.length>0){e.children=[];var t,i=v(this._children);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.children.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}return e}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?Array.from(this._children).map((function(e){return e._clone(!0)})):null;return new n(this.name,this.getAttributes(),t)}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,i=function(e){return"string"==typeof e?[new Ya(e)]:(Yn(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Ya(e):e instanceof Qa?new Ya(e.data,e.getAttributes()):e})))}(t),r=v(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(a){r.e(a)}finally{r.f()}this._children._insertNodes(e,i)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(e,n),r=v(i);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.parent=null}}catch(a){r.e(a)}finally{r.f()}return i}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}}],[{key:"fromJSON",value:function(e){var t=null;if(e.children){t=[];var i,r=v(e.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.name?t.push(n.fromJSON(o)):t.push(Ya.fromJSON(o))}}catch(a){r.e(a)}finally{r.f()}}return new n(e.name,e.attributes,t)}}]),n}(qa),Xa=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(w(this,e),!t.boundaries&&!t.startPosition)throw new jn.a("model-tree-walker-no-start-position",null);var n=t.direction||"forward";if("forward"!=n&&"backward"!=n)throw new jn.a("model-tree-walker-unknown-direction",t,{direction:n});this.direction=n,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=ts._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}return C(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,i,r;do{var o;i=this.position,r=this._visitedParent,o=this.next(),t=o.done,n=o.value}while(!t&&e(n));t||(this.position=i,this._visitedParent=r)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};var i=t.parent,r=ns(t,i),o=r||is(t,i,r);if(o instanceof Ja)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=o),this.position=t,es("elementStart",o,e,t,1);if(o instanceof Ya){var a;if(this.singleCharacters)a=1;else{var s=o.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offsets&&(s=this.boundaries.start.offset),a=t.offset-s}var c=t.offset-o.startOffset,l=new Qa(o,c-a,a);return t.offset-=a,this.position=t,es("text",l,e,t,a)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,es("elementStart",n,e,t,1)}}]),e}();function es(e,t,n,i,r){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:r}}}var ts=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(w(this,e),!t.is("element")&&!t.is("documentFragment"))throw new jn.a("model-position-root-invalid",t);if(!(n instanceof Array)||0===n.length)throw new jn.a("model-position-path-incorrect-format",t,{path:n});t.is("rootElement")?n=n.slice():(n=[].concat(p(t.getPath()),p(n)),t=t.root),this.root=t,this.path=n,this.stickiness=i}return C(e,[{key:"compareWith",value:function(e){if(this.root!=e.root)return"different";var t=ri(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Xa(t);return n.skip(e),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(e){var t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(e){if(this.root!=e.root)return[];var t=ri(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),i=0;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}},{key:"getShiftedBy",value:function(e){var t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isEqual",value:function(e){return"same"==this.compareWith(e)}},{key:"isTouching",value:function(t){var n=null,i=null;switch(this.compareWith(t)){case"same":return!0;case"before":n=e._createAt(this),i=e._createAt(t);break;case"after":n=e._createAt(t),i=e._createAt(this);break;default:return!1}for(var r=n.parent;n.path.length+i.path.length;){if(n.isEqual(i))return!0;if(n.path.length>i.path.length){if(n.offset!==r.maxOffset)return!1;n.path=n.path.slice(0,-1),r=r.parent,n.offset++}else{if(0!==i.offset)return!1;i.path=i.path.slice(0,-1)}}}},{key:"is",value:function(e){return"position"===e||"model:position"===e}},{key:"hasSameParentAs",value:function(e){return this.root===e.root&&"same"==ri(this.getParentPath(),e.getParentPath())}},{key:"getTransformedByOperation",value:function(t){var n;switch(t.type){case"insert":n=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(t);break;case"split":n=this._getTransformedBySplitOperation(t);break;case"merge":n=this._getTransformedByMergeOperation(t);break;default:n=e._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(e){return this._getTransformedByInsertion(e.position,e.howMany)}},{key:"_getTransformedByMoveOperation",value:function(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}},{key:"_getTransformedBySplitOperation",value:function(e){var t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(t){var n,i=t.movedRange;return i.containsPosition(this)||i.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?e._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(t,n){var i=e._createAt(this);if(this.root!=t.root)return i;if("same"==ri(t.getParentPath(),this.getParentPath())){if(t.offsetthis.offset)return null;i.offset-=n}}else if("prefix"==ri(t.getParentPath(),this.getParentPath())){var r=t.path.length-1;if(t.offset<=this.path[r]){if(t.offset+n>this.path[r])return null;i.path[r]-=n}}return i}},{key:"_getTransformedByInsertion",value:function(t,n){var i=e._createAt(this);if(this.root!=t.root)return i;if("same"==ri(t.getParentPath(),this.getParentPath()))(t.offset2&&void 0!==arguments[2]?arguments[2]:"toNone";if(t instanceof e)return new e(t.root,t.path,t.stickiness);var r=t;if("end"==n)n=r.maxOffset;else{if("before"==n)return this._createBefore(r,i);if("after"==n)return this._createAfter(r,i);if(0!==n&&!n)throw new jn.a("model-createpositionat-offset-required",[this,t])}if(!r.is("element")&&!r.is("documentFragment"))throw new jn.a("model-position-parent-incorrect",[this,t]);var o=r.getPath();return o.push(n),new this(r.root,o,i)}},{key:"_createAfter",value:function(e,t){if(!e.parent)throw new jn.a("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}},{key:"_createBefore",value:function(e,t){if(!e.parent)throw new jn.a("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}},{key:"fromJSON",value:function(t,n){if("$graveyard"===t.root){var i=new e(n.graveyard,t.path);return i.stickiness=t.stickiness,i}if(!n.getRoot(t.root))throw new jn.a("model-position-fromjson-no-root",n,{rootName:t.root});return new e(n.getRoot(t.root),t.path,t.stickiness)}}]),e}();function ns(e,t){var n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset1&&void 0!==arguments[1]?arguments[1]:null;w(this,e),this.start=ts._createAt(t),this.end=n?ts._createAt(n):ts._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}return C(e,[{key:Symbol.iterator,value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(new Xa({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}},{key:"containsItem",value:function(e){var t=ts._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}},{key:"is",value:function(e){return"range"===e||"model:range"===e}},{key:"isEqual",value:function(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(new e(this.start,this.end)),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.isIntersecting(t);if(i||(i=this.start.isBefore(t.start)?n?this.end.isTouching(t.start):this.end.isEqual(t.start):n?t.end.isTouching(this.start):t.end.isEqual(this.start)),!i)return null;var r=this.start,o=this.end;return t.start.isBefore(r)&&(r=t.start),t.end.isAfter(o)&&(o=t.end),new e(r,o)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,i=ts._createAt(this.start),r=i.parent;i.path.length>n+1;){var o=r.maxOffset-i.offset;0!==o&&t.push(new e(i,i.getShiftedBy(o))),i.path=i.path.slice(0,-1),i.offset++,r=r.parent}for(;i.path.length<=this.end.path.length;){var a=this.end.path[i.path.length-1],s=a-i.offset;0!==s&&t.push(new e(i,i.getShiftedBy(s))),i.offset=a,i.path.push(0)}return t}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Xa(e)}},{key:"getItems",value:a.mark((function e(){var t,n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=s.length>0&&void 0!==s[0]?s[0]:{},t.boundaries=this,t.ignoreElementEnd=!0,n=new Xa(t),i=v(n),e.prev=4,i.s();case 6:if((r=i.n()).done){e.next=12;break}return o=r.value,e.next=10,o.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](4),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:a.mark((function e(){var t,n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},t.boundaries=this,n=new Xa(t),e.next=5,n.position;case 5:i=v(n),e.prev=6,i.s();case 8:if((r=i.n()).done){e.next=14;break}return o=r.value,e.next=12,o.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](6),i.e(e.t0);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"getTransformedByOperation",value:function(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new e(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(t){var n,i=[new e(this.start,this.end)],r=v(t);try{for(r.s();!(n=r.n()).done;)for(var o=n.value,a=0;a1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(e.position,e.howMany,t)}},{key:"_getTransformedByMoveOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.sourcePosition,i=e.howMany,r=e.targetPosition;return this._getTransformedByMove(n,r,i,t)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),i=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(i=this.end.getShiftedBy(1)),n.root!=i.root&&(i=this.end.getShiftedBy(-1)),new e(n,i)}},{key:"_getTransformedByMergeOperation",value:function(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new e(this.start);var n=this.start._getTransformedByMergeOperation(t),i=this.end._getTransformedByMergeOperation(t);return n.root!=i.root&&(i=this.end.getShiftedBy(-1)),n.isAfter(i)?(t.sourcePosition.isBefore(t.targetPosition)?(n=ts._createAt(i),n.offset=0):(t.deletionPosition.isEqual(n)||(i=t.deletionPosition),n=t.targetPosition),new e(n,i)):new e(n,i)}},{key:"_getTransformedByInsertion",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var r=new e(this.start,this.end);return r.start=r.start._getTransformedByInsertion(t,n),r.end=r.end._getTransformedByInsertion(t,n),[r]}},{key:"_getTransformedByMove",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){var o=this.start._getTransformedByMove(t,n,i);return[new e(o)]}var a,s=e._createFromPositionAndShift(t,i),c=n._getTransformedByDeletion(t,i);if(this.containsPosition(n)&&!r&&(s.containsPosition(this.start)||s.containsPosition(this.end))){var l=this.start._getTransformedByMove(t,n,i),u=this.end._getTransformedByMove(t,n,i);return[new e(l,u)]}var d=this.getDifference(s),h=null,f=this.getIntersection(s);if(1==d.length?h=new e(d[0].start._getTransformedByDeletion(t,i),d[0].end._getTransformedByDeletion(t,i)):2==d.length&&(h=new e(this.start,this.end._getTransformedByDeletion(t,i))),a=h?h._getTransformedByInsertion(c,i,null!==f||r):[],f){var v=new e(f.start._getCombined(s.start,c),f.end._getCombined(s.start,c));2==a.length?a.splice(1,0,v):a.push(v)}return a}},{key:"_getTransformedByDeletion",value:function(t,n){var i=this.start._getTransformedByDeletion(t,n),r=this.end._getTransformedByDeletion(t,n);return null==i&&null==r?null:(null==i&&(i=t),null==r&&(r=t),new e(i,r))}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==ri(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromPositionAndShift",value:function(e,t){var n=e,i=e.getShiftedBy(t);return t>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(e){return new this(ts._createAt(e,0),ts._createAt(e,e.maxOffset))}},{key:"_createOn",value:function(e){return this._createFromPositionAndShift(ts._createBefore(e),e.offsetSize)}},{key:"_createFromRanges",value:function(e){if(0===e.length)throw new jn.a("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();var t=e[0];e.sort((function(e,t){return e.start.isAfter(t.start)?1:-1}));var n=e.indexOf(t),i=new this(t.start,t.end);if(n>0)for(var r=n-1;e[r].end.isEqual(i.start);r++)i.start=ts._createAt(e[r].start);for(var o=n+1;o1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1},n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}},{key:"markerNameToElements",value:function(e){var t=this._markerNameToElements.get(e);if(!t)return null;var n,i=new Set,r=v(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is("attributeElement")){var a,s=v(o.getElementsWithSameId());try{for(s.s();!(a=s.n()).done;){var c=a.value;i.add(c)}}catch(l){s.e(l)}finally{s.f()}}else i.add(o)}}catch(l){r.e(l)}finally{r.f()}return i}},{key:"registerViewToModelLength",value:function(e,t){this._viewToModelLengthCallbacks.set(e,t)}},{key:"findMappedViewAncestor",value:function(e){for(var t=e.parent;!this._viewToModelMapping.has(t);)t=t.parent;return t}},{key:"_toModelOffset",value:function(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;for(var i=0,r=0;r1?t[0]+":"+t[1]:t[0]}var ls=function(){function e(t){w(this,e),this.conversionApi=Object.assign({dispatcher:this},t),this._reconversionEventsMapping=new Map}return C(e,[{key:"convertChanges",value:function(e,t,n){var i,r=v(e.getMarkersToRemove());try{for(r.s();!(i=r.n()).done;){var o=i.value;this.convertMarkerRemove(o.name,o.range,n)}}catch(k){r.e(k)}finally{r.f()}var a,s=this._mapChangesWithAutomaticReconversion(e),c=v(s);try{for(c.s();!(a=c.n()).done;){var l=a.value;"insert"===l.type?this.convertInsert(os._createFromPositionAndShift(l.position,l.length),n):"remove"===l.type?this.convertRemove(l.position,l.length,l.name,n):"reconvert"===l.type?this.reconvertElement(l.element,n):this.convertAttribute(l.range,l.attributeKey,l.attributeOldValue,l.attributeNewValue,n)}}catch(k){c.e(k)}finally{c.f()}var u,d=v(this.conversionApi.mapper.flushUnboundMarkerNames());try{for(d.s();!(u=d.n()).done;){var h=u.value,f=t.get(h).getRange();this.convertMarkerRemove(h,f,n),this.convertMarkerAdd(h,f,n)}}catch(k){d.e(k)}finally{d.f()}var p,m=v(e.getMarkersToAdd());try{for(m.s();!(p=m.n()).done;){var g=p.value;this.convertMarkerAdd(g.name,g.range,n)}}catch(k){m.e(k)}finally{m.f()}}},{key:"convertInsert",value:function(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);var n,i=v(Array.from(e).map(ds));try{for(i.s();!(n=i.n()).done;){var r=n.value;this._convertInsertWithAttributes(r)}}catch(o){i.e(o)}finally{i.f()}this._clearConversionApi()}},{key:"convertRemove",value:function(e,t,n,i){this.conversionApi.writer=i,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}},{key:"convertAttribute",value:function(e,t,n,i,r){this.conversionApi.writer=r,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);var o,a=v(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,c={item:s.item,range:os._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:t,attributeOldValue:n,attributeNewValue:i};this._testAndFire("attribute:"+t,c)}}catch(l){a.e(l)}finally{a.f()}this._clearConversionApi()}},{key:"reconvertElement",value:function(e,t){var n=os._createOn(e);this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(n);var i=this.conversionApi.mapper,r=i.toViewElement(e);t.remove(r),this._convertInsertWithAttributes({item:e,range:n});var o,a=i.toViewElement(e),s=v(os._createIn(e));try{for(s.s();!(o=s.n()).done;){var c=o.value,l=c.item,u=hs(l,i);u?u.root!==a.root&&t.move(t.createRangeOn(u),i.toViewPosition(ts._createBefore(l))):this._convertInsertWithAttributes(ds(c))}}catch(d){s.e(d)}finally{s.f()}i.unbindViewElement(r),this._clearConversionApi()}},{key:"convertSelection",value:function(e,t,n){var i=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,i),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){var r,o=v(i);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.getRange();if(us(e.getFirstPosition(),a,this.conversionApi.mapper)){var c={item:e,markerName:a.name,markerRange:s};this.conversionApi.consumable.test(e,"addMarker:"+a.name)&&this.fire("addMarker:"+a.name,c,this.conversionApi)}}}catch(f){o.e(f)}finally{o.f()}var l,u=v(e.getAttributeKeys());try{for(u.s();!(l=u.n()).done;){var d=l.value,h={item:e,range:e.getFirstRange(),attributeKey:d,attributeOldValue:null,attributeNewValue:e.getAttribute(d)};this.conversionApi.consumable.test(e,"attribute:"+h.attributeKey)&&this.fire("attribute:"+h.attributeKey+":$text",h,this.conversionApi)}}catch(f){u.e(f)}finally{u.f()}this._clearConversionApi()}}},{key:"convertMarkerAdd",value:function(e,t,n){if(t.root.document&&"$graveyard"!=t.root.rootName){this.conversionApi.writer=n;var i="addMarker:"+e,r=new ss;if(r.add(t,i),this.conversionApi.consumable=r,this.fire(i,{markerName:e,markerRange:t},this.conversionApi),r.test(t,i)){this.conversionApi.consumable=this._createConsumableForRange(t,i);var o,a=v(t.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.conversionApi.consumable.test(s,i)){var c={item:s,range:os._createOn(s),markerName:e,markerRange:t};this.fire(i,c,this.conversionApi)}}}catch(l){a.e(l)}finally{a.f()}this._clearConversionApi()}}}},{key:"convertMarkerRemove",value:function(e,t,n){t.root.document&&"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}},{key:"_mapReconversionTriggerEvent",value:function(e,t){this._reconversionEventsMapping.set(t,e)}},{key:"_createInsertConsumable",value:function(e){var t,n=new ss,i=v(e);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.item;n.add(o,"insert");var a,s=v(o.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var c=a.value;n.add(o,"attribute:"+c)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){i.e(l)}finally{i.f()}return n}},{key:"_createConsumableForRange",value:function(e,t){var n,i=new ss,r=v(e.getItems());try{for(r.s();!(n=r.n()).done;){var o=n.value;i.add(o,t)}}catch(a){r.e(a)}finally{r.f()}return i}},{key:"_createSelectionConsumable",value:function(e,t){var n=new ss;n.add(e,"selection");var i,r=v(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n.add(e,"addMarker:"+o.name)}}catch(l){r.e(l)}finally{r.f()}var a,s=v(e.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var c=a.value;n.add(e,"attribute:"+c)}}catch(l){s.e(l)}finally{s.f()}return n}},{key:"_testAndFire",value:function(e,t){this.conversionApi.consumable.test(t.item,e)&&this.fire(function(e,t){var n=t.item.name||"$text";return"".concat(e,":").concat(n)}(e,t),t,this.conversionApi)}},{key:"_clearConversionApi",value:function(){delete this.conversionApi.writer,delete this.conversionApi.consumable}},{key:"_convertInsertWithAttributes",value:function(e){this._testAndFire("insert",e);var t,n=v(e.item.getAttributeKeys());try{for(n.s();!(t=n.n()).done;){var i=t.value;e.attributeKey=i,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(i),this._testAndFire("attribute:"+i,e)}}catch(r){n.e(r)}finally{n.f()}}},{key:"_mapChangesWithAutomaticReconversion",value:function(e){var t,n=new Set,i=[],r=v(e.getChanges());try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.position||o.range.start,s=a.parent;if(ns(a,s))i.push(o);else{var c="attribute"===o.type?is(a,s,null):s;if(c.is("$text"))i.push(o);else{var l=void 0;if(l="attribute"===o.type?"attribute:".concat(o.attributeKey,":").concat(c.name):"".concat(o.type,":").concat(o.name),this._isReconvertTriggerEvent(l,c.name)){if(n.has(c))continue;n.add(c),i.push({type:"reconvert",element:c})}else i.push(o)}}}}catch(u){r.e(u)}finally{r.f()}return i}},{key:"_isReconvertTriggerEvent",value:function(e,t){return this._reconversionEventsMapping.get(e)===t}}]),e}();function us(e,t,n){var i=t.getRange(),r=Array.from(e.getAncestors());return r.shift(),r.reverse(),!r.some((function(e){if(i.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}function ds(e){return{item:e.item,range:os._createFromPositionAndShift(e.previousPosition,e.length)}}function hs(e,t){if(e.is("textProxy")){var n=t.toViewPosition(ts._createBefore(e)).parent;return n.is("$text")?n:null}return t.toViewElement(e)}Qn(ls,Vn);var fs=function(){function e(t,n,i){w(this,e),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,n,i)}return C(e,[{key:"isEqual",value:function(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=v(this._ranges);try{for(n.s();!(t=n.n()).done;){var i,r=t.value,o=!1,a=v(e._ranges);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(r.isEqual(s)){o=!0;break}}}catch(c){a.e(c)}finally{a.f()}if(!o)return!1}}catch(c){n.e(c)}finally{n.f()}return!0}},{key:"getRanges",value:a.mark((function e(){var t,n,i;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=v(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,new os(i.start,i.end);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=v(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.start.isBefore(t.start)||(t=i)}}catch(r){n.e(r)}finally{n.f()}return t?new os(t.start,t.end):null}},{key:"getLastRange",value:function(){var e,t=null,n=v(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.end.isAfter(t.end)||(t=i)}}catch(r){n.e(r)}finally{n.f()}return t?new os(t.start,t.end):null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"setTo",value:function(t,n,i){if(null===t)this._setRanges([]);else if(t instanceof e)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof os)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof ts)this._setRanges([new os(t)]);else if(t instanceof qa){var r,o=!!i&&!!i.backward;if("in"==n)r=os._createIn(t);else if("on"==n)r=os._createOn(t);else{if(void 0===n)throw new jn.a("model-selection-setto-required-second-parameter",[this,t]);r=new os(ts._createAt(t,n))}this._setRanges([r],o)}else{if(!Yn(t))throw new jn.a("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,n&&!!n.backward)}}},{key:"_setRanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(e=Array.from(e)).some((function(n){if(!(n instanceof os))throw new jn.a("model-selection-set-ranges-not-range",[t,e]);return t._ranges.every((function(e){return!e.isEqual(n)}))}));if(e.length!==this._ranges.length||i){this._removeAllRanges();var r,o=v(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;this._pushRange(a)}}catch(s){o.e(s)}finally{o.f()}this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0})}}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new jn.a("model-selection-setfocus-no-ranges",[this,e]);var n=ts._createAt(e,t);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(i)?(this._pushRange(new os(n,i)),this._lastRangeBackward=!0):(this._pushRange(new os(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"removeAttribute",value:function(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"setAttribute",value:function(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"is",value:function(e){return"selection"===e||"model:selection"===e}},{key:"getSelectedBlocks",value:a.mark((function e(){var t,n,i,r,o,s,c,l,u,d;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=new WeakSet,n=v(this.getRanges()),e.prev=2,n.s();case 4:if((i=n.n()).done){e.next=38;break}if(r=i.value,o=ms(r.start,t),e.t0=o&&gs(o,r),!e.t0){e.next=11;break}return e.next=11,o;case 11:s=v(r.getWalker()),e.prev=12,s.s();case 14:if((c=s.n()).done){e.next=23;break}if(l=c.value,u=l.item,e.t1="elementEnd"==l.type&&ps(u,t,r),!e.t1){e.next=21;break}return e.next=21,u;case 21:e.next=14;break;case 23:e.next=28;break;case 25:e.prev=25,e.t2=e["catch"](12),s.e(e.t2);case 28:return e.prev=28,s.f(),e.finish(28);case 31:if(d=ms(r.end,t),e.t3=d&&!r.end.isTouching(ts._createAt(d,0))&&gs(d,r),!e.t3){e.next=36;break}return e.next=36,d;case 36:e.next=4;break;case 38:e.next=43;break;case 40:e.prev=40,e.t4=e["catch"](2),n.e(e.t4);case 43:return e.prev=43,n.f(),e.finish(43);case 46:case"end":return e.stop()}}),e,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,t=ts._createAt(e,0),n=ts._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(e){this._checkRange(e),this._ranges.push(new os(e.start,e.end))}},{key:"_checkRange",value:function(e){for(var t=0;t0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}},{key:"anchor",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}}]),e}();function vs(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function ps(e,t,n){return vs(e,t)&&gs(e,n)}function ms(e,t){var n=e.parent.root.document.model.schema,i=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),r=!1,o=i.find((function(e){return!r&&(r=n.isLimit(e),!r&&vs(e,t))}));return i.forEach((function(e){return t.add(e)})),o}function gs(e,t){var n=function(e){for(var t=e.root.document.model.schema,n=e.parent;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(os._createOn(n),!0)}Qn(fs,Vn);var ks=function(e){A(n,e);var t=x(n);function n(e,i){var r;return w(this,n),r=t.call(this,e,i),bs.call(D(r)),r}return C(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}},{key:"toRange",value:function(){return new os(this.start,this.end)}}],[{key:"fromRange",value:function(e){return new n(e.start,e.end)}}]),n}(os);function bs(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var i=n[0];i.isDocumentOperation&&ys.call(e,i)}),{priority:"low"})}function ys(e){var t=this.getTransformedByOperation(e),n=os._createFromRanges(t),i=!n.isEqual(this),r=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e),o=null;if(i){"$graveyard"==n.root.rootName&&(o="remove"==e.type?e.sourcePosition:e.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:o})}else r&&this.fire("change:content",this.toRange(),{deletionPosition:o})}Qn(ks,Vn);var ws="selection:",_s=function(){function e(t){w(this,e),this._selection=new Cs(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}return C(e,[{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(e){return this._selection.containsEntireContent(e)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(e){return this._selection.getAttribute(e)}},{key:"hasAttribute",value:function(e){return this._selection.hasAttribute(e)}},{key:"refresh",value:function(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}},{key:"is",value:function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setAttribute",value:function(e,t){this._selection.setAttribute(e,t)}},{key:"_removeAttribute",value:function(e){this._selection.removeAttribute(e)}},{key:"_getStoredAttributes",value:function(){return this._selection._getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(e){this._selection.restoreGravity(e)}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}}],[{key:"_getStoreAttributeKey",value:function(e){return ws+e}},{key:"_isStoreAttributeKey",value:function(e){return e.startsWith(ws)}}]),e}();Qn(_s,Vn);var Cs=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this),i.markers=new Zn({idProperty:"name"}),i._model=e.model,i._document=e,i._attributePriority=new Map,i._selectionRestorePosition=null,i._hasChangedRange=!1,i._overriddenGravityRegister=new Set,i.listenTo(i._model,"applyOperation",(function(e,t){var n=t[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==i._ranges.length&&i._selectionRestorePosition&&i._fixGraveyardSelection(i._selectionRestorePosition),i._selectionRestorePosition=null,i._hasChangedRange&&(i._hasChangedRange=!1,i.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),i.on("change:range",(function(){var e,t=v(i.getRanges());try{for(t.s();!(e=t.n()).done;){var n=e.value;if(!i._document._validateSelectionRange(n))throw new jn.a("document-selection-wrong-position",D(i),{range:n})}}catch(r){t.e(r)}finally{t.f()}})),i.listenTo(i._model.markers,"update",(function(){return i._updateMarkers()})),i.listenTo(i._document,"change",(function(e,t){!function(e,t){var n,i=e.document.differ,r=v(i.getChanges());try{var o=function(){var i=n.value;if("insert"!=i.type)return"continue";var r=i.position.parent;i.length===r.maxOffset&&e.enqueueChange(t,(function(e){var t,n=Array.from(r.getAttributeKeys()).filter((function(e){return e.startsWith(ws)})),i=v(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;e.removeAttribute(o,r)}}catch(a){i.e(a)}finally{i.f()}}))};for(r.s();!(n=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}}(i._model,t)})),i}return C(n,[{key:"destroy",value:function(){for(var e=0;e0&&this.fire("change:attribute",{attributeKeys:l,directChange:!1})}},{key:"_setAttribute",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=i?"normal":"low";return("low"!=r||"normal"!=this._attributePriority.get(e))&&(c(O(n.prototype),"getAttribute",this).call(this,e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,r),!0))}},{key:"_removeAttribute",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,i),!!c(O(n.prototype),"hasAttribute",this).call(this,e)&&(this._attrs.delete(e),!0))}},{key:"_setAttributesTo",value:function(e){var t,n=new Set,i=v(this.getAttributes());try{for(i.s();!(t=i.n()).done;){var r=u(t.value,2),o=r[0],a=r[1];e.get(o)!==a&&this._removeAttribute(o,!1)}}catch(f){i.e(f)}finally{i.f()}var s,c=v(e);try{for(c.s();!(s=c.n()).done;){var l=u(s.value,2),d=l[0],h=l[1];this._setAttribute(d,h,!1)&&n.add(d)}}catch(f){c.e(f)}finally{c.f()}return n}},{key:"_getStoredAttributes",value:a.mark((function e(){var t,n,i,r,o;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.getFirstPosition().parent,!this.isCollapsed||!t.isEmpty){e.next=21;break}n=v(t.getAttributeKeys()),e.prev=3,n.s();case 5:if((i=n.n()).done){e.next=13;break}if(r=i.value,!r.startsWith(ws)){e.next=11;break}return o=r.substr(ws.length),e.next=11,[o,t.getAttribute(r)];case 11:e.next=5;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](3),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var e=this.getFirstPosition(),t=this._model.schema,n=null;if(this.isCollapsed){var i=e.textNode?e.textNode:e.nodeBefore,r=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=As(i)),n||(n=As(r)),!this.isGravityOverridden&&!n)for(var o=i;o&&!t.isInline(o)&&!n;)o=o.previousSibling,n=As(o);if(!n)for(var a=r;a&&!t.isInline(a)&&!n;)a=a.nextSibling,n=As(a);n||(n=this._getStoredAttributes())}else{var s,c=this.getFirstRange(),l=v(c);try{for(l.s();!(s=l.n()).done;){var u=s.value;if(u.item.is("element")&&t.isObject(u.item))break;if("text"==u.type){n=u.item.getAttributes();break}}}catch(d){l.e(d)}finally{l.f()}}return n}},{key:"_fixGraveyardSelection",value:function(e){var t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}},{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:c(O(n.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return c(O(n.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return c(O(n.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}}]),n}(fs);function As(e){return e instanceof Qa||e instanceof Ya?e.getAttributes():null}var xs=function(){function e(t){w(this,e),this._dispatchers=t}return C(e,[{key:"add",value:function(e){var t,n=v(this._dispatchers);try{for(n.s();!(t=n.n()).done;){var i=t.value;e(i)}}catch(r){n.e(r)}finally{n.f()}return this}}]),e}(),Es=function(e){return Dn(e,5)},Ds=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"elementToElement",value:function(e){return this.add(function(e){return(e=Es(e)).view=Ts(e.view,"container"),function(t){var n;if(t.on("insert:"+e.model,(n=e.view,function(e,t,i){var r=n(t.item,i);if(r&&i.consumable.consume(t.item,"insert")){var o=i.mapper.toViewPosition(t.range.start);i.mapper.bindElements(t.item,r),i.writer.insert(o,r)}}),{priority:e.converterPriority||"normal"}),e.triggerBy){if(e.triggerBy.attributes){var i,r=v(e.triggerBy.attributes);try{for(r.s();!(i=r.n()).done;){var o=i.value;t._mapReconversionTriggerEvent(e.model,"attribute:".concat(o,":").concat(e.model))}}catch(l){r.e(l)}finally{r.f()}}if(e.triggerBy.children){var a,s=v(e.triggerBy.children);try{for(s.s();!(a=s.n()).done;){var c=a.value;t._mapReconversionTriggerEvent(e.model,"insert:"+c),t._mapReconversionTriggerEvent(e.model,"remove:"+c)}}catch(l){s.e(l)}finally{s.f()}}}}}(e))}},{key:"attributeToElement",value:function(e){return this.add(function(e){e=Es(e);var t="attribute:"+(e.model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,i=v(e.model.values);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.view[r]=Ts(e.view[r],"attribute")}}catch(a){i.e(a)}finally{i.f()}}else e.view=Ts(e.view,"attribute");var o=Is(e);return function(n){n.on(t,function(e){return function(t,n,i){var r=e(n.attributeOldValue,i),o=e(n.attributeNewValue,i);if((r||o)&&i.consumable.consume(n.item,t.name)){var a=i.writer,s=a.document.selection;if(n.item instanceof fs||n.item instanceof _s)a.wrap(s.getFirstRange(),o);else{var c=i.mapper.toViewRange(n.range);null!==n.attributeOldValue&&r&&(c=a.unwrap(c,r)),null!==n.attributeNewValue&&o&&a.wrap(c,o)}}}}(o),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){e=Es(e);var t="attribute:"+(e.model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,i=v(e.model.values);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.view[r]=Ps(e.view[r])}}catch(a){i.e(a)}finally{i.f()}}else e.view=Ps(e.view);var o=Is(e);return function(n){var i;n.on(t,(i=o,function(e,t,n){var r=i(t.attributeOldValue,n),o=i(t.attributeNewValue,n);if((r||o)&&n.consumable.consume(t.item,e.name)){var s=n.mapper.toViewElement(t.item),c=n.writer;if(!s)throw new jn.a("conversion-attribute-to-attribute-on-text",[t,n]);if(null!==t.attributeOldValue&&r)if("class"==r.key){var l,u=Array.isArray(r.value)?r.value:[r.value],d=v(u);try{for(d.s();!(l=d.n()).done;){var h=l.value;c.removeClass(h,s)}}catch(a){d.e(a)}finally{d.f()}}else if("style"==r.key)for(var f=Object.keys(r.value),p=0,m=f;p1&&void 0!==arguments[1]?arguments[1]:null,n=null===t||function(e){return e.getAttribute(t)},i="object"!=N(e.model)?e.model:e.model.key,r="object"!=N(e.model)||void 0===e.model.value?n:e.model.value;e.model={key:i,value:r}}function Us(e,t){var n=new ui(e.view);return function(i,r,o){var a=n.match(r.viewItem);if(a){var s=e.model.key,c="function"==typeof e.model.value?e.model.value(r.viewItem,o):e.model.value;null!==c&&(function(e,t){var n="function"==typeof e?e(t):e;return!("object"==N(n)&&!Rs(n))&&(!n.classes&&!n.attributes&&!n.styles)}(e.view,r.viewItem)?a.match.name=!0:delete a.match.name,o.consumable.test(r.viewItem,a.match)&&(r.modelRange||(r=Object.assign(r,o.convertChildren(r.viewItem,r.modelCursor))),function(e,t,n,i){for(var r=!1,o=0,a=Array.from(e.getItems({shallow:n}));o1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:null;if(e instanceof ts){var n=e.nodeBefore,i=e.nodeAfter;if(!(n instanceof Ja))throw new jn.a("schema-check-merge-no-element-before",this);if(!(i instanceof Ja))throw new jn.a("schema-check-merge-no-element-after",this);return this.checkMerge(n,i)}var r,o=v(t.getChildren());try{for(o.s();!(r=o.n()).done;){var a=r.value;if(!this.checkChild(e,a))return!1}}catch(s){o.e(s)}finally{o.f()}return!0}},{key:"addChildCheck",value:function(e){this.on("checkChild",(function(t,n){var i=u(n,2),r=i[0],o=i[1];if(o){var a=e(r,o);"boolean"==typeof a&&(t.stop(),t.return=a)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(e){this.on("checkAttribute",(function(t,n){var i=u(n,2),r=i[0],o=i[1],a=e(r,o);"boolean"==typeof a&&(t.stop(),t.return=a)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}},{key:"getAttributeProperties",value:function(e){return this._attributeProperties[e]||{}}},{key:"getLimitElement",value:function(e){var t;for(t=e instanceof ts?e.parent:(e instanceof os?[e]:Array.from(e.getRanges())).reduce((function(e,t){var n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}},{key:"checkAttributeInSelection",value:function(e,t){if(e.isCollapsed){var n=[].concat(p(e.getFirstPosition().getAncestors()),[new Ya("",e.getAttributes())]);return this.checkAttribute(n,t)}var i,r=e.getRanges(),o=v(r);try{for(o.s();!(i=o.n()).done;){var a,s=i.value,c=v(s);try{for(c.s();!(a=c.n()).done;){var l=a.value;if(this.checkAttribute(l.item,t))return!0}}catch(u){c.e(u)}finally{c.f()}}}catch(u){o.e(u)}finally{o.f()}return!1}},{key:"getValidRanges",value:a.mark((function e(t,n){var i,r,o;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=a.mark((function e(t){var n,i,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=v(t),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=8;break}return r=i.value,e.delegateYield(r.getMinimalFlatRanges(),"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e["catch"](1),n.e(e.t1);case 13:return e.prev=13,n.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])}))(t),i=v(t),e.prev=2,i.s();case 4:if((r=i.n()).done){e.next=9;break}return o=r.value,e.delegateYield(this._getValidRangesForRange(o,n),"t0",7);case 7:e.next=4;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e["catch"](2),i.e(e.t1);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(e,"$text"))return new os(e);var o=e.getAncestors().reverse().find((function(e){return i.isLimit(e)}))||e.root;"both"!=r&&"backward"!=r||(t=new Xa({boundaries:os._createIn(o),startPosition:e,direction:"backward"})),"both"!=r&&"forward"!=r||(n=new Xa({boundaries:os._createIn(o),startPosition:e}));var s,c=v(a.mark((function e(t,n){var i,r,o;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=!1;case 1:if(i){e.next=18;break}if(i=!0,!t){e.next=9;break}if(r=t.next(),e.t0=r.done,e.t0){e.next=9;break}return i=!1,e.next=9,{walker:t,value:r.value};case 9:if(!n){e.next=16;break}if(o=n.next(),e.t1=o.done,e.t1){e.next=16;break}return i=!1,e.next=16,{walker:n,value:o.value};case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e)}))(t,n));try{for(c.s();!(s=c.n()).done;){var l=s.value,u=l.walker==t?"elementEnd":"elementStart",d=l.value;if(d.type==u&&this.isObject(d.item))return os._createOn(d.item);if(this.checkChild(d.nextPosition,"$text"))return new os(d.nextPosition)}}catch(h){c.e(h)}finally{c.f()}return null}},{key:"findAllowedParent",value:function(e,t){for(var n=e.parent;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"removeDisallowedAttributes",value:function(e,t){var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.is("$text"))ac(this,r,t);else{var o,a=os._createIn(r).getPositions(),s=v(a);try{for(s.s();!(o=s.n()).done;){var c=o.value;ac(this,c.nodeBefore||c.parent,t)}}catch(l){s.e(l)}finally{s.f()}}}}catch(l){i.e(l)}finally{i.f()}}},{key:"createContext",value:function(e){return new Ys(e)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var e={},t=this._sourceDefinitions,n=Object.keys(t),i=0,r=n;i2&&void 0!==arguments[2]?arguments[2]:t.length-1,i=t.getItem(n);if(e.allowIn.includes(i.name)){if(0==n)return!0;var r=this.getDefinition(i);return this._checkContextMatch(r,t,n-1)}return!1}},{key:"_getValidRangesForRange",value:a.mark((function e(t,n){var i,r,o,s,c;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.start,r=t.start,o=v(t.getItems({shallow:!0})),e.prev=2,o.s();case 4:if((s=o.n()).done){e.next=19;break}if(c=s.value,e.t0=c.is("element"),!e.t0){e.next=9;break}return e.delegateYield(this._getValidRangesForRange(os._createIn(c),n),"t1",9);case 9:if(e.t2=this.checkAttribute(c,n),e.t2){e.next=16;break}if(e.t3=i.isEqual(r),e.t3){e.next=15;break}return e.next=15,new os(i,r);case 15:i=ts._createAfter(c);case 16:r=ts._createAfter(c);case 17:e.next=4;break;case 19:e.next=24;break;case 21:e.prev=21,e.t4=e["catch"](2),o.e(e.t4);case 24:return e.prev=24,o.f(),e.finish(24);case 27:if(e.t5=i.isEqual(r),e.t5){e.next=31;break}return e.next=31,new os(i,r);case 31:case"end":return e.stop()}}),e,this,[[2,21,24,27]])}))}]),e}();Qn(qs,pr);var Ys=function(){function e(t){if(w(this,e),t instanceof e)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),t[0]&&"string"!=typeof t[0]&&t[0].is("documentFragment")&&t.shift(),this._items=t.map(oc)}return C(e,[{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(t){var n=new e([t]);return n._items=[].concat(p(this._items),p(n._items)),n}},{key:"getItem",value:function(e){return this._items[e]}},{key:"getNames",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(this._items.map((function(e){return e.name})),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"endsWith",value:function(e){return Array.from(this.getNames()).join(" ").endsWith(e)}},{key:"startsWith",value:function(e){return Array.from(this.getNames()).join(" ").startsWith(e)}},{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}}]),e}();function Qs(e,t){var n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(e,t){var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r,o=n.value,a=Object.keys(o).filter((function(e){return e.startsWith("is")})),s=v(a);try{for(s.s();!(r=s.n()).done;){var c=r.value;t[c]=o[c]}}catch(l){s.e(l)}finally{s.f()}}}catch(l){i.e(l)}finally{i.f()}}(e,n),ic(e,n,"allowIn"),ic(e,n,"allowContentOf"),ic(e,n,"allowWhere"),ic(e,n,"allowAttributes"),ic(e,n,"allowAttributesOf"),ic(e,n,"inheritTypesFrom"),function(e,t){var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.inheritAllFrom;o&&(t.allowContentOf.push(o),t.allowWhere.push(o),t.allowAttributesOf.push(o),t.inheritTypesFrom.push(o))}}catch(a){i.e(a)}finally{i.f()}}(e,n),n}function Zs(e,t){var n,i=v(e[t].allowContentOf);try{for(i.s();!(n=i.n()).done;){var r=n.value;e[r]&&rc(e,r).forEach((function(e){e.allowIn.push(t)}))}}catch(o){i.e(o)}finally{i.f()}delete e[t].allowContentOf}function Js(e,t){var n,i=v(e[t].allowWhere);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=e[r];if(o){var a,s=o.allowIn;(a=e[t].allowIn).push.apply(a,p(s))}}}catch(c){i.e(c)}finally{i.f()}delete e[t].allowWhere}function Xs(e,t){var n,i=v(e[t].allowAttributesOf);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=e[r];if(o){var a,s=o.allowAttributes;(a=e[t].allowAttributes).push.apply(a,p(s))}}}catch(c){i.e(c)}finally{i.f()}delete e[t].allowAttributesOf}function ec(e,t){var n,i=e[t],r=v(i.inheritTypesFrom);try{for(r.s();!(n=r.n()).done;){var o=n.value,a=e[o];if(a){var s,c=Object.keys(a).filter((function(e){return e.startsWith("is")})),l=v(c);try{for(l.s();!(s=l.n()).done;){var u=s.value;u in i||(i[u]=a[u])}}catch(d){l.e(d)}finally{l.f()}}}}catch(d){r.e(d)}finally{r.f()}delete i.inheritTypesFrom}function tc(e,t){var n=e[t],i=n.allowIn.filter((function(t){return e[t]}));n.allowIn=Array.from(new Set(i))}function nc(e,t){var n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function ic(e,t,n){var i,r=v(e);try{for(r.s();!(i=r.n()).done;){var o,a=i.value;"string"==typeof a[n]?t[n].push(a[n]):Array.isArray(a[n])&&(o=t[n]).push.apply(o,p(a[n]))}}catch(s){r.e(s)}finally{r.f()}}function rc(e,t){var n,i=e[t];return(n=e,Object.keys(n).map((function(e){return n[e]}))).filter((function(e){return e.allowIn.includes(i.name)}))}function oc(e){return"string"==typeof e?{name:e,getAttributeKeys:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),getAttribute:function(){}}:{name:e.is("element")?e.name:"$text",getAttributeKeys:a.mark((function t(){return a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.delegateYield(e.getAttributeKeys(),"t0",1);case 1:case"end":return t.stop()}}),t)})),getAttribute:function(t){return e.getAttribute(t)}}}function ac(e,t,n){var i,r=v(t.getAttributeKeys());try{for(r.s();!(i=r.n()).done;){var o=i.value;e.checkAttribute(t,o)||n.removeAttribute(o,t)}}catch(a){r.e(a)}finally{r.f()}}var sc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w(this,e),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},t),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}return C(e,[{key:"convert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",e),this._modelCursor=function(e,t){var n,i,r=v(new Ys(e));try{for(r.s();!(i=r.n()).done;){var o,a=i.value,s={},c=v(a.getAttributeKeys());try{for(c.s();!(o=c.n()).done;){var l=o.value;s[l]=a.getAttribute(l)}}catch(d){c.e(d)}finally{c.f()}var u=t.createElement(a.name,s);n&&t.append(u,n),n=ts._createAt(u,0)}}catch(d){r.e(d)}finally{r.f()}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=Gs.createFrom(e),this.conversionApi.store={};var i=this._convertItem(e,this._modelCursor),r=i.modelRange,o=t.createDocumentFragment();if(r){this._removeEmptyElements();for(var a=0,s=Array.from(this._modelCursor.parent.getChildren());a0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootName,n=void 0===t?"main":t,i=e.trim,r=void 0===i?"empty":i;if(!this._checkIfRootsExists([n]))throw new jn.a("datacontroller-get-non-existent-root",this);var o=this.model.document.getRoot(n);return"empty"!==r||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,e):""}},{key:"stringify",value:function(e,t){var n=this.toView(e,t);return this.processor.toData(n)}},{key:"toView",value:function(e,t){var n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();var r=os._createIn(e),o=new eo(n);if(this.mapper.bindElements(e,o),this.downcastDispatcher.conversionApi.options=t,this.downcastDispatcher.convertInsert(r,i),!e.is("documentFragment")){var a,s=function(e){var t=[],n=e.root.document;if(!n)return[];var i,r=os._createIn(e),o=v(n.model.markers);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=r.getIntersection(a.getRange());s&&t.push([a.name,s])}}catch(c){o.e(c)}finally{o.f()}return t}(e),c=v(s);try{for(c.s();!(a=c.n()).done;){var l=u(a.value,2),d=l[0],h=l[1];this.downcastDispatcher.convertMarkerAdd(d,h,i)}}catch(f){c.e(f)}finally{c.f()}}return delete this.downcastDispatcher.conversionApi.options,o}},{key:"init",value:function(e){var t=this;if(this.model.document.version)throw new jn.a("datacontroller-init-document-not-empty",this);var n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new jn.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange("transparent",(function(e){for(var i=0,r=Object.keys(n);i1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(e);return this.toModel(n,t)}},{key:"toModel",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(i){return t.upcastDispatcher.convert(e,i,n)}))}},{key:"addStyleProcessorRules",value:function(e){e(this.stylesProcessor)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(e){var t,n=v(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(!this.model.document.getRootNames().includes(i))return!1}}catch(r){n.e(r)}finally{n.f()}return!0}}]),e}();Qn(cc,pr);var lc=function(){function e(t,n){w(this,e),this._helpers=new Map,this._downcast=Array.isArray(t)?t:[t],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(n)?n:[n],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}return C(e,[{key:"addAlias",value:function(e,t){var n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new jn.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}},{key:"for",value:function(e){if(!this._helpers.has(e))throw new jn.a("conversion-for-unknown-group",this);return this._helpers.get(e)}},{key:"elementToElement",value:function(e){this.for("downcast").elementToElement(e);var t,n=v(uc(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.model,o=i.view;this.for("upcast").elementToElement({model:r,view:o,converterPriority:e.converterPriority})}}catch(a){n.e(a)}finally{n.f()}}},{key:"attributeToElement",value:function(e){this.for("downcast").attributeToElement(e);var t,n=v(uc(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.model,o=i.view;this.for("upcast").elementToAttribute({view:o,model:r,converterPriority:e.converterPriority})}}catch(a){n.e(a)}finally{n.f()}}},{key:"attributeToAttribute",value:function(e){this.for("downcast").attributeToAttribute(e);var t,n=v(uc(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.model,o=i.view;this.for("upcast").attributeToAttribute({view:o,model:r})}}catch(a){n.e(a)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(e){var t=e.name,n=e.dispatchers,i=e.isDowncast;if(this._helpers.has(t))throw new jn.a("conversion-group-exists",this);var r=i?new Ds(n):new zs(n);this._helpers.set(t,r)}}]),e}();function uc(e){var t,n,r,o,s,c;return a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!e.model.values){i.next=20;break}t=v(e.model.values),i.prev=2,t.s();case 4:if((n=t.n()).done){i.next=10;break}return r=n.value,o={key:e.model.key,value:r},s=e.view[r],c=e.upcastAlso?e.upcastAlso[r]:void 0,i.delegateYield(dc(o,s,c),"t0",8);case 8:i.next=4;break;case 10:i.next=15;break;case 12:i.prev=12,i.t1=i["catch"](2),t.e(i.t1);case 15:return i.prev=15,t.f(),i.finish(15);case 18:i.next=21;break;case 20:return i.delegateYield(dc(e.model,e.view,e.upcastAlso),"t2",21);case 21:case"end":return i.stop()}}),i,null,[[2,12,15,18]])}function dc(e,t,n){var i,o,s;return a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,{model:e,view:t};case 2:if(!n){r.next=21;break}n=Array.isArray(n)?n:[n],i=v(n),r.prev=5,i.s();case 7:if((o=i.n()).done){r.next=13;break}return s=o.value,r.next=11,{model:e,view:s};case 11:r.next=7;break;case 13:r.next=18;break;case 15:r.prev=15,r.t0=r["catch"](5),i.e(r.t0);case 18:return r.prev=18,i.f(),r.finish(18);case 21:case"end":return r.stop()}}),r,null,[[5,15,18,21]])}var hc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";w(this,e),this.operations=[],this.type=t}return C(e,[{key:"addOperation",value:function(e){return e.batch=this,this.operations.push(e),e}},{key:"baseVersion",get:function(){var e,t=v(this.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==n.baseVersion)return n.baseVersion}}catch(i){t.e(i)}finally{t.f()}return null}}]),e}(),fc=function(){function e(t){w(this,e),this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}return C(e,[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}}],[{key:"fromJSON",value:function(e){return new this(e.baseVersion)}},{key:"className",get:function(){return"Operation"}}]),e}(),vc=function(){function e(t){w(this,e),this.markers=new Map,this._children=new Za,t&&this._insertChild(0,t)}return C(e,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"is",value:function(e){return"documentFragment"===e||"model:documentFragment"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(e){var t,n=this,i=v(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n=n.getChild(n.offsetToIndex(r))}}catch(o){i.e(o)}finally{i.f()}return n}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"toJSON",value:function(){var e,t=[],n=v(this._children);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.toJSON())}}catch(r){n.e(r)}finally{n.f()}return t}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,i=function(e){return"string"==typeof e?[new Ya(e)]:(Yn(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Ya(e):e instanceof Qa?new Ya(e.data,e.getAttributes()):e})))}(t),r=v(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(a){r.e(a)}finally{r.f()}this._children._insertNodes(e,i)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(e,n),r=v(i);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.parent=null}}catch(a){r.e(a)}finally{r.f()}return i}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}],[{key:"fromJSON",value:function(t){var n,i=[],r=v(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.name?i.push(Ja.fromJSON(o)):i.push(Ya.fromJSON(o))}}catch(a){r.e(a)}finally{r.f()}return new e(i)}}]),e}();function pc(e,t){var n=(t=kc(t)).reduce((function(e,t){return e+t.offsetSize}),0),i=e.parent;yc(e);var r=e.index;return i._insertChild(r,t),bc(i,r+t.length),bc(i,r),new os(e,e.getShiftedBy(n))}function mc(e){if(!e.isFlat)throw new jn.a("operation-utils-remove-range-not-flat",this);var t=e.start.parent;yc(e.start),yc(e.end);var n=t._removeChildren(e.start.index,e.end.index-e.start.index);return bc(t,e.start.index),n}function gc(e,t){if(!e.isFlat)throw new jn.a("operation-utils-move-range-not-flat",this);var n=mc(e);return pc(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function kc(e){var t=[];e instanceof Array||(e=[e]);for(var n=0;ne.maxOffset)throw new jn.a("move-operation-nodes-do-not-exist",this);if(e===t&&n=n&&this.targetPosition.path[r]2&&void 0!==arguments[2]?arguments[2]:"main";return w(this,n),r=t.call(this,i),r._document=e,r.rootName=o,r}return C(n,[{key:"is",value:function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){return this.rootName}},{key:"document",get:function(){return this._document}}]),n}(Ja),Oc=function(){function e(t,n){w(this,e),this.model=t,this.batch=n}return C(e,[{key:"createText",value:function(e,t){return new Ya(e,t)}},{key:"createElement",value:function(e,t){return new Ja(e,t)}},{key:"createDocumentFragment",value:function(){return new vc}},{key:"cloneElement",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e._clone(t)}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(e instanceof Ya&&""==e.data)){var i=ts._createAt(t,n);if(e.parent){if(jc(e.root,i.root))return void this.move(os._createOn(e),i);if(e.root.document)throw new jn.a("model-writer-insert-forbidden-move",this);this.remove(e)}var r=i.root.document?i.root.document.version:null,o=new Ec(i,e,r);if(e instanceof Ya&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),e instanceof vc){var a,s=v(e.markers);try{for(s.s();!(a=s.n()).done;){var c=u(a.value,2),l=c[0],d=c[1],h=ts._createAt(d.root,0),f={range:new os(d.start._getCombined(h,i),d.end._getCombined(h,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(l)?this.updateMarker(l,f):this.addMarker(l,f)}}catch(p){s.e(p)}finally{s.f()}}}}},{key:"insertText",value:function(e,t,n,i){t instanceof vc||t instanceof Ja||t instanceof ts?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,i)}},{key:"insertElement",value:function(e,t,n,i){t instanceof vc||t instanceof Ja||t instanceof ts?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,i)}},{key:"append",value:function(e,t){this.insert(e,t,"end")}},{key:"appendText",value:function(e,t,n){t instanceof vc||t instanceof Ja?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}},{key:"appendElement",value:function(e,t,n){t instanceof vc||t instanceof Ja?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}},{key:"setAttribute",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof os){var i,r=n.getMinimalFlatRanges(),o=v(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;Nc(this,e,t,a)}}catch(s){o.e(s)}finally{o.f()}}else Bc(this,e,t,n)}},{key:"setAttributes",value:function(e,t){var n,i=v(li(e));try{for(i.s();!(n=i.n()).done;){var r=u(n.value,2),o=r[0],a=r[1];this.setAttribute(o,a,t)}}catch(s){i.e(s)}finally{i.f()}}},{key:"removeAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),t instanceof os){var n,i=t.getMinimalFlatRanges(),r=v(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;Nc(this,e,null,o)}}catch(a){r.e(a)}finally{r.f()}}else Bc(this,e,null,t)}},{key:"clearAttributes",value:function(e){var t=this;this._assertWriterUsedCorrectly();var n=function(e){var n,i=v(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var r=n.value;t.removeAttribute(r,e)}}catch(o){i.e(o)}finally{i.f()}};if(e instanceof os){var i,r=v(e.getItems());try{for(r.s();!(i=r.n()).done;){var o=i.value;n(o)}}catch(a){r.e(a)}finally{r.f()}}else n(e)}},{key:"move",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof os))throw new jn.a("writer-move-invalid-range",this);if(!e.isFlat)throw new jn.a("writer-move-range-not-flat",this);var i=ts._createAt(t,n);if(!i.isEqual(e.start)){if(this._addOperationForAffectedMarkers("move",e),!jc(e.root,i.root))throw new jn.a("writer-move-different-document",this);var r=e.root.document?e.root.document.version:null,o=new xc(e.start,e.end.offset-e.start.offset,i,r);this.batch.addOperation(o),this.model.applyOperation(o)}}},{key:"remove",value:function(e){this._assertWriterUsedCorrectly();var t,n=(e instanceof os?e:os._createOn(e)).getMinimalFlatRanges().reverse(),i=v(n);try{for(i.s();!(t=i.n()).done;){var r=t.value;this._addOperationForAffectedMarkers("move",r),zc(r.start,r.end.offset-r.start.offset,this.batch,this.model)}}catch(o){i.e(o)}finally{i.f()}}},{key:"merge",value:function(e){this._assertWriterUsedCorrectly();var t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Ja))throw new jn.a("writer-merge-no-element-before",this);if(!(n instanceof Ja))throw new jn.a("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}},{key:"createPositionFromPath",value:function(e,t,n){return this.model.createPositionFromPath(e,t,n)}},{key:"createPositionAt",value:function(e,t){return this.model.createPositionAt(e,t)}},{key:"createPositionAfter",value:function(e){return this.model.createPositionAfter(e)}},{key:"createPositionBefore",value:function(e){return this.model.createPositionBefore(e)}},{key:"createRange",value:function(e,t){return this.model.createRange(e,t)}},{key:"createRangeIn",value:function(e){return this.model.createRangeIn(e)}},{key:"createRangeOn",value:function(e){return this.model.createRangeOn(e)}},{key:"createSelection",value:function(e,t,n){return this.model.createSelection(e,t,n)}},{key:"_mergeDetached",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;this.move(os._createIn(n),ts._createAt(t,"end")),this.remove(n)}},{key:"_merge",value:function(e){var t=ts._createAt(e.nodeBefore,"end"),n=ts._createAt(e.nodeAfter,0),i=e.root.document.graveyard,r=new ts(i,[0]),o=e.root.document.version,a=new Tc(n,e.nodeAfter.maxOffset,t,r,o);this.batch.addOperation(a),this.model.applyOperation(a)}},{key:"rename",value:function(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Ja))throw new jn.a("writer-rename-not-element-instance",this);var n=e.root.document?e.root.document.version:null,i=new Mc(ts._createBefore(e),e.name,t,n);this.batch.addOperation(i),this.model.applyOperation(i)}},{key:"split",value:function(e,t){this._assertWriterUsedCorrectly();var n,i,r=e.parent;if(!r.parent)throw new jn.a("writer-split-element-no-parent",this);if(t||(t=r.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new jn.a("writer-split-invalid-limit-element",this);do{var o=r.root.document?r.root.document.version:null,a=r.maxOffset-e.offset,s=new Ic(e,a,null,o);this.batch.addOperation(s),this.model.applyOperation(s),n||i||(n=r,i=e.parent.nextSibling),r=(e=this.createPositionAfter(e.parent)).parent}while(r!==t);return{position:e,range:new os(ts._createAt(n,"end"),ts._createAt(i,0))}}},{key:"wrap",value:function(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new jn.a("writer-wrap-range-not-flat",this);var n=t instanceof Ja?t:new Ja(t);if(n.childCount>0)throw new jn.a("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new jn.a("writer-wrap-element-attached",this);this.insert(n,e.start);var i=new os(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(i,ts._createAt(n,0))}},{key:"unwrap",value:function(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new jn.a("writer-unwrap-element-no-parent",this);this.move(os._createIn(e),this.createPositionAfter(e)),this.remove(e)}},{key:"addMarker",value:function(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new jn.a("writer-addmarker-no-usingoperation",this);var n=t.usingOperation,i=t.range,r=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new jn.a("writer-addmarker-marker-exists",this);if(!i)throw new jn.a("writer-addmarker-no-range",this);return n?(Lc(this,e,null,i,r),this.model.markers.get(e)):this.model.markers._set(e,i,n,r)}},{key:"updateMarker",value:function(e,t){this._assertWriterUsedCorrectly();var n="string"==typeof e?e:e.name,i=this.model.markers.get(n);if(!i)throw new jn.a("writer-updatemarker-marker-not-exists",this);if(t){var r="boolean"==typeof t.usingOperation,o="boolean"==typeof t.affectsData,a=o?t.affectsData:i.affectsData;if(!r&&!t.range&&!o)throw new jn.a("writer-updatemarker-wrong-options",this);var s=i.getRange(),c=t.range?t.range:s;r&&t.usingOperation!==i.managedUsingOperations?t.usingOperation?Lc(this,n,null,c,a):(Lc(this,n,s,null,a),this.model.markers._set(n,c,void 0,a)):i.managedUsingOperations?Lc(this,n,s,c,a):this.model.markers._set(n,c,void 0,a)}else this.model.markers._refresh(i)}},{key:"removeMarker",value:function(e){this._assertWriterUsedCorrectly();var t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new jn.a("writer-removemarker-no-marker",this);var n=this.model.markers.get(t);n.managedUsingOperations?Lc(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}},{key:"setSelection",value:function(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}},{key:"setSelectionAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else{var n,i=v(li(e));try{for(i.s();!(n=i.n()).done;){var r=u(n.value,2),o=r[0],a=r[1];this._setSelectionAttribute(o,a)}}catch(s){i.e(s)}finally{i.f()}}}},{key:"removeSelectionAttribute",value:function(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else{var t,n=v(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._removeSelectionAttribute(i)}}catch(r){n.e(r)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(e){this.model.document.selection._restoreGravity(e)}},{key:"_setSelectionAttribute",value:function(e,t){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var i=_s._getStoreAttributeKey(e);this.setAttribute(i,t,n.anchor.parent)}n._setAttribute(e,t)}},{key:"_removeSelectionAttribute",value:function(e){var t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){var n=_s._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new jn.a("writer-incorrect-use",this)}},{key:"_addOperationForAffectedMarkers",value:function(e,t){var n,i=v(this.model.markers);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.managedUsingOperations){var o=r.getRange(),a=!1;if("move"===e)a=t.containsPosition(o.start)||t.start.isEqual(o.start)||t.containsPosition(o.end)||t.end.isEqual(o.end);else{var s=t.nodeBefore,c=t.nodeAfter,l=o.start.parent==s&&o.start.isAtEnd,u=o.end.parent==c&&0==o.end.offset,d=o.end.nodeAfter==c,h=o.start.nodeAfter==c;a=l||u||d||h}a&&this.updateMarker(r.name,{range:o})}}}catch(f){i.e(f)}finally{i.f()}}}]),e}();function Nc(e,t,n,i){var r,o,a,s,c=e.model,l=c.document,u=i.start,d=v(i.getWalker({shallow:!0}));try{for(d.s();!(s=d.n()).done;){var h=s.value;a=h.item.getAttribute(t),r&&o!=a&&(o!=n&&f(),u=r),r=h.nextPosition,o=a}}catch(p){d.e(p)}finally{d.f()}function f(){var i=new os(u,r),a=i.root.document?l.version:null,s=new Cc(i,t,o,n,a);e.batch.addOperation(s),c.applyOperation(s)}r instanceof ts&&r!=u&&o!=n&&f()}function Bc(e,t,n,i){var r,o,a=e.model,s=a.document,c=i.getAttribute(t);if(c!=n){if(i.root===i){var l=i.document?s.version:null;o=new Sc(i,t,c,n,l)}else{r=new os(ts._createBefore(i),e.createPositionAfter(i));var u=r.root.document?s.version:null;o=new Cc(r,t,c,n,u)}e.batch.addOperation(o),a.applyOperation(o)}}function Lc(e,t,n,i,r){var o=e.model,a=o.document,s=new Dc(t,n,i,o.markers,r,a.version);e.batch.addOperation(s),o.applyOperation(s)}function zc(e,t,n,i){var r;if(e.root.document){var o=i.document,a=new ts(o.graveyard,[0]);r=new xc(e,t,a,o.version)}else r=new Ac(e,t);n.addOperation(r),i.applyOperation(r)}function jc(e,t){return e===t||e instanceof Pc&&t instanceof Pc}var Rc=function(){function e(t){w(this,e),this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}return C(e,[{key:"refreshItem",value:function(e){if(!this._isInInsertedElement(e.parent)){this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);var t,n=os._createOn(e),i=v(this._markerCollection.getMarkersIntersectingRange(n));try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.getRange();this.bufferMarkerChange(r.name,o,o,r.affectsData)}}catch(a){i.e(a)}finally{i.f()}this._cachedChanges=null}}},{key:"bufferOperation",value:function(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var t,n=v(e.range.getItems({shallow:!0}));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._isInInsertedElement(i.parent)||this._markAttribute(i)}}catch(m){n.e(m)}finally{n.f()}break;case"remove":case"move":case"reinsert":if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;var r=this._isInInsertedElement(e.sourcePosition.parent),o=this._isInInsertedElement(e.targetPosition.parent);r||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),o||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break;case"rename":if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);var a,s=os._createFromPositionAndShift(e.position,1),c=v(this._markerCollection.getMarkersIntersectingRange(s));try{for(c.s();!(a=c.n()).done;){var l=a.value,u=l.getRange();this.bufferMarkerChange(l.name,u,u,l.affectsData)}}catch(m){c.e(m)}finally{c.f()}break;case"split":var d=e.splitPosition.parent;this._isInInsertedElement(d)||this._markRemove(d,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break;case"merge":var h=e.sourcePosition.parent;this._isInInsertedElement(h.parent)||this._markRemove(h.parent,h.startOffset,1);var f=e.graveyardPosition.parent;this._markInsert(f,e.graveyardPosition.offset,1);var p=e.targetPosition.parent;this._isInInsertedElement(p)||this._markInsert(p,e.targetPosition.offset,h.maxOffset);break}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(e,t,n,i){var r=this._changedMarkers.get(e);r?(r.newRange=n,r.affectsData=i,null==r.oldRange&&null==r.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:i})}},{key:"getMarkersToRemove",value:function(){var e,t=[],n=v(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var i=u(e.value,2),r=i[0],o=i[1];null!=o.oldRange&&t.push({name:r,range:o.oldRange})}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"getMarkersToAdd",value:function(){var e,t=[],n=v(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var i=u(e.value,2),r=i[0],o=i[1];null!=o.newRange&&t.push({name:r,range:o.newRange})}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(e){return{name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}}}))}},{key:"hasDataChanges",value:function(){var e,t=v(this._changedMarkers);try{for(t.s();!(e=t.n()).done;){var n=u(e.value,2),i=n[1];if(i.affectsData)return!0}}catch(r){t.e(r)}finally{t.f()}return this._changesInElement.size>0}},{key:"getChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var t,n=[],i=v(this._changesInElement.keys());try{for(i.s();!(t=i.n()).done;){var r,o=t.value,a=this._changesInElement.get(o).sort((function(e,t){return e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offsetr.offset){if(o>a){var f={type:"attribute",offset:a,howMany:o-a,count:this._changeCount++};this._handleChange(f,t),t.push(f)}e.nodesToHandle=r.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=r.offset&&e.offseta?(e.nodesToHandle=o-a,e.offset=a):e.nodesToHandle=0);if("remove"==r.type&&e.offsetr.offset){var p={type:"attribute",offset:r.offset,howMany:o-r.offset,count:this._changeCount++};this._handleChange(p,t),t.push(p),e.nodesToHandle=r.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==r.type&&(e.offset>=r.offset&&o<=a?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=r.offset&&o>=a&&(r.howMany=0))}}}catch(m){i.e(m)}finally{i.f()}e.howMany=e.nodesToHandle,delete e.nodesToHandle}},{key:"_getInsertDiff",value:function(e,t,n){return{type:"insert",position:ts._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(e,t,n){return{type:"remove",position:ts._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(e,t,n){var i=[];n=new Map(n);var r,o=v(t);try{for(o.s();!(r=o.n()).done;){var a=u(r.value,2),s=a[0],c=a[1],l=n.has(s)?n.get(s):null;l!==c&&i.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:s,attributeOldValue:c,attributeNewValue:l,changeCount:this._changeCount++}),n.delete(s)}}catch(g){o.e(g)}finally{o.f()}var d,h=v(n);try{for(h.s();!(d=h.n()).done;){var f=u(d.value,2),p=f[0],m=f[1];i.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:p,attributeOldValue:null,attributeNewValue:m,changeCount:this._changeCount++})}}catch(g){h.e(g)}finally{h.f()}return i}},{key:"_isInInsertedElement",value:function(e){var t=e.parent;if(!t)return!1;var n=this._changesInElement.get(t),i=e.startOffset;if(n){var r,o=v(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("insert"==a.type&&i>=a.offset&&ir){for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:Number.NEGATIVE_INFINITY,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=[],r=v(this._operations);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.baseVersion>=t&&o.baseVersion0&&void 0!==arguments[0]?arguments[0]:"$root",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(t))throw new jn.a("model-document-createroot-name-exists",this,{name:t});var n=new Pc(this,e,t);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(e){return e.rootName})).filter((function(e){return e!=Gc}))}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"toJSON",value:function(){var e=oi(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}},{key:"_handleChangeBlock",value:function(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var e,t=v(this.roots);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n!==this.graveyard)return n}}catch(i){t.e(i)}finally{t.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var e=this._getDefaultRoot(),t=this.model,n=t.schema,i=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(i)||t.createRange(i)}},{key:"_validateSelectionRange",value:function(e){return qc(e.start)&&qc(e.end)}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,i=v(this._postFixers);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(this.selection.refresh(),t=r(e),t)break}}catch(o){i.e(o)}finally{i.f()}}while(t)}},{key:"graveyard",get:function(){return this.getRoot(Gc)}}]),e}();function qc(e){var t=e.textNode;if(t){var n=t.data,i=e.offset-t.startOffset;return!Wc(n,i)&&!Kc(n,i)}return!0}Qn($c,Vn);var Yc=function(){function e(){w(this,e),this._markers=new Map}return C(e,[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(e){return this._markers.has(e)}},{key:"get",value:function(e){return this._markers.get(e)||null}},{key:"_set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e instanceof Qc?e.name:e;if(r.includes(","))throw new jn.a("markercollection-incorrect-marker-name",this);var o=this._markers.get(r);if(o){var a=o.getRange(),s=!1;return a.isEqual(t)||(o._attachLiveRange(ks.fromRange(t)),s=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,s=!0),"boolean"==typeof i&&i!=o.affectsData&&(o._affectsData=i,s=!0),s&&this.fire("update:"+r,o,a,t),o}var c=ks.fromRange(t),l=new Qc(r,c,n,i);return this._markers.set(r,l),this.fire("update:"+r,l,null,t),l}},{key:"_remove",value:function(e){var t=e instanceof Qc?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(e){var t=e instanceof Qc?e.name:e,n=this._markers.get(t);if(!n)throw new jn.a("markercollection-refresh-marker-not-exists",this);var i=n.getRange();this.fire("update:"+t,n,i,i,n.managedUsingOperations,n.affectsData)}},{key:"getMarkersAtPosition",value:a.mark((function e(t){var n,i,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=v(this),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(r=i.value,e.t0=r.getRange().containsPosition(t),!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:a.mark((function e(t){var n,i,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=v(this),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(r=i.value,e.t0=null!==r.getRange().getIntersection(t),!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var e,t=v(this._markers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._destroyMarker(n)}}catch(i){t.e(i)}finally{t.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:a.mark((function e(t){var n,i,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=v(this._markers.values()),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(r=i.value,e.t0=r.name.startsWith(t+":"),!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(e){e.stopListening(),e._detachLiveRange()}}]),e}();Qn(Yc,Vn);var Qc=function(){function e(t,n,i,r){w(this,e),this.name=t,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=i,this._affectsData=r}return C(e,[{key:"getStart",value:function(){if(!this._liveRange)throw new jn.a("marker-destroyed",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new jn.a("marker-destroyed",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new jn.a("marker-destroyed",this);return this._liveRange.toRange()}},{key:"is",value:function(e){return"marker"===e||"model:marker"===e}},{key:"_attachLiveRange",value:function(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}},{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new jn.a("marker-destroyed",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new jn.a("marker-destroyed",this);return this._affectsData}}]),e}();Qn(Qc,Vn);var Zc=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"clone",value:function(){return new n(this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.baseVersion+1)}},{key:"_execute",value:function(){}},{key:"type",get:function(){return"noop"}}],[{key:"className",get:function(){return"NoOperation"}}]),n}(fc),Jc={};Jc[Cc.className]=Cc,Jc[Ec.className]=Ec,Jc[Dc.className]=Dc,Jc[xc.className]=xc,Jc[Zc.className]=Zc,Jc[fc.className]=fc,Jc[Mc.className]=Mc,Jc[Sc.className]=Sc,Jc[Ic.className]=Ic,Jc[Tc.className]=Tc;var Xc=function(e){A(n,e);var t=x(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(w(this,n),r=t.call(this,e,i,o),!r.root.is("rootElement"))throw new jn.a("model-liveposition-root-not-rootelement",e);return el.call(D(r)),E(r)}return C(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}},{key:"toPosition",value:function(){return new ts(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}]),n}(ts);function el(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var i=n[0];i.isDocumentOperation&&tl.call(e,i)}),{priority:"low"})}function tl(e){var t=this.getTransformedByOperation(e);if(!this.isEqual(t)){var n=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",n)}}Qn(Xc,Vn);var nl=function(){function e(t,n,i){w(this,e),this.model=t,this.writer=n,this.position=i,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}return C(e,[{key:"handleNodes",value:function(e,t){e=Array.from(e);for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){var i=t.getFirstRange();if("$graveyard"!=i.root.rootName){var r=e.schema;e.change((function(e){if(n.doNotResetEntireContent||!function(e,t){var n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;var i=t.getFirstRange();return i.start.parent!=i.end.parent&&e.checkChild(n,"paragraph")}(r,t)){var o=function(e){var t=e.root.document.model,n=e.start,i=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){var r=function(e){var t,n=e.parent,i=n.root.document.model.schema,r=n.getAncestors({parentFirst:!0,includeSelf:!0}),o=v(r);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(i.isLimit(a))return null;if(i.isBlock(a))return a}}catch(s){o.e(s)}finally{o.f()}}(i);if(r&&i.isTouching(t.createPositionAt(r,0))){var o=t.createSelection(e);t.modifySelection(o,{direction:"backward"}),i=o.getLastPosition()}}return[Xc.fromPosition(n,"toPrevious"),Xc.fromPosition(i,"toNext")]}(i),a=u(o,2),s=a[0],c=a[1];s.isTouching(c)||e.remove(e.createRange(s,c)),n.leaveUnmerged||(function(e,t,n){var i=e.model;if(al(e.model.schema,t,n)){var r=function(e,t){for(var n=e.getAncestors(),i=t.getAncestors(),r=0;n[r]&&n[r]==i[r];)r++;return[n[r],i[r]]}(t,n),o=u(r,2),a=o[0],s=o[1];!i.hasContent(a,{ignoreMarkers:!0})&&i.hasContent(s,{ignoreMarkers:!0})?ol(e,t,n,a.parent):rl(e,t,n,a.parent)}}(e,s,c),r.removeDisallowedAttributes(s.parent.getChildren(),e)),cl(e,t,s),!n.doNotAutoparagraph&&function(e,t){var n=e.checkChild(t,"$text"),i=e.checkChild(t,"paragraph");return!n&&i}(r,s)&&sl(e,s,t),s.detach(),c.detach()}else(function(e,t){var n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),sl(e,e.createPositionAt(n,0),t)})(e,t)}))}}}function rl(e,t,n,i){var r=t.parent,o=n.parent;if(r!=i&&o!=i){for(t=e.createPositionAfter(r),(n=e.createPositionBefore(o)).isEqual(t)||e.insert(o,t),e.merge(t);n.parent.isEmpty;){var a=n.parent;n=e.createPositionBefore(a),e.remove(a)}al(e.model.schema,t,n)&&rl(e,t,n,i)}}function ol(e,t,n,i){var r=t.parent,o=n.parent;if(r!=i&&o!=i){for(t=e.createPositionAfter(r),(n=e.createPositionBefore(o)).isEqual(t)||e.insert(r,n);t.parent.isEmpty;){var a=t.parent;t=e.createPositionBefore(a),e.remove(a)}n=e.createPositionBefore(o),function(e,t){var n=t.nodeBefore,i=t.nodeAfter;n.name!=i.name&&e.rename(n,i.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(i.getAttributes()),n),e.merge(t)}(e,n),al(e.model.schema,t,n)&&ol(e,t,n,i)}}function al(e,t,n){var i=t.parent,r=n.parent;return i!=r&&!e.isLimit(i)&&!e.isLimit(r)&&function(e,t,n){var i,r=new os(e,t),o=v(r.getWalker());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(n.isLimit(a.item))return!1}}catch(s){o.e(s)}finally{o.f()}return!0}(t,n,e)}function sl(e,t,n){var i=e.createElement("paragraph");e.insert(i,t),cl(e,n,e.createPositionAt(i,0))}function cl(e,t,n){t instanceof _s?e.setSelection(n):t.setTo(n)}var ll=' ,.?!:;"-()';function ul(e,t){var n=e.isForward,i=e.walker,r=e.unit,o=e.schema,a=t.type,s=t.item,c=t.nextPosition;if("text"==a)return"word"===e.unit?function(e,t){var n=e.position.textNode;if(n)for(var i=e.position.offset-n.startOffset;!hl(n.data,i,t)&&!fl(n,i,t);){e.next();var r=t?e.position.nodeAfter:e.position.nodeBefore;if(r&&r.is("$text")){var o=r.data.charAt(t?0:r.data.length-1);ll.includes(o)||(e.next(),n=e.position.textNode)}i=e.position.offset-n.startOffset}return e.position}(i,n):function(e,t){var n=e.position.textNode;if(n)for(var i=n.data,r=e.position.offset-n.startOffset;Wc(i,r)||"character"==t&&Kc(i,r);)e.next(),r=e.position.offset-n.startOffset;return e.position}(i,r);if(a==(n?"elementStart":"elementEnd")){if(o.isSelectable(s))return ts._createAt(s,n?"after":"before");if(o.checkChild(c,"$text"))return c}else{if(o.isLimit(s))return void i.skip((function(){return!0}));if(o.checkChild(c,"$text"))return c}}function dl(e,t){var n=e.root,i=ts._createAt(n,t?"end":0);return t?new os(e,i):new os(i,e)}function hl(e,t,n){var i=t+(n?0:-1);return ll.includes(e.charAt(i))}function fl(e,t,n){return t===(n?e.endOffset:0)}function vl(e,t){var n=[];Array.from(e.getItems({direction:"backward"})).map((function(e){return t.createRangeOn(e)})).filter((function(t){return(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))})).forEach((function(e){n.push(e.start.parent),t.remove(e)})),n.forEach((function(e){for(var n=e;n.parent&&n.isEmpty;){var i=t.createRangeOn(n);n=n.parent,t.remove(i)}}))}function pl(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=t.document.selection,r=t.schema,o=[],a=!1,s=v(i.getRanges());try{for(s.s();!(n=s.n()).done;){var c=n.value,l=ml(c,r);l&&!l.isEqual(c)?(o.push(l),a=!0):o.push(c)}}catch(u){s.e(u)}finally{s.f()}a&&e.setSelection(function(e){var t=[];t.push(e.shift());var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=t.pop();if(r.isIntersecting(o)){var a=o.start.isAfter(r.start)?r.start:o.start,s=o.end.isAfter(r.end)?o.end:r.end,c=new os(a,s);t.push(c)}else t.push(o),t.push(r)}}catch(u){i.e(u)}finally{i.f()}return t}(o),{backward:i.isBackward})}(t,e)}))}function ml(e,t){return e.isCollapsed?function(e,t){var n=e.start,i=t.getNearestSelectionRange(n);if(!i)return null;if(!i.isCollapsed)return i;var r=i.start;return n.isEqual(r)?null:new os(r)}(e,t):function(e,t){var n=e.start,i=e.end,r=t.checkChild(n,"$text"),o=t.checkChild(i,"$text"),a=t.getLimitElement(n),s=t.getLimitElement(i);if(a===s){if(r&&o)return null;if(function(e,t,n){var i=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),r=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return i||r}(n,i,t)){var c=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),l=i.nodeBefore&&t.isSelectable(i.nodeBefore)?null:t.getNearestSelectionRange(i,"backward"),u=c?c.start:n,d=l?l.start:i;return new os(u,d)}}var h=a&&!a.is("rootElement"),f=s&&!s.is("rootElement");if(h||f){var v=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent,p=h&&(!v||!kl(n.nodeAfter,t)),m=f&&(!v||!kl(i.nodeBefore,t)),g=n,k=i;return p&&(g=ts._createBefore(gl(a,t))),m&&(k=ts._createAfter(gl(s,t))),new os(g,k)}return null}(e,t)}function gl(e,t){for(var n=e,i=n;t.isLimit(i)&&i.parent;)n=i,i=i.parent;return n}function kl(e,t){return e&&t.isSelectable(e)}var bl=function(){function e(){var t=this;w(this,e),this.markers=new Yc,this.document=new $c(this),this.schema=new qs,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(e){return t.decorate(e)})),this.on("applyOperation",(function(e,t){t[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((function(e,t){if("$marker"===t.name)return!0})),pl(this),this.document.registerPostFixer(Ns)}return C(e,[{key:"change",value:function(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new hc,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){jn.a.rethrowUnexpectedError(e,this)}}},{key:"enqueueChange",value:function(e,t){try{"string"==typeof e?e=new hc(e):"function"==typeof e&&(t=e,e=new hc),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){jn.a.rethrowUnexpectedError(e,this)}}},{key:"applyOperation",value:function(e){e._execute()}},{key:"insertContent",value:function(e,t,n){return function(e,t,n,i){return e.change((function(r){var o;o=n?n instanceof fs||n instanceof _s?n:r.createSelection(n,i):e.document.selection,o.isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0});var a,s=new nl(e,r,o.anchor);a=t.is("documentFragment")?t.getChildren():[t],s.handleNodes(a,{isFirst:!0,isLast:!0});var c=s.getSelectionRange();c&&(o instanceof _s?r.setSelection(c):o.setTo(c));var l=s.getAffectedRange()||e.createRange(o.anchor);return s.destroy(),l}))}(this,e,t,n)}},{key:"deleteContent",value:function(e,t){il(this,e,t)}},{key:"modifySelection",value:function(e,t){!function(e,t){for(var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.schema,o="backward"!=i.direction,a=i.unit?i.unit:"character",s=t.focus,c=new Xa({boundaries:dl(s,o),singleCharacters:!0,direction:o?"forward":"backward"}),l={walker:c,schema:r,isForward:o,unit:a},u=function(){if(n.done)return{v:void 0};var i=ul(l,n.value);return i?{v:void(t instanceof _s?e.change((function(e){e.setSelectionFocus(i)})):t.setFocus(i))}:void 0};n=c.next();){var d=u();if("object"===N(d))return d.v}}(this,e,t)}},{key:"getSelectedContent",value:function(e){return function(e,t){return e.change((function(e){var n=e.createDocumentFragment(),i=t.getFirstRange();if(!i||i.isCollapsed)return n;var r,o=i.start.root,a=i.start.getCommonPath(i.end),s=o.getNodeByPath(a);r=i.start.parent==i.end.parent?i:e.createRange(e.createPositionAt(s,i.start.path[a.length]),e.createPositionAt(s,i.end.path[a.length]+1));var c,l=r.end.offset-r.start.offset,u=v(r.getItems({shallow:!0}));try{for(u.s();!(c=u.n()).done;){var d=c.value;d.is("$textProxy")?e.appendText(d.data,d.getAttributes(),n):e.append(e.cloneElement(d,!0),n)}}catch(p){u.e(p)}finally{u.f()}if(r!=i){var h=i._getTransformedByMove(r.start,e.createPositionAt(n,0),l)[0],f=e.createRange(e.createPositionAt(n,0),h.start);vl(e.createRange(h.end,e.createPositionAt(n,"end")),e),vl(f,e)}return n}))}(this,e)}},{key:"hasContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e instanceof Ja?os._createIn(e):e;if(n.isCollapsed)return!1;var i=t.ignoreWhitespaces,r=void 0!==i&&i,o=t.ignoreMarkers,a=void 0!==o&&o;if(!a){var s,c=v(this.markers.getMarkersIntersectingRange(n));try{for(c.s();!(s=c.n()).done;){var l=s.value;if(l.affectsData)return!0}}catch(f){c.e(f)}finally{c.f()}}var u,d=v(n.getItems());try{for(d.s();!(u=d.n()).done;){var h=u.value;if(this.schema.isContent(h)){if(!h.is("$textProxy"))return!0;if(!r)return!0;if(-1!==h.data.search(/\S/))return!0}}}catch(f){d.e(f)}finally{d.f()}return!1}},{key:"createPositionFromPath",value:function(e,t,n){return new ts(e,t,n)}},{key:"createPositionAt",value:function(e,t){return ts._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return ts._createAfter(e)}},{key:"createPositionBefore",value:function(e){return ts._createBefore(e)}},{key:"createRange",value:function(e,t){return new os(e,t)}},{key:"createRangeIn",value:function(e){return os._createIn(e)}},{key:"createRangeOn",value:function(e){return os._createOn(e)}},{key:"createSelection",value:function(e,t,n){return new fs(e,t,n)}},{key:"createBatch",value:function(e){return new hc(e)}},{key:"createOperationFromJSON",value:function(e){return function(){function e(){w(this,e)}return C(e,null,[{key:"fromJSON",value:function(e,t){return Jc[e.__className].fromJSON(e,t)}}]),e}().fromJSON(e,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){var t=this._pendingChanges[0].batch;this._currentWriter=new Oc(this,t);var n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}]),e}();Qn(bl,pr);var yl=function(){function e(){w(this,e),this._listener=Object.create(Vo)}return C(e,[{key:"listenTo",value:function(e){var t=this;this._listener.listenTo(e,"keydown",(function(e,n){t._listener.fire("_keydown:"+Ur(n),n)}))}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Hr(e),r=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,(function(e,n){t(n,(function(){n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:r})}},{key:"press",value:function(e){return!!this._listener.fire("_keydown:"+Ur(e),e)}},{key:"destroy",value:function(){this._listener.stopListening()}}]),e}(),wl=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this),i.editor=e,i}return C(n,[{key:"set",value:function(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t){var o=t;t=function(e,t){i.editor.execute(o),t()}}c(O(n.prototype),"set",this).call(this,e,t,r)}}]),n}(yl),_l=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w(this,t),this._context=n.context||new ii({language:n.language}),this._context._addEditor(this,!n.context);var i=Array.from(this.constructor.builtinPlugins||[]);this.config=new Tn(n,this.constructor.defaultConfig),this.config.define("plugins",i),this.config.define(this._context._getEditorConfig()),this.plugins=new Jn(this,i,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Ks,this.set("state","initializing"),this.once("ready",(function(){return e.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return e.state="destroyed"}),{priority:"high"}),this.set("isReadOnly",!1),this.model=new bl;var r=new ir;this.data=new cc(this.model,r),this.editing=new Ws(this.model,r),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new lc([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new wl(this),this.keystrokes.listenTo(this.editing.view.document)}return C(t,[{key:"initPlugins",value:function(){var e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],i=e.get("extraPlugins")||[];return this.plugins.init(t.concat(i),n)}},{key:"destroy",value:function(){var e=this,t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((function(t){return e.once("ready",t)}))),t.then((function(){e.fire("destroy"),e.stopListening(),e.commands.destroy()})).then((function(){return e.plugins.destroy()})).then((function(){e.model.destroy(),e.data.destroy(),e.editing.destroy(),e.keystrokes.destroy()})).then((function(){return e._context._removeEditor(e)}))}},{key:"execute",value:function(){try{var t;return(t=this.commands).execute.apply(t,arguments)}catch(e){jn.a.rethrowUnexpectedError(e,this)}}}]),t}();Qn(_l,pr);var Cl={setData:function(e){this.data.set(e)},getData:function(e){return this.data.get(e)}},Al={updateSourceElement:function(){if(!this.sourceElement)throw new jn.a("editor-missing-sourceelement",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}},xl=function(){function e(){w(this,e)}return C(e,[{key:"getHtml",value:function(e){var t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}]),e}(),El=function(){function e(t){w(this,e),this._domParser=new DOMParser,this._domConverter=new Lo(t,{blockFillerMode:"nbsp"}),this._htmlWriter=new xl}return C(e,[{key:"toData",value:function(e){var t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}},{key:"toView",value:function(e){var t=this._toDom(e);return this._domConverter.domToView(t)}},{key:"_toDom",value:function(e){for(var t=this._domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),i=t.body.childNodes;i.length>0;)n.appendChild(i[0]);return n}}]),e}(),Dl=function(){function e(t){w(this,e),this.editor=t,this._components=new Map}return C(e,[{key:"names",value:a.mark((function e(){var t,n,i;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=v(this._components.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.originalName;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"add",value:function(e,t){this._components.set(Ml(e),{callback:t,originalName:e})}},{key:"create",value:function(e){if(!this.has(e))throw new jn.a("componentfactory-item-missing",this,{name:e});return this._components.get(Ml(e)).callback(this.editor.locale)}},{key:"has",value:function(e){return this._components.has(Ml(e))}}]),e}();function Ml(e){return String(e).toLowerCase()}var Sl=function(){function e(){w(this,e),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}return C(e,[{key:"add",value:function(e){var t=this;if(this._elements.has(e))throw new jn.a("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(function(){return t._focus(e)}),{useCapture:!0}),this.listenTo(e,"blur",(function(){return t._blur()}),{useCapture:!0}),this._elements.add(e)}},{key:"remove",value:function(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}},{key:"_blur",value:function(){var e=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){e.focusedElement=null,e.isFocused=!1}),0)}}]),e}();Qn(Sl,Vo),Qn(Sl,pr);var Tl=function(){function e(t){var n=this;w(this,e),this.editor=t,this.componentFactory=new Dl(t),this.focusTracker=new Sl,this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",(function(){return n.update()}))}return C(e,[{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy();var e,t=v(this._editableElementsMap.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.ckeditorInstance=null}}catch(i){t.e(i)}finally{t.f()}this._editableElementsMap=new Map}},{key:"setEditableElement",value:function(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}},{key:"getEditableElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(e)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"element",get:function(){return null}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}]),e}();Qn(Tl,Vn),n(15);var Il=new WeakMap;function Pl(e){var t=e.view,n=e.element,i=e.text,r=e.isDirectHost,o=void 0===r||r,a=t.document;Il.has(a)||(Il.set(a,new Map),a.registerPostFixer((function(e){return Nl(a,e)}))),Il.get(a).set(n,{text:i,isDirectHost:o}),t.change((function(e){return Nl(a,e)}))}function Ol(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}function Nl(e,t){var n,i=Il.get(e),r=!1,o=v(i);try{for(o.s();!(n=o.n()).done;){var a=u(n.value,2),s=a[0],c=a[1];Bl(t,s,c)&&(r=!0)}}catch(l){o.e(l)}finally{o.f()}return r}function Bl(e,t,n){var i=n.text,r=n.isDirectHost,o=r?t:function(e){if(1===e.childCount){var t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}(t),a=!1;return!!o&&(n.hostElement=o,o.getAttribute("data-placeholder")!==i&&(e.setAttribute("data-placeholder",i,o),a=!0),function(e){if(!e.isAttached())return!1;var t=!Array.from(e.getChildren()).some((function(e){return!e.is("uiElement")})),n=e.document;if(!n.isFocused&&t)return!0;var i=n.selection.anchor;return!(!t||!i||i.parent===e)}(o)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,o)&&(a=!0):Ol(e,o)&&(a=!0),a)}var Ll=function(){function e(){w(this,e),this._replacedElements=[]}return C(e,[{key:"replace",value:function(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}},{key:"restore",value:function(){this._replacedElements.forEach((function(e){var t=e.element,n=e.newElement;t.style.display="",n&&n.remove()})),this._replacedElements=[]}}]),e}(),zl=function(e){A(n,e);var t=x(n);function n(e,i){var r,o;return w(this,n),r=t.call(this,e),r.view=i,r._toolbarConfig=(o=e.config.get("toolbar"),Array.isArray(o)?{items:o}:o?Object.assign({items:[]},o):{items:[]}),r._elementReplacer=new Ll,r}return C(n,[{key:"init",value:function(e){var t=this.editor,n=this.view,i=t.editing.view,r=n.editable,o=i.document.getRoot();r.name=o.rootName,n.render();var a=r.element;this.setEditableElement(r.name,a),this.focusTracker.add(a),n.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(a),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy(),c(O(n.prototype),"destroy",this).call(this)}},{key:"_initToolbar",value:function(){var e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,this._toolbarConfig.viewportTopOffset&&(t.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),t.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function(e){var t=e.origin,n=e.originKeystrokeHandler,i=e.originFocusTracker,r=e.toolbar,o=e.beforeFocus,a=e.afterBlur;i.add(r.element),n.set("Alt+F10",(function(e,t){i.isFocused&&!r.focusTracker.isFocused&&(o&&o(),r.focus(),t())})),r.keystrokes.set("Esc",(function(e,n){r.focusTracker.isFocused&&(t.focus(),a&&a(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}},{key:"_initPlaceholder",value:function(){var e=this.editor,t=e.editing.view,n=t.document.getRoot(),i=e.sourceElement,r=e.config.get("placeholder")||i&&"textarea"===i.tagName.toLowerCase()&&i.getAttribute("placeholder");r&&Pl({view:t,element:n,text:r,isDirectHost:!1})}},{key:"element",get:function(){return this.view.element}}]),n}(Tl),jl=function(e){A(n,e);var t=x(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return w(this,n),e=t.call(this,i,{idProperty:"viewUid"}),e.on("add",(function(t,n,i){e._renderViewIntoCollectionParent(n,i)})),e.on("remove",(function(t,n){n.element&&e._parentElement&&n.element.remove()})),e._parentElement=null,e}return C(n,[{key:"destroy",value:function(){this.map((function(e){return e.destroy()}))}},{key:"setParent",value:function(e){this._parentElement=e;var t,n=v(this);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._renderViewIntoCollectionParent(i)}}catch(r){n.e(r)}finally{n.f()}}},{key:"delegate",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:[];return w(this,n),i=t.call(this,r),i.locale=e,i}return C(n,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Rl({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var e=document.querySelector(".ck-body-wrapper");e||(e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=n&&n.xmlns,o=r?e.createElementNS(r,t):e.createElement(t);for(var a in n)o.setAttribute(a,n[a]);!au(i)&&Yn(i)||(i=[i]);var s,c=v(i);try{for(c.s();!(s=c.n()).done;){var l=s.value;au(l)&&(l=e.createTextNode(l)),o.appendChild(l)}}catch(u){c.e(u)}finally{c.f()}return o}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){c(O(n.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}]),n}(jl);n(19);var cu=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.body=new su(e),i}return C(n,[{key:"render",value:function(){c(O(n.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),c(O(n.prototype),"destroy",this).call(this)}}]),n}(ou);n(21);var lu=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e),i.set("text"),i.set("for"),i.id="ck-editor__label_"+Ln();var r=i.bindTemplate;return i.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:i.id,for:r.to("for")},children:[{text:r.to("text")}]}),i}return n}(ou),uu=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.top=i.createCollection(),i.main=i.createCollection(),i._voiceLabelView=i._createVoiceLabel(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":i._voiceLabelView.id},children:[i._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:i.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:i.main}]}),i}return C(n,[{key:"_createVoiceLabel",value:function(){var e=this.t,t=new lu;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}]),n}(cu),du=function(e){A(n,e);var t=x(n);function n(e,i,r){var o;return w(this,n),o=t.call(this,e),o.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),o.name=null,o.set("isFocused",!1),o._editableElement=r,o._hasExternalElement=!!o._editableElement,o._editingView=i,o}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return e._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),c(O(n.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var e=this._editingView;function t(t){e.change((function(n){var i=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",i)}))}e.isRenderingInProgress?function n(i){e.once("change:isRenderingInProgress",(function(e,r,o){o?n(i):t(i)}))}(this):t(this)}}]),n}(ou),hu=function(e){A(n,e);var t=x(n);function n(e,i,r){var o;return w(this,n),o=t.call(this,e,i,r),o.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),o}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this);var t=this._editingView,i=this.t;t.change((function(n){var r=t.document.getRoot(e.name);n.setAttribute("aria-label",i("Rich Text Editor, %0",e.name),r)}))}}]),n}(du);function fu(e){return function(t){return t+e}}n(23);var vu=fu("px"),pu=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.set("isActive",!1),i.set("isSticky",!1),i.set("limiterElement",null),i.set("limiterBottomOffset",50),i.set("viewportTopOffset",0),i.set("_marginLeft",null),i.set("_isStickyToTheLimiter",!1),i.set("_hasViewportTopOffset",!1),i.content=i.createCollection(),i._contentPanelPlaceholder=new Rl({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:r.to("isSticky",(function(e){return e?"block":"none"})),height:r.to("isSticky",(function(e){return e?vu(i._panelRect.height):null}))}}}).render(),i._contentPanel=new Rl({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",r.if("isSticky","ck-sticky-panel__content_sticky"),r.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:r.to("isSticky",(function(e){return e?vu(i._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:r.to("_hasViewportTopOffset",(function(e){return e?vu(i.viewportTopOffset):null})),bottom:r.to("_isStickyToTheLimiter",(function(e){return e?vu(i.limiterBottomOffset):null})),marginLeft:r.to("_marginLeft")}},children:i.content}).render(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[i._contentPanelPlaceholder,i._contentPanel]}),i}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(Po.window,"scroll",(function(){e._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){e._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var e,t=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.topo&&(o=h,n=l,i=c)}}catch(f){a.e(f)}finally{a.f()}return n?[i,n]:null}function xu(e){var t=e.left,n=e.top,i=Po.window,r=i.scrollX,o=i.scrollY;return{left:t+r,top:n+o}}n(25);var Eu=function(e){A(n,e);var t=x(n);function n(e,i,r){var o;w(this,n),o=t.call(this,e);var a=o.bindTemplate;return o.buttonView=i,o.panelView=r,o.set("isOpen",!1),o.set("isEnabled",!0),o.set("class"),o.set("id"),o.set("panelPosition","auto"),o.keystrokes=new yl,o.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(e){return!e}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[i,r]}),i.extendTemplate({attributes:{class:["ck-dropdown__button"]}}),o}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this),this.listenTo(this.buttonView,"open",(function(){e.isOpen=!e.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){e.isOpen&&("auto"===e.panelPosition?e.panelView.position=n._getOptimalPosition({element:e.panelView.element,target:e.buttonView.element,fitInViewport:!0,positions:e._panelPositions}).name:e.panelView.position=e.panelPosition)})),this.keystrokes.listenTo(this.element);var t=function(t,n){e.isOpen&&(e.buttonView.focus(),e.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(t,n){e.buttonView.isEnabled&&!e.isOpen&&(e.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(t,n){e.isOpen&&n()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var e=n.defaultPanelPositions,t=e.southEast,i=e.southWest,r=e.northEast,o=e.northWest;return"ltr"===this.locale.uiLanguageDirection?[t,i,r,o]:[i,t,o,r]}}]),n}(ou);Eu.defaultPanelPositions={southEast:function(e){return{top:e.bottom,left:e.left,name:"se"}},southWest:function(e,t){return{top:e.bottom,left:e.left-t.width+e.width,name:"sw"}},northEast:function(e,t){return{top:e.top-t.height,left:e.left,name:"ne"}},northWest:function(e,t){return{top:e.bottom-t.height,left:e.left-t.width+e.width,name:"nw"}}},Eu._getOptimalPosition=_u,n(27);var Du=function(e){A(n,e);var t=x(n);function n(){var e;w(this,n),e=t.call(this);var i=e.bindTemplate;return e.set("content",""),e.set("viewBox","0 0 20 20"),e.set("fillColor",""),e.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:i.to("viewBox")}}),e}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){e._updateXMLContent(),e._colorFillPaths()})),this.on("change:fillColor",(function(){e._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var e=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(t){t.style.fill=e.fillColor}))}}]),n}(ou);n(29);var Mu=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e),i.set("text",""),i.set("position","s");var r=i.bindTemplate;return i.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",r.to("position",(function(e){return"ck-tooltip_"+e})),r.if("text","ck-hidden",(function(e){return!e.trim()}))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:r.to("text")}]}]}),i}return n}(ou);n(31);var Su=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate,o=Ln();return i.set("class"),i.set("labelStyle"),i.set("icon"),i.set("isEnabled",!0),i.set("isOn",!1),i.set("isVisible",!0),i.set("isToggleable",!1),i.set("keystroke"),i.set("label"),i.set("tabindex",-1),i.set("tooltip"),i.set("tooltipPosition","s"),i.set("type","button"),i.set("withText",!1),i.set("withKeystroke",!1),i.children=i.createCollection(),i.tooltipView=i._createTooltipView(),i.labelView=i._createLabelView(o),i.iconView=new Du,i.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),i.keystrokeView=i._createKeystrokeView(),i.bind("_tooltipString").to(D(i),"tooltip",D(i),"label",D(i),"keystroke",i._getTooltipString.bind(D(i))),i.setTemplate({tag:"button",attributes:{class:["ck","ck-button",r.to("class"),r.if("isEnabled","ck-disabled",(function(e){return!e})),r.if("isVisible","ck-hidden",(function(e){return!e})),r.to("isOn",(function(e){return e?"ck-on":"ck-off"})),r.if("withText","ck-button_with-text"),r.if("withKeystroke","ck-button_with-keystroke")],type:r.to("type",(function(e){return e||"button"})),tabindex:r.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+o,"aria-disabled":r.if("isEnabled",!0,(function(e){return!e})),"aria-pressed":r.to("isOn",(function(e){return!!i.isToggleable&&String(e)}))},children:i.children,on:{mousedown:r.to((function(e){e.preventDefault()})),click:r.to((function(e){i.isEnabled?i.fire("execute"):e.preventDefault()}))}}),i}return C(n,[{key:"render",value:function(){c(O(n.prototype),"render",this).call(this),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createTooltipView",value:function(){var e=new Mu;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}},{key:"_createLabelView",value:function(e){var t=new ou,n=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}},{key:"_createKeystrokeView",value:function(){var e=new ou;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(e){return Wr(e)}))}]}),e}},{key:"_getTooltipString",value:function(e,t,n){return e?"string"==typeof e?e:(n&&(n=Wr(n)),e instanceof Function?e(t,n):"".concat(t).concat(n?" (".concat(n,")"):"")):""}}]),n}(ou),Tu='',Iu=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.arrowView=i._createArrowView(),i.extendTemplate({attributes:{"aria-haspopup":!0}}),i.delegate("execute").to(D(i),"open"),i}return C(n,[{key:"render",value:function(){c(O(n.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var e=new Du;return e.content=Tu,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}]),n}(Su);n(33);var Pu=function(e){A(n,e);var t=x(n);function n(){var e;return w(this,n),e=t.call(this),e.items=e.createCollection(),e.focusTracker=new Sl,e.keystrokes=new yl,e._focusCycler=new mu({focusables:e.items,focusTracker:e.focusTracker,keystrokeHandler:e.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),e.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:e.items}),e}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this);var t,i=v(this.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.focusTracker.add(r.element)}}catch(o){i.e(o)}finally{i.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}]),n}(ou),Ou=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.children=i.createCollection(),i.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:i.children}),i}return C(n,[{key:"focus",value:function(){this.children.first.focus()}}]),n}(ou),Nu=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),i}return n}(ou);n(35);var Bu=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.isToggleable=!0,i.toggleSwitchView=i._createToggleView(),i.extendTemplate({attributes:{class:"ck-switchbutton"}}),i}return C(n,[{key:"render",value:function(){c(O(n.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var e=new ou;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}]),n}(Su);function Lu(e){var t=e.emitter,n=e.activator,i=e.callback,r=e.contextElements;t.listenTo(document,"mousedown",(function(e,t){if(n()){var o,a="function"==typeof t.composedPath?t.composedPath():[],s=v(r);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c.contains(t.target)||a.includes(c))return}}catch(l){s.e(l)}finally{s.f()}i()}}))}function zu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Iu,n=new t(e),i=new wu(e),r=new Eu(e,n,i);return n.bind("isEnabled").to(r),n instanceof Iu?n.bind("isOn").to(r,"isOpen"):n.arrowView.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",(function(){Lu({emitter:e,activator:function(){return e.isOpen},callback:function(){e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(function(t){t.source instanceof Bu||(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",(function(t,n){e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",(function(t,n){e.isOpen&&(e.panelView.focusLast(),n())}))}(e)}(r),r}function ju(e,t){var n=e.locale,i=n.t,r=e.toolbarView=new Fu(n);r.set("ariaLabel",i("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map((function(e){return r.items.add(e)})),e.panelView.children.add(r),r.items.delegate("execute").to(e)}function Ru(e,t){var n=e.locale,i=e.listView=new Pu(n);i.items.bindTo(t).using((function(e){var t=e.type,i=e.model;if("separator"===t)return new Nu(n);if("button"===t||"switchbutton"===t){var r,o,a=new Ou(n);return o="button"===t?new Su(n):new Bu(n),(r=o).bind.apply(r,p(Object.keys(i))).to(i),o.delegate("execute").to(a),a.children.add(o),a}})),e.panelView.children.add(i),i.items.delegate("execute").to(e)}n(37),n(39),n(41);var Fu=function(e){A(n,e);var t=x(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o,a=r.bindTemplate,s=r.t;return r.options=i||{},r.set("ariaLabel",s("Editor toolbar")),r.set("maxWidth","auto"),r.items=r.createCollection(),r.focusTracker=new Sl,r.keystrokes=new yl,r.set("class"),r.set("isCompact",!1),r.itemsView=new Vu(e),r.children=r.createCollection(),r.children.add(r.itemsView),r.focusables=r.createCollection(),r._focusCycler=new mu({focusables:r.focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",a.to("class"),a.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":a.to("ariaLabel"),style:{maxWidth:a.to("maxWidth")}},children:r.children,on:{mousedown:(o=D(r),o.bindTemplate.to((function(e){e.target===o.element&&e.preventDefault()})))}}),r._behavior=r.options.shouldGroupWhenFull?new Hu(D(r)):new Uu(D(r)),r}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this);var t,i=v(this.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.focusTracker.add(r.element)}}catch(o){i.e(o)}finally{i.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),c(O(n.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(e,t){this.items.addMany(e.map((function(e){return"|"==e?new ku:t.has(e)?t.create(e):void Object(jn.c)("toolbarview-item-unavailable",{name:e})})).filter((function(e){return void 0!==e})))}}]),n}(ou),Vu=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.children=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:i.children}),i}return n}(ou),Uu=function(){function e(t){w(this,e);var n=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((function(e){return e})),t.focusables.bindTo(t.items).using((function(e){return e})),t.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}return C(e,[{key:"render",value:function(){}},{key:"destroy",value:function(){}}]),e}(),Hu=function(){function e(t){var n=this;w(this,e),this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,t.itemsView.children.bindTo(this.ungroupedItems).using((function(e){return e})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),t.children.on("add",this._updateFocusCycleableItems.bind(this)),t.children.on("remove",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(function(e,t){var i,r=t.index,o=v(t.removed);try{for(o.s();!(i=o.n()).done;){var a=i.value;r>=n.ungroupedItems.length?n.groupedItems.remove(a):n.ungroupedItems.remove(a)}}catch(l){o.e(l)}finally{o.f()}for(var s=r;sn.ungroupedItems.length?n.groupedItems.add(c,s-n.ungroupedItems.length):n.ungroupedItems.add(c,s)}n._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}return C(e,[{key:"render",value:function(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(this.viewElement.offsetParent){for(var e,t=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_enableGroupingOnResize",value:function(){var e,t=this;this.resizeObserver=new bu(this.viewElement,(function(n){e&&e===n.contentRect.width&&!t.shouldUpdateGroupingOnNextResize||(t.shouldUpdateGroupingOnNextResize=!1,t._updateGrouping(),e=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(e){var t=this;e.on("change:maxWidth",(function(){t._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new ku),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}},{key:"_ungroupFirstItem",value:function(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}},{key:"_createGroupedItemsDropdown",value:function(){var e=this.viewLocale,t=e.t,n=zu(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",ju(n,[]),n.buttonView.set({label:t("Show more items"),tooltip:!0,icon:''}),n.toolbarView.items.bindTo(this.groupedItems).using((function(e){return e})),n}},{key:"_updateFocusCycleableItems",value:function(){var e=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(t){e.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new Na(e.lastChild),i=new Na(e);if(!this.cachedPadding){var r=Po.window.getComputedStyle(e),o="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(r[o])}return"ltr"===t?n.right>i.right-this.cachedPadding:n.left2&&void 0!==arguments[2]?arguments[2]:{};return w(this,n),r=t.call(this,e),r.stickyPanel=new pu(e),r.toolbar=new Fu(e,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),r.editable=new hu(e,i),r}return C(n,[{key:"render",value:function(){c(O(n.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}]),n}(uu),Ku=function(e){A(n,e);var t=x(n);function n(e,i){var r;w(this,n),r=t.call(this,i),Sn(e)&&(r.sourceElement=e),r.data.processor=new El(r.data.viewDocument),r.model.document.createRoot();var o=!r.config.get("toolbar.shouldNotGroupWhenFull"),a=new Wu(r.locale,r.editing.view,{shouldToolbarGroupWhenFull:o});return r.ui=new zl(D(r),a),function(e){if(!ie(e.updateSourceElement))throw new jn.a("attachtoform-missing-elementapi-interface",e);var t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){var n,i=t.form,r=function(){return e.updateSourceElement()};ie(i.submit)&&(n=i.submit,i.submit=function(){r(),n.apply(i)}),i.addEventListener("submit",r),e.on("destroy",(function(){i.removeEventListener("submit",r),n&&(i.submit=n)}))}}(D(r)),r}return C(n,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),c(O(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(i){var r=new t(e,n);i(r.initPlugins().then((function(){return r.ui.init(Sn(e)?e:null)})).then((function(){if(!Sn(e)&&n.initialData)throw new jn.a("editor-create-initial-data",null);var t=n.initialData||function(e){return Sn(e)?(t=e,t instanceof HTMLTextAreaElement?t.value:t.innerHTML):e;var t}(e);return r.data.init(t)})).then((function(){return r.fire("ready")})).then((function(){return r})))}))}}]),n}(_l);Qn(Ku,Cl),Qn(Ku,Al);var Gu=function(){function e(t){w(this,e),this.editor=t,this.set("isEnabled",!0),this._disableStack=new Set}return C(e,[{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",$u,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",$u),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}]),e}();function $u(e){e.return=!1,e.stop()}Qn(Gu,pr);var qu=function(){function e(t){var n=this;w(this,e),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(e){n.isEnabled||e.stop()}),{priority:"high"}),this.listenTo(t,"change:isReadOnly",(function(e,t,i){i?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}return C(e,[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Yu,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Yu),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}]),e}();function Yu(e){e.return=!1,e.stop()}function Qu(e){var t=e.next();return t.done?null:t.value}Qn(qu,pr);var Zu=["left","right","center","justify"];function Ju(e){return Zu.includes(e)}function Xu(e,t){return"rtl"==t.contentLanguageDirection?"right"===e:"left"===e}var ed="alignment",td=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"refresh",value:function(){var e=this.editor.locale,t=Qu(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!t&&this._canBeAligned(t),this.isEnabled&&t.hasAttribute("alignment")?this.value=t.getAttribute("alignment"):this.value="rtl"===e.contentLanguageDirection?"right":"left"}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,i=n.locale,r=n.model,o=r.document,a=t.value;r.change((function(t){var n=Array.from(o.selection.getSelectedBlocks()).filter((function(t){return e._canBeAligned(t)})),r=n[0].getAttribute("alignment");Xu(a,i)||r===a||!a?function(e,t){var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t.removeAttribute(ed,r)}}catch(o){i.e(o)}finally{i.f()}}(n,t):function(e,t,n){var i,r=v(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;t.setAttribute(ed,n,o)}}catch(a){r.e(a)}finally{r.f()}}(n,t,a)}))}},{key:"_canBeAligned",value:function(e){return this.editor.model.schema.checkAttribute(e,ed)}}]),n}(qu),nd=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("alignment",{options:[].concat(Zu)}),i}return C(n,null,[{key:"pluginName",get:function(){return"AlignmentEditing"}}]),C(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.model.schema,i=e.config.get("alignment.options").filter(Ju);n.extend("$block",{allowAttributes:"alignment"}),e.model.schema.setAttributeProperties("alignment",{isFormatting:!0});var r=function(e){var t,n={model:{key:"alignment",values:e.slice()},view:{}},i=v(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n.view[r]={key:"style",value:{"text-align":r}}}}catch(o){i.e(o)}finally{i.f()}return n}(i.filter((function(e){return!Xu(e,t)})));e.conversion.attributeToAttribute(r),e.commands.add("alignment",new td(e))}}]),n}(Gu),id='',rd='',od=new Map([["left",id],["right",rd],["center",''],["justify",'']]),ad=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.ui.componentFactory,i=t.t,r=t.config.get("alignment.options");r.filter(Ju).forEach((function(t){return e._addButton(t)})),n.add("alignment",(function(e){var t=zu(e),o=r.map((function(e){return n.create("alignment:"+e)}));ju(t,o),t.buttonView.set({label:i("Text alignment"),tooltip:!0}),t.toolbarView.isVertical=!0,t.toolbarView.ariaLabel=i("Text alignment toolbar"),t.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var a="rtl"===e.contentLanguageDirection?rd:id;return t.buttonView.bind("icon").toMany(o,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,i=n.document.selection,r=n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),o=sd(r,n),a=o.text,s=o.range,c=this.testCallback(a);if(!c&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!c,c){var l=Object.assign(t,{text:a,range:s});"object"==N(c)&&Object.assign(l,c),this.fire("matched:"+e,l)}}}]),e}();Qn(cd,pr);var ld=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:Ti(e,t,n)},ud=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),dd=function(e){return ud.test(e)},hd=function(e){return e.split("")},fd="[\\ud800-\\udfff]",vd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",pd="\\ud83c[\\udffb-\\udfff]",md="[^\\ud800-\\udfff]",gd="(?:\\ud83c[\\udde6-\\uddff]){2}",kd="[\\ud800-\\udbff][\\udc00-\\udfff]",bd="(?:"+vd+"|"+pd+")?",yd="[\\ufe0e\\ufe0f]?",wd=yd+bd+"(?:\\u200d(?:"+[md,gd,kd].join("|")+")"+yd+bd+")*",_d="(?:"+[md+vd+"?",vd,gd,kd,fd].join("|")+")",Cd=RegExp(pd+"(?="+pd+")|"+_d+wd,"g"),Ad=function(e){return e.match(Cd)||[]},xd=function(e){return dd(e)?Ad(e):hd(e)},Ed=function(e){return function(t){t=xi(t);var n=dd(t)?xd(t):void 0,i=n?n[0]:t.charAt(0),r=n?ld(n,1).join(""):t.slice(1);return i[e]()+r}}("toUpperCase"),Dd=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Md=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Sd=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Td=/^((\w+:(\/{2,})?)|(\W))/i,Id="Ctrl+K";function Pd(e,t){var n=t.writer,i=n.createAttributeElement("a",{href:e},{priority:5});return n.setCustomProperty("link",!0,i),i}function Od(e){return function(e){return e.replace(Dd,"").match(Md)}(e=String(e))?e:"#"}function Nd(e,t){return!!e&&e.is("element","image")&&t.checkAttribute("image","linkHref")}function Bd(e,t){var n,i=(n=e,Sd.test(n)?"mailto:":t),r=!!i&&!Td.test(e);return e&&r?i+e:e}var Ld=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.))+(?:[a-z\\u00a1-\\uffff]{2,})))$","i"),zd=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var e=this,t=this.editor,n=new cd(t.model,(function(e){if(function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e)){var t=jd(e.substr(0,e.length-1));return t?{url:t}:void 0}})),i=t.plugins.get("Input");n.on("matched:data",(function(n,r){var o=r.batch,a=r.range,s=r.url;if(i.isInput(o)){var c=a.end.getShiftedBy(-1),l=c.getShiftedBy(-s.length),u=t.model.createRange(l,c);e._applyAutoLink(s,u)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,i=t.commands.get("enter");i&&i.on("execute",(function(){var t=n.document.selection.getFirstPosition();if(t.parent.previousSibling){var i=n.createRangeIn(t.parent.previousSibling);e._checkAndApplyAutoLinkOnRange(i)}}))}},{key:"_enableShiftEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,i=t.commands.get("shiftEnter");i&&i.on("execute",(function(){var t=n.document.selection.getFirstPosition(),i=n.createRange(n.createPositionAt(t.parent,0),t.getShiftedBy(-1));e._checkAndApplyAutoLinkOnRange(i)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(e){var t=this.editor.model,n=sd(e,t),i=n.text,r=n.range,o=jd(i);if(o){var a=t.createRange(r.end.getShiftedBy(-o.length),r.end);this._applyAutoLink(o,a)}}},{key:"_applyAutoLink",value:function(e,t){var n=this,i=this.editor.model;this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,i)&&i.enqueueChange((function(i){var r=n.editor.config.get("link.defaultProtocol"),o=Bd(e,r);i.setAttribute("linkHref",o,t)}))}}],[{key:"pluginName",get:function(){return"AutoLink"}}]),n}(Gu);function jd(e){var t=Ld.exec(e);return t?t[2]:null}var Rd=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.schema,r=n.document.selection,o=Array.from(r.getSelectedBlocks()),a=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(a){var n=o.filter((function(e){return Fd(e)||Ud(i,e)}));e._applyQuote(t,n)}else e._removeQuote(t,o.filter(Fd))}))}},{key:"_getValue",value:function(){var e=Qu(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!Fd(e))}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.document.selection,t=this.editor.model.schema,n=Qu(e.getSelectedBlocks());return!!n&&Ud(t,n)}},{key:"_removeQuote",value:function(e,t){Vd(e,t).reverse().forEach((function(t){if(t.start.isAtStart&&t.end.isAtEnd)e.unwrap(t.start.parent);else if(t.start.isAtStart){var n=e.createPositionBefore(t.start.parent);e.move(t,n)}else{t.end.isAtEnd||e.split(t.end);var i=e.createPositionAfter(t.end.parent);e.move(t,i)}}))}},{key:"_applyQuote",value:function(e,t){var n=[];Vd(e,t).reverse().forEach((function(t){var i=Fd(t.start);i||(i=e.createElement("blockQuote"),e.wrap(t,i)),n.push(i)})),n.reverse().reduce((function(t,n){return t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n}))}}]),n}(qu);function Fd(e){return"blockQuote"==e.parent.name?e.parent:null}function Vd(e,t){for(var n,i=0,r=[];i',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("blockQuote"),t.editing.view.focus()})),o}))}}]),n}(Gu),Kd=function(e){A(n,e);var t=x(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.attributeKey=i,r}return C(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,r=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(i.isCollapsed)r?t.setSelectionAttribute(e.attributeKey,!0):t.removeSelectionAttribute(e.attributeKey);else{var o,a=n.schema.getValidRanges(i.getRanges(),e.attributeKey),s=v(a);try{for(s.s();!(o=s.n()).done;){var c=o.value;r?t.setAttribute(e.attributeKey,r,c):t.removeAttribute(e.attributeKey,c)}}catch(l){s.e(l)}finally{s.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var i,r=v(n.getRanges());try{for(r.s();!(i=r.n()).done;){var o,a=i.value,s=v(a.getItems());try{for(s.s();!(o=s.n()).done;){var c=o.value;if(t.checkAttribute(c,this.attributeKey))return c.hasAttribute(this.attributeKey)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}return!1}}]),n}(qu),Gd="bold",$d=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:Gd}),e.model.schema.setAttributeProperties(Gd,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Gd,view:"strong",upcastAlso:["b",function(e){var t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add(Gd,new Kd(e,Gd)),e.keystrokes.set("CTRL+B",Gd)}}],[{key:"pluginName",get:function(){return"BoldEditing"}}]),n}(Gu),qd="bold",Yd=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(qd,(function(i){var r=t.commands.get(qd),o=new Su(i);return o.set({label:n("Bold"),icon:'',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(qd),t.editing.view.focus()})),o}))}}]),n}(Gu),Qd=function(){function e(t){w(this,e),this.files=function(e){var t=e.files?Array.from(e.files):[],n=e.items?Array.from(e.items):[];return t.length?t:n.filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()}))}(t),this._native=t}return C(e,[{key:"getData",value:function(e){return this._native.getData(e)}},{key:"setData",value:function(e,t){this._native.setData(e,t)}},{key:"types",get:function(){return this._native.types}}]),e}(),Zd=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.document;function o(e,t){t.preventDefault();var n=t.dropRange?[t.dropRange]:Array.from(r.selection.getRanges()),i=new Nn(r,"clipboardInput");r.fire(i,{dataTransfer:t.dataTransfer,targetRanges:n}),i.stop.called&&t.stopPropagation()}return i.domEventType=["paste","copy","cut","drop","dragover"],i.listenTo(r,"paste",o,{priority:"low"}),i.listenTo(r,"drop",o,{priority:"low"}),i}return C(n,[{key:"onDomEvent",value:function(e){var t={dataTransfer:new Qd(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"==e.type&&(t.dropRange=function(e,t){var n,i=t.target.ownerDocument,r=t.clientX,o=t.clientY;return i.caretRangeFromPoint&&i.caretRangeFromPoint(r,o)?n=i.caretRangeFromPoint(r,o):t.rangeParent&&(n=i.createRange(),n.setStart(t.rangeParent,t.rangeOffset),n.collapse(!0)),n?e.domConverter.domRangeToView(n):e.document.selection.getFirstRange()}(this.view,e)),this.fire(e.type,e,t)}}]),n}(va),Jd=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor.editing.view,t=e.document,n=!1;e.addObserver(Zd),this.listenTo(t,"keydown",(function(e,t){n=t.shiftKey})),this.listenTo(t,"clipboardInput",(function(e,t){n&&(t.asPlainText=!0)}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PastePlainText"}}]),n}(Gu),Xd=["figcaption","li"];function eh(e){var t="";if(e.is("$text")||e.is("$textProxy"))t=e.data;else if(e.is("element","img")&&e.hasAttribute("alt"))t=e.getAttribute("alt");else if(e.is("element","br"))t="\n";else{var n,i=null,r=v(e.getChildren());try{for(r.s();!(n=r.n()).done;){var o=n.value,a=eh(o);i&&(i.is("containerElement")||o.is("containerElement"))&&(Xd.includes(i.name)||Xd.includes(o.name)?t+="\n":t+="\n\n"),t+=a,i=o}}catch(s){r.e(s)}finally{r.f()}}return t}var th=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,i=t.editing.view,r=i.document;function o(e,i){var o=i.dataTransfer;i.preventDefault();var a=t.data.toView(t.model.getSelectedContent(n.selection));r.fire("clipboardOutput",{dataTransfer:o,content:a,method:e.name})}this._htmlDataProcessor=new El(r),i.addObserver(Zd),this.listenTo(r,"clipboardInput",(function(e){t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(r,"clipboardInput",(function(t,n){var r,o=n.dataTransfer,a="";o.getData("text/html")?a=function(e){return e.replace(/(\s+)<\/span>/g,(function(e,t){return 1==t.length?" ":t}))}(o.getData("text/html")):o.getData("text/plain")&&(((r=(r=o.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||r.includes("
"))&&(r="

".concat(r,"

")),a=r),a=e._htmlDataProcessor.toView(a);var s=new Nn(e,"inputTransformation");e.fire(s,{content:a,dataTransfer:o,asPlainText:n.asPlainText}),s.stop.called&&t.stop(),i.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(i,r){if(!r.content.isEmpty){var o=e.editor.data,a=e.editor.model,s=o.toModel(r.content,"$clipboardHolder");if(0==s.childCount)return;if(r.asPlainText||function(e){return!(e.childCount>1)&&0==p(e.getChild(0).getAttributeKeys()).length}(s)){var c=new Map(Array.from(n.selection.getAttributes()).filter((function(e){return t.model.schema.getAttributeProperties(e[0]).isFormatting})));a.change((function(e){var t,n=e.createRangeIn(s),i=v(n.getItems());try{for(i.s();!(t=i.n()).done;){var r=t.value;(r.is("$text")||r.is("$textProxy"))&&e.setAttributes(c,r)}}catch(o){i.e(o)}finally{i.f()}}))}a.insertContent(s),i.stop()}}),{priority:"low"}),this.listenTo(r,"copy",o,{priority:"low"}),this.listenTo(r,"cut",(function(e,n){t.isReadOnly?n.preventDefault():o(e,n)}),{priority:"low"}),this.listenTo(r,"clipboardOutput",(function(i,r){r.content.isEmpty||(r.dataTransfer.setData("text/html",e._htmlDataProcessor.toData(r.content)),r.dataTransfer.setData("text/plain",eh(r.content))),"cut"==r.method&&t.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Clipboard"}},{key:"requires",get:function(){return[Jd]}}]),n}(Gu);function nh(e,t){var n,i,r;return a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:n=v(t),o.prev=1,n.s();case 3:if((i=n.n()).done){o.next=11;break}if(r=i.value,o.t0=r&&e.getAttributeProperties(r[0]).copyOnEnter,!o.t0){o.next=9;break}return o.next=9,r;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o["catch"](1),n.e(o.t1);case 16:return o.prev=16,n.f(),o.finish(16);case 19:case"end":return o.stop()}}),o,null,[[1,13,16,19]])}var ih=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(i){!function(e,t,n,i){var r=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(i.isLimit(a)||i.isLimit(s))r||a!=s||e.deleteContent(n);else if(r){var c=nh(t.model.schema,n.getAttributes());rh(t,o.start),t.setSelectionAttribute(c)}else{var l=!(o.start.isAtStart&&o.end.isAtEnd),u=a==s;e.deleteContent(n,{leaveUnmerged:l}),l&&(u?rh(t,n.focus):t.setSelection(s,0))}}(e.editor.model,i,n.selection,t.schema),e.fire("afterExecute",{writer:i})}))}}]),n}(qu);function rh(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var oh=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.document;return r.on("keydown",(function(e,t){var n;i.isEnabled&&t.keyCode==Vr.enter&&(r.once("enter",(function(e){return n=e}),{priority:"highest"}),r.fire("enter",new fa(r,t.domEvent,{isSoft:t.shiftKey})),n&&n.stop.called&&e.stop())})),i}return C(n,[{key:"observe",value:function(){}}]),n}(Wo),ah=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;t.addObserver(oh),e.commands.add("enter",new ih(e)),this.listenTo(n,"enter",(function(n,i){i.preventDefault(),i.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}]),n}(Gu),sh=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(i){!function(e,t,n){var i=n.isCollapsed,r=n.getFirstRange(),o=r.start.parent,a=r.end.parent,s=o==a;if(i){var c=nh(e.schema,n.getAttributes());ch(e,t,r.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(c)}else{var l=!(r.start.isAtStart&&r.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:l}),s?ch(e,t,n.focus):l&&t.setSelection(a,0)}}(t,i,n.selection),e.fire("afterExecute",{writer:i})}))}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;var n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;var i=t.getFirstRange(),r=i.start.parent,o=i.end.parent;return!lh(r,e)&&!lh(o,e)||r===o}(e.schema,t.selection)}}]),n}(qu);function ch(e,t,n){var i=t.createElement("softBreak");e.insertContent(i,n),t.setSelection(i,"after")}function lh(e,t){return!e.is("rootElement")&&(t.isLimit(e)||lh(e.parent,t))}var uh=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.conversion,i=e.editing.view,r=i.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function(e,t){var n=t.writer;return n.createEmptyElement("br")}}),i.addObserver(oh),e.commands.add("shiftEnter",new sh(e)),this.listenTo(r,"enter",(function(t,n){n.preventDefault(),n.isSoft&&(e.execute("shiftEnter"),i.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}]),n}(Gu),dh=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!hh(e.schema,n))do{if(n=n.parent,!n)return}while(!hh(e.schema,n));e.change((function(e){e.setSelection(n,"in")}))}}]),n}(qu);function hh(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}for(var fh=Hr("Ctrl+A"),vh=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new dh(e)),this.listenTo(t,"keydown",(function(t,n){Ur(n)===fh&&(e.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}]),n}(Gu),ph=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor;t.ui.componentFactory.add("selectAll",(function(n){var i=t.commands.get("selectAll"),r=new Su(n),o=n.t;return r.set({label:o("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(r,"execute",(function(){t.execute("selectAll"),t.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}]),n}(Gu),mh=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,null,[{key:"requires",get:function(){return[vh,ph]}},{key:"pluginName",get:function(){return"SelectAll"}}]),n}(Gu),gh=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;w(this,e),this.model=t,this.size=0,this.limit=i,this.isLocked=!1,this._changeCallback=function(e,t){"transparent"!=t.type&&t!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}return C(e,[{key:"input",value:function(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(e){this.isLocked&&!e||(this._batch=null,this.size=0)}},{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch()),this._batch}}]),e}(),kh=function(e){A(n,e);var t=x(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r._buffer=new gh(e.model,i),r._batches=new WeakSet,r}return C(n,[{key:"destroy",value:function(){c(O(n.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document,r=t.text||"",o=r.length,a=t.range?n.createSelection(t.range):i.selection,s=t.resultRange;n.enqueueChange(this._buffer.batch,(function(t){e._buffer.lock(),e._batches.add(e._buffer.batch),n.deleteContent(a),r&&n.insertContent(t.createText(r,i.selection.getAttributes()),a),s?t.setSelection(s):a.is("documentSelection")||t.setSelection(a),e._buffer.unlock(),e._buffer.input(o)}))}},{key:"buffer",get:function(){return this._buffer}}]),n}(qu),bh=[Ur("arrowUp"),Ur("arrowRight"),Ur("arrowDown"),Ur("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],yh=112;yh<=135;yh++)bh.push(yh);function wh(e){return!!e.ctrlKey||bh.includes(e.keyCode)}function _h(e){if(e.newChildren.length-e.oldChildren.length==1){var t=function(e,t){var n,i=[],r=0;return e.forEach((function(e){"equal"==e?(o(),r++):"insert"==e?(a("insert")?n.values.push(t[r]):(o(),n={type:"insert",index:r,values:[t[r]]}),r++):a("delete")?n.howMany++:(o(),n={type:"delete",index:r,howMany:1})})),o(),i;function o(){n&&(i.push(n),n=null)}function a(e){return n&&n.type==e}}(Ao(e.oldChildren,e.newChildren,Ch),e.newChildren);if(!(t.length>1)){var n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function Ch(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}var Ah=function(){function e(t){w(this,e),this.editor=t,this.editing=this.editor.editing}return C(e,[{key:"handle",value:function(e,t){if(function(e){if(0==e.length)return!1;var t,n=v(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("children"===i.type&&!_h(i))return!0}}catch(r){n.e(r)}finally{n.f()}return!1}(e))this._handleContainerChildrenMutations(e,t);else{var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._handleTextMutation(r,t),this._handleTextNodeInsertion(r)}}catch(o){i.e(o)}finally{i.f()}}}},{key:"_handleContainerChildrenMutations",value:function(e,t){var n=function(e){var t=e.map((function(e){return e.node})).reduce((function(e,t){return e.getCommonAncestor(t,{includeSelf:!0})}));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(e){return e.is("containerElement")||e.is("rootElement")}))}(e);if(n){var i=this.editor.editing.view.domConverter.mapViewToDom(n),r=new Lo(this.editor.editing.view.document),o=this.editor.data.toModel(r.domToView(i)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(a){var s=Array.from(o.getChildren()),c=Array.from(a.getChildren()),l=s[s.length-1],u=c[c.length-1],d=l&&l.is("element","softBreak"),h=u&&!u.is("element","softBreak");d&&h&&s.pop();var f=this.editor.model.schema;if(xh(s,f)&&xh(c,f)){var v=s.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," "),p=c.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," ");if(p!==v){var m=Ao(p,v),g=Eh(m),k=g.firstChangeAt,b=g.insertions,y=g.deletions,w=null;t&&(w=this.editing.mapper.toModelRange(t.getFirstRange()));var _=v.substr(k,b),C=this.editor.model.createRange(this.editor.model.createPositionAt(a,k),this.editor.model.createPositionAt(a,k+y));this.editor.execute("input",{text:_,range:C,resultRange:w})}}}}}},{key:"_handleTextMutation",value:function(e,t){if("text"==e.type){var n=e.newText.replace(/\u00A0/g," "),i=e.oldText.replace(/\u00A0/g," ");if(i!==n){var r=Ao(i,n),o=Eh(r),a=o.firstChangeAt,s=o.insertions,c=o.deletions,l=null;t&&(l=this.editing.mapper.toModelRange(t.getFirstRange()));var u=this.editing.view.createPositionAt(e.node,a),d=this.editing.mapper.toModelPosition(u),h=this.editor.model.createRange(d,d.getShiftedBy(c)),f=n.substr(a,s);this.editor.execute("input",{text:f,range:h,resultRange:l})}}}},{key:"_handleTextNodeInsertion",value:function(e){if("children"==e.type){var t=_h(e),n=this.editing.view.createPositionAt(e.node,t.index),i=this.editing.mapper.toModelPosition(n),r=t.values[0].data;this.editor.execute("input",{text:r.replace(/\u00A0/g," "),range:this.editor.model.createRange(i)})}}}]),e}();function xh(e,t){return e.every((function(e){return t.isInline(e)}))}function Eh(e){for(var t=null,n=null,i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document;n.enqueueChange(this._buffer.batch,(function(r){e._buffer.lock();var o=r.createSelection(t.selection||i.selection),a=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:e.direction,unit:t.unit}),e._shouldEntireContentBeReplacedWithParagraph(t.sequence||1))e._replaceEntireContentWithParagraph(r);else if(!o.isCollapsed){var s=0;o.getFirstRange().getMinimalFlatRanges().forEach((function(e){s+=Mr(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(o,{doNotResetEntireContent:a,direction:e.direction}),e._buffer.input(s),r.setSelection(o),e._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(e){if(e>1)return!1;var t=this.editor.model,n=t.document.selection,i=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(i))return!1;if(!t.schema.checkChild(i,"paragraph"))return!1;var r=i.getChild(0);return!r||"paragraph"!==r.name}},{key:"_replaceEntireContentWithParagraph",value:function(e){var t=this.editor.model,n=t.document.selection,i=t.schema.getLimitElement(n),r=e.createElement("paragraph");e.remove(e.createRangeIn(i)),e.insert(r,i),e.setSelection(r,0)}},{key:"buffer",get:function(){return this._buffer}}]),n}(qu),Sh=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=e.document,o=0;function a(e,t,n){var i;r.once("delete",(function(e){return i=e}),{priority:Number.POSITIVE_INFINITY}),r.fire("delete",new fa(r,t,n)),i&&i.stop.called&&e.stop()}return r.on("keyup",(function(e,t){t.keyCode!=Vr.delete&&t.keyCode!=Vr.backspace||(o=0)})),r.on("keydown",(function(e,t){var n={};if(t.keyCode==Vr.delete)n.direction="forward",n.unit="character";else{if(t.keyCode!=Vr.backspace)return;n.direction="backward",n.unit="codePoint"}var i=jr.isMac?t.altKey:t.ctrlKey;n.unit=i?"word":n.unit,n.sequence=++o,a(e,t.domEvent,n)})),jr.isAndroid&&r.on("beforeinput",(function(t,n){if("deleteContentBackward"==n.domEvent.inputType){var i={unit:"codepoint",direction:"backward",sequence:1},r=n.domTarget.ownerDocument.defaultView.getSelection();r.anchorNode==r.focusNode&&r.anchorOffset+1!=r.focusOffset&&(i.selectionToRemove=e.domConverter.domSelectionToView(r)),a(t,n.domEvent,i)}})),i}return C(n,[{key:"observe",value:function(){}}]),n}(Wo),Th=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;if(t.addObserver(Sh),e.commands.add("forwardDelete",new Mh(e,"forward")),e.commands.add("delete",new Mh(e,"backward")),this.listenTo(n,"delete",(function(n,i){var r={unit:i.unit,sequence:i.sequence};if(i.selectionToRemove){var o,a=e.model.createSelection(),s=[],c=v(i.selectionToRemove.getRanges());try{for(c.s();!(o=c.n()).done;){var l=o.value;s.push(e.editing.mapper.toModelRange(l))}}catch(u){c.e(u)}finally{c.f()}a.setTo(s),r.selection=a}e.execute("forward"==i.direction?"forwardDelete":"delete",r),i.preventDefault(),t.scrollToTheSelection()})),jr.isAndroid){var i=null;this.listenTo(n,"delete",(function(e,t){var n=t.domTarget.ownerDocument.defaultView.getSelection();i={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",(function(e,t){if(i){var n=t.domTarget.ownerDocument.defaultView.getSelection();n.collapse(i.anchorNode,i.anchorOffset),n.extend(i.focusNode,i.focusOffset),i=null}}))}}}],[{key:"pluginName",get:function(){return"Delete"}}]),n}(Gu),Ih=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,null,[{key:"requires",get:function(){return[Dh,Th]}},{key:"pluginName",get:function(){return"Typing"}}]),n}(Gu),Ph=new Map;function Oh(e,t,n){var i=Ph.get(e);i||(i=new Map,Ph.set(e,i)),i.set(t,n)}function Nh(e){return[e]}function Bh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function(e,t){var n=Ph.get(e);return n&&n.has(t)?n.get(t):Nh}(e.constructor,t.constructor);try{return i(e=e.clone(),t,n)}catch(e){throw e}}function Lh(e,t,n){e=e.slice(),t=t.slice();var i=new zh(n.document,n.useRelations,n.forceWeakRemove);i.setOriginalOperations(e),i.setOriginalOperations(t);var r=i.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:r};var o,a=new WeakMap,s=v(e);try{for(s.s();!(o=s.n()).done;){var c=o.value;a.set(c,0)}}catch(x){s.e(x)}finally{s.f()}for(var l={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},u=0;u2&&void 0!==arguments[2]&&arguments[2];w(this,e),this.originalOperations=new Map,this._history=t.history,this._useRelations=n,this._forceWeakRemove=!!i,this._relations=new Map}return C(e,[{key:"setOriginalOperations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=n?this.originalOperations.get(n):null,r=v(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;this.originalOperations.set(o,i||o)}}catch(a){r.e(a)}finally{r.f()}}},{key:"updateRelation",value:function(e,t){switch(e.constructor){case xc:switch(t.constructor){case Tc:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case xc:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Ic:switch(t.constructor){case Tc:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case xc:(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))&&this._setRelation(e,t,"splitBefore")}break;case Tc:switch(t.constructor){case Tc:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Ic:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case Dc:var n=e.newRange;if(!n)return;switch(t.constructor){case xc:var i=os._createFromPositionAndShift(t.sourcePosition,t.howMany),r=i.containsPosition(n.start)||i.start.isEqual(n.start),o=i.containsPosition(n.end)||i.end.isEqual(n.end);!r&&!o||i.containsRange(n)||this._setRelation(e,t,{side:r?"left":"right",path:r?n.start.path.slice():n.end.path.slice()});break;case Tc:var a=n.start.isEqual(t.targetPosition),s=n.start.isEqual(t.deletionPosition),c=n.end.isEqual(t.deletionPosition),l=n.end.isEqual(t.sourcePosition);(a||s||c||l)&&this._setRelation(e,t,{wasInLeftElement:a,wasStartBeforeMergedElement:s,wasEndBeforeMergedElement:c,wasInRightElement:l});break}break}}},{key:"getContext",value:function(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(e){var t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}},{key:"_getRelation",value:function(e,t){var n=this.originalOperations.get(t),i=this._history.getUndoneOperation(n);if(!i)return null;var r=this.originalOperations.get(e),o=this._relations.get(r);return o&&o.get(i)||null}},{key:"_setRelation",value:function(e,t,n){var i=this.originalOperations.get(e),r=this.originalOperations.get(t),o=this._relations.get(i);o||(o=new Map,this._relations.set(i,o)),o.set(r,n)}}]),e}();function jh(e,t){var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.baseVersion=t++}}catch(o){i.e(o)}finally{i.f()}}function Rh(e,t){for(var n=0;n0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),Oh(xc,Ec,(function(e,t){var n=os._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),Oh(xc,xc,(function(e,t,n){var i,r=os._createFromPositionAndShift(e.sourcePosition,e.howMany),o=os._createFromPositionAndShift(t.sourcePosition,t.howMany),a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),i=e.targetPosition.isEqual(t.targetPosition)&&s?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Vh(e,t)&&Vh(t,e))return[t.getReversed()];if(r.containsPosition(t.targetPosition)&&r.containsRange(o,!0))return r.start=r.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),r.end=r.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Uh([r],i);if(o.containsPosition(e.targetPosition)&&o.containsRange(r,!0))return r.start=r.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),r.end=r.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Uh([r],i);var c=ri(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return r.start=r.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),r.end=r.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Uh([r],i);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;var l,u=[],d=r.getDifference(o),h=v(d);try{for(h.s();!(l=h.n()).done;){var f=l.value;f.start=f.start._getTransformedByDeletion(t.sourcePosition,t.howMany),f.end=f.end._getTransformedByDeletion(t.sourcePosition,t.howMany);var m="same"==ri(f.start.getParentPath(),t.getMovedRangeStart().getParentPath()),g=f._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,m);u.push.apply(u,p(g))}}catch(b){h.e(b)}finally{h.f()}var k=r.getIntersection(o);return null!==k&&a&&(k.start=k.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),k.end=k.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===u.length?u.push(k):1==u.length?o.start.isBefore(r.start)||o.start.isEqual(r.start)?u.unshift(k):u.push(k):u.splice(1,0,k)),0===u.length?[new Zc(e.baseVersion)]:Uh(u,i)})),Oh(xc,Ic,(function(e,t,n){var i=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(i=e.targetPosition._getTransformedBySplitOperation(t));var r=os._createFromPositionAndShift(e.sourcePosition,e.howMany);if(r.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=i,[e];if(r.start.hasSameParentAs(t.splitPosition)&&r.containsPosition(t.splitPosition)){var o=new os(t.splitPosition,r.end);return o=o._getTransformedBySplitOperation(t),Uh([new os(r.start,t.splitPosition),o],i)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(i=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(i=e.targetPosition);var a=[r._getTransformedBySplitOperation(t)];if(t.graveyardPosition){var s=r.start.isEqual(t.graveyardPosition)||r.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!n.aWasUndone&&a.push(os._createFromPositionAndShift(t.insertionPosition,1))}return Uh(a,i)})),Oh(xc,Tc,(function(e,t,n){var i=os._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Zc(0)]}else if(!n.aWasUndone){var r=[],o=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(r.push(new xc(e.sourcePosition,e.howMany-1,e.targetPosition,0)),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));var s=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),c=new xc(o,1,s,0),l=c.getMovedRangeStart().path.slice();l.push(0);var u=new ts(c.targetPosition.root,l);a=a._getTransformedByMove(o,s,1);var d=new xc(a,t.howMany,u,0);return r.push(c),r.push(d),r}var h=os._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=h.start,e.howMany=h.end.offset-h.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),Oh(Mc,Ec,(function(e,t){return e.position=e.position._getTransformedByInsertOperation(t),[e]})),Oh(Mc,Tc,(function(e,t){return e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])})),Oh(Mc,xc,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),Oh(Mc,Mc,(function(e,t,n){if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new Zc(0)];e.oldName=t.newName}return[e]})),Oh(Mc,Ic,(function(e,t){if("same"==ri(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){var n=new Mc(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,n]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),Oh(Sc,Sc,(function(e,t,n){if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new Zc(0)];e.oldValue=t.newValue}return[e]})),Oh(Ic,Ec,(function(e,t){return e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset0}},{key:"addBatch",value:function(e){var t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(e,t,n){var i,r=this.editor.model,o=r.document,a=[],s=e.map((function(e){return e.getTransformedByOperations(n)})),c=s.flat(),l=v(s);try{for(l.s();!(i=l.n()).done;){var u=i.value,d=u.filter((function(e){return!Kh(e,c)}));Wh(d);var h=d.find((function(e){return e.root!=o.graveyard}));h&&a.push(h)}}catch(f){l.e(f)}finally{l.f()}a.length&&r.change((function(e){e.setSelection(a,{backward:t})}))}},{key:"_undo",value:function(e,t){var n=this.editor.model,i=n.document;this._createdBatches.add(t);var r=e.operations.slice().filter((function(e){return e.isDocumentOperation}));r.reverse();var o,a=v(r);try{for(a.s();!(o=a.n()).done;){var s,c=o.value,l=c.baseVersion+1,u=Array.from(i.history.getOperations(l)),d=Lh([c.getReversed()],u,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA,h=v(d);try{for(h.s();!(s=h.n()).done;){var f=s.value;t.addOperation(f),n.applyOperation(f),i.history.setOperationAsUndone(c,f)}}catch(p){h.e(p)}finally{h.f()}}}catch(p){a.e(p)}finally{a.f()}}}]),n}(qu);function Wh(e){e.sort((function(e,t){return e.start.isBefore(t.start)?-1:1}));for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,n=t?this._stack.findIndex((function(e){return e.batch==t})):this._stack.length-1,i=this._stack.splice(n,1)[0],r=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(r,(function(){e._undo(i.batch,r);var t=e.editor.model.document.history.getOperations(i.batch.baseVersion);e._restoreSelection(i.selection.ranges,i.selection.isBackward,t),e.fire("revert",i.batch,r)})),this.refresh()}}]),n}(Hh),$h=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"execute",value:function(){var e=this,t=this._stack.pop(),n=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(n,(function(){var i=t.batch.operations[t.batch.operations.length-1].baseVersion+1,r=e.editor.model.document.history.getOperations(i);e._restoreSelection(t.selection.ranges,t.selection.isBackward,r),e._undo(t.batch,n)})),this.refresh()}}]),n}(Hh),qh=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._batchRegistry=new WeakSet,i}return C(n,null,[{key:"pluginName",get:function(){return"UndoEditing"}}]),C(n,[{key:"init",value:function(){var e=this,t=this.editor;this._undoCommand=new Gh(t),this._redoCommand=new $h(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(function(t,n){var i=n[0];if(i.isDocumentOperation){var r=i.batch,o=e._redoCommand._createdBatches.has(r),a=e._undoCommand._createdBatches.has(r);e._batchRegistry.has(r)||"transparent"==r.type&&!o&&!a||(o?e._undoCommand.addBatch(r):a||(e._undoCommand.addBatch(r),e._redoCommand.clearStack()),e._batchRegistry.add(r))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(t,n,i){e._redoCommand.addBatch(i)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}]),n}(Gu),Yh='',Qh='',Zh=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?Yh:Qh,r="ltr"==t.uiLanguageDirection?Qh:Yh;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",r)}},{key:"_addButton",value:function(e,t,n,i){var r=this,o=this.editor;o.ui.componentFactory.add(e,(function(a){var s=o.commands.get(e),c=new Su(a);return c.set({label:t,icon:i,keystroke:n,tooltip:!0}),c.bind("isEnabled").to(s,"isEnabled"),r.listenTo(c,"execute",(function(){o.execute(e),o.editing.view.focus()})),c}))}}]),n}(Gu),Jh=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,null,[{key:"requires",get:function(){return[qh,Zh]}},{key:"pluginName",get:function(){return"Undo"}}]),n}(Gu),Xh=function(e){A(n,e);var t=x(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.attributeKey=i,r}return C(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=t.selection.getAttribute(this.attributeKey),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,r=t.value;n.change((function(t){if(i.isCollapsed)r?t.setSelectionAttribute(e.attributeKey,r):t.removeSelectionAttribute(e.attributeKey);else{var o,a=n.schema.getValidRanges(i.getRanges(),e.attributeKey),s=v(a);try{for(s.s();!(o=s.n()).done;){var c=o.value;r?t.setAttribute(e.attributeKey,r,c):t.removeAttribute(e.attributeKey,c)}}catch(l){s.e(l)}finally{s.f()}}}))}}]),n}(qu),ef=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.set("color"),i.set("hasBorder"),i.icon='',i.extendTemplate({attributes:{style:{backgroundColor:r.to("color")},class:["ck","ck-color-grid__tile",r.if("hasBorder","ck-color-table__color-tile_bordered")]}}),i}return C(n,[{key:"render",value:function(){c(O(n.prototype),"render",this).call(this),this.iconView.fillColor="hsl(0, 0%, 100%)"}}]),n}(Su);n(47);var tf=function(e){A(n,e);var t=x(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o=i&&i.colorDefinitions||[],a={};return i&&i.columns&&(a.gridTemplateColumns="repeat( ".concat(i.columns,", 1fr)")),r.set("selectedColor"),r.items=r.createCollection(),r.focusTracker=new Sl,r.keystrokes=new yl,r._focusCycler=new mu({focusables:r.items,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),r.items.on("add",(function(e,t){t.isOn=t.color===r.selectedColor})),o.forEach((function(e){var t=new ef;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",(function(){r.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})})),r.items.add(t)})),r.setTemplate({tag:"div",children:r.items,attributes:{class:["ck","ck-color-grid"],style:a}}),r.on("change:selectedColor",(function(e,t,n){var i,o=v(r.items);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.isOn=a.color===n}}catch(s){o.e(s)}finally{o.f()}})),r}return C(n,[{key:"focus",value:function(){this.items.length&&this.items.first.focus()}},{key:"focusLast",value:function(){this.items.length&&this.items.last.focus()}},{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this);var t,i=v(this.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.focusTracker.add(r.element)}}catch(o){i.e(o)}finally{i.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}}]),n}(ou),nf=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.set("isEmpty",!0),i.on("change",(function(){i.set("isEmpty",0===i.length)})),i}return C(n,[{key:"add",value:function(e,t){this.find((function(t){return t.color===e.color}))||c(O(n.prototype),"add",this).call(this,e,t)}},{key:"hasColor",value:function(e){return!!this.find((function(t){return t.color===e}))}}]),n}(Zn);Qn(nf,pr);var rf='';n(49);var of=function(e){A(n,e);var t=x(n);function n(e,i){var r,o=i.colors,a=i.columns,s=i.removeButtonLabel,c=i.documentColorsLabel,l=i.documentColorsCount;return w(this,n),r=t.call(this,e),r.items=r.createCollection(),r.colorDefinitions=o,r.focusTracker=new Sl,r.keystrokes=new yl,r.set("selectedColor"),r.removeButtonLabel=s,r.columns=a,r.documentColors=new nf,r.documentColorsCount=l,r._focusCycler=new mu({focusables:r.items,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),r._documentColorsLabel=c,r.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:r.items}),r.items.add(r._removeColorButton()),r}return C(n,[{key:"updateDocumentColors",value:function(e,t){var n=e.document,i=this.documentColorsCount;this.documentColors.clear();var r,o=v(n.getRootNames());try{for(o.s();!(r=o.n()).done;){var a,s=r.value,c=n.getRoot(s),l=e.createRangeIn(c),u=v(l.getItems());try{for(u.s();!(a=u.n()).done;){var d=a.value;if(d.is("$textProxy")&&d.hasAttribute(t)&&(this._addColorToDocumentColors(d.getAttribute(t)),this.documentColors.length>=i))return}}catch(h){u.e(h)}finally{u.f()}}}catch(h){o.e(h)}finally{o.f()}}},{key:"updateSelectedColors",value:function(){var e=this.documentColorsGrid,t=this.staticColorsGrid,n=this.selectedColor;t.selectedColor=n,e&&(e.selectedColor=n)}},{key:"render",value:function(){c(O(n.prototype),"render",this).call(this);var e,t=v(this.items);try{for(t.s();!(e=t.n()).done;){var i=e.value;this.focusTracker.add(i.element)}}catch(r){t.e(r)}finally{t.f()}this.keystrokes.listenTo(this.element)}},{key:"appendGrids",value:function(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount)){var e=Rl.bind(this.documentColors,this.documentColors),t=new lu(this.locale);t.text=this._documentColorsLabel,t.extendTemplate({attributes:{class:["ck","ck-color-grid__label",e.if("isEmpty","ck-hidden")]}}),this.items.add(t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"_removeColorButton",value:function(){var e=this,t=new Su;return t.set({withText:!0,icon:rf,tooltip:!0,label:this.removeButtonLabel}),t.class="ck-color-table__remove-color",t.on("execute",(function(){e.fire("execute",{value:null})})),t}},{key:"_createStaticColorsGrid",value:function(){var e=new tf(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return e.delegate("execute").to(this),e}},{key:"_createDocumentColorsGrid",value:function(){var e=this,t=Rl.bind(this.documentColors,this.documentColors),n=new tf(this.locale,{columns:this.columns});return n.delegate("execute").to(this),n.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),n.items.bindTo(this.documentColors).using((function(t){var n=new ef;return n.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&n.set({label:t.label,tooltip:!0}),n.on("execute",(function(){e.fire("execute",{value:t.color})})),n})),this.documentColors.on("change:isEmpty",(function(e,t,i){i&&(n.selectedColor=null)})),n}},{key:"_addColorToDocumentColors",value:function(e){var t=this.colorDefinitions.find((function(t){return t.color===e}));t?this.documentColors.add(Object.assign({},t)):this.documentColors.add({color:e,label:e,options:{hasBorder:!1}})}}]),n}(ou),af="fontSize",sf="fontFamily",cf="fontColor",lf="fontBackgroundColor";function uf(e,t){var n,i={model:{key:e,values:[]},view:{},upcastAlso:{}},r=v(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;i.model.values.push(o.model),i.view[o.model]=o.view,o.upcastAlso&&(i.upcastAlso[o.model]=o.upcastAlso)}}catch(a){r.e(a)}finally{r.f()}return i}function df(e){return function(t){return t.getStyle(e).replace(/\s/g,"")}}function hf(e){return function(t,n){var i=n.writer;return i.createAttributeElement("span",{style:"".concat(e,":").concat(t)},{priority:7})}}var ff=function(e){A(n,e);var t=x(n);function n(e){return w(this,n),t.call(this,e,lf)}return n}(Xh),vf=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,pf=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,mf=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,gf=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,kf=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,bf=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple","currentcolor","transparent"]);function yf(e){return e.startsWith("#")?vf.test(e):e.startsWith("rgb")?pf.test(e)||mf.test(e):e.startsWith("hsl")?gf.test(e)||kf.test(e):bf.has(e.toLowerCase())}var wf=["repeat-x","repeat-y","repeat","space","round","no-repeat"],_f=["center","top","bottom","left","right"];function Cf(e){return _f.includes(e)}var Af=["fixed","scroll","local"];function xf(e){return Af.includes(e)}var Ef=/^url\(/;function Df(e){return Ef.test(e)}function Mf(e){return e.replace(/, /g,",").split(" ").map((function(e){return e.replace(/,/g,", ")}))}function Sf(e){e.setNormalizer("background",Tf),e.setNormalizer("background-color",(function(e){return{path:"background.color",value:e}})),e.setReducer("background",(function(e){var t=[];return t.push(["background-color",e.color]),t}))}function Tf(e){var t,n,i={},r=Mf(e),o=v(r);try{for(o.s();!(t=o.n()).done;){var a=t.value;n=a,wf.includes(n)?(i.repeat=i.repeat||[],i.repeat.push(a)):Cf(a)?(i.position=i.position||[],i.position.push(a)):xf(a)?i.attachment=a:yf(a)?i.color=a:Df(a)&&(i.image=a)}}catch(s){o.e(s)}finally{o.f()}return{path:"background",value:i}}var If=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define(lf,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.data.addStyleProcessorRules(Sf),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:lf,value:df("background-color")}}),e.conversion.for("downcast").attributeToElement({model:lf,view:hf("background-color")}),e.commands.add(lf,new ff(e)),e.model.schema.extend("$text",{allowAttributes:lf}),e.model.schema.setAttributeProperties(lf,{isFormatting:!0,copyOnEnter:!0}),i}return C(n,null,[{key:"pluginName",get:function(){return"FontBackgroundColorEditing"}}]),n}(Gu);function Pf(e){return"string"==typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:""+e.color}}}}var Of=function(e){A(n,e);var t=x(n);function n(e,i){var r,o=i.commandName,a=i.icon,s=i.componentName,c=i.dropdownLabel;return w(this,n),r=t.call(this,e),r.commandName=o,r.componentName=s,r.icon=a,r.dropdownLabel=c,r.columns=e.config.get(r.componentName+".columns"),r.colorTableView=void 0,r}return C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.locale,i=n.t,r=t.commands.get(this.commandName),o=function(e,t){var n=e.t,i={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return t.map((function(e){var t=i[e.label];return t&&t!=e.label&&(e.label=t),e}))}(n,t.config.get(this.componentName).colors.map(Pf).filter((function(e){return!!e}))),a=t.config.get(this.componentName+".documentColors");t.ui.componentFactory.add(this.componentName,(function(n){var s=zu(n);return e.colorTableView=function(e){var t=e.dropdownView,n=e.colors,i=e.columns,r=e.removeButtonLabel,o=e.documentColorsLabel,a=e.documentColorsCount,s=t.locale,c=new of(s,{colors:n,columns:i,removeButtonLabel:r,documentColorsLabel:o,documentColorsCount:a});return t.colorTableView=c,t.panelView.children.add(c),c.delegate("execute").to(t,"execute"),c}({dropdownView:s,colors:o.map((function(e){return{label:e.label,color:e.model,options:{hasBorder:e.hasBorder}}})),columns:e.columns,removeButtonLabel:i("Remove color"),documentColorsLabel:0!==a?i("Document colors"):void 0,documentColorsCount:void 0===a?e.columns:a}),e.colorTableView.bind("selectedColor").to(r,"value"),s.buttonView.set({label:e.dropdownLabel,icon:e.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(r),s.on("execute",(function(n,i){t.execute(e.commandName,i),t.editing.view.focus()})),s.on("change:isOpen",(function(n,i,r){s.colorTableView.appendGrids(),r&&(0!==a&&e.colorTableView.updateDocumentColors(t.model,e.componentName),e.colorTableView.updateSelectedColors())})),s}))}}]),n}(Gu),Nf=function(e){A(n,e);var t=x(n);function n(e){w(this,n);var i=e.locale.t;return t.call(this,e,{commandName:lf,componentName:lf,icon:'',dropdownLabel:i("Font Background Color")})}return C(n,null,[{key:"pluginName",get:function(){return"FontBackgroundColorUI"}}]),n}(Of),Bf=function(e){A(n,e);var t=x(n);function n(e){return w(this,n),t.call(this,e,cf)}return n}(Xh),Lf=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define(cf,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:cf,value:df("color")}}),e.conversion.for("downcast").attributeToElement({model:cf,view:hf("color")}),e.commands.add(cf,new Bf(e)),e.model.schema.extend("$text",{allowAttributes:cf}),e.model.schema.setAttributeProperties(cf,{isFormatting:!0,copyOnEnter:!0}),i}return C(n,null,[{key:"pluginName",get:function(){return"FontColorEditing"}}]),n}(Gu),zf=function(e){A(n,e);var t=x(n);function n(e){w(this,n);var i=e.locale.t;return t.call(this,e,{commandName:cf,componentName:cf,icon:'',dropdownLabel:i("Font Color")})}return C(n,null,[{key:"pluginName",get:function(){return"FontColorUI"}}]),n}(Of),jf=function(e){A(n,e);var t=x(n);function n(e){return w(this,n),t.call(this,e,sf)}return n}(Xh);function Rf(e){return e.map(Ff).filter((function(e){return!!e}))}function Ff(e){return"object"==N(e)?e:"default"===e?{title:"Default",model:void 0}:"string"==typeof e?function(e){var t=e.replace(/"|'/g,"").split(","),n=t[0],i=t.map(Vf).join(", ");return{title:n,model:i,view:{name:"span",styles:{"font-family":i},priority:7}}}(e):void 0}function Vf(e){return(e=e.trim()).indexOf(" ")>0&&(e="'".concat(e,"'")),e}var Uf=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define(sf,{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1}),i}return C(n,null,[{key:"pluginName",get:function(){return"FontFamilyEditing"}}]),C(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:sf}),e.model.schema.setAttributeProperties(sf,{isFormatting:!0,copyOnEnter:!0});var t=Rf(e.config.get("fontFamily.options")).filter((function(e){return e.model})),n=uf(sf,t);e.config.get("fontFamily.supportAllValues")?this._prepareAnyValueConverters():e.conversion.attributeToElement(n),e.commands.add(sf,new jf(e))}},{key:"_prepareAnyValueConverters",value:function(){var e=this.editor;e.conversion.for("downcast").attributeToElement({model:sf,view:function(e,t){var n=t.writer;return n.createAttributeElement("span",{style:"font-family:"+e},{priority:7})}}),e.conversion.for("upcast").attributeToAttribute({model:{key:sf,value:function(e){return e.getStyle("font-family")}},view:{name:"span",styles:{"font-family":/.*/}}})}}]),n}(Gu),Hf=function e(t,n){w(this,e),n&&ur(this,n),t&&this.set(t)};Qn(Hf,pr);var Wf=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,i=this._getLocalizedOptions(),r=t.commands.get(sf);t.ui.componentFactory.add(sf,(function(o){var a=zu(o);return Ru(a,function(e,t){var n,i=new Zn,r=v(e);try{var o=function(){var e=n.value,r={type:"button",model:new Hf({commandName:sf,commandParam:e.model,label:e.title,withText:!0})};r.model.bind("isOn").to(t,"value",(function(t){return t===e.model||!(!t||!e.model)&&t.split(",")[0].replace(/'/g,"").toLowerCase()===e.model.toLowerCase()})),e.view&&e.view.styles&&r.model.set("labelStyle","font-family: "+e.view.styles["font-family"]),i.add(r)};for(r.s();!(n=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}return i}(i,r)),a.buttonView.set({label:n("Font Family"),icon:'',tooltip:!0}),a.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),a.bind("isEnabled").to(r),e.listenTo(a,"execute",(function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var e=this.editor,t=e.t;return Rf(e.config.get(sf).options).map((function(e){return"Default"===e.title&&(e.title=t("Default")),e}))}}]),n}(Gu),Kf=function(e){A(n,e);var t=x(n);function n(e){return w(this,n),t.call(this,e,af)}return n}(Xh);function Gf(e){return e.map((function(e){return function(e){if(t=e,"object"==N(t)&&t.title&&t.model&&t.view)return qf(e);var t,n=function(e){return $f[e]||$f[e.model]}(e);return n?qf(n):"default"===e?{model:void 0,title:"Default"}:function(e){var t;if("object"==N(e)){if(!e.model)throw new jn.a("font-size-invalid-definition",null,e);t=parseFloat(e.model)}else t=parseFloat(e);return isNaN(t)}(e)?void 0:function(e){return"number"!=typeof e&&"string"!=typeof e||(e={title:String(e),model:parseFloat(e)+"px"}),e.view={name:"span",styles:{"font-size":e.model}},qf(e)}(e)}(e)})).filter((function(e){return!!e}))}var $f={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function qf(e){return e.view.priority||(e.view.priority=7),e}var Yf=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define(af,{options:["tiny","small","default","big","huge"],supportAllValues:!1}),i}return C(n,null,[{key:"pluginName",get:function(){return"FontSizeEditing"}}]),C(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:af}),e.model.schema.setAttributeProperties(af,{isFormatting:!0,copyOnEnter:!0});var t=e.config.get("fontSize.supportAllValues"),n=Gf(this.editor.config.get("fontSize.options")).filter((function(e){return e.model})),i=uf(af,n);t?this._prepareAnyValueConverters(i):e.conversion.attributeToElement(i),e.commands.add(af,new Kf(e))}},{key:"_prepareAnyValueConverters",value:function(e){var t=this.editor,n=e.model.values.filter((function(e){return!String(e).match(/[\d.]+[\w%]+/)}));if(n.length)throw new jn.a("font-size-invalid-use-of-named-presets",null,{presets:n});t.conversion.for("downcast").attributeToElement({model:af,view:function(e,t){var n=t.writer;if(e)return n.createAttributeElement("span",{style:"font-size:"+e},{priority:7})}}),t.conversion.for("upcast").attributeToAttribute({model:{key:af,value:function(e){return e.getStyle("font-size")}},view:{name:"span"}})}}]),n}(Gu);n(51);var Qf=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,i=this._getLocalizedOptions(),r=t.commands.get(af);t.ui.componentFactory.add(af,(function(o){var a=zu(o);return Ru(a,function(e,t){var n,i=new Zn,r=v(e);try{var o=function(){var e=n.value,r={type:"button",model:new Hf({commandName:af,commandParam:e.model,label:e.title,class:"ck-fontsize-option",withText:!0})};e.view&&e.view.styles&&r.model.set("labelStyle","font-size:"+e.view.styles["font-size"]),e.view&&e.view.classes&&r.model.set("class","".concat(r.model.class," ").concat(e.view.classes)),r.model.bind("isOn").to(t,"value",(function(t){return t===e.model})),i.add(r)};for(r.s();!(n=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}return i}(i,r)),a.buttonView.set({label:n("Font Size"),icon:'',tooltip:!0}),a.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),a.bind("isEnabled").to(r),e.listenTo(a,"execute",(function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var e=this.editor,t=e.t,n={Default:t("Default"),Tiny:t("Tiny"),Small:t("Small"),Big:t("Big"),Huge:t("Huge")};return Gf(e.config.get(af).options).map((function(e){var t=n[e.title];return t&&t!=e.title&&(e=Object.assign({},e,{title:t})),e}))}}]),n}(Gu),Zf=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"refresh",value:function(){var e=this.editor.model,t=Qu(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&Jf(t,e.schema)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document;t.change((function(i){var r,o=(e.selection||n.selection).getSelectedBlocks(),a=v(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;!s.is("element","paragraph")&&Jf(s,t.schema)&&i.rename(s,"paragraph")}}catch(c){a.e(c)}finally{a.f()}}))}}]),n}(qu);function Jf(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}var Xf=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"execute",value:function(e){var t=this.editor.model,n=e.position;t.change((function(e){var i=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,i)){var r=t.schema.findAllowedParent(n,i);if(!r)return;n=e.split(n,r).position}t.insertContent(i,n),e.setSelection(i,"in")}))}}]),n}(qu),ev=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor,t=e.model;e.commands.add("paragraph",new Zf(e)),e.commands.add("insertParagraph",new Xf(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:function(e,t){var i=t.writer;return n.paragraphLikeElements.has(e.name)?e.isEmpty?null:i.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}]),n}(Gu);ev.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var tv=function(e){A(n,e);var t=x(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.modelElements=i,r}return C(n,[{key:"refresh",value:function(){var e=this,t=Qu(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((function(n){return nv(t,n,e.editor.model.schema)}))}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document,i=e.value;t.change((function(e){var r,o=Array.from(n.selection.getSelectedBlocks()).filter((function(e){return nv(e,i,t.schema)})),a=v(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;s.is("element",i)||e.rename(s,i)}}catch(c){a.e(c)}finally{a.f()}}))}}]),n}(qu);function nv(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}var iv="paragraph",rv=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]}),i}return C(n,null,[{key:"pluginName",get:function(){return"HeadingEditing"}}]),C(n,[{key:"init",value:function(){var e,t=this.editor,n=t.config.get("heading.options"),i=[],r=v(n);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.model!==iv&&(t.model.schema.register(o.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(o),i.push(o.model))}}catch(a){r.e(a)}finally{r.f()}this._addDefaultH1Conversion(t),t.commands.add("heading",new tv(t,i))}},{key:"afterInit",value:function(){var e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(function(t,i){var r=e.model.document.selection.getFirstPosition().parent;n.some((function(e){return r.is("element",e.model)}))&&!r.is("element",iv)&&0===r.childCount&&i.writer.rename(r,iv)}))}},{key:"_addDefaultH1Conversion",value:function(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:zn.get("low")+1})}}],[{key:"requires",get:function(){return[ev]}}]),n}(Gu);n(13);var ov=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,i=function(e){var t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((function(e){var t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(t),r=n("Choose heading"),o=n("Heading");t.ui.componentFactory.add("heading",(function(n){var a,s={},c=new Zn,l=t.commands.get("heading"),u=t.commands.get("paragraph"),d=[l],h=v(i);try{var f=function(){var e=a.value,t={type:"button",model:new Hf({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(u,"value"),t.model.set("commandName","paragraph"),d.push(u)):(t.model.bind("isOn").to(l,"value",(function(t){return t===e.model})),t.model.set({commandName:"heading",commandValue:e.model})),c.add(t),s[e.model]=e.title};for(h.s();!(a=h.n()).done;)f()}catch(m){h.e(m)}finally{h.f()}var p=zu(n);return Ru(p,c),p.buttonView.set({isOn:!1,withText:!0,tooltip:o}),p.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),p.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,r=t.value;n.change((function(t){var o=n.schema.getValidRanges(i.getRanges(),"highlight");if(i.isCollapsed){var a=i.getFirstPosition();if(i.hasAttribute("highlight")){var s=function(t){return t.item.hasAttribute("highlight")&&t.item.getAttribute("highlight")===e.value},c=a.getLastMatchingPosition(s,{direction:"backward"}),l=a.getLastMatchingPosition(s),u=t.createRange(c,l);r&&e.value!==r?(t.setAttribute("highlight",r,u),t.setSelectionAttribute("highlight",r)):(t.removeAttribute("highlight",u),t.removeSelectionAttribute("highlight"))}else r&&t.setSelectionAttribute("highlight",r)}else{var d,h=v(o);try{for(h.s();!(d=h.n()).done;){var f=d.value;r?t.setAttribute("highlight",r,f):t.removeAttribute("highlight",f)}}catch(p){h.e(p)}finally{h.f()}}}))}}]),n}(qu),sv=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("highlight",{options:[{model:"yellowMarker",class:"marker-yellow",title:"Yellow marker",color:"var(--ck-highlight-marker-yellow)",type:"marker"},{model:"greenMarker",class:"marker-green",title:"Green marker",color:"var(--ck-highlight-marker-green)",type:"marker"},{model:"pinkMarker",class:"marker-pink",title:"Pink marker",color:"var(--ck-highlight-marker-pink)",type:"marker"},{model:"blueMarker",class:"marker-blue",title:"Blue marker",color:"var(--ck-highlight-marker-blue)",type:"marker"},{model:"redPen",class:"pen-red",title:"Red pen",color:"var(--ck-highlight-pen-red)",type:"pen"},{model:"greenPen",class:"pen-green",title:"Green pen",color:"var(--ck-highlight-pen-green)",type:"pen"}]}),i}return C(n,null,[{key:"pluginName",get:function(){return"HighlightEditing"}}]),C(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"highlight"});var t=e.config.get("highlight.options");e.conversion.attributeToElement(function(e){var t,n={model:{key:"highlight",values:[]},view:{}},i=v(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n.model.values.push(r.model),n.view[r.model]={name:"mark",classes:r.class}}}catch(o){i.e(o)}finally{i.f()}return n}(t)),e.commands.add("highlight",new av(e))}}]),n}(Gu);n(54);var cv=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.set("icon"),i.set("isEnabled",!0),i.set("isOn",!1),i.set("isToggleable",!1),i.set("isVisible",!0),i.set("keystroke"),i.set("label"),i.set("tabindex",-1),i.set("tooltip"),i.set("tooltipPosition","s"),i.set("type","button"),i.set("withText",!1),i.children=i.createCollection(),i.actionView=i._createActionView(),i.arrowView=i._createArrowView(),i.keystrokes=new yl,i.focusTracker=new Sl,i.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",r.if("isVisible","ck-hidden",(function(e){return!e})),i.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:i.children}),i}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(t,n){e.focusTracker.focusedElement===e.actionView.element&&(e.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(t,n){e.focusTracker.focusedElement===e.arrowView.element&&(e.actionView.focus(),n())}))}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var e=new Su;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}},{key:"_createArrowView",value:function(){var e=new Su,t=e.bindTemplate;return e.icon=Tu,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",(function(e){return String(e)}))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}]),n}(ou);n(56);var lv=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e,t=this.editor.config.get("highlight.options"),n=v(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._addHighlighterButton(i)}}catch(r){n.e(r)}finally{n.f()}this._addRemoveHighlightButton(),this._addDropdown(t)}},{key:"_addRemoveHighlightButton",value:function(){var e=this.editor.t;this._addButton("removeHighlight",e("Remove highlight"),rf)}},{key:"_addHighlighterButton",value:function(e){var t=this.editor.commands.get("highlight");this._addButton("highlight:"+e.model,e.title,uv(e.type),e.model,(function(n){n.bind("isEnabled").to(t,"isEnabled"),n.bind("isOn").to(t,"value",(function(t){return t===e.model})),n.iconView.fillColor=e.color,n.isToggleable=!0}))}},{key:"_addButton",value:function(e,t,n,i){var r=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=this.editor;a.ui.componentFactory.add(e,(function(e){var s=new Su(e),c=r.localizedOptionTitles[t]?r.localizedOptionTitles[t]:t;return s.set({label:c,icon:n,tooltip:!0}),s.on("execute",(function(){a.execute("highlight",{value:i}),a.editing.view.focus()})),o(s),s}))}},{key:"_addDropdown",value:function(e){var t=this,n=this.editor,i=n.t,r=n.ui.componentFactory,o=e[0],a=e.reduce((function(e,t){return e[t.model]=t,e}),{});r.add("highlight",(function(s){var c=n.commands.get("highlight"),l=zu(s,cv),u=l.buttonView;u.set({tooltip:i("Highlight"),lastExecuted:o.model,commandValue:o.model,isToggleable:!0}),u.bind("icon").to(c,"value",(function(e){return uv(h(e,"type"))})),u.bind("color").to(c,"value",(function(e){return h(e,"color")})),u.bind("commandValue").to(c,"value",(function(e){return h(e,"model")})),u.bind("isOn").to(c,"value",(function(e){return!!e})),u.delegate("execute").to(l);var d=e.map((function(e){var n=r.create("highlight:"+e.model);return t.listenTo(n,"execute",(function(){return l.buttonView.set({lastExecuted:e.model})})),n}));function h(e,t){var n=e&&e!==u.lastExecuted?e:u.lastExecuted;return a[n][t]}return l.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n':''}var dv=function(){function e(){w(this,e),this._stack=[]}return C(e,[{key:"add",value:function(e,t){var n=this._stack,i=n[0];this._insertDescriptor(e);var r=n[0];i===r||hv(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:t})}},{key:"remove",value:function(e,t){var n=this._stack,i=n[0];this._removeDescriptor(e);var r=n[0];i===r||hv(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:t})}},{key:"_insertDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e.id}));if(!hv(e,t[n])){n>-1&&t.splice(n,1);for(var i=0;t[i]&&fv(t[i],e);)i++;t.splice(i,0,e)}}},{key:"_removeDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e}));n>-1&&t.splice(n,1)}}]),e}();function hv(e,t){return e&&t&&e.priority==t.priority&&vv(e.classes)==vv(t.classes)}function fv(e,t){return e.priority>t.priority||!(e.priorityvv(t.classes)}function vv(e){return Array.isArray(e)?e.sort().join(","):e}Qn(dv,Vn),n(58);var pv=fu("px"),mv=Po.document.body,gv=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.set("top",0),i.set("left",0),i.set("position","arrow_nw"),i.set("isVisible",!1),i.set("withArrow",!0),i.set("class"),i.content=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",r.to("position",(function(e){return"ck-balloon-panel_"+e})),r.if("isVisible","ck-balloon-panel_visible"),r.if("withArrow","ck-balloon-panel_with-arrow"),r.to("class")],style:{top:r.to("top",pv),left:r.to("left",pv)}},children:i.content}),i}return C(n,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(e){this.show();var t=n.defaultPositions,i=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast],limiter:mv,fitInViewport:!0},e),r=n._getOptimalPosition(i),o=parseInt(r.left),a=parseInt(r.top),s=r.name;Object.assign(this,{top:a,left:o,position:s})}},{key:"pin",value:function(e){var t=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){t.isVisible?t._startPinning(e):t._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(e){var t=this;this.attachTo(e);var n=kv(e.target),i=e.limiter?kv(e.limiter):mv;this.listenTo(Po.document,"scroll",(function(r,o){var a=o.target,s=n&&a.contains(n),c=i&&a.contains(i);!s&&!c&&n&&i||t.attachTo(e)}),{useCapture:!0}),this.listenTo(Po.window,"resize",(function(){t.attachTo(e)}))}},{key:"_stopPinning",value:function(){this.stopListening(Po.document,"scroll"),this.stopListening(Po.window,"resize")}}]),n}(ou);function kv(e){return Sn(e)?e:Ia(e)?e.commonAncestorContainer:"function"==typeof e?kv(e()):null}function bv(e,t){return e.top-t.height-gv.arrowVerticalOffset}function yv(e){return e.bottom+gv.arrowVerticalOffset}gv.arrowHorizontalOffset=25,gv.arrowVerticalOffset=10,gv._getOptimalPosition=_u,gv.defaultPositions={northWestArrowSouthWest:function(e,t){return{top:bv(e,t),left:e.left-gv.arrowHorizontalOffset,name:"arrow_sw"}},northWestArrowSouthMiddleWest:function(e,t){return{top:bv(e,t),left:e.left-.25*t.width-gv.arrowHorizontalOffset,name:"arrow_smw"}},northWestArrowSouth:function(e,t){return{top:bv(e,t),left:e.left-t.width/2,name:"arrow_s"}},northWestArrowSouthMiddleEast:function(e,t){return{top:bv(e,t),left:e.left-.75*t.width+gv.arrowHorizontalOffset,name:"arrow_sme"}},northWestArrowSouthEast:function(e,t){return{top:bv(e,t),left:e.left-t.width+gv.arrowHorizontalOffset,name:"arrow_se"}},northArrowSouthWest:function(e,t){return{top:bv(e,t),left:e.left+e.width/2-gv.arrowHorizontalOffset,name:"arrow_sw"}},northArrowSouthMiddleWest:function(e,t){return{top:bv(e,t),left:e.left+e.width/2-.25*t.width-gv.arrowHorizontalOffset,name:"arrow_smw"}},northArrowSouth:function(e,t){return{top:bv(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"}},northArrowSouthMiddleEast:function(e,t){return{top:bv(e,t),left:e.left+e.width/2-.75*t.width+gv.arrowHorizontalOffset,name:"arrow_sme"}},northArrowSouthEast:function(e,t){return{top:bv(e,t),left:e.left+e.width/2-t.width+gv.arrowHorizontalOffset,name:"arrow_se"}},northEastArrowSouthWest:function(e,t){return{top:bv(e,t),left:e.right-gv.arrowHorizontalOffset,name:"arrow_sw"}},northEastArrowSouthMiddleWest:function(e,t){return{top:bv(e,t),left:e.right-.25*t.width-gv.arrowHorizontalOffset,name:"arrow_smw"}},northEastArrowSouth:function(e,t){return{top:bv(e,t),left:e.right-t.width/2,name:"arrow_s"}},northEastArrowSouthMiddleEast:function(e,t){return{top:bv(e,t),left:e.right-.75*t.width+gv.arrowHorizontalOffset,name:"arrow_sme"}},northEastArrowSouthEast:function(e,t){return{top:bv(e,t),left:e.right-t.width+gv.arrowHorizontalOffset,name:"arrow_se"}},southWestArrowNorthWest:function(e,t){return{top:yv(e),left:e.left-gv.arrowHorizontalOffset,name:"arrow_nw"}},southWestArrowNorthMiddleWest:function(e,t){return{top:yv(e),left:e.left-.25*t.width-gv.arrowHorizontalOffset,name:"arrow_nmw"}},southWestArrowNorth:function(e,t){return{top:yv(e),left:e.left-t.width/2,name:"arrow_n"}},southWestArrowNorthMiddleEast:function(e,t){return{top:yv(e),left:e.left-.75*t.width+gv.arrowHorizontalOffset,name:"arrow_nme"}},southWestArrowNorthEast:function(e,t){return{top:yv(e),left:e.left-t.width+gv.arrowHorizontalOffset,name:"arrow_ne"}},southArrowNorthWest:function(e,t){return{top:yv(e),left:e.left+e.width/2-gv.arrowHorizontalOffset,name:"arrow_nw"}},southArrowNorthMiddleWest:function(e,t){return{top:yv(e),left:e.left+e.width/2-.25*t.width-gv.arrowHorizontalOffset,name:"arrow_nmw"}},southArrowNorth:function(e,t){return{top:yv(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"}},southArrowNorthMiddleEast:function(e,t){return{top:yv(e),left:e.left+e.width/2-.75*t.width+gv.arrowHorizontalOffset,name:"arrow_nme"}},southArrowNorthEast:function(e,t){return{top:yv(e),left:e.left+e.width/2-t.width+gv.arrowHorizontalOffset,name:"arrow_ne"}},southEastArrowNorthWest:function(e,t){return{top:yv(e),left:e.right-gv.arrowHorizontalOffset,name:"arrow_nw"}},southEastArrowNorthMiddleWest:function(e,t){return{top:yv(e),left:e.right-.25*t.width-gv.arrowHorizontalOffset,name:"arrow_nmw"}},southEastArrowNorth:function(e,t){return{top:yv(e),left:e.right-t.width/2,name:"arrow_n"}},southEastArrowNorthMiddleEast:function(e,t){return{top:yv(e),left:e.right-.75*t.width+gv.arrowHorizontalOffset,name:"arrow_nme"}},southEastArrowNorthEast:function(e,t){return{top:yv(e),left:e.right-t.width+gv.arrowHorizontalOffset,name:"arrow_ne"}}};var wv='',_v="widget-type-around";function Cv(e,t,n){return e&&Ev(e)&&!n.isInline(t)}function Av(e){return e.getAttribute(_v)}var xv="ck-widget_selected";function Ev(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Dv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.is("containerElement"))throw new jn.a("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Ov,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){var n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){var t=this.toDomElement(e),n=new Du;return n.set("content",wv),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),Mv(e,t,(function(e,t,n){return n.addClass(i(t.classes),e)}),(function(e,t,n){return n.removeClass(i(t.classes),e)})),e;function i(e){return Array.isArray(e)?e:[e]}}function Mv(e,t,n,i){var r=new dv;r.on("change:top",(function(t,r){r.oldDescriptor&&i(e,r.oldDescriptor,r.writer),r.newDescriptor&&n(e,r.newDescriptor,r.writer)})),t.setCustomProperty("addHighlight",(function(e,t,n){return r.add(t,n)}),e),t.setCustomProperty("removeHighlight",(function(e,t,n){return r.remove(t,n)}),e)}function Sv(e){var t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function Tv(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(function(n,i,r){t.setAttribute("contenteditable",r?"false":"true",e)})),e.on("change:isFocused",(function(n,i,r){r?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),e}function Iv(e,t){var n=e.getSelectedElement();if(n){var i=Av(e);if(i)return t.createPositionAt(n,i);if(t.schema.isBlock(n))return t.createPositionAfter(n)}var r=e.getSelectedBlocks().next().value;if(r){if(r.isEmpty)return t.createPositionAt(r,0);var o=t.createPositionAfter(r);return e.focus.isTouching(o)?o:t.createPositionBefore(r)}return e.focus}function Pv(e,t){var n=new Na(Po.window),i=n.getIntersection(e),r=t.height+gv.arrowVerticalOffset;if(e.top-r>n.top||e.bottom+r',tooltip:!0}),o.bind("isEnabled").to(r,"isEnabled"),e.listenTo(o,"execute",(function(){t.execute("horizontalLine"),t.editing.view.focus()})),o}))}}]),n}(Gu),zv=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"observe",value:function(e){var t=this;this.listenTo(e,"load",(function(e,n){var i=n.target;t.checkShouldIgnoreEventFromTarget(i)||"IMG"==i.tagName&&t._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}]),n}(Wo);function jv(e){var t=e.getSelectedElement();return t&&function(e){return!!e.getCustomProperty("image")&&Ev(e)}(t)?t:null}function Rv(e){return!!e&&e.is("element","image")}function Fv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.createElement("image",n),r=Iv(t.document.selection,t);t.insertContent(i,r),i.parent&&e.setSelection(i,"on")}function Vv(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var i=function(e,t){var n=Iv(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(i,"image")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)&&function(e){return p(e.focus.getAncestors()).every((function(e){return!e.is("element","image")}))}(n)}function Uv(e){var t,n=[],i=v(e.getChildren());try{for(i.s();!(t=i.n()).done;){var r=t.value;n.push(r),r.is("element")&&n.push.apply(n,p(r.getChildren()))}}catch(o){i.e(o)}finally{i.f()}return n.find((function(e){return e.is("element","img")}))}function Hv(e){return function(n){n.on("attribute:".concat(e,":image"),t)};function t(e,t,n){if(n.consumable.consume(t.item,e.name)){var i=n.writer,r=Uv(n.mapper.toViewElement(t.item));i.setAttribute(t.attributeKey,t.attributeNewValue||"",r)}}}var Wv=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"refresh",value:function(){this.isEnabled=Vv(this.editor.model)}},{key:"execute",value:function(e){var t=this.editor.model;t.change((function(n){var i,r=Array.isArray(e.source)?e.source:[e.source],o=v(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;Fv(n,t,{src:a})}}catch(s){o.e(s)}finally{o.f()}}))}}]),n}(qu),Kv=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,i=e.conversion;e.editing.view.addObserver(zv),t.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),i.for("dataDowncast").elementToElement({model:"image",view:function(e,t){var n=t.writer;return Gv(n)}}),i.for("editingDowncast").elementToElement({model:"image",view:function(e,t){var i=t.writer;return function(e,t,n){return t.setCustomProperty("image",!0,e),Dv(e,t,{label:function(){var t=Uv(e).getAttribute("alt");return t?"".concat(t," ").concat(n):n}})}(Gv(i),i,n("image widget"))}}),i.for("downcast").add(Hv("src")).add(Hv("alt")).add(function(){return function(t){t.on("attribute:srcset:image",e)};function e(e,t,n){if(n.consumable.consume(t.item,e.name)){var i=n.writer,r=Uv(n.mapper.toViewElement(t.item));if(null===t.attributeNewValue){var o=t.attributeOldValue;o.data&&(i.removeAttribute("srcset",r),i.removeAttribute("sizes",r),o.width&&i.removeAttribute("width",r))}else{var a=t.attributeNewValue;a.data&&(i.setAttribute("srcset",a.data,r),i.setAttribute("sizes","100vw",r),a.width&&i.setAttribute("width",a.width,r))}}}}()),i.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:function(e,t){var n=t.writer;return n.createElement("image",{src:e.getAttribute("src")})}}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(e){var t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}}).add(function(){return function(t){t.on("element:figure",e)};function e(e,t,n){if(n.consumable.test(t.viewItem,{name:!0,classes:"image"})){var i=Uv(t.viewItem);if(i&&i.hasAttribute("src")&&n.consumable.test(i,{name:!0})){var r=Qu(n.convertItem(i,t.modelCursor).modelRange.getItems());r&&(n.convertChildren(t.viewItem,r),n.updateConversionResult(r,t))}}}}()),e.commands.add("imageInsert",new Wv(e))}}],[{key:"pluginName",get:function(){return"ImageEditing"}}]),n}(Gu);function Gv(e){var t=e.createEmptyElement("img"),n=e.createContainerElement("figure",{class:"image"});return e.insert(e.createPositionAt(n,0),t),n}var $v=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.domEventType="mousedown",i}return C(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(va);n(62);var qv=["before","after"],Yv=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,Qv="ck-widget__type-around_disabled",Zv=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._currentFakeCaretModelElement=null,i}return C(n,null,[{key:"pluginName",get:function(){return"WidgetTypeAround"}}]),C(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view;this.on("change:isEnabled",(function(n,i,r){t.change((function(e){var n,i=v(t.document.roots);try{for(i.s();!(n=i.n()).done;){var o=n.value;r?e.removeClass(Qv,o):e.addClass(Qv,o)}}catch(a){i.e(a)}finally{i.f()}})),r||e.model.change((function(e){e.removeSelectionAttribute(_v)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(e,t){var n=this.editor,i=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),i.focus(),i.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(e,t,n,i){var r=this;this.listenTo(e,t,(function(){r.isEnabled&&n.apply(void 0,arguments)}),i)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var e=this.editor.model.document.selection,t=Av(e);if(!t)return!1;var n=e.getSelectedElement();return this._insertParagraph(n,t),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var e=this.editor,t=e.model.schema,n=e.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(function(e,n,r){var o=r.mapper.toViewElement(n.item);Cv(o,n.item,t)&&function(e,t,n){var i=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){var n=this.toDomElement(e);return function(e,t){var n,i=v(qv);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=new Rl({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+r],title:t[r]},children:[e.ownerDocument.importNode(Yv,!0)]});e.appendChild(o.render())}}catch(a){i.e(a)}finally{i.f()}}(n,t),function(e){var t=new Rl({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),i)}(r.writer,i,o)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var e=this,t=this.editor,n=t.model,i=n.document.selection,r=n.schema,o=t.editing.view;function a(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(o.document,"keydown",(function(t,n){Kr(n.keyCode)&&e._handleArrowKeyPress(t,n)}),{priority:zn.get("high")+10}),this._listenToIfEnabled(i,"change:range",(function(e,n){n.directChange&&t.model.change((function(e){e.removeSelectionAttribute(_v)}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var e=i.getSelectedElement();e&&Cv(t.editing.mapper.toViewElement(e),e,r)||t.model.change((function(e){e.removeSelectionAttribute(_v)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(function(t,n,i){var o=i.writer;if(e._currentFakeCaretModelElement){var s=i.mapper.toViewElement(e._currentFakeCaretModelElement);s&&(o.removeClass(qv.map(a),s),e._currentFakeCaretModelElement=null)}var c=n.selection.getSelectedElement();if(c){var l=i.mapper.toViewElement(c);if(Cv(l,c,r)){var u=Av(n.selection);u&&(o.addClass(a(u),l),e._currentFakeCaretModelElement=c)}}})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(function(e,n,i){i||t.model.change((function(e){e.removeSelectionAttribute(_v)}))}))}},{key:"_handleArrowKeyPress",value:function(e,t){var n,i=this.editor,r=i.model,o=r.document.selection,a=r.schema,s=i.editing.view,c=$r(t.keyCode,i.locale.contentLanguageDirection),l=s.document.selection.getSelectedElement();Cv(l,i.editing.mapper.toModelElement(l),a)?n=this._handleArrowKeyPressOnSelectedWidget(c):o.isCollapsed&&(n=this._handleArrowKeyPressWhenSelectionNextToAWidget(c)),n&&(t.preventDefault(),e.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(e){var t=this.editor.model,n=Av(t.document.selection);return t.change((function(t){return n?n!==(e?"after":"before")&&(t.removeSelectionAttribute(_v),!0):(t.setSelectionAttribute(_v,e?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(e){var t=this.editor,n=t.model,i=n.schema,r=t.plugins.get("Widget"),o=r._getObjectElementNextToSelection(e);return!!Cv(t.editing.mapper.toViewElement(o),o,i)&&(n.change((function(t){r._setSelectionOverElement(o),t.setSelectionAttribute(_v,e?"before":"after")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(i,r){var o=r.domTarget.closest(".ck-widget__type-around__button");if(o){var a=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(e,t){var n=e.closest(".ck-widget");return t.mapDomToView(n)}(o,n.domConverter),c=t.editing.mapper.toModelElement(s);e._insertParagraph(c,a),r.preventDefault(),i.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",(function(i,r){var o,a=n.document.selection.getSelectedElement(),s=t.editing.mapper.toModelElement(a),c=t.model.schema;e._insertParagraphAccordingToFakeCaretPosition()?o=!0:Cv(a,s,c)&&(e._insertParagraph(s,r.isSoft?"before":"after"),o=!0),o&&(r.preventDefault(),i.stop())}))}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var e=this,t=this.editor.editing.view,n=[Vr.enter,Vr.delete,Vr.backspace];this._listenToIfEnabled(t.document,"keydown",(function(t,i){n.includes(i.keyCode)||wh(i)||e._insertParagraphAccordingToFakeCaretPosition()}),{priority:zn.get("high")+1})}},{key:"_enableDeleteIntegration",value:function(){var e=this.editor,t=e.editing.view,n=e.model,i=n.schema;this._listenToIfEnabled(t.document,"delete",(function(t,r){var o=Av(n.document.selection);if(o){var a=r.direction,s=n.document.selection.getSelectedElement(),c="forward"==a;if("before"===o===c)e.execute("delete",{selection:n.createSelection(s,"on")});else{var l=i.getNearestSelectionRange(n.createPositionAt(s,o),a);if(l)if(l.isCollapsed){var u=n.createSelection(l.start);if(n.modifySelection(u,{direction:a}),u.focus.isEqual(l.start)){var d=function(e,t){var n,i=t,r=v(t.getAncestors({parentFirst:!0}));try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.childCount>1||e.isLimit(o))break;i=o}}catch(a){r.e(a)}finally{r.f()}return i}(i,l.start.parent);n.deleteContent(n.createSelection(d,"on"),{doNotAutoparagraph:!0})}else n.change((function(t){t.setSelection(l),e.execute(c?"forwardDelete":"delete")}))}else n.change((function(t){t.setSelection(l),e.execute(c?"forwardDelete":"delete")}))}r.preventDefault(),t.stop()}}),{priority:zn.get("high")+1})}},{key:"_enableInsertContentIntegration",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(function(e,i){var r=u(i,2),o=r[0],a=r[1];if(!a||a.is("documentSelection")){var s=Av(n);return s?(e.stop(),t.change((function(e){var i=n.getSelectedElement(),r=t.createPositionAt(i,s),a=e.createSelection(r),c=t.insertContent(o,a);return e.setSelection(a),c}))):void 0}}),{priority:"high"})}}]),n}(Gu);function Jv(e){var t=e.model;return function(n,i){var r=i.keyCode==Vr.arrowup,o=i.keyCode==Vr.arrowdown,a=i.shiftKey,s=t.document.selection;if(r||o){var c=o;if(!a||!function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,c)){var l=function(e,t,n){var i=e.model;if(n){var r=t.isCollapsed?t.focus:t.getLastPosition(),o=Xv(i,r,"forward");if(!o)return null;var a=i.createRange(r,o),s=ep(i.schema,a,"backward");return s&&r.isBefore(s)?i.createRange(r,s):null}var c=t.isCollapsed?t.focus:t.getFirstPosition(),l=Xv(i,c,"backward");if(!l)return null;var u=i.createRange(l,c),d=ep(i.schema,u,"forward");return d&&c.isAfter(d)?i.createRange(d,c):null}(e,s,c);l&&!l.isCollapsed&&function(e,t,n){var i=e.model,r=e.view.domConverter;if(n){var o=i.createSelection(t.start);i.modifySelection(o),o.focus.isAtEnd||t.start.isEqual(o.focus)||(t=i.createRange(o.focus,t.end))}var a,s,c=e.mapper.toViewRange(t),l=r.viewRangeToDom(c),u=Na.getDomRangeRects(l),d=v(u);try{for(d.s();!(s=d.n()).done;){var h=s.value;if(void 0!==a){if(Math.round(h.top)>=a)return!1;a=Math.max(a,Math.round(h.bottom))}else a=Math.round(h.bottom)}}catch(f){d.e(f)}finally{d.f()}return!0}(e,l,c)&&(t.change((function(e){var n=c?l.end:l.start;if(a){var i=t.createSelection(s.anchor);i.setFocus(n),e.setSelection(i)}else e.setSelection(n)})),n.stop(),i.preventDefault(),i.stopPropagation())}}}}function Xv(e,t,n){var i,r=e.schema,o=e.createRangeIn(t.root),a="forward"==n?"elementStart":"elementEnd",s=v(o.getWalker({startPosition:t,direction:n}));try{for(s.s();!(i=s.n()).done;){var c=i.value,l=c.previousPosition,u=c.item,d=c.type;if(r.isLimit(u)&&!r.isInline(u))return l;if(d==a&&r.isBlock(u))return null}}catch(h){s.e(h)}finally{s.f()}return null}function ep(e,t,n){var i="backward"==n?t.end:t.start;if(e.checkChild(i,"$text"))return i;var r,o=v(t.getWalker({direction:n}));try{for(o.s();!(r=o.n()).done;){var a=r.value.nextPosition;if(e.checkChild(a,"$text"))return a}}catch(s){o.e(s)}finally{o.f()}}n(64);var tp=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view,n=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(t,n,i){e._clearPreviouslySelectedWidgets(i.writer);var r,o=i.writer,a=o.document.selection,s=a.getSelectedElement(),c=null,l=v(a.getRanges());try{for(l.s();!(r=l.n()).done;){var u,d=r.value,h=v(d);try{for(h.s();!(u=h.n()).done;){var f=u.value,p=f.item;Ev(p)&&!np(p,c)&&(o.addClass(xv,p),e._previouslySelected.add(p),c=p,p==s&&o.setSelection(a.getRanges(),{fake:!0,label:Sv(s)}))}}catch(m){h.e(m)}finally{h.f()}}}catch(m){l.e(m)}finally{l.f()}}),{priority:"low"}),t.addObserver($v),this.listenTo(n,"mousedown",(function(){return e._onMousedown.apply(e,arguments)})),this.listenTo(n,"keydown",(function(){e._handleSelectionChangeOnArrowKeyPress.apply(e,arguments)}),{priority:"high"}),this.listenTo(n,"keydown",(function(){e._preventDefaultOnArrowKeyPress.apply(e,arguments)}),{priority:zn.get("high")-20}),this.listenTo(n,"keydown",Jv(this.editor.editing)),this.listenTo(n,"delete",(function(t,n){e._handleDelete("forward"==n.direction)&&(n.preventDefault(),t.stop())}),{priority:"high"})}},{key:"_onMousedown",value:function(e,t){var n=this.editor,i=n.editing.view,r=i.document,o=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(Ev(e))return!1;e=e.parent}return!1}(o)){if((jr.isSafari||jr.isGecko)&&t.domEvent.detail>=3){var a=n.editing.mapper,s=o.is("attributeElement")?o.findAncestor((function(e){return!e.is("attributeElement")})):o,c=a.toModelElement(s);t.preventDefault(),this.editor.model.change((function(e){e.setSelection(c,"in")}))}}else if(Ev(o)||(o=o.findAncestor(Ev),o)){t.preventDefault(),r.isFocused||i.focus();var l=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(l)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(e,t){var n=t.keyCode;if(Kr(n)){var i=this.editor.model,r=i.schema,o=i.document.selection,a=o.getSelectedElement(),s=$r(n,this.editor.locale.contentLanguageDirection);if(a&&r.isObject(a)){var c=s?o.getLastPosition():o.getFirstPosition(),l=r.getNearestSelectionRange(c,s?"forward":"backward");l&&(i.change((function(e){e.setSelection(l)})),t.preventDefault(),e.stop())}else if(o.isCollapsed){var u=this._getObjectElementNextToSelection(s);u&&r.isObject(u)&&(this._setSelectionOverElement(u),t.preventDefault(),e.stop())}}}},{key:"_preventDefaultOnArrowKeyPress",value:function(e,t){if(Kr(t.keyCode)){var n=this.editor.model,i=n.schema,r=n.document.selection.getSelectedElement();r&&i.isObject(r)&&(t.preventDefault(),e.stop())}}},{key:"_handleDelete",value:function(e){var t=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var i=this._getObjectElementNextToSelection(e);return i?(this.editor.model.change((function(e){for(var r=n.anchor.parent;r.isEmpty;){var o=r;r=o.parent,e.remove(o)}t._setSelectionOverElement(i)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(e){this.editor.model.change((function(t){t.setSelection(t.createRangeOn(e))}))}},{key:"_getObjectElementNextToSelection",value:function(e){var t=this.editor.model,n=t.schema,i=t.document.selection,r=t.createSelection(i);t.modifySelection(r,{direction:e?"forward":"backward"});var o=e?r.focus.nodeBefore:r.focus.nodeAfter;return o&&n.isObject(o)?o:null}},{key:"_clearPreviouslySelectedWidgets",value:function(e){var t,n=v(this._previouslySelected);try{for(n.s();!(t=n.n()).done;){var i=t.value;e.removeClass(xv,i)}}catch(r){n.e(r)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[Zv]}}]),n}(Gu);function np(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var ip=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Rv(e),Rv(e)&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();t.change((function(t){t.setAttribute("alt",e.newValue,n)}))}}]),n}(qu),rp=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new ip(this.editor))}}],[{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}]),n}(Gu);n(66);var op=function(e){A(n,e);var t=x(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o="ck-labeled-field-view-"+Ln(),a="ck-labeled-field-view-status-"+Ln();r.fieldView=i(D(r),o,a),r.set("label"),r.set("isEnabled",!0),r.set("errorText",null),r.set("infoText",null),r.set("class"),r.labelView=r._createLabelView(o),r.statusView=r._createStatusView(a),r.bind("_statusText").to(D(r),"errorText",D(r),"infoText",(function(e,t){return e||t}));var s=r.bindTemplate;return r.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",s.to("class"),s.if("isEnabled","ck-disabled",(function(e){return!e}))]},children:[r.labelView,r.fieldView,r.statusView]}),r}return C(n,[{key:"_createLabelView",value:function(e){var t=new lu(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}},{key:"_createStatusView",value:function(e){var t=new ou(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(function(e){return!e}))],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}},{key:"focus",value:function(){this.fieldView.focus()}}]),n}(ou);n(68);var ap=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e),i.set("value"),i.set("id"),i.set("placeholder"),i.set("isReadOnly",!1),i.set("hasError",!1),i.set("ariaDescribedById");var r=i.bindTemplate;return i.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",r.if("hasError","ck-error")],id:r.to("id"),placeholder:r.to("placeholder"),readonly:r.to("isReadOnly"),"aria-invalid":r.if("hasError",!0),"aria-describedby":r.to("ariaDescribedById")},on:{input:r.to("input")}}),i}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this);var t=function(t){e.element.value=t||0===t?t:""};t(this.value),this.on("change:value",(function(e,n,i){t(i)}))}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}}]),n}(ou);function sp(e,t,n){var i=new ap(e.locale);return i.set({id:t,ariaDescribedById:n}),i.bind("isReadOnly").to(e,"isEnabled",(function(e){return!e})),i.bind("hasError").to(e,"errorText",(function(e){return!!e})),i.on("input",(function(){e.errorText=null})),i}function cp(e){var t=e.view;t.listenTo(t.element,"submit",(function(e,n){n.preventDefault(),t.fire("submit")}),{useCapture:!0})}var lp='',up='';n(70),n(8);var dp=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.locale.t;return i.focusTracker=new Sl,i.keystrokes=new yl,i.labeledInput=i._createLabeledInputView(),i.saveButtonView=i._createButton(r("Save"),lp,"ck-button-save"),i.saveButtonView.type="submit",i.cancelButtonView=i._createButton(r("Cancel"),up,"ck-button-cancel","cancel"),i._focusables=new jl,i._focusCycler=new mu({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[i.labeledInput,i.saveButtonView,i.cancelButtonView]}),i}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),cp({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)}))}},{key:"_createButton",value:function(e,t,n,i){var r=new Su(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}},{key:"_createLabeledInputView",value:function(){var e=this.locale.t,t=new op(this.locale,sp);return t.label=e("Text alternative"),t.fieldView.placeholder=e("Text alternative"),t}}]),n}(ou);n(73),n(75);var hp=fu("px"),fp=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.positionLimiter=function(){var e=i.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},i.set("visibleView",null),i.view=new gv(e.locale),e.ui.view.body.add(i.view),e.ui.focusTracker.add(i.view.element),i._viewToStack=new Map,i._idToStack=new Map,i.set("_numberOfStacks",0),i.set("_singleViewMode",!1),i._rotatorView=i._createRotatorView(),i._fakePanelsView=i._createFakePanelsView(),i}return C(n,null,[{key:"pluginName",get:function(){return"ContextualBalloon"}}]),C(n,[{key:"hasView",value:function(e){return Array.from(this._viewToStack.keys()).includes(e)}},{key:"add",value:function(e){if(this.hasView(e.view))throw new jn.a("contextualballoon-add-view-exist",[this,e]);var t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));var n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}},{key:"remove",value:function(e){if(!this.hasView(e))throw new jn.a("contextualballoon-remove-view-not-exist",[this,e]);var t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}},{key:"updatePosition",value:function(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(e){this.visibleStack=e;var t=this._idToStack.get(e);if(!t)throw new jn.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}},{key:"_getStackId",value:function(e){return Array.from(this._idToStack.entries()).find((function(t){return t[1]===e}))[0]}},{key:"_showNextStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}},{key:"_showPrevStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}},{key:"_createRotatorView",value:function(){var e=this,t=new vp(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>1})),t.on("change:isNavigationVisible",(function(){return e.updatePosition()}),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(t,i){if(i<2)return"";var r=Array.from(e._idToStack.values()).indexOf(e._visibleStack)+1;return n("%0 of %1",[r,i])})),t.buttonNextView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showNextStack()})),t.buttonPrevView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showPrevStack()})),t}},{key:"_createFakePanelsView",value:function(){var e=new pp(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>=2?Math.min(e-1,2):0})),e.listenTo(this.view,"change:top",(function(){return e.updatePosition()})),e.listenTo(this.view,"change:left",(function(){return e.updatePosition()})),this.editor.ui.view.body.add(e),e}},{key:"_showView",value:function(e){var t=e.view,n=e.balloonClassName,i=void 0===n?"":n,r=e.withArrow,o=void 0===r||r,a=e.singleViewMode,s=void 0!==a&&a;this.view.class=i,this.view.withArrow=o,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var e=Array.from(this._visibleStack.values()).pop().position;return e&&!e.limiter&&(e=Object.assign({},e,{limiter:this.positionLimiter})),e}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}}]),n}(Gu),vp=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=e.t,o=i.bindTemplate;return i.set("isNavigationVisible",!0),i.focusTracker=new Sl,i.buttonPrevView=i._createButtonView(r("Previous"),''),i.buttonNextView=i._createButtonView(r("Next"),''),i.content=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",(function(e){return e?"":"ck-hidden"}))]},children:[i.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},i.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:i.content}]}),i}return C(n,[{key:"render",value:function(){c(O(n.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"showView",value:function(e){this.hideView(),this.content.add(e)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(e,t){var n=new Su(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}]),n}(ou),pp=function(e){A(n,e);var t=x(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o=r.bindTemplate;return r.set("top",0),r.set("left",0),r.set("height",0),r.set("width",0),r.set("numberOfPanels",0),r.content=r.createCollection(),r._balloonPanelView=i,r.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(function(e){return e?"":"ck-hidden"}))],style:{top:o.to("top",hp),left:o.to("left",hp),width:o.to("width",hp),height:o.to("height",hp)}},children:r.content}),r.on("change:numberOfPanels",(function(e,t,n,i){n>i?r._addPanels(n-i):r._removePanels(i-n),r.updatePosition()})),r}return C(n,[{key:"_addPanels",value:function(e){for(;e--;){var t=new ou;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}},{key:"_removePanels",value:function(e){for(;e--;){var t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var e=this._balloonPanelView,t=e.top,n=e.left,i=new Na(this._balloonPanelView.element),r=i.width,o=i.height;Object.assign(this,{top:t,left:n,width:r,height:o})}}}]),n}(ou);function mp(e){var t=e.editing.view,n=gv.defaultPositions;return{target:t.domConverter.viewToDom(t.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}var gp=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){c(O(n.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("imageTextAlternative",(function(i){var r=t.commands.get("imageTextAlternative"),o=new Su(i);return o.set({label:n("Change image text alternative"),icon:'',tooltip:!0}),o.bind("isEnabled").to(r,"isEnabled"),e.listenTo(o,"execute",(function(){e._showForm()})),o}))}},{key:"_createForm",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new dp(t.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){t.execute("imageTextAlternative",{newValue:e._form.labeledInput.fieldView.element.value}),e._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){e._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(t,n){e._hideForm(!0),n()})),this.listenTo(t.ui,"update",(function(){jv(n.selection)?e._isVisible&&function(e){var t=e.plugins.get("ContextualBalloon");if(jv(e.editing.view.document.selection)){var n=mp(e);t.updatePosition(n)}}(t):e._hideForm(!0)})),Lu({emitter:this._form,activator:function(){return e._isVisible},contextElements:[this._balloon.view.element],callback:function(){return e._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:mp(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select()}}},{key:"_hideForm",value:function(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[fp]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}]),n}(Gu),kp=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,null,[{key:"requires",get:function(){return[rp,gp]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}]),n}(Gu);function bp(e){var t,n=v(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i&&i.is("element","caption"))return i}}catch(r){n.e(r)}finally{n.f()}return null}function yp(e){var t=e.parent;return"figcaption"==e.name&&t&&"figure"==t.name&&t.hasClass("image")?{name:!0}:null}n(77);var wp=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view,i=t.model.schema,r=t.data,o=t.editing,a=t.t;i.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),t.model.document.registerPostFixer((function(t){return e._insertMissingModelCaptionElement(t)})),t.conversion.for("upcast").elementToElement({view:yp,model:"caption"}),r.downcastDispatcher.on("insert:caption",_p((function(e){return e.createContainerElement("figcaption")}),!1));var s=function(e,t){return function(n){var i=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,i),Pl({view:e,element:i,text:t}),Tv(i,n)}}(n,a("Enter image caption"));o.downcastDispatcher.on("insert:caption",_p(s)),o.downcastDispatcher.on("insert",this._fixCaptionVisibility((function(e){return e.item})),{priority:"high"}),o.downcastDispatcher.on("remove",this._fixCaptionVisibility((function(e){return e.position.parent})),{priority:"high"}),n.document.registerPostFixer((function(t){return e._updateCaptionVisibility(t)}))}},{key:"_updateCaptionVisibility",value:function(e){var t,n=this.editor.editing.mapper,i=this._lastSelectedCaption,r=this.editor.model.document.selection,o=r.getSelectedElement();if(o&&o.is("element","image")){var a=bp(o);t=n.toViewElement(a)}var s=Cp(r.getFirstPosition().parent);if(s&&(t=n.toViewElement(s)),t)return i?(i===t||(Ap(i,e),this._lastSelectedCaption=t),xp(t,e)):(this._lastSelectedCaption=t,xp(t,e));if(i){var c=Ap(i,e);return this._lastSelectedCaption=null,c}return!1}},{key:"_fixCaptionVisibility",value:function(e){var t=this;return function(n,i,r){var o=Cp(e(i)),a=t.editor.editing.mapper,s=r.writer;if(o){var c=a.toViewElement(o);c&&(o.childCount?s.removeClass("ck-hidden",c):s.addClass("ck-hidden",c))}}}},{key:"_insertMissingModelCaptionElement",value:function(e){var t,n=this.editor.model,i=n.document.differ.getChanges(),r=[],o=v(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;if("insert"==a.type&&"$text"!=a.name){var s=a.position.nodeAfter;if(s.is("element","image")&&!bp(s)&&r.push(s),!s.is("element","image")&&s.childCount){var c,l=v(n.createRangeIn(s).getItems());try{for(l.s();!(c=l.n()).done;){var u=c.value;u.is("element","image")&&!bp(u)&&r.push(u)}}catch(p){l.e(p)}finally{l.f()}}}}}catch(p){o.e(p)}finally{o.f()}for(var d=0,h=r;d1&&void 0!==arguments[1])||arguments[1];return function(n,i,r){var o=i.item;if((o.childCount||t)&&Rv(o.parent)){if(!r.consumable.consume(i.item,"insert"))return;var a=r.mapper.toViewElement(i.range.start.parent),s=e(r.writer),c=r.writer;o.childCount||c.addClass("ck-hidden",s),function(e,t,n,i){var r=i.writer.createPositionAt(n,"end");i.writer.insert(r,e),i.mapper.bindElements(t,e)}(s,i.item,a,r)}}}function Cp(e){var t=e.getAncestors({includeSelf:!0}).find((function(e){return"caption"==e.name}));return t&&t.parent&&"image"==t.parent.name?t:null}function Ap(e,t){return!e.childCount&&!e.hasClass("ck-hidden")&&(t.addClass("ck-hidden",e),!0)}function xp(e,t){return!!e.hasClass("ck-hidden")&&(t.removeClass("ck-hidden",e),!0)}n(79);var Ep=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.buttonView=new Su(e),i._fileInputView=new Dp(e),i._fileInputView.bind("acceptedType").to(D(i)),i._fileInputView.bind("allowMultipleFiles").to(D(i)),i._fileInputView.delegate("done").to(D(i)),i.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[i.buttonView,i._fileInputView]}),i.buttonView.on("execute",(function(){i._fileInputView.open()})),i}return C(n,[{key:"focus",value:function(){this.buttonView.focus()}}]),n}(ou),Dp=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e),i.set("acceptedType"),i.set("allowMultipleFiles",!1);var r=i.bindTemplate;return i.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:r.to("acceptedType"),multiple:r.to("allowMultipleFiles")},on:{change:r.to((function(){i.element&&i.element.files&&i.element.files.length&&i.fire("done",i.element.files),i.element.value=""}))}}),i}return C(n,[{key:"open",value:function(){this.element.click()}}]),n}(ou);function Mp(e){var t=e.map((function(e){return e.replace("+","\\+")}));return new RegExp("^image\\/(".concat(t.join("|"),")$"))}var Sp='',Tp=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor,t=e.t;e.ui.componentFactory.add("imageUpload",(function(n){var i=new Ep(n),r=e.commands.get("imageUpload"),o=e.config.get("image.upload.types"),a=Mp(o);return i.set({acceptedType:o.map((function(e){return"image/"+e})).join(","),allowMultipleFiles:!0}),i.buttonView.set({label:t("Insert image"),icon:Sp,tooltip:!0}),i.buttonView.bind("isEnabled").to(r),i.on("done",(function(t,n){var i=Array.from(n).filter((function(e){return a.test(e.type)}));i.length&&e.execute("imageUpload",{file:i})})),i}))}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}]),n}(Gu),Ip=function(){function e(t){w(this,e),this.context=t}return C(e,[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}]),e}();Qn(Ip,pr);var Pp=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new Zn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(e){if("string"!=typeof e)throw new jn.a("pendingactions-add-invalid-message",this);var t=Object.create(pr);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}},{key:"remove",value:function(e){this._actions.remove(e),this.hasAny=!!this._actions.length}},{key:Symbol.iterator,value:function(){return this._actions[Symbol.iterator]()}},{key:"first",get:function(){return this._actions.get(0)}}],[{key:"pluginName",get:function(){return"PendingActions"}}]),n}(Ip),Op=function(){function e(){var t=this;w(this,e);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(e){t.loaded=e.loaded}}return C(e,[{key:"read",value:function(e){var t=this,n=this._reader;return this.total=e.size,new Promise((function(i,r){n.onload=function(){var e=n.result;t._data=e,i(e)},n.onerror=function(){r("error")},n.onabort=function(){r("aborted")},t._reader.readAsDataURL(e)}))}},{key:"abort",value:function(){this._reader.abort()}},{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}}]),e}();Qn(Op,pr);var Np=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this;this.loaders=new Zn,this.loaders.on("add",(function(){return e._updatePendingAction()})),this.loaders.on("remove",(function(){return e._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0}))}},{key:"getLoader",value:function(e){return this._loadersMap.get(e)||null}},{key:"createLoader",value:function(e){var t=this;if(!this.createUploadAdapter)return Object(jn.c)("filerepository-no-upload-adapter"),null;var n=new Bp(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(e,n),e instanceof Promise&&n.file.then((function(e){t._loadersMap.set(e,n)})).catch((function(){})),n.on("change:uploaded",(function(){var e,n=0,i=v(t.loaders);try{for(i.s();!(e=i.n()).done;){var r=e.value;n+=r.uploaded}}catch(o){i.e(o)}finally{i.f()}t.uploaded=n})),n.on("change:uploadTotal",(function(){var e,n=0,i=v(t.loaders);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.uploadTotal&&(n+=r.uploadTotal)}}catch(o){i.e(o)}finally{i.f()}t.uploadTotal=n})),n}},{key:"destroyLoader",value:function(e){var t=this,n=e instanceof Bp?e:this.getLoader(e);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(e,i){e===n&&t._loadersMap.delete(i)}))}},{key:"_updatePendingAction",value:function(){var e=this.editor.plugins.get(Pp);if(this.loaders.length){if(!this._pendingAction){var t=this.editor.t,n=function(e){return"".concat(t("Upload in progress")," ").concat(parseInt(e),"%.")};this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[Pp]}}]),n}(Gu);Qn(Np,pr);var Bp=function(){function e(t,n){w(this,e),this.id=Ln(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=n(this),this._reader=new Op,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0})),this.set("uploadResponse",null)}return C(e,[{key:"read",value:function(){var e=this;if("idle"!=this.status)throw new jn.a("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((function(t){return e._reader.read(t)})).then((function(t){if("reading"!==e.status)throw e.status;return e.status="idle",t})).catch((function(t){if("aborted"===t)throw e.status="aborted","aborted";throw e.status="error",e._reader.error?e._reader.error:t}))}},{key:"upload",value:function(){var e=this;if("idle"!=this.status)throw new jn.a("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((function(){return e._adapter.upload()})).then((function(t){return e.uploadResponse=t,e.status="idle",t})).catch((function(t){if("aborted"===e.status)throw"aborted";throw e.status="error",t}))}},{key:"abort",value:function(){var e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(e){var t={};return t.promise=new Promise((function(n,i){t.rejecter=i,t.isFulfilled=!1,e.then((function(e){t.isFulfilled=!0,n(e)})).catch((function(e){t.isFulfilled=!0,i(e)}))})),t}},{key:"file",get:function(){var e=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(t){return e._filePromiseWrapper?t:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}}]),e}();Qn(Bp,pr),n(81),n(83),n(85);var Lp=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.placeholder="data:image/svg+xml;utf8,"+encodeURIComponent(''),i}return C(n,[{key:"init",value:function(){var e=this;this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(function(){return e.uploadStatusChange.apply(e,arguments)}))}},{key:"uploadStatusChange",value:function(e,t,n){var i=this.editor,r=t.item,o=r.getAttribute("uploadId");if(n.consumable.consume(t.item,e.name)){var a=i.plugins.get(Np),s=o?t.attributeNewValue:null,c=this.placeholder,l=i.editing.mapper.toViewElement(r),u=n.writer;if("reading"==s)return zp(l,u),void jp(c,l,u);if("uploading"==s){var d=a.loaders.get(o);return zp(l,u),void(d?(Rp(l,u),function(e,t,n,i){var r=function(e){var t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),r),n.on("change:uploadedPercent",(function(e,t,n){i.change((function(e){e.setStyle("width",n+"%",r)}))}))}(l,u,d,i.editing.view),function(e,t,n){if(n.data){var i=Uv(e);t.setAttribute("src",n.data,i)}}(l,u,d)):jp(c,l,u))}"complete"==s&&a.loaders.get(o)&&function(e,t,n){var i=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),i),setTimeout((function(){n.change((function(e){return e.remove(e.createRangeOn(i))}))}),3e3)}(l,u,i.editing.view),function(e,t){Vp(e,t,"progressBar")}(l,u),Rp(l,u),function(e,t){t.removeClass("ck-appear",e)}(l,u)}}}]),n}(Gu);function zp(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function jp(e,t,n){t.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",t);var i=Uv(t);i.getAttribute("src")!==e&&n.setAttribute("src",e,i),Fp(t,"placeholder")||n.insert(n.createPositionAfter(i),function(e){var t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function Rp(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),Vp(e,t,"placeholder")}function Fp(e,t){var n,i=v(e.getChildren());try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.getCustomProperty(t))return r}}catch(o){i.e(o)}finally{i.f()}}function Vp(e,t,n){var i=Fp(e,n);i&&t.remove(t.createRangeOn(i))}var Up=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){this.on("show:warning",(function(e,t){window.alert(t.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}},{key:"showInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}},{key:"_showNotification",value:function(e){var t="show:"+e.type+(e.namespace?":"+e.namespace:"");this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}]),n}(Ip),Hp=function(){function e(t){w(this,e),this.document=t}return C(e,[{key:"createDocumentFragment",value:function(e){return new eo(this.document,e)}},{key:"createElement",value:function(e,t,n){return new ar(this.document,e,t,n)}},{key:"createText",value:function(e){return new si(this.document,e)}},{key:"clone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e._clone(t)}},{key:"appendChild",value:function(e,t){return t._appendChild(e)}},{key:"insertChild",value:function(e,t,n){return n._insertChild(e,t)}},{key:"removeChildren",value:function(e,t,n){return n._removeChildren(e,t)}},{key:"remove",value:function(e){var t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}},{key:"replace",value:function(e,t){var n=e.parent;if(n){var i=n.getChildIndex(e);return this.removeChildren(i,1,n),this.insertChild(i,t,n),!0}return!1}},{key:"unwrapElement",value:function(e){var t=e.parent;if(t){var n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}},{key:"rename",value:function(e,t){var n=new ar(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){F(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"createPositionAt",value:function(e,t){return xr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Er(e,t)}},{key:"createRangeOn",value:function(e){return Er._createOn(e)}},{key:"createRangeIn",value:function(e){return Er._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Sr(e,t,n)}}]),e}(),Wp=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement(),t=e&&"image"===e.name||!1;this.isEnabled=Vv(this.editor.model)||t}},{key:"execute",value:function(e){var t=this.editor,n=t.model,i=t.plugins.get(Np);n.change((function(t){var r,o=Array.isArray(e.file)?e.file:[e.file],a=v(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;Kp(t,n,i,s)}}catch(c){a.e(c)}finally{a.f()}}))}}]),n}(qu);function Kp(e,t,n,i){var r=n.createLoader(i);r&&Fv(e,t,{uploadId:r.id})}var Gp=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),i}return C(n,null,[{key:"requires",get:function(){return[Np,Up,th]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}]),C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,i=t.model.schema,r=t.conversion,o=t.plugins.get(Np),a=Mp(t.config.get("image.upload.types"));i.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),t.commands.add("imageUpload",new Wp(t)),r.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(function(e,n){if(i=n.dataTransfer,!Array.from(i.types).includes("text/html")||""===i.getData("text/html")){var i,r=Array.from(n.dataTransfer.files).filter((function(e){return!!e&&a.test(e.type)})),o=n.targetRanges.map((function(e){return t.editing.mapper.toModelRange(e)}));t.model.change((function(n){n.setSelection(o),r.length&&(e.stop(),t.model.enqueueChange("default",(function(){t.execute("imageUpload",{file:r})})))}))}})),this.listenTo(t.plugins.get(th),"inputTransformation",(function(e,n){var i=Array.from(t.editing.view.createRangeIn(n.content)).filter((function(e){return!(!(t=e.item).is("element","img")||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))&&!e.item.getAttribute("uploadProcessed");var t})).map((function(e){return{promise:(t=e.item,new Promise((function(e,n){var i=t.getAttribute("src");fetch(i).then((function(e){return e.blob()})).then((function(t){var n=function(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}(t,i),r=n.replace("image/",""),o=new File([t],"image."+r,{type:n});e(o)})).catch(n)}))),imageElement:e.item};var t}));if(i.length){var r,a=new Hp(t.editing.view.document),s=v(i);try{for(s.s();!(r=s.n()).done;){var c=r.value;a.setAttribute("uploadProcessed",!0,c.imageElement);var l=o.createLoader(c.promise);l&&(a.setAttribute("src","",c.imageElement),a.setAttribute("uploadId",l.id,c.imageElement))}}catch(u){s.e(u)}finally{s.f()}}})),t.editing.view.document.on("dragover",(function(e,t){t.preventDefault()})),n.on("change",(function(){var i,r=n.differ.getChanges({includeChangesInGraveyard:!0}),a=v(r);try{for(a.s();!(i=a.n()).done;){var s=i.value;if("insert"==s.type&&"$text"!=s.name){var c,l=s.position.nodeAfter,u="$graveyard"==s.position.root.rootName,d=v($p(t,l));try{for(d.s();!(c=d.n()).done;){var h=c.value,f=h.getAttribute("uploadId");if(f){var p=o.loaders.get(f);p&&(u?p.abort():"idle"==p.status&&e._readAndUpload(p,h))}}}catch(m){d.e(m)}finally{d.f()}}}}catch(m){a.e(m)}finally{a.f()}}))}},{key:"_readAndUpload",value:function(e,t){var n=this,i=this.editor,r=i.model,o=i.locale.t,a=i.plugins.get(Np),s=i.plugins.get(Up);return r.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","reading",t)})),e.read().then((function(){var n=e.upload();if(jr.isSafari){var o=Uv(i.editing.mapper.toViewElement(t));i.editing.view.once("render",(function(){if(o.parent){var e=i.editing.view.domConverter.mapViewToDom(o.parent);if(e){var t=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=t}}}))}return r.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","uploading",t)})),n})).then((function(e){r.enqueueChange("transparent",(function(i){i.setAttributes({uploadStatus:"complete",src:e.default},t),n._parseAndSetSrcsetAttributeOnImage(e,t,i)})),c()})).catch((function(n){if("error"!==e.status&&"aborted"!==e.status)throw n;"error"==e.status&&n&&s.showWarning(n,{title:o("Upload failed"),namespace:"upload"}),c(),r.enqueueChange("transparent",(function(e){e.remove(t)}))}));function c(){r.enqueueChange("transparent",(function(e){e.removeAttribute("uploadId",t),e.removeAttribute("uploadStatus",t)})),a.destroyLoader(e)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(e,t,n){var i=0,r=Object.keys(e).filter((function(e){var t=parseInt(e,10);if(!isNaN(t))return i=Math.max(i,t),!0})).map((function(t){return"".concat(e[t]," ").concat(t,"w")})).join(", ");""!=r&&n.setAttribute("srcset",{data:r,width:i},t)}}]),n}(Gu);function $p(e,t){return Array.from(e.model.createRangeOn(t)).filter((function(e){return e.item.is("element","image")})).map((function(e){return e.item}))}var qp=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[Gp,Tp,Lp]}}]),n}(Gu);n(87);var Yp=function(e){A(n,e);var t=x(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(this,n),i=t.call(this,e);var o=i.bindTemplate;return i.set("class",r.class||null),i.children=i.createCollection(),r.children&&r.children.forEach((function(e){return i.children.add(e)})),i.set("_role",null),i.set("_ariaLabelledBy",null),r.labelView&&i.set({_role:"group",_ariaLabelledBy:r.labelView.id}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",o.to("class")],role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:i.children}),i}return n}(ou);n(89);var Qp=function(e){A(n,e);var t=x(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o=r._createActionButtons(e),a=o.insertButtonView,s=o.cancelButtonView;if(r.insertButtonView=a,r.cancelButtonView=s,r.dropdownView=r._createDropdownView(e),r.set("imageURLInputValue",""),r.focusTracker=new Sl,r.keystrokes=new yl,r._focusables=new jl,r._focusCycler=new mu({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.set("_integrations",new Zn),i)for(var c=function(){var e=u(d[l],2),t=e[0],n=e[1];"insertImageViaUrl"===t&&(n.fieldView.bind("value").to(D(r),"imageURLInputValue",(function(e){return e||""})),n.fieldView.on("input",(function(){r.imageURLInputValue=n.fieldView.element.value.trim()}))),n.name=t,r._integrations.add(n)},l=0,d=Object.entries(i);l',medium:tm,large:'',original:''},im=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._resizeUnit=e.config.get("image.resizeUnit"),i}return C(n,null,[{key:"requires",get:function(){return[em]}},{key:"pluginName",get:function(){return"ImageResizeButtons"}}]),C(n,[{key:"init",value:function(){var e=this.editor,t=e.config.get("image.resizeOptions"),n=e.commands.get("imageResize");this.bind("isEnabled").to(n);var i,r=v(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;this._registerImageResizeButton(o)}}catch(a){r.e(a)}finally{r.f()}this._registerImageResizeDropdown(t)}},{key:"_registerImageResizeButton",value:function(e){var t=this,n=this.editor,i=e.name,r=e.value,o=e.icon,a=r?r+this._resizeUnit:null;n.ui.componentFactory.add(i,(function(i){var r=new Su(i),s=n.commands.get("imageResize"),c=t._getOptionLabelValue(e,!0);if(!nm[o])throw new jn.a("imageresizebuttons-missing-icon",n,e);return r.set({label:c,icon:nm[o],tooltip:c,isToggleable:!0}),r.bind("isEnabled").to(t),r.bind("isOn").to(s,"value",rm(a)),t.listenTo(r,"execute",(function(){n.execute("imageResize",{width:a})})),r}))}},{key:"_registerImageResizeDropdown",value:function(e){var t=this,n=this.editor,i=n.t,r=e.find((function(e){return!e.value}));n.ui.componentFactory.add("imageResize",(function(o){var a=n.commands.get("imageResize"),s=zu(o,Iu),c=s.buttonView;return c.set({tooltip:i("Resize image"),commandValue:r.value,icon:tm,isToggleable:!0,label:t._getOptionLabelValue(r),withText:!0,class:"ck-resize-image-button"}),c.bind("label").to(a,"value",(function(e){return e&&e.width?e.width:t._getOptionLabelValue(r)})),s.bind("isOn").to(a),s.bind("isEnabled").to(t),Ru(s,t._getResizeDropdownListItemDefinitions(e,a)),s.listView.ariaLabel=i("Image resize list"),t.listenTo(s,"execute",(function(e){n.execute(e.source.commandName,{width:e.source.commandValue}),n.editing.view.focus()})),s}))}},{key:"_getOptionLabelValue",value:function(e,t){var n=this.editor.t;return e.label?e.label:t?e.value?n("Resize image to %0",e.value+this._resizeUnit):n("Resize image to the original size"):e.value?e.value+this._resizeUnit:n("Original")}},{key:"_getResizeDropdownListItemDefinitions",value:function(e,t){var n=this,i=new Zn;return e.map((function(e){var r=e.value?e.value+n._resizeUnit:null,o={type:"button",model:new Hf({commandName:"imageResize",commandValue:r,label:n._getOptionLabelValue(e),withText:!0,icon:null})};o.model.bind("isOn").to(t,"value",rm(r)),i.add(o)})),i}}]),n}(Gu);function rm(e){return function(t){return null===e&&t===e||t&&t.width===e}}var om=function(){function e(t){w(this,e),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}return C(e,[{key:"begin",value:function(e,t,n){var i=new Na(t);this.activeHandlePosition=function(e){for(var t=["top-left","top-right","bottom-right","bottom-left"],n=0,i=t;na.height?"width":"height",a.max=a[a.dominant];var s={width:a.width,height:a.height};return"width"==a.dominant?s.height=s.width/n.aspectRatio:s.width=s.height*n.aspectRatio,{width:Math.round(s.width),height:Math.round(s.height),widthPercents:Math.min(Math.round(n.originalWidthPercents/n.originalWidth*s.width*100)/100,100)}}},{key:"_getResizeHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}},{key:"_getHandleHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}},{key:"_appendHandles",value:function(e){for(var t,n=["top-left","top-right","bottom-right","bottom-left"],i=0,r=n;i0&&void 0!==arguments[0]?arguments[0]:[];return e.map(wm)}function wm(e){if("string"==typeof e){var t=e;km[t]?e=Object.assign({},km[t]):(Object(jn.c)("image-style-not-found",{name:t}),e={name:t})}else if(km[e.name]){var n=km[e.name],i=Object.assign({},e);for(var r in n)Object.prototype.hasOwnProperty.call(e,r)||(i[r]=n[r]);e=i}return"string"==typeof e.icon&&bm[e.icon]&&(e.icon=bm[e.icon]),e}var _m=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.data,i=e.editing;e.config.define("image.styles",["full","side"]);var r=ym(e.config.get("image.styles"));t.extend("image",{allowAttributes:"imageStyle"});var o=function(e){return function(t,n,i){if(i.consumable.consume(n.item,t.name)){var r=fm(n.attributeNewValue,e),o=fm(n.attributeOldValue,e),a=i.mapper.toViewElement(n.item),s=i.writer;o&&s.removeClass(o.className,a),r&&s.addClass(r.className,a)}}}(r);i.downcastDispatcher.on("attribute:imageStyle:image",o),n.downcastDispatcher.on("attribute:imageStyle:image",o),n.upcastDispatcher.on("element:figure",function(e){var t=e.filter((function(e){return!e.isDefault}));return function(e,n,i){if(n.modelRange){var r=n.viewItem,o=Qu(n.modelRange.getItems());if(i.schema.checkAttribute(o,"imageStyle")){var a,s=v(t);try{for(s.s();!(a=s.n()).done;){var c=a.value;i.consumable.consume(r,{classes:c.className})&&i.writer.setAttribute("imageStyle",c.name,o)}}catch(l){s.e(l)}finally{s.f()}}}}}(r),{priority:"low"}),e.commands.add("imageStyle",new hm(e,r))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}}]),n}(Gu);n(95);var Cm=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e,t=function(e,t){var n,i=v(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t[r.title]&&(r.title=t[r.title])}}catch(o){i.e(o)}finally{i.f()}return e}(ym(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles),n=v(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._createButton(i)}}catch(r){n.e(r)}finally{n.f()}}},{key:"_createButton",value:function(e){var t=this,n=this.editor,i="imageStyle:"+e.name;n.ui.componentFactory.add(i,(function(i){var r=n.commands.get("imageStyle"),o=new Su(i);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(r,"isEnabled"),o.bind("isOn").to(r,"value",(function(t){return t===e.name})),t.listenTo(o,"execute",(function(){n.execute("imageStyle",{value:e.name}),n.editing.view.focus()})),o}))}},{key:"localizedDefaultStylesTitles",get:function(){var e=this.editor.t;return{"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}}],[{key:"pluginName",get:function(){return"ImageStyleUI"}}]),n}(Gu),Am=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor;if(t.plugins.has("BalloonToolbar")){var n=t.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(e){(function(e){var t=e.getSelectedElement();return!(!t||!Ev(t))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(function(){e._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){c(O(n.prototype),"destroy",this).call(this);var e,t=v(this._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var i=e.value;i.view.destroy()}}catch(r){t.e(r)}finally{t.f()}}},{key:"register",value:function(e,t){var n=t.ariaLabel,i=t.items,r=t.getRelatedElement,o=t.balloonClassName,a=void 0===o?"ck-toolbar-container":o;if(i.length){var s=this.editor,c=s.t,l=new Fu(s.locale);if(l.ariaLabel=n||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new jn.a("widget-toolbar-duplicated",this,{toolbarId:e});l.fillFromConfig(i,s.ui.componentFactory),this._toolbarDefinitions.set(e,{view:l,getRelatedElement:r,balloonClassName:a})}else Object(jn.c)("widget-toolbar-no-items",{toolbarId:e})}},{key:"_updateToolbarsVisibility",value:function(){var e,t=0,n=null,i=null,r=v(this._toolbarDefinitions.values());try{for(r.s();!(e=r.n()).done;){var o=e.value,a=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){var s=a.getAncestors().length;s>t&&(t=s,n=a,i=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}}catch(c){r.e(c)}finally{r.f()}i&&this._showToolbar(i,n)}},{key:"_hideToolbar",value:function(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(e,t){var n=this;this._isToolbarVisible(e)?xm(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:Em(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var e,t=v(n._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var i=e.value;if(n._isToolbarVisible(i)){var r=i.getRelatedElement(n.editor.editing.view.document.selection);xm(n.editor,r)}}}catch(o){t.e(o)}finally{t.f()}})))}},{key:"_isToolbarVisible",value:function(e){return this._balloon.visibleView===e.view}},{key:"_isToolbarInBalloon",value:function(e){return this._balloon.hasView(e.view)}}],[{key:"requires",get:function(){return[fp]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}]),n}(Gu);function xm(e,t){var n=e.plugins.get("ContextualBalloon"),i=Em(e,t);n.updatePosition(i)}function Em(e,t){var n=e.editing.view,i=gv.defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,Pv]}}var Dm=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._childCommands=[],i}return C(n,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(Nm),t.editing.view.focus()})),o}))}}]),n}(Gu),Lm=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.attributes=new Set,i._overrideUid=null,i}return C(n,null,[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}]),C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model,i=t.editing.view,r=t.locale,o=n.document.selection;this.listenTo(i.document,"keydown",(function(t,n){if(o.isCollapsed&&!(n.shiftKey||n.altKey||n.ctrlKey)){var i=n.keyCode==Vr.arrowright,a=n.keyCode==Vr.arrowleft;if(i||a){var s=r.contentLanguageDirection,c=!1;c="ltr"===s&&i||"rtl"===s&&a?e._handleForwardMovement(n):e._handleBackwardMovement(n),!0===c&&t.stop()}}}),{priority:zn.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(function(t,n){e._isNextGravityRestorationSkipped?e._isNextGravityRestorationSkipped=!1:e._isGravityOverridden&&(!n.directChange&&Fm(o.getFirstPosition(),e.attributes)||e._restoreGravity())}))}},{key:"registerAttribute",value:function(e){this.attributes.add(e)}},{key:"_handleForwardMovement",value:function(e){var t=this.attributes,n=this.editor.model.document.selection,i=n.getFirstPosition();return!this._isGravityOverridden&&(!i.isAtStart||!zm(n,t))&&(Fm(i,t)?(Rm(e),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(e){var t=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return this._isGravityOverridden?(Rm(e),this._restoreGravity(),jm(n,t,r),!0):r.isAtStart?!!zm(i,t)&&(Rm(e),jm(n,t,r),!0):function(e,t){return Fm(e.getShiftedBy(-1),t)}(r,t)?r.isAtEnd&&!zm(i,t)&&Fm(r,t)?(Rm(e),jm(n,t,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(e){return e.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var e=this;this.editor.model.change((function(t){t.restoreSelectionGravity(e._overrideUid),e._overrideUid=null}))}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}}]),n}(Gu);function zm(e,t){var n,i=v(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(e.hasAttribute(r))return!0}}catch(o){i.e(o)}finally{i.f()}return!1}function jm(e,t,n){var i=n.nodeBefore;e.change((function(e){i?e.setSelectionAttribute(i.getAttributes()):e.removeSelectionAttribute(t)}))}function Rm(e){e.preventDefault()}function Fm(e,t){var n,i=e.nodeBefore,r=e.nodeAfter,o=v(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=i?i.getAttribute(a):void 0;if((r?r.getAttribute(a):void 0)!==s)return!0}}catch(c){o.e(c)}finally{o.f()}return!1}function Vm(e,t,n,i){return i.createRange(Um(e,t,n,!0,i),Um(e,t,n,!1,i))}function Um(e,t,n,i,r){for(var o=e.textNode||(i?e.nodeBefore:e.nodeAfter),a=null;o&&o.getAttribute(t)==n;)a=o,o=i?o.previousSibling:o.nextSibling;return a?r.createPositionAt(a,i?"before":"after"):e}var Hm=function(){function e(){w(this,e),this._definitions=new Set}return C(e,[{key:"add",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._definitions.add(e)})):this._definitions.add(e)}},{key:"getDispatcher",value:function(){var e=this;return function(t){t.on("attribute:linkHref",(function(t,n,i){if(i.consumable.test(n.item,"attribute:linkHref")){var r,o=i.writer,a=o.document.selection,s=v(e._definitions);try{for(s.s();!(r=s.n()).done;){var c=r.value,l=o.createAttributeElement("a",c.attributes,{priority:5});o.setCustomProperty("link",!0,l),c.callback(n.attributeNewValue)?n.item.is("selection")?o.wrap(a.getFirstRange(),l):o.wrap(i.mapper.toViewRange(n.range),l):o.unwrap(i.mapper.toViewRange(n.range),l)}}catch(u){s.e(u)}finally{s.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var e=this;return function(t){t.on("attribute:linkHref:image",(function(t,n,i){var r,o=i.mapper.toViewElement(n.item),a=Array.from(o.getChildren()).find((function(e){return"a"===e.name})),s=v(e._definitions);try{for(s.s();!(r=s.n()).done;){var c=r.value,l=li(c.attributes);if(c.callback(n.attributeNewValue)){var d,h=v(l);try{for(h.s();!(d=h.n()).done;){var f=u(d.value,2),p=f[0],m=f[1];"class"===p?i.writer.addClass(m,a):i.writer.setAttribute(p,m,a)}}catch(_){h.e(_)}finally{h.f()}}else{var g,k=v(l);try{for(k.s();!(g=k.n()).done;){var b=u(g.value,2),y=b[0],w=b[1];"class"===y?i.writer.removeClass(w,a):i.writer.removeAttribute(y,a)}}catch(_){k.e(_)}finally{k.f()}}}}catch(_){s.e(_)}finally{s.f()}}))}}},{key:"length",get:function(){return this._definitions.size}}]),e}(),Wm=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.manualDecorators=new Zn,i.automaticDecorators=new Hm,i}return C(n,[{key:"restoreManualDecoratorStates",value:function(){var e,t=v(this.manualDecorators);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(i){t.e(i)}finally{t.f()}}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Qu(t.selection.getSelectedBlocks());Nd(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.selection.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref"));var i,r=v(this.manualDecorators);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.value=this._getDecoratorStateFromModel(o.id)}}catch(a){r.e(a)}finally{r.f()}}},{key:"execute",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.editor.model,r=i.document.selection,o=[],a=[];for(var s in n)n[s]?o.push(s):a.push(s);i.change((function(n){if(r.isCollapsed){var s=r.getFirstPosition();if(r.hasAttribute("linkHref")){var c=Vm(s,"linkHref",r.getAttribute("linkHref"),i);n.setAttribute("linkHref",e,c),o.forEach((function(e){n.setAttribute(e,!0,c)})),a.forEach((function(e){n.removeAttribute(e,c)})),n.setSelection(n.createPositionAfter(c.end.nodeBefore))}else if(""!==e){var l=li(r.getAttributes());l.set("linkHref",e),o.forEach((function(e){l.set(e,!0)}));var u=n.createText(e,l);i.insertContent(u,s),n.setSelection(n.createPositionAfter(u))}["linkHref"].concat(o,a).forEach((function(e){n.removeSelectionAttribute(e)}))}else{var d,h=i.schema.getValidRanges(r.getRanges(),"linkHref"),f=[],p=v(r.getSelectedBlocks());try{for(p.s();!(d=p.n()).done;){var m=d.value;i.schema.checkAttribute(m,"linkHref")&&f.push(n.createRangeOn(m))}}catch(A){p.e(A)}finally{p.f()}var g,k=f.slice(),b=v(h);try{for(b.s();!(g=b.n()).done;){var y=g.value;t._isRangeToUpdate(y,f)&&k.push(y)}}catch(A){b.e(A)}finally{b.f()}var w,_=v(k);try{var C=function(){var t=w.value;n.setAttribute("linkHref",e,t),o.forEach((function(e){n.setAttribute(e,!0,t)})),a.forEach((function(e){n.removeAttribute(e,t)}))};for(_.s();!(w=_.n()).done;)C()}catch(A){_.e(A)}finally{_.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(e){var t=this.editor.model,n=t.document,i=Qu(n.selection.getSelectedBlocks());return Nd(i,t.schema)?i.getAttribute(e):n.selection.getAttribute(e)}},{key:"_isRangeToUpdate",value:function(e,t){var n,i=v(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.containsRange(e))return!1}}catch(o){i.e(o)}finally{i.f()}return!0}}]),n}(qu),Km=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Qu(t.selection.getSelectedBlocks());Nd(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref")}},{key:"execute",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection,i=e.commands.get("link");t.change((function(e){var r,o=n.isCollapsed?[Vm(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:n.getRanges(),a=v(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(e.removeAttribute("linkHref",s),i){var c,l=v(i.manualDecorators);try{for(l.s();!(c=l.n()).done;){var u=c.value;e.removeAttribute(u.id,s)}}catch(d){l.e(d)}finally{l.f()}}}}catch(d){a.e(d)}finally{a.f()}}))}}]),n}(qu),Gm=function e(t){var n=t.id,i=t.label,r=t.attributes,o=t.defaultValue;w(this,e),this.id=n,this.set("value"),this.defaultValue=o,this.label=i,this.attributes=r};Qn(Gm,pr),n(97);var $m="automatic",qm=/^(https?:)?\/\//,Ym=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("link",{addTargetToExternalLinks:!1}),i}return C(n,null,[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[Lm,Dh,th]}}]),C(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Pd}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(e,t){return Pd(Od(e),t)}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(e){return e.getAttribute("href")}}}),e.commands.add("link",new Wm(e)),e.commands.add("unlink",new Km(e));var t=function(e,t){var n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((function(e){return e.label&&n[e.label]&&(e.label=n[e.label]),e})),t}(e.t,function(e){var t=[];if(e)for(var n=0,i=Object.entries(e);n0&&void 0!==arguments[0]?arguments[0]:"https://",t=this.locale.t,n=new op(this.locale,sp);return n.label=t("Link URL"),n.fieldView.placeholder=e+"example.com",n}},{key:"_createButton",value:function(e,t,n,i){var r=new Su(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}},{key:"_createManualDecoratorSwitches",value:function(e){var t,n=this,i=this.createCollection(),r=v(e.manualDecorators);try{var o=function(){var r=t.value,o=new Bu(n.locale);o.set({name:r.id,label:r.label,withText:!0}),o.bind("isOn").toMany([r,e],"value",(function(e,t){return void 0===t&&void 0===e?r.defaultValue:e})),o.on("execute",(function(){r.set("value",!o.isOn)})),i.add(o)};for(r.s();!(t=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}return i}},{key:"_createFormChildren",value:function(e){var t=this.createCollection();if(t.add(this.urlInputView),e.length){var n=new ou;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((function(e){return{tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(n)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}]),n}(ou);n(101);var eg=function(e){A(n,e);var t=x(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=e.t;return i.focusTracker=new Sl,i.keystrokes=new yl,i.previewButtonView=i._createPreviewButton(),i.unlinkButtonView=i._createButton(r("Unlink"),'',"unlink"),i.editButtonView=i._createButton(r("Edit link"),'',"edit"),i.set("href"),i._focusables=new jl,i._focusCycler=new mu({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[i.previewButtonView,i.editButtonView,i.unlinkButtonView]}),i}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(e,t,n){var i=new Su(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.delegate("execute").to(this,n),i}},{key:"_createPreviewButton",value:function(){var e=new Su(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(function(e){return e&&Od(e)})),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(function(e){return e||n("This link has no URL")})),e.bind("isEnabled").to(this,"href",(function(e){return!!e})),e.template.tag="a",e.template.eventListeners={},e}}]),n}(ou),tg="link-ui",ng=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor;e.editing.view.addObserver(Jm),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(fp),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:tg,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:tg,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){c(O(n.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var e=this,t=this.editor,n=new eg(t.locale),i=t.commands.get("link"),r=t.commands.get("unlink");return n.bind("href").to(i,"value"),n.editButtonView.bind("isEnabled").to(i),n.unlinkButtonView.bind("isEnabled").to(r),this.listenTo(n,"edit",(function(){e._addFormView()})),this.listenTo(n,"unlink",(function(){t.execute("unlink"),e._hideUI()})),n.keystrokes.set("Esc",(function(t,n){e._hideUI(),n()})),n.keystrokes.set(Id,(function(t,n){e._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),i=t.config.get("link.defaultProtocol"),r=new Xm(t.locale,n,i);return r.urlInputView.fieldView.bind("value").to(n,"value"),r.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),r.saveButtonView.bind("isEnabled").to(n),this.listenTo(r,"submit",(function(){var n=r.urlInputView.fieldView.element.value,o=Bd(n,i);t.execute("link",o,r.getDecoratorSwitchesState()),e._closeFormView()})),this.listenTo(r,"cancel",(function(){e._closeFormView()})),r.keystrokes.set("Esc",(function(t,n){e._closeFormView(),n()})),r}},{key:"_createToolbarLinkButton",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),i=t.t;t.keystrokes.set(Id,(function(t,i){i(),n.isEnabled&&e._showUI(!0)})),t.ui.componentFactory.add("link",(function(t){var r=new Su(t);return r.isEnabled=!0,r.label=i("Link"),r.icon='',r.keystroke=Id,r.tooltip=!0,r.isToggleable=!0,r.bind("isEnabled").to(n,"isEnabled"),r.bind("isOn").to(n,"value",(function(e){return!!e})),e.listenTo(r,"execute",(function(){return e._showUI(!0)})),r}))}},{key:"_enableUserBalloonInteractions",value:function(){var e=this,t=this.editor.editing.view.document;this.listenTo(t,"click",(function(){e._getSelectedLinkElement()&&e._showUI()})),this.editor.keystrokes.set("Tab",(function(t,n){e._areActionsVisible&&!e.actionsView.focusTracker.isFocused&&(e.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(t,n){e._isUIVisible&&(e._hideUI(),n())})),Lu({emitter:this.formView,activator:function(){return e._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return e._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var e=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=e.value||""}}},{key:"_closeFormView",value:function(){var e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var e=this,t=this.editor,n=t.editing.view.document,i=this._getSelectedLinkElement(),r=a(),o=function(){var t=e._getSelectedLinkElement(),n=a();i&&!t||!i&&n!==r?e._hideUI():e._isUIVisible&&e._balloon.updatePosition(e._getBalloonPositionData()),i=t,r=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(e){return e.is("element")}))}this.listenTo(t.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}},{key:"_getBalloonPositionData",value:function(){var e=this.editor.editing.view,t=this.editor.model,n=e.document,i=null;if(t.markers.has(tg)){var r=Array.from(this.editor.editing.mapper.markerNameToElements(tg)),o=e.createRange(e.createPositionBefore(r[0]),e.createPositionAfter(r[r.length-1]));i=e.domConverter.viewRangeToDom(o)}else{var a=this._getSelectedLinkElement(),s=n.selection.getFirstRange();i=a?e.domConverter.mapViewToDom(a):e.domConverter.viewRangeToDom(s)}return{target:i}}},{key:"_getSelectedLinkElement",value:function(){var e=this.editor.editing.view,t=e.document.selection;if(t.isCollapsed)return ig(t.getFirstPosition());var n=t.getFirstRange().getTrimmed(),i=ig(n.start),r=ig(n.end);return i&&i==r&&e.createRangeIn(i).getTrimmed().isEqual(n)?i:null}},{key:"_showFakeVisualSelection",value:function(){var e=this.editor.model;e.change((function(t){var n=e.document.selection.getFirstRange();if(e.markers.has(tg))t.updateMarker(tg,{range:n});else if(n.start.isAtEnd){var i=rg(n,e.document.selection.focus,t);t.addMarker(tg,{usingOperation:!1,affectsData:!1,range:i})}else t.addMarker(tg,{usingOperation:!1,affectsData:!1,range:n})}))}},{key:"_hideFakeVisualSelection",value:function(){var e=this.editor.model;e.markers.has(tg)&&e.change((function(e){e.removeMarker(tg)}))}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}}],[{key:"requires",get:function(){return[fp]}},{key:"pluginName",get:function(){return"LinkUI"}}]),n}(Gu);function ig(e){return e.getAncestors().find((function(e){return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}function rg(e,t,n){var i=[e.start.path[0]+1,0],r=n.createPositionFromPath(e.start.root,i,"toNext"),o=n.createRange(r,e.end);return o.start.path[0]>e.end.path[0]?n.createRange(t):r.isAtStart&&r.isAtEnd?rg(o,t,n):o}var og=function(e){A(n,e);var t=x(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.type=i,r}return C(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,i=Array.from(n.selection.getSelectedBlocks()).filter((function(e){return sg(e,t.schema)})),r=!0===this.value;t.change((function(t){if(r){for(var n=i[i.length-1].nextSibling,o=Number.POSITIVE_INFINITY,a=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var s=n.getAttribute("listIndent");s=n;)o>r.getAttribute("listIndent")&&(o=r.getAttribute("listIndent")),r.getAttribute("listIndent")==o&&e[t?"unshift":"push"](r),r=r[t?"previousSibling":"nextSibling"]}function sg(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}var cg=function(e){A(n,e);var t=x(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r._indentBy="forward"==i?1:-1,r}return C(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,i=Array.from(n.selection.getSelectedBlocks());t.change((function(t){for(var n=i[i.length-1],r=n.nextSibling;r&&"listItem"==r.name&&r.getAttribute("listIndent")>n.getAttribute("listIndent");)i.push(r),r=r.nextSibling;e._indentBy<0&&(i=i.reverse());var o,a=v(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=s.getAttribute("listIndent")+e._indentBy;c<0?t.rename(s,"paragraph"):t.setAttribute("listIndent",c,s)}}catch(l){a.e(l)}finally{a.f()}e.fire("_executeCleanup",i)}))}},{key:"_checkEnabled",value:function(){var e=Qu(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){for(var t=e.getAttribute("listIndent"),n=e.getAttribute("listType"),i=e.previousSibling;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=t;){if(i.getAttribute("listIndent")==t)return i.getAttribute("listType")==n;i=i.previousSibling}return!1}return!0}}]),n}(qu);function lg(e,t){var n=t.mapper,i=t.writer,r="numbered"==e.getAttribute("listType")?"ol":"ul",o=function(e){var t=e.createContainerElement("li");return t.getFillerOffset=pg,t}(i),a=i.createContainerElement(r,null);return i.insert(i.createPositionAt(a,0),o),n.bindElements(e,o),o}function ug(e,t,n,i){var r=t.parent,o=n.mapper,a=n.writer,s=o.toViewPosition(i.createPositionBefore(e)),c=fg(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),l=e.previousSibling;if(c&&c.getAttribute("listIndent")==e.getAttribute("listIndent")){var u=o.toViewElement(c);s=a.breakContainer(a.createPositionAfter(u))}else if(l&&"listItem"==l.name){s=o.toViewPosition(i.createPositionAt(l,"end"));var d=o.findMappedViewAncestor(s),h=function(e){var t,n=v(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if("ul"==i.name||"ol"==i.name)return i}}catch(r){n.e(r)}finally{n.f()}return null}(d);s=h?a.createPositionBefore(h):a.createPositionAt(d,"end")}else s=o.toViewPosition(i.createPositionBefore(e));if(s=hg(s),a.insert(s,r),l&&"listItem"==l.name){var f,p=o.toViewElement(l),m=a.createRange(a.createPositionAt(p,0),s).getWalker({ignoreElementEnd:!0}),g=v(m);try{for(g.s();!(f=g.n()).done;){var k=f.value;if(k.item.is("element","li")){var b=a.breakContainer(a.createPositionBefore(k.item)),y=k.item.parent,w=a.createPositionAt(t,"end");dg(a,w.nodeBefore,w.nodeAfter),a.move(a.createRangeOn(y),w),m.position=b}}}catch(M){g.e(M)}finally{g.f()}}else{var _=r.nextSibling;if(_&&(_.is("element","ul")||_.is("element","ol"))){var C,A=null,x=v(_.getChildren());try{for(x.s();!(C=x.n()).done;){var E=C.value,D=o.toModelElement(E);if(!(D&&D.getAttribute("listIndent")>e.getAttribute("listIndent")))break;A=E}}catch(M){x.e(M)}finally{x.f()}A&&(a.breakContainer(a.createPositionAfter(A)),a.move(a.createRangeOn(A.parent),a.createPositionAt(t,"end")))}}dg(a,r,r.nextSibling),dg(a,r.previousSibling,r)}function dg(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function hg(e){return e.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))}function fg(e,t){for(var n=!!t.sameIndent,i=!!t.smallerIndent,r=t.listIndent,o=e;o&&"listItem"==o.name;){var a=o.getAttribute("listIndent");if(n&&r==a||i&&r>a)return o;o="forward"===t.direction?o.nextSibling:o.previousSibling}return null}function vg(e,t,n,i){e.ui.componentFactory.add(t,(function(r){var o=e.commands.get(t),a=new Su(r);return a.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(function(){e.execute(t),e.editing.view.focus()})),a}))}function pg(){var e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:lr.call(this)}function mg(e){return function(t,n,i){var r=i.consumable;if(r.test(n.item,"insert")&&r.test(n.item,"attribute:listType")&&r.test(n.item,"attribute:listIndent")){r.consume(n.item,"insert"),r.consume(n.item,"attribute:listType"),r.consume(n.item,"attribute:listIndent");var o=n.item;ug(o,lg(o,i),i,e)}}}function gg(e,t,n){if(n.consumable.consume(t.item,"attribute:listType")){var i=n.mapper.toViewElement(t.item),r=n.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));var o=i.parent,a="numbered"==t.attributeNewValue?"ol":"ul";r.rename(a,o)}}function kg(e,t,n){var i=n.mapper.toViewElement(t.item).parent,r=n.writer;dg(r,i,i.nextSibling),dg(r,i.previousSibling,i);var o,a=v(t.item.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.consumable.consume(s,"insert")}}catch(c){a.e(c)}finally{a.f()}}function bg(e,t,n){if("listItem"!=t.item.name){for(var i=n.mapper.toViewPosition(t.range.start),r=n.writer,o=[];("ul"==i.parent.name||"ol"==i.parent.name)&&(i=r.breakContainer(i),"li"==i.parent.name);){var a=i,s=r.createPositionAt(i.parent,"end");if(!a.isEqual(s)){var c=r.remove(r.createRange(a,s));o.push(c)}i=r.createPositionAfter(i.parent)}if(o.length>0){for(var l=0;l0){var d=dg(r,u,u.nextSibling);d&&d.parent==u&&i.offset--}}dg(r,i.nodeBefore,i.nodeAfter)}}}function yg(e,t,n){var i=n.mapper.toViewPosition(t.position),r=i.nodeBefore,o=i.nodeAfter;dg(n.writer,r,o)}function wg(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){var i=n.writer,r=i.createElement("listItem"),o=function(e){for(var t=0,n=e.parent;n;){if(n.is("element","li"))t++;else{var i=n.previousSibling;i&&i.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);i.setAttribute("listIndent",o,r);var a=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(i.setAttribute("listType",a,r),!n.safeInsert(r,t.modelCursor))return;var s=function(e,t,n){var i,r=n.writer,o=n.schema,a=r.createPositionAfter(e),s=v(t);try{for(s.s();!(i=s.n()).done;){var c=i.value;if("ul"==c.name||"ol"==c.name)a=n.convertItem(c,a).modelCursor;else{var l=n.convertItem(c,r.createPositionAt(e,"end")),u=l.modelRange.start.nodeAfter;u&&u.is("element")&&!o.checkChild(e,u.name)&&(e=l.modelCursor.parent.is("element","listItem")?l.modelCursor.parent:Eg(l.modelCursor),a=r.createPositionAfter(e))}}}catch(d){s.e(d)}finally{s.f()}return a}(r,t.viewItem.getChildren(),n);t.modelRange=i.createRange(t.modelCursor,s),n.updateConversionResult(r,t)}}function _g(e,t,n){if(n.consumable.test(t.viewItem,{name:!0}))for(var i=Array.from(t.viewItem.getChildren()),r=0,o=i;r0)for(;a&&a.is("element","listItem");)a._setAttribute("listIndent",a.getAttribute("listIndent")+l),a=a.nextSibling}}}function Eg(e){var t,n=new Xa({startPosition:e});do{t=n.next()}while(!t.value.item.is("element","listItem"));return t.value.item}function Dg(e,t,n,i,r,o){var a,s=fg(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),c=r.mapper,l=r.writer,u=s?s.getAttribute("listIndent"):null;if(s)if(u==e){var d=c.toViewElement(s).parent;a=l.createPositionAfter(d)}else{var h=o.createPositionAt(s,"end");a=c.toViewPosition(h)}else a=n;a=hg(a);for(var f=0,v=p(i.getChildren());fn){var a=void 0;null===i?(i=r-n,a=n):(i>r&&(i=r),a=r-i),t.setAttribute("listIndent",a,e),o=!0}else i=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function k(e){for(var n=[],i=null;e&&e.is("element","listItem");){var r=e.getAttribute("listIndent");if(i&&i.getAttribute("listIndent")>r&&(n=n.slice(0,r+1)),0!=r)if(n[r]){var a=n[r];e.getAttribute("listType")!=a&&(t.setAttribute("listType",a,e),o=!0)}else n[r]=e.getAttribute("listType");i=e,e=e.nextSibling}}}(t.model,e)})),r.mapper.registerViewToModelLength("li",Tg),i.mapper.registerViewToModelLength("li",Tg),r.mapper.on("modelToViewPosition",Ag(r.view)),r.mapper.on("viewToModelPosition",(n=t.model,function(e,t){var i=t.viewPosition,r=i.parent,o=t.mapper;if("ul"==r.name||"ol"==r.name){if(i.isAtEnd){var a=o.toModelElement(i.nodeBefore),s=o.getModelLength(i.nodeBefore);t.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var c=o.toModelElement(i.nodeAfter);t.modelPosition=n.createPositionBefore(c)}e.stop()}else if("li"==r.name&&i.nodeBefore&&("ul"==i.nodeBefore.name||"ol"==i.nodeBefore.name)){for(var l=o.toModelElement(r),u=1,d=i.nodeBefore;d&&Mg(d);)u+=o.getModelLength(d),d=d.previousSibling;t.modelPosition=n.createPositionBefore(l).getShiftedBy(u),e.stop()}})),i.mapper.on("modelToViewPosition",Ag(r.view)),t.conversion.for("editingDowncast").add((function(e){e.on("insert",bg,{priority:"high"}),e.on("insert:listItem",mg(t.model)),e.on("attribute:listType:listItem",gg,{priority:"high"}),e.on("attribute:listType:listItem",kg,{priority:"low"}),e.on("attribute:listIndent:listItem",function(e){return function(t,n,i){if(i.consumable.consume(n.item,"attribute:listIndent")){var r=i.mapper.toViewElement(n.item),o=i.writer;o.breakContainer(o.createPositionBefore(r)),o.breakContainer(o.createPositionAfter(r));var a=r.parent,s=a.previousSibling,c=o.createRangeOn(a);o.remove(c),s&&s.nextSibling&&dg(o,s,s.nextSibling),Dg(n.attributeOldValue+1,n.range.start,c.start,r,i,e),ug(n.item,r,i,e);var l,u=v(n.item.getChildren());try{for(u.s();!(l=u.n()).done;){var d=l.value;i.consumable.consume(d,"insert")}}catch(h){u.e(h)}finally{u.f()}}}}(t.model)),e.on("remove:listItem",function(e){return function(t,n,i){var r=i.mapper.toViewPosition(n.position).getLastMatchingPosition((function(e){return!e.item.is("element","li")})).nodeAfter,o=i.writer;o.breakContainer(o.createPositionBefore(r)),o.breakContainer(o.createPositionAfter(r));var a=r.parent,s=a.previousSibling,c=o.createRangeOn(a),l=o.remove(c);s&&s.nextSibling&&dg(o,s,s.nextSibling),Dg(i.mapper.toModelElement(r).getAttribute("listIndent")+1,n.position,c.start,r,i,e);var u,d=v(o.createRangeIn(l).getItems());try{for(d.s();!(u=d.n()).done;){var h=u.value;i.mapper.unbindViewElement(h)}}catch(f){d.e(f)}finally{d.f()}t.stop()}}(t.model)),e.on("remove",yg,{priority:"low"})})),t.conversion.for("dataDowncast").add((function(e){e.on("insert",bg,{priority:"high"}),e.on("insert:listItem",mg(t.model))})),t.conversion.for("upcast").add((function(e){e.on("element:ul",_g,{priority:"high"}),e.on("element:ol",_g,{priority:"high"}),e.on("element:li",Cg,{priority:"high"}),e.on("element:li",wg)})),t.model.on("insertContent",xg,{priority:"high"}),t.commands.add("numberedList",new og(t,"numbered")),t.commands.add("bulletedList",new og(t,"bulleted")),t.commands.add("indentList",new cg(t,"forward")),t.commands.add("outdentList",new cg(t,"backward"));var o=r.view.document;this.listenTo(o,"enter",(function(t,n){var i=e.editor.model.document,r=i.selection.getLastPosition().parent;i.selection.isCollapsed&&"listItem"==r.name&&r.isEmpty&&(e.editor.execute("outdentList"),n.preventDefault(),t.stop())})),this.listenTo(o,"delete",(function(t,n){if("backward"===n.direction){var i=e.editor.model.document.selection;if(i.isCollapsed){var r=i.getFirstPosition();if(r.isAtStart){var o=r.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(e.editor.execute("outdentList"),n.preventDefault(),t.stop()))}}}}),{priority:"high"});var a=function(t){return function(n,i){e.editor.commands.get(t).isEnabled&&(e.editor.execute(t),i())}};t.keystrokes.set("Tab",a("indentList")),t.keystrokes.set("Shift+Tab",a("outdentList"))}},{key:"afterInit",value:function(){var e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[ev]}}]),n}(Gu);function Tg(e){var t,n=1,i=v(e.getChildren());try{for(i.s();!(t=i.n()).done;){var r=t.value;if("ul"==r.name||"ol"==r.name){var o,a=v(r.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;n+=Tg(s)}}catch(c){a.e(c)}finally{a.f()}}}}catch(c){i.e(c)}finally{i.f()}return n}var Ig=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this.editor.t;vg(this.editor,"numberedList",e("Numbered List"),''),vg(this.editor,"bulletedList",e("Bulleted List"),'')}}]),n}(Gu);function Pg(e,t){return function(e){e.on("attribute:url:media",n)};function n(n,i,r){if(r.consumable.consume(i.item,n.name)){var o=i.attributeNewValue,a=r.writer,s=r.mapper.toViewElement(i.item),c=p(s.getChildren()).find((function(e){return e.getCustomProperty("media-content")}));a.remove(c);var l=e.getMediaViewElement(a,o,t);a.insert(a.createPositionAt(s,0),l)}}}function Og(e){var t=e.getSelectedElement();return t&&function(e){return!!e.getCustomProperty("media")&&Ev(e)}(t)?t:null}function Ng(e,t,n,i){var r=e.createContainerElement("figure",{class:"media"});return e.insert(e.createPositionAt(r,0),t.getMediaViewElement(e,n,i)),r}function Bg(e){var t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function Lg(e,t,n){e.change((function(i){var r=i.createElement("media",{url:t});e.insertContent(r,n),i.setSelection(r,"on")}))}var zg=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,i=Iv(t,e),r=Bg(t),o=i.parent;o.isEmpty&&!e.schema.isLimit(o)&&(o=o.parent),this.value=r?r.getAttribute("url"):null,this.isEnabled=n.checkChild(o,"media")}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection,i=Bg(n);if(i)t.change((function(t){t.setAttribute("url",e,i)}));else{var r=Iv(n,t);Lg(t,e,r)}}}]),n}(qu),jg=function(){function e(t,n){w(this,e);var i=n.providers,r=n.extraProviders||[],o=new Set(n.removeProviders),a=i.concat(r).filter((function(e){var t=e.name;return t?!o.has(t):(Object(jn.c)("media-embed-no-provider-name",{provider:e}),!1)}));this.locale=t,this.providerDefinitions=a}return C(e,[{key:"hasMedia",value:function(e){return!!this._getMedia(e)}},{key:"getMediaViewElement",value:function(e,t,n){return this._getMedia(t).getViewElement(e,n)}},{key:"_getMedia",value:function(e){if(!e)return new Rg(this.locale);e=e.trim();var t,n=v(this.providerDefinitions);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.html,o=i.url;Array.isArray(o)||(o=[o]);var a,s=v(o);try{for(s.s();!(a=s.n()).done;){var c=a.value,l=this._getUrlMatches(e,c);if(l)return new Rg(this.locale,e,l,r)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){n.e(u)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(e,t){var n=e.match(t);if(n)return n;var i=e.replace(/^https?:\/\//,"");return n=i.match(t),n||(i=i.replace(/^www\./,""),n=i.match(t),n||null)}}]),e}(),Rg=function(){function e(t,n,i,r){w(this,e),this.url=this._getValidUrl(n),this._t=t.t,this._match=i,this._previewRenderer=r}return C(e,[{key:"getViewElement",value:function(e,t){var n,i={};if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(i["data-oembed-url"]=this.url),t.renderForEditingView&&(i.class="ck-media__wrapper");var r=this._getPreviewHtml(t);n=e.createRawElement("div",i,(function(e){e.innerHTML=r}))}else this.url&&(i.url=this.url),n=e.createEmptyElement("oembed",i);return e.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var e=new Mu,t=new Du;return e.text=this._t("Open media in new tab"),t.content='',t.viewBox="0 0 64 42",new Rl({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(e){return e?e.match(/^https?/)?e:"https://"+e:null}}]),e}();n(103);var Fg=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(e){return'
')}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function(e){return'
')}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:function(e){return'
')}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:function(e){return'
')}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),i.registry=new jg(e.locale,e.config.get("mediaEmbed")),i}return C(n,null,[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}]),C(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,i=e.conversion,r=e.config.get("mediaEmbed.previewsInData"),o=this.registry;e.commands.add("mediaEmbed",new zg(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),i.for("dataDowncast").elementToElement({model:"media",view:function(e,t){var n=t.writer,i=e.getAttribute("url");return Ng(n,o,i,{renderMediaPreview:i&&r})}}),i.for("dataDowncast").add(Pg(o,{renderMediaPreview:r})),i.for("editingDowncast").elementToElement({model:"media",view:function(e,t){var i=t.writer,r=e.getAttribute("url");return function(e,t,n){return t.setCustomProperty("media",!0,e),Dv(e,t,{label:n})}(Ng(i,o,r,{renderForEditingView:!0}),i,n("media widget"))}}),i.for("editingDowncast").add(Pg(o,{renderForEditingView:!0})),i.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:function(e,t){var n=t.writer,i=e.getAttribute("url");if(o.hasMedia(i))return n.createElement("media",{url:i})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(e,t){var n=t.writer,i=e.getAttribute("data-oembed-url");if(o.hasMedia(i))return n.createElement("media",{url:i})}})}}]),n}(Gu),Vg=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=%]+$/,Ug=function(e){A(n,e);var t=x(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._timeoutId=null,i._positionToInsert=null,i}return C(n,null,[{key:"requires",get:function(){return[th,Jh]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}]),C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document;this.listenTo(t.plugins.get(th),"inputTransformation",(function(){var t=n.selection.getFirstRange(),i=Xc.fromPosition(t.start);i.stickiness="toPrevious";var r=Xc.fromPosition(t.end);r.stickiness="toNext",n.once("change:data",(function(){e._embedMediaBetweenPositions(i,r),i.detach(),r.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(function(){e._timeoutId&&(Po.window.clearTimeout(e._timeoutId),e._positionToInsert.detach(),e._timeoutId=null,e._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(e,t){var n,i=this,r=this.editor,o=r.plugins.get(Fg).registry,a=new ks(e,t),s=a.getWalker({ignoreElementEnd:!0}),c="",l=v(s);try{for(l.s();!(n=l.n()).done;){var u=n.value;u.item.is("$textProxy")&&(c+=u.item.data)}}catch(d){l.e(d)}finally{l.f()}c=c.trim(),c.match(Vg)&&o.hasMedia(c)&&r.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Xc.fromPosition(e),this._timeoutId=Po.window.setTimeout((function(){r.model.change((function(e){var t;i._timeoutId=null,e.remove(a),a.detach(),"$graveyard"!==i._positionToInsert.root.rootName&&(t=i._positionToInsert),Lg(r.model,c,t),i._positionToInsert.detach(),i._positionToInsert=null}))}),100)):a.detach()}}]),n}(Gu);n(105);var Hg=function(e){A(n,e);var t=x(n);function n(e,i){var r;w(this,n),r=t.call(this,i);var o=i.t;return r.focusTracker=new Sl,r.keystrokes=new yl,r.set("mediaURLInputValue",""),r.urlInputView=r._createUrlInput(),r.saveButtonView=r._createButton(o("Save"),lp,"ck-button-save"),r.saveButtonView.type="submit",r.saveButtonView.bind("isEnabled").to(D(r),"mediaURLInputValue",(function(e){return!!e})),r.cancelButtonView=r._createButton(o("Cancel"),up,"ck-button-cancel","cancel"),r._focusables=new jl,r._focusCycler=new mu({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r._validators=e,r.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[r.urlInputView,r.saveButtonView,r.cancelButtonView]}),r}return C(n,[{key:"render",value:function(){var e=this;c(O(n.prototype),"render",this).call(this),cp({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var t=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.urlInputView.element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"isValid",value:function(){this.resetFormStatus();var e,t=v(this._validators);try{for(t.s();!(e=t.n()).done;){var n=e.value,i=n(this);if(i)return this.urlInputView.errorText=i,!1}}catch(r){t.e(r)}finally{t.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var e=this,t=this.locale.t,n=new op(this.locale,sp),i=n.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),n.label=t("Media URL"),n.infoText=this._urlInputViewInfoDefault,i.placeholder="https://example.com",i.on("input",(function(){n.infoText=i.element.value?e._urlInputViewInfoTip:e._urlInputViewInfoDefault,e.mediaURLInputValue=i.element.value.trim()})),n}},{key:"_createButton",value:function(e,t,n,i){var r=new Su(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(e){this.urlInputView.fieldView.element.value=e.trim()}}]),n}(ou),Wg=function(e){A(n,e);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("mediaEmbed"),i=t.plugins.get(Fg).registry;t.ui.componentFactory.add("mediaEmbed",(function(r){var o=zu(r),a=new Hg(function(e,t){return[function(t){if(!t.url.length)return e("The URL must not be empty.")},function(n){if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(t.t,i),t.locale);return e._setUpDropdown(o,a,n,t),e._setUpForm(o,a,n),o}))}},{key:"_setUpDropdown",value:function(e,t,n){var i=this.editor,r=i.t,o=e.buttonView;function a(){i.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),o.set({label:r("Insert media"),icon:'',tooltip:!0}),o.on("open",(function(){t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus()}),{priority:"low"}),e.on("submit",(function(){t.isValid()&&(i.execute("mediaEmbed",t.url),a())})),e.on("change:isOpen",(function(){return t.resetFormStatus()})),e.on("cancel",(function(){return a()}))}},{key:"_setUpForm",value:function(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e}))}}],[{key:"requires",get:function(){return[Fg]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}]),n}(Gu);function Kg(e,t){if(e.childCount){var n=new Hp(e.document),i=function(e,t){var n,i=t.createRangeIn(e),r=new ui({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[],a=v(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("elementStart"===s.type&&r.match(s.item)){var c=$g(s.item);o.push({element:s.item,id:c.id,order:c.order,indent:c.indent})}}}catch(l){a.e(l)}finally{a.f()}return o}(e,n);if(i.length){var r=null,o=1;i.forEach((function(e,a){var s,c,l=function(e,t){if(!e)return!0;if(e.id!==t.id)return!0;var n,i=t.element.previousSibling;return!i||(n=i,!(n.is("element","ol")||n.is("element","ul")))}(i[a-1],e),u=l?null:i[a-1],d=(c=e,(s=u)?c.indent-s.indent:c.indent-1);if(l&&(r=null,o=1),!r||0!==d){var h=function(e,t){var n=new RegExp("@list l".concat(e.id,":level").concat(e.indent,"\\s*({[^}]*)"),"gi"),i=/mso-level-number-format:([^;]*);/gi,r=n.exec(t),o="decimal";if(r&&r[1]){var a=i.exec(r[1]);a&&a[1]&&(o=a[1].trim())}return{type:"bullet"!==o&&"image"!==o?"ol":"ul",style:o}}(e,t);if(r){if(e.indent>o){var f=r.getChild(r.childCount-1),p=f.getChild(f.childCount-1);r=Gg(h,p,n),o+=1}else if(e.indent(\s+)<\/span>/g,(function(e,t){return 1===t.length?" ":Array(t.length+1).join("  ").substr(0,t.length)}))}function Zg(e,t){var n=new DOMParser,i=function(e){return Qg(Qg(e)).replace(/([\s]*?)[\r\n]+(\s*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/ <\//g," <\/o:p>/g," ").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>(\s*[\r\n]\s*)<")}(function(e){var t=/<\/body>(.*?)(<\/html>|$)/,n=e.match(t);return n&&n[1]&&(e=e.slice(0,n.index)+e.slice(n.index).replace(n[1],"")),e}(e=e.replace(/