qms-angular 1.1.50 → 1.1.52

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/bundles/qms-angular.umd.js +124 -66
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/breadcrumb/breadcrumb.js +2 -2
  4. package/esm2015/lib/components/button/button.js +3 -3
  5. package/esm2015/lib/components/dialog/dialog.js +2 -2
  6. package/esm2015/lib/components/qms-nav-drawer/models/qms-nav-drawer.model.js +2 -2
  7. package/esm2015/lib/components/qms-nav-drawer/qms-nav-drawer.component.js +34 -13
  8. package/esm2015/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.js +12 -12
  9. package/esm2015/lib/components/qms-stepper/qms-stepper.component.js +1 -1
  10. package/esm2015/lib/components/related/popup/related-popup.component.js +1 -1
  11. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +1 -1
  12. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +4 -4
  13. package/esm2015/lib/components/select-include-children/select-include-children.component.js +1 -1
  14. package/esm2015/lib/components/select-process-data-tree/select-process-data-tree.component.js +1 -1
  15. package/esm2015/lib/components/select-process-document/select-process-document.component.js +1 -1
  16. package/esm2015/lib/components/tree/tree.component.js +1 -1
  17. package/esm2015/lib/components/treeNew/tree.component.js +1 -1
  18. package/esm2015/lib/pipe/safe-html.pipe.js +21 -0
  19. package/esm2015/lib/qms-angular.module.js +4 -2
  20. package/esm2015/lib/qms-ckeditor-components/common/helper/checkNullHelper.js +4 -0
  21. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn-connection.service.js +11 -2
  22. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.js +5 -1
  23. package/esm2015/public-api.js +1 -1
  24. package/esm2015/qms-angular.js +23 -22
  25. package/fesm2015/qms-angular.js +100 -44
  26. package/fesm2015/qms-angular.js.map +1 -1
  27. package/lib/components/qms-nav-drawer/models/qms-nav-drawer.model.d.ts +4 -1
  28. package/lib/components/qms-nav-drawer/qms-nav-drawer.component.d.ts +14 -3
  29. package/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.d.ts +5 -5
  30. package/lib/pipe/safe-html.pipe.d.ts +7 -0
  31. package/lib/qms-ckeditor-components/common/helper/checkNullHelper.d.ts +1 -0
  32. package/package.json +1 -1
  33. package/qms-angular.d.ts +22 -21
  34. package/qms-angular.metadata.json +1 -1
  35. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  36. package/src/lib/components/qms-nav-drawer/qms-nav-drawer.component.scss +25 -5
  37. package/src/lib/components/select-department-tree/select-department-tree.component.scss +4 -0
  38. package/src/themes/core/_table-pure-gap.scss +76 -8
  39. package/src/themes/core/_table.scss +221 -212
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @license Copyright (c) 2003-2023, CKSource - Frederico Knabben. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource - Frederico Knabben. All rights reserved.
3
3
  * For licensing, see LICENSE.md.
4
4
  */
5
5
  !function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 of %1","Align center":"Align center","Align left":"Align left","Align right":"Align right",Aquamarine:"Aquamarine",Big:"Big",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Characters: %0":"Characters: %0","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent",Default:"Default","Dim grey":"Dim grey","Document colors":"Document colors","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Font Background Color":"Font Background Color","Font Color":"Font Color","Font Family":"Font Family","Font Size":"Font Size","Full size image":"Full size image",Green:"Green",Grey:"Grey","Horizontal line":"Horizontal line",Huge:"Huge","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","Increase indent":"Increase indent","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Inserting image failed":"Inserting image failed",Italic:"Italic",Justify:"Justify","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next","Numbered List":"Numbered List",Orange:"Orange",Original:"Original","Page break":"Page break",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Remove Format":"Remove Format","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Rich Text Editor":"Rich Text Editor","Rich Text Editor, %0":"Rich Text Editor, %0","Right aligned image":"Right aligned image",Save:"Save","Select all":"Select all","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image",Small:"Small",Source:"Source",Strikethrough:"Strikethrough",Subscript:"Subscript",Superscript:"Superscript","Text alignment":"Text alignment","Text alignment toolbar":"Text alignment toolbar","Text alternative":"Text alternative",Tiny:"Tiny",Turquoise:"Turquoise",Underline:"Underline",Undo:"Undo","Upload failed":"Upload failed","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar","Words: %0":"Words: %0",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClassicEditor=e():t.ClassicEditor=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=93)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));class o extends Error{constructor(t,e,n){super(`${t}${n?` ${JSON.stringify(n)}`:""}${r(t)}`),this.name="CKEditorError",this.context=e,this.data=n}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new o(t.message,e);throw n.stack=t.stack,n}}function i(t,e){console.warn(...s(t,e))}function r(t){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-${t}`}function s(t,e){const n=r(t);return e?[t,e,n]:[t,n]}},function(t,e,n){"use strict";var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},o=[],i=0;i<t.length;i++){var r=t[i],c=e.base?r[0]+e.base:r[0],l=n[c]||0,d="".concat(c," ").concat(l);n[c]=l+1;var u=a(d),h={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(s[u].references++,s[u].updater(h)):s.push({identifier:d,updater:m(h,e),references:1}),o.push(d)}return o}function l(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var d,u=(d=[],function(t,e){return d[t]=e,d.filter(Boolean).join("\n")});function h(t,e,n,o){var i=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=u(e,i);else{var r=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function k(t,e,n){var o=n.css,i=n.media,r=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var p=null,g=0;function m(t,e){var n,o,i;if(e.singleton){var r=g++;n=p||(p=l(e)),o=h.bind(null,n,r,!1),i=h.bind(null,n,r,!0)}else n=l(e),o=k.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var i=a(n[o]);s[i].references--}for(var r=c(t,e),l=0;l<n.length;l++){var d=a(n[l]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}n=r}}}},function(t,e,n){"use strict";function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],o=!0,i=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);o=!0);}catch(t){i=!0,r=t}finally{try{o||null==a.return||a.return()}finally{if(i)throw r}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}t.exports=function(t){var e=o(t,4),n=e[1],i=e[3];if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),a="/*# ".concat(s," */"),c=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(c).concat([a]).join("\n")}return[n].join("\n")}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(i[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);o&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},,function(t,e,n){"use strict";var o=n(9),i="object"==typeof self&&self&&self.Object===Object&&self,r=o.a||i||Function("return this")();e.a=r},function(t,e,n){"use strict";(function(t){var o=n(5),i=n(92),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===r?o.a.Buffer:void 0,c=(a?a.isBuffer:void 0)||i.a;e.a=c}).call(this,n(11)(t))},function(t,e,n){"use strict";(function(t){var o=n(9),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=r&&r.exports===i&&o.a.process,a=function(){try{var t=r&&r.require&&r.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();e.a=a}).call(this,n(11)(t))},function(t,e,n){"use strict";(function(t){var o=n(0);const i="27.1.0";e.a=i;const r="object"==typeof window?window:t;if(r.CKEDITOR_VERSION)throw new o.a("ckeditor-duplicated-modules",null);r.CKEDITOR_VERSION=i}).call(this,n(91))},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(91))},function(t,e,n){"use strict";(function(t){var o=n(5),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=r&&r.exports===i?o.a.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.a=function(t,e){if(e)return t.slice();var n=t.length,o=a?a(n):new t.constructor(n);return t.copy(o),o}}).call(this,n(11)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,iDAGC,qBAAsB,CACtB,UAAW,CACX,WAAY,CACZ,eACD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAgD,CAChD,8BAAmD,CACnD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAmD,CACnD,oCAAuD,CACvD,6BAAkD,CAIlD,+CAAwD,CACxD,qEAA+E,CAC/E,qCAAwD,CACxD,sDAA8D,CAC9D,iDAAyD,CACzD,yCAAqD,CACrD,uCAAsD,CACtD,6CAA0D,CAC1D,uCAAsD,CAItD,gDAAuD,CACvD,kDAA+D,CAC/D,mDAAgE,CAChE,+CAA6D,CAC7D,yDAA8D,CAE9D,uCAAuD,CACvD,6CAA4D,CAC5D,8CAA4D,CAC5D,0CAAyD,CACzD,gDAA8D,CAE9D,+DAAsE,CACtE,iDAAkE,CAClE,kDAAkE,CAClE,8CAA+D,CAC/D,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA4D,CAC5D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAmE,CACnE,yEAA8E,CAC9E,qDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,+BAAiD,CACjD,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,wCAAwD,CACxD,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,gEAAuE,CACvE,4EAAiF,CACjF,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,wDAAmE,CACnE,mDAAgE,CCpGhE,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJoGD,CI9FA,iDAIC,QAAS,CACT,SAAU,CACV,QAAS,CACT,sBAAuB,CACvB,oBAAqB,CACrB,qBAAsB,CACtB,eAAgB,CAGhB,oBACD,CAKA,oCAGC,wBAAyB,CACzB,iGAAkG,CAClG,0BAA2B,CAC3B,eAAgB,CAChB,kBAAmB,CACnB,WAAY,CACZ,UACD,CAGC,2BACC,gBACD,CAEA,wBAEC,sBACD,CAEA,0BACC,oBACD,CAEA,kGAGC,WACD,CAEA,gIAGC,cACD,CAEA,0BACC,YAAa,CACb,yBACD,CAEA,0CAEC,SAAU,CACV,QACD,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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 hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2021, 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-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2021, 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-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2021, 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 that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n","/*\n * Copyright (c) 2003-2021, 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-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 44%, 48%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(208, 88%, 52%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(208, 88%, 47%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t208, 79%, 51%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(207, 89%, 86%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 90%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 85%);\n\t--ck-color-button-default-active-shadow: \t\t\t\t\thsl(0, 0%, 75%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(0, 0%, 87%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(0, 0%, 73%);\n\t--ck-color-button-on-active-shadow: \t\t\t\t\t\thsl(0, 0%, 63%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(0, 0%, 87%);\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 44%, 43%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 44%, 41%);\n\t--ck-color-button-action-active-shadow: \t\t\t\t\thsl(104, 44%, 36%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 69%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 64%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 44%, 43%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\thsl(0, 0%, 78%);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\thsl(0, 0%, 78%);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-base-active);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-base-active-focus);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-foreground);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n}\n","/*\n * Copyright (c) 2003-2021, 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/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2021, 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/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2021, 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-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2021, 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/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck.ck-reset_all {\n\t& .ck-rtl * {\n\t\ttext-align: right;\n\t}\n\n\t& iframe {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea,\n\t& input[type="text"],\n\t& input[type="password"] {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled],\n\t& input[type="text"][disabled],\n\t& input[type="password"][disabled] {\n\t\tcursor: default;\n\t}\n\n\t& fieldset {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2021, 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/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2021, 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-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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_se,.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_se .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_se{left:50%;right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text{right:auto;left:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after{right:auto;left:0;transform:translateX(50%)}.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)}.ck.ck-tooltip.ck-tooltip_e{left:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text:after{left:calc(var(--ck-tooltip-arrow-size)*-1);top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:transparent;border-bottom-color:transparent;border-right-color:var(--ck-color-tooltip-background);border-top-color:transparent;border-left-width:0;border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_w{right:calc(100% + var(--ck-tooltip-arrow-size));left:auto;top:50%}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text:after{left:100%;top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:var(--ck-color-tooltip-background);border-bottom-color:transparent;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:0;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,sCAwKD,CAtKC,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,sFAGC,4CAA+C,CAC/C,0BASD,CAPC,8JAEC,+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,6BACC,QAAS,CACT,UAYD,CAVC,+CACC,UAAW,CACX,0CACD,CAEA,qDACC,UAAW,CACX,MAAO,CACP,yBACD,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,CAUD,4BACC,8CAA+C,CAC/C,OAaD,CAXC,8CACC,MAAO,CACP,0BAQD,CANC,oDACC,0CAA6C,CAC7C,8CAAiD,CACjD,6BAAoF,CAApF,+BAAoF,CAApF,qDAAoF,CAApF,4BAAoF,CACpF,mBAAsG,CAAtG,gDAAsG,CAAtG,+CAAsG,CAAtG,6CACD,CAWF,4BACC,+CAAgD,CAChD,SAAU,CACV,OAaD,CAXC,8CACC,MAAO,CACP,0BAQD,CANC,oDACC,SAAU,CACV,8CAAiD,CACjD,oDAAoF,CAApF,+BAAoF,CAApF,8BAAoF,CAApF,4BAAoF,CACpF,8CAAsG,CAAtG,gDAAsG,CAAtG,oBAAsG,CAAtG,6CACD",sourcesContent:['/*\n * Copyright (c) 2003-2021, 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-2021, 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&.ck-tooltip_se {\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 south-east of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\t&.ck-tooltip_se {\n\t\tleft: 50%;\n\t\tright: auto;\n\n\t\t& .ck-tooltip__text {\n\t\t\tright: auto;\n\t\t\tleft: calc( -2 * var(--ck-tooltip-arrow-size));\n\t\t}\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tright: auto;\n\t\t\tleft: 0;\n\t\t\ttransform: translateX( 50% );\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\t/**\n\t * A class that displays the tooltip east of the element.\n\t *\n\t * +----------+\n\t * [element] < | east |\n\t * +----------+\n\t */\n\t&.ck-tooltip_e {\n\t\tleft: calc(100% + var(--ck-tooltip-arrow-size));\n\t\ttop: 50%;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: 0;\n\t\t\ttransform: translateY( -50% );\n\n\t\t\t&::after {\n\t\t\t\tleft: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\t\t\ttop: calc(50% - 1 * var(--ck-tooltip-arrow-size));\n\t\t\t\tborder-color: transparent var(--ck-color-tooltip-background) transparent transparent;\n\t\t\t\tborder-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip west of the element.\n\t *\n\t * +----------+\n\t * | west | > [element]\n\t * +----------+\n\t */\n\t&.ck-tooltip_w {\n\t\tright: calc(100% + var(--ck-tooltip-arrow-size));\n\t\tleft: auto;\n\t\ttop: 50%;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: 0;\n\t\t\ttransform: translateY( -50% );\n\n\t\t\t&::after {\n\t\t\t\tleft: 100%;\n\t\t\t\ttop: calc(50% - 1 * var(--ck-tooltip-arrow-size));\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-color-tooltip-background);\n\t\t\t\tborder-width: var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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-2021, 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-2021, 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-2021, 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-2021, 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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,":root{--ck-dropdown-max-width:75vw}.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);max-width:var(--ck-dropdown-max-width);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.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-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.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 .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.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/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBAqFD,CAnFC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UAOD,CCUA,iEACC,YACD,CDVA,oCAGC,kCAAmC,CAEnC,YAAa,CACb,yBAA0B,CAC1B,sCAAuC,CAEvC,iBAyDD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSASC,QAAS,CACT,WACD,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CEhGA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,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,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eH8GD,CA5BA,qFG9EE,qCH0GF,CA5BA,uBEpFC,oCAA8B,CFwF9B,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CAGT,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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:root {\n\t--ck-dropdown-max-width: 75vw;\n}\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\t\tmax-width: var(--ck-dropdown-max-width);\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&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\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&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\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\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\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-2021, 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-2021, 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\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\t\t\t\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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__line-break{flex-basis:100%}.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__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){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>:not(.ck-toolbar__line-break),.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,kBA6CD,CA3CC,kCACC,YAAa,CACb,kBAAmB,CACnB,kBAAmB,CACnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,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,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAGC,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-2021, 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__line-break {\n\t\tflex-basis: 100%;\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-2021, 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-2021, 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__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\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 > *:not(.ck-toolbar__line-break),\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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{width:max-content;max-width:var(--ck-toolbar-dropdown-max-width)}.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:"AAKA,MACC,oCACD,CAEA,4CAEC,iBAAkB,CAClB,8CAOD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>: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-2021, 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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-form__header{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{padding:var(--ck-spacing-small) var(--ck-spacing-large);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,kBAAmB,CACnB,6BACD,CCNA,MACC,4BACD,CAEA,oBACC,uDAAwD,CACxD,mCAAoC,CACpC,wCAAyC,CACzC,mDAKD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2021, 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-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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{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 .1s ease-in-out,border .1s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.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),0 0}.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),0 0}@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/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,0BACD,CAEA,kBCFC,eDwCD,CAtCA,2ECEE,qCDoCF,CAtCA,kBAGC,2CAA4C,CAC5C,6CAA8C,CAC9C,6DAA8D,CAC9D,oCAAqC,CAGrC,4CAA6C,CAG7C,4DA0BD,CAxBC,wBEjBA,YAAa,CACb,2BAA2B,CCF3B,2CHqBA,CAEA,4BACC,sDAAuD,CACvD,oDAAqD,CACrD,yCAMD,CAJC,kCG5BD,oDH+BC,CAGD,2BACC,+CAAgD,CAChD,2CAKD,CAHC,iCGtCD,iDHwCC,CAIF,+BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2021, 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\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 .1s ease-in-out, border .1s 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);\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);\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);\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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{pointer-events:none;transform-origin:0 0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);background:var(--ck-color-labeled-field-label-background);padding:0 calc(var(--ck-font-size-tiny)*0.5);line-height:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden;max-width:100%;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.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.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-spacing-medium),calc(var(--ck-font-size-base)*0.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-spacing-medium)*-1),calc(var(--ck-font-size-base)*0.6)) scale(1)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));background:transparent;padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,yEACD,CAEA,0BCHC,eD4GD,CAzGA,2FCCE,qCDwGF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAWC,mBAAoB,CACpB,oBAAqB,CAGrB,6DAA+D,CAE/D,yDAA0D,CAC1D,4CAA8C,CAC9C,kBAAoB,CACpB,eAAmB,CAGnB,sBAAuB,CACvB,eAAgB,CAEhB,cAAe,CAEf,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,wSAGE,yFAYF,CAfA,wSAOE,kGAQF,CAfA,oRAWC,iEAAkE,CAElE,sBAAuB,CACvB,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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 {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2021, 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@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-spacing-medium), calc(0.6 * var(--ck-font-size-base))) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), calc(0.6 * var(--ck-font-size-base))) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2021, 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-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-placeholder,.ck .ck-placeholder{position:relative}.ck.ck-placeholder:before,.ck .ck-placeholder:before{position:absolute;left:0;right:0;content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDACC,iBAAkB,CAClB,MAAO,CACP,OAAQ,CACR,8BAA+B,CAG/B,mBACD,CAKA,wCACC,YACD,CClBA,qDACC,WAAY,CACZ,6CACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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 <body>, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.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,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,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-2021, 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-2021, 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 * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px}.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:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.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,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CACtD,0CAA2C,CAC3C,qDAAsD,CACtD,6CAA8C,CAC9C,kCAAmC,CACnC,aAAc,CACd,+BA4BD,CA1BC,gLAIC,iBACD,CAEA,0CACC,oCAAqC,CACrC,qCACD,CAEA,2CACC,oCAAqC,CACrC,sCACD,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CCtED,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-2021, 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-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\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, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\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-2021, 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, but not for nested widgets. */\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, but not for nested widgets. */\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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;position:relative;pointer-events:none}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);border:1px solid var(--ck-clipboard-drop-target-color);background:var(--ck-clipboard-drop-target-color);margin-left:-1px}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{content:"";width:0;height:0;display:block;position:absolute;left:50%;top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);transform:translateX(-50%);border-left:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-bottom:0 solid transparent;border-right:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-top:calc(var(--ck-clipboard-drop-target-dot-height)) solid var(--ck-clipboard-drop-target-color)}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-clipboard/theme/clipboard.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CACf,iBAAkB,CAClB,mBAMD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CCzBF,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEACC,4DAA8D,CAC9D,yDAA2D,CAC3D,sDAAuD,CACvD,gDAAiD,CACjD,gBAkBD,CAfC,yEACC,UAAW,CACX,OAAQ,CACR,QAAS,CAET,aAAc,CACd,iBAAkB,CAClB,QAAS,CACT,yDAA2D,CAE3D,0BAA2B,CAG3B,iFAAmB,CAAnB,iCAAmB,CAAnB,kFAAmB,CAAnB,uGACD,CA2DF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD",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 {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\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:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border)\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(var(--ck-clipboard-drop-target-dot-height) * -.5);\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t// Horizontal drop target (between blocks).\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 0;\n\t\tmargin: 0;\n\t\ttext-align: initial;\n\n\t\t& .ck-clipboard-drop-target__line {\n\t\t\tposition: absolute;\n\t\t\twidth: 100%;\n\t\t\theight: 0;\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-top: -1px;\n\n\t\t\t&::before {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) 0 var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size)) var(--ck-clipboard-drop-target-dot-size) 0;\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\t*/\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n'],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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 h1.radEdH1{font:700 14pt Cambria,sans-serif;color:#038}.ck h2.radEdH2{font:700 13pt Cambria,sans-serif;color:#038}.ck h3.radEdH3{font:700 12pt Cambria,sans-serif;color:#038}","",{version:3,sources:["webpack://./src/plugins/heading/theme/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CAEA,eACC,gCAAmC,CAChC,UACJ,CAEA,eACC,gCAAmC,CAChC,UACJ,CAEA,eACC,gCAAmC,CAChC,UACJ",sourcesContent:['/*\n * Copyright (c) 2003-2021, 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.ck h1.radEdH1{\n\tfont: bold 14pt Cambria, sans-serif;\n color: #003388;\n}\n\n.ck h2.radEdH2{\n\tfont: bold 13pt Cambria, sans-serif;\n color: #003388;\n}\n\n.ck h3.radEdH3{\n\tfont: bold 12pt Cambria, sans-serif;\n color: #003388;\n}\n'],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{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)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CACb,iBAAkB,CAGlB,mBAAoB,CAEpB,MAAO,CACP,KACD,CAGC,2EACC,aACD,CAGD,gCACC,iBAAkB,CAGlB,kBAWD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCACC,4BAA6B,CAC7B,6BAA8B,CAC9B,uCAAwC,CACxC,gDAA6D,CAC7D,6CAqBD,CAnBC,oEACC,4BAA6B,CAC7B,6BACD,CAEA,qEACC,4BAA6B,CAC7B,8BACD,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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\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\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2021, 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-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\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}\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}\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}\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}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-large)}.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-large) var(--ck-spacing-large) 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-large);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,+BAkED,CAhEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,0CA6CF,CA3CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAID,iGAEC,kCAAmC,CACnC,kCAAmC,CAEnC,eAAgB,CAChB,QAAS,CACT,gDAaD,CApBA,0OAcE,aAMF,CAGC,yMACC,kDACD,CDpEF",sourcesContent:['/*\n * Copyright (c) 2003-2021, 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-2021, 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-2021, 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-large);\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-large) var(--ck-spacing-large) 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-large);\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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{position:static}","",{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,CAQD,gEACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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\n/*\n * Since the caption placeholder for images disappears when focused, it does not require special treatment\n * and can go with a position that follows text alignment of an .image out-of-the-box (center by default).\n * See https://github.com/ckeditor/ckeditor5/issues/8689.\n */\n.ck.ck-editor__editable .image > figcaption.ck-placeholder::before {\n\tposition: static;\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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 `<figure>` 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 `<figure>` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `<figure>` element uses `display:block`, so `<figcaption>` 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}","",{version:3,sources:["webpack://./src/plugins/table/theme/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. 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"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,'/*!\n * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md.\n */.ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}.ck-hidden{display:none!important}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:0.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}.ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{min-width:10px;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}.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_se,.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_se .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_se{left:50%;right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text{right:auto;left:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after{right:auto;left:0;transform:translateX(50%)}.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)}.ck.ck-tooltip.ck-tooltip_e{left:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text:after{left:calc(var(--ck-tooltip-arrow-size)*-1);top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:transparent;border-bottom-color:transparent;border-right-color:var(--ck-color-tooltip-background);border-top-color:transparent;border-left-width:0;border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_w{right:calc(100% + var(--ck-tooltip-arrow-size));left:auto;top:50%}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text:after{left:100%;top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:var(--ck-color-tooltip-background);border-bottom-color:transparent;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:0;border-top-width:var(--ck-tooltip-arrow-size)}.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,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,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}.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))}.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)}.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_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.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-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)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{content:"";position:absolute;width:1px;height:100%;background-color:var(--ck-color-split-button-hover-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.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}:root{--ck-dropdown-max-width:75vw}.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);max-width:var(--ck-dropdown-max-width);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.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-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.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 .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.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}.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__line-break{flex-basis:100%}.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__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){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>:not(.ck-toolbar__line-break),.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-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{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-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.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)}:root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{width:max-content;max-width:var(--ck-toolbar-dropdown-max-width)}.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}.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}:root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>: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)}.ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}.ck.ck-form__header{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{padding:var(--ck-spacing-small) var(--ck-spacing-large);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-form__header .ck-form__header__label{font-weight:700}:root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{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-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-input[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[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-input-shake .3s ease both}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:0.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{pointer-events:none;transform-origin:0 0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);background:var(--ck-color-labeled-field-label-background);padding:0 calc(var(--ck-font-size-tiny)*0.5);line-height:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden;max-width:100%;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.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.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-spacing-medium),calc(var(--ck-font-size-base)*0.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-spacing-medium)*-1),calc(var(--ck-font-size-base)*0.6)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));background:transparent;padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}: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)}.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}.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}.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}.ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}.ck.ck-placeholder,.ck .ck-placeholder{position:relative}.ck.ck-placeholder:before,.ck .ck-placeholder:before{position:absolute;left:0;right:0;content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}.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)}.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:0.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_selected.ck-widget_with-resizer>.ck-widget__resizer,.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_selected.ck-widget_with-resizer>.ck-widget__resizer,.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[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.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}}:root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.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:0 var(--ck-spacing-small);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height)}.ck .ck-size-view.ck-orientation-above-center,.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)}.ck .ck-size-view.ck-orientation-above-center{top:calc(var(--ck-resizer-tooltip-height)*-1);left:50%;transform:translate(-50%)}: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));top:0}.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:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.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))}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;position:relative;pointer-events:none}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);border:1px solid var(--ck-clipboard-drop-target-color);background:var(--ck-clipboard-drop-target-color);margin-left:-1px}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{content:"";width:0;height:0;display:block;position:absolute;left:50%;top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);transform:translateX(-50%);border-left:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-bottom:0 solid transparent;border-right:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-top:calc(var(--ck-clipboard-drop-target-dot-height)) solid var(--ck-clipboard-drop-target-color)}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.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}.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}.ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{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)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}.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%}}.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-large)}.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-width)*0.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 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-large);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)}}.ck-content .image{display:table;clear:both;text-align:center;margin:.9em auto;min-width:50px}.ck-content .image img{display:block;margin:0 auto;max-width:100%}.ck-content .image-inline{display:inline-flex;max-width:100%;align-items:flex-start}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{padding-left:inherit;padding-right:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}:root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:var(--ck-color-image-caption-text);background-color:var(--ck-color-image-caption-background);padding:.6em;font-size:.75em;outline-offset:-1px}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}:root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.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)}.ck-content .image-style-block-align-right{margin-right:0;margin-left:auto}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-top:var(--ck-inline-image-style-spacing);margin-bottom:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}.ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image-inline .ck-progress-bar,.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image-inline .ck-progress-bar,.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}}.ck-image-upload-complete-icon{display:block;position:absolute;top:min(var(--ck-spacing-medium),6%);right:min(var(--ck-spacing-medium),6%);border-radius:50%;z-index:1}.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:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{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:calc(1px*var(--ck-image-upload-icon-size));animation-delay:0ms,3s;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.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}}.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-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.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)}}.ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid 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)}.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}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 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:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}.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-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}}.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*="goo.gl/maps"] .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*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.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*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .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+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1em0xNjQuNzA2LTUuMTExYzAgMTYuNjk2LTEzLjUzNSAzMC4yMy0zMC4yMzEgMzAuMjMtMTYuNjk1IDAtMzAuMjMtMTMuNTM0LTMwLjIzLTMwLjIzIDAtMTYuNjk2IDEzLjUzNS0zMC4yMzEgMzAuMjMtMzAuMjMxIDE2LjY5NiAwIDMwLjIzMSAxMy41MzUgMzAuMjMxIDMwLjIzMSIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=)}.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}.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%}}.ck-content .media{clear:both;margin:.9em 0;display:block;min-width:15em}: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}.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)}: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,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}.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)}.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}.ck.ck-input-color{width:100%;display:flex;flex-direction:row-reverse}.ck.ck-input-color>input.ck.ck-input-text{min-width:auto;flex-grow:1}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{position:relative;overflow:hidden}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{position:absolute;display:block}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-left-width:0;border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-right-width:0;border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{width:20px;height:20px;border:1px solid var(--ck-color-input-border)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{top:-30%;left:50%;height:150%;width:8%;background:red;border-radius:2px;transform:rotate(45deg);transform-origin:50%}.ck.ck-input-color .ck.ck-input-color__remove-color{width:100%;border-bottom:1px solid var(--ck-color-input-border);padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);border-bottom-left-radius:0;border-bottom-right-radius:0}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:0;margin-left:var(--ck-spacing-standard)}.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-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{width:100%;min-width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{flex-wrap:wrap;align-items:center}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{display:flex;flex-direction:column-reverse;align-items:center}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{position:absolute;left:50%;bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{width:80px;min-width:80px;max-width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);padding:var(--ck-spacing-small) var(--ck-spacing-medium);min-width:var(--ck-table-properties-min-error-width);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-left:var(--ck-table-properties-error-arrow-size) solid transparent;border-bottom:var(--ck-table-properties-error-arrow-size) solid var(--ck-color-base-error);border-right:var(--ck-table-properties-error-arrow-size) solid transparent;border-top:0 solid transparent}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{flex-wrap:wrap;flex-basis:0;align-content:baseline}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}:root{--ck-color-table-caption-background:#f7f7f7;--ck-color-table-caption-text:#333;--ck-color-table-caption-highlighted-background:#fd0}.ck-content .table>figcaption{display:table-caption;caption-side:top;word-break:break-word;text-align:center;color:var(--ck-color-table-caption-text);background-color:var(--ck-color-table-caption-background);padding:.6em;font-size:.75em;outline-offset:-1px}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{padding-left:inherit;padding-right:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-table-caption-highlighted-background)}to{background-color:var(--ck-color-table-caption-background)}}.ck-content .table{margin:.9em 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}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}',"",{version:3,sources:["webpack://./src/plugins/table/theme/snippet.css","webpack://./src/plugins/table/theme/table.css"],names:[],mappings:"AAAA;;;EAGE,CACD,qDACG,YACJ,CACA,WACI,sBACJ,CAMA,MACI,gBAAiB,CACjB,4CACJ,CACA,oDAEI,yBACJ,CACA,MACI,kCAAmC,CACnC,+BAAgC,CAChC,8BAA+B,CAC/B,8BAA+B,CAC/B,6BAA8B,CAC9B,yBAA0B,CAC1B,8BAA+B,CAC/B,oCAAqC,CACrC,6BAA8B,CAC9B,+CAAkD,CAClD,qEAAsE,CACtE,qCAAsC,CACtC,sDAA0D,CAC1D,iDAAqD,CACrD,yCAA0C,CAC1C,uCAA2C,CAC3C,6CAAiD,CACjD,uCAA2C,CAC3C,gDAAiD,CACjD,kDAAmD,CACnD,mDAAoD,CACpD,+CAAgD,CAChD,yDAA0D,CAC1D,uCAAwC,CACxC,6CAA8C,CAC9C,8CAA+C,CAC/C,0CAA2C,CAC3C,gDAAiD,CACjD,+DAAgE,CAChE,iDAAkD,CAClD,kDAAmD,CACnD,8CAA+C,CAC/C,oDAAqD,CACrD,6DAA8D,CAC9D,8BAA+B,CAC/B,gCAAiC,CACjC,+CAAgD,CAChD,qDAAsD,CACtD,+EAEC,CACD,oDAAqD,CACrD,yEAA0E,CAC1E,qDAAyD,CACzD,oEAAqE,CACrE,4DAA6D,CAC7D,2DAA4D,CAC5D,+BAAgC,CAChC,wDAAyD,CACzD,+CAAgD,CAChD,4CAA6C,CAC7C,wCAAyC,CACzC,sCAAuC,CACvC,0DAA2D,CAC3D,uFAEC,CACD,gEAAiE,CACjE,4EAEC,CACD,8DAA+D,CAC/D,2DAA4D,CAC5D,mDAAoD,CACpD,6DAA8D,CAC9D,qDAAsD,CACtD,uDAAwD,CACxD,uDAAwD,CACxD,0CAA2C,CAC3C,wCAAyC,CACzC,+BAAgC,CAChC,wDAA4D,CAC5D,mDAAuD,CACvD,yBAA0B,CAC1B,0CAA2C,CAC3C,gGACsC,CACtC,4GACyC,CACzC,sGACsC,CACtC,sDAAuD,CACvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAC7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CAC3B,kCACJ,CAMA,oCAEI,wBAAyB,CACzB,iGACkD,CAClD,0BAA2B,CAC3B,eAAgB,CAChB,kBAAmB,CACnB,WAAY,CACZ,UACJ,CACA,2BACI,gBACJ,CACA,wBACI,sBACJ,CACA,0BACI,oBACJ,CACA,kGAGI,WACJ,CACA,gIAGI,cACJ,CACA,0BACI,YAAa,CACb,yBACJ,CACA,0CACI,SAAU,CACV,QACJ,CACA,8BAEI,gBACJ,CACA,MACI,sBAAuB,CACvB,gEAAiE,CACjE,0DAA2D,CAC3D,wEAAyE,CACzE,uBAAwB,CACxB,mDAAsD,CACtD,4CAA6C,CAC7C,oDAAuD,CACvD,mDAAsD,CACtD,kDAAqD,CACrD,yDACJ,CACA,YACI,qBACJ,CACA,MACI,0EAGJ,CACA,YACI,cAAe,CACf,yBAA0B,CAC1B,0BAA2B,CAC3B,uBAAyB,CACzB,qBACJ,CACA,0BAEI,aAAc,CACd,cACJ,CACA,yBACI,iBACJ,CACA,sDAEI,iBAAkB,CAClB,mBAAoB,CACpB,kCACJ,CACA,eACI,iBAAkB,CAClB,SAAU,CACV,YAAa,CACb,yBACJ,CACA,iCACI,oBACJ,CACA,uCACI,UAAW,CACX,OAAQ,CACR,QACJ,CACA,MACI,2BACJ,CACA,eACI,QAAS,CACT,KAAM,CACN,sCACJ,CACA,iCACI,eACJ,CACA,yGAEI,qCACJ,CACA,iCACI,cAAgB,CAChB,eAAgB,CAChB,kCAAmC,CACnC,wDAAyD,CACzD,6CAA8C,CAC9C,iBAAkB,CAClB,SACJ,CACA,uCACI,sCAAyC,CACzC,kBAAmB,CACnB,QACJ,CACA,sFAGI,4CAA+C,CAC/C,0BACJ,CACA,8JAGI,+CAAkD,CAClD,0BAA2B,CAC3B,6BAA8B,CAC9B,sDAAuD,CACvD,8BAA+B,CAC/B,4BAA6B,CAC7B,8CAA+C,CAC/C,gDAAiD,CACjD,+CAAgD,CAChD,kBACJ,CACA,6BACI,SAAU,CACV,SACJ,CACA,+CACI,SAAU,CACV,2CACJ,CACA,qDACI,SAAU,CACV,OACJ,CACA,6BACI,QAAS,CACT,UACJ,CACA,+CACI,UAAW,CACX,0CACJ,CACA,qDACI,UAAW,CACX,MAAO,CACP,yBACJ,CACA,4BACI,yCAA4C,CAC5C,2BACJ,CACA,oDACI,4CAA+C,CAC/C,0BAA2B,CAC3B,6BAA8B,CAC9B,+BAAgC,CAChC,8BAA+B,CAC/B,mDAAoD,CACpD,8CAA+C,CAC/C,qBAAsB,CACtB,+CAAgD,CAChD,6CACJ,CACA,4BACI,8CAA+C,CAC/C,OACJ,CACA,8CACI,MAAO,CACP,0BACJ,CACA,oDACI,0CAA6C,CAC7C,8CAAiD,CACjD,6BAA8B,CAC9B,+BAAgC,CAChC,qDAAsD,CACtD,4BAA6B,CAC7B,mBAAoB,CACpB,gDAAiD,CACjD,+CAAgD,CAChD,6CACJ,CACA,4BACI,+CAAgD,CAChD,SAAU,CACV,OACJ,CACA,8CACI,MAAO,CACP,0BACJ,CACA,oDACI,SAAU,CACV,8CAAiD,CACjD,oDAAqD,CACrD,+BAAgC,CAChC,8BAA+B,CAC/B,4BAA6B,CAC7B,8CAA+C,CAC/C,gDAAiD,CACjD,oBAAqB,CACrB,6CACJ,CACA,6BAEI,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBACJ,CACA,qDAEI,aACJ,CACA,oBACI,qDAEI,YACJ,CACJ,CACA,6BAEI,iBAAkB,CAClB,mBAAoB,CACpB,kBAAmB,CACnB,oBACJ,CACA,iEAEI,YACJ,CACA,yGAEI,oBACJ,CACA,iFAEI,sBACJ,CACA,iEAEI,kBAAmB,CACnB,SACJ,CACA,yFAEI,YACJ,CACA,6BAEI,oDACJ,CACA,6EAEI,0DACJ,CACA,+EAEI,2DAA4D,CAC5D,uEACJ,CACA,qDAEI,6DACJ,CACA,6BAEI,eACJ,CACA,wIAII,qCACJ,CACA,6BAEI,kBAAmB,CACnB,cAAe,CACf,qBAAsB,CACtB,8BAA+B,CAC/B,iBAAkB,CAClB,2CAA4C,CAC5C,4CAA6C,CAC7C,aAAc,CACd,iBAAkB,CAClB,4BAA6B,CAC7B,4DAAgE,CAChE,uBACJ,CACA,oFAII,YAAa,CACb,2BAA4B,CAC5B,2CACJ,CACA,kJAII,aACJ,CACA,iEAEI,iBAAkB,CAClB,mBAAoB,CACpB,aAAc,CACd,cAAe,CACf,qBACJ,CACA,qFAEI,eACJ,CACA,qFAEI,gBACJ,CACA,yEAEI,aACJ,CACA,6FAEI,mCACJ,CACA,6FAEI,oCACJ,CACA,yEAEI,eAAgB,CAChB,UACJ,CACA,oIAII,oDACJ,CAKA,gLAEI,kCACJ,CACA,iGAEI,UACJ,CACA,qEAEI,yDACJ,CACA,2HAEI,4CAA+C,CAC/C,oCACJ,CACA,2HAEI,6CAAgD,CAChD,mCACJ,CACA,mHAEI,WACJ,CACA,yCAEI,+CACJ,CACA,yFAEI,qDACJ,CACA,2FAEI,sDAAuD,CACvD,kEACJ,CACA,iEAEI,wDACJ,CACA,2DAEI,iCACJ,CACA,+DAEI,mCACJ,CACA,2CAEI,mDACJ,CACA,2FAEI,yDACJ,CACA,6FAEI,0DAA2D,CAC3D,sEACJ,CACA,mEAEI,4DACJ,CACA,2CAEI,wCACJ,CACA,uCAEI,eACJ,CACA,4HAEI,aACJ,CACA,MACI,8CAA+C,CAC/C,mDAAoD,CACpD,qCAAsC,CACtC,gKAKJ,CACA,0DACI,4CACJ,CACA,0DACI,2CACJ,CACA,iDACI,eACJ,CACA,yIAEI,qCACJ,CACA,2DACI,gBACJ,CACA,2DACI,iBACJ,CACA,iDACI,8BAAgC,CAChC,0CAA2C,CAC3C,uDACJ,CACA,2EACI,eACJ,CACA,6LAOI,qCAAsC,CACtC,+CACJ,CACA,2EACI,6CAA8C,CAC9C,+CAAgD,CAChD,gDAAiD,CACjD,yDAA0D,CAC1D,uBACJ,CACA,uDACI,6DACJ,CACA,iFAGI,+DACJ,CACA,6DACI,kCACJ,CACA,uDACI,sDACJ,CACA,6DACI,4DACJ,CACA,2FAII,yDACJ,CACA,2FAII,kEACJ,CACA,kBACI,YACJ,CACA,MACI,8BAA+B,CAC/B,qCACJ,CACA,kBACI,YAAa,CACb,WACJ,CACA,wBACI,oCAAqC,CACrC,qCAAsC,CACtC,wCAAyC,CACzC,yCAA0C,CAC1C,SAAU,CACV,8BAAgC,CAChC,QACJ,CACA,oCACI,YAAa,CACb,gBACJ,CACA,4DACI,gDACJ,CACA,oCACI,YAAa,CACb,2CACJ,CACA,8BACI,8FAEJ,CACA,0CACI,aACJ,CACA,8HAGI,QACJ,CACA,gGAEI,iGAEJ,CACA,yBACI,oCACJ,CACA,mBACI,iBACJ,CACA,iDACI,qCACJ,CACA,8DACI,YACJ,CACA,MACI,gDAAiD,CACjD,4CACJ,CACA,oIAEI,6BAA8B,CAC9B,gCACJ,CACA,oIAEI,4BAA6B,CAC7B,+BACJ,CACA,0CACI,eACJ,CACA,oDACI,4BAA6B,CAC7B,+BACJ,CACA,oDACI,6BAA8B,CAC9B,gCACJ,CACA,8CACI,mCACJ,CACA,0KAII,wDACJ,CACA,8JAGI,UAAW,CACX,iBAAkB,CAClB,SAAU,CACV,WAAY,CACZ,0DACJ,CACA,kLAMI,SACJ,CACA,kLAMI,UACJ,CACA,uCACI,eACJ,CACA,qHAEI,qCACJ,CACA,qKAKI,2BACJ,CACA,mKAKI,4BACJ,CACA,MACI,4BACJ,CACA,gBACI,oBAAqB,CACrB,iBACJ,CACA,oCACI,mBAAoB,CACpB,2BACJ,CACA,+CACI,UACJ,CACA,iEACI,YACJ,CACA,oCACI,kCAAmC,CACnC,YAAa,CACb,yBAA0B,CAC1B,sCAAuC,CACvC,iBACJ,CACA,+DACI,oBACJ,CACA,mSAKI,WACJ,CACA,mSAKI,QAAS,CACT,WACJ,CACA,oHAEI,MACJ,CACA,oHAEI,OACJ,CACA,kHAEI,QAAS,CACT,0BACJ,CACA,sHAEI,QAAS,CACT,0BACJ,CACA,sHAEI,QAAS,CACT,0BACJ,CACA,mCACI,mCACJ,CACA,MACI,sDACJ,CACA,gBACI,iBACJ,CACA,oCACI,mCACJ,CACA,8CACI,gCAAiC,CACjC,sCACJ,CACA,8CACI,+BAAgC,CAChC,oCACJ,CACA,gDACI,kCACJ,CACA,mFAGI,oCACJ,CACA,mFAGI,qCACJ,CACA,iEACI,SAAU,CACV,eAAgB,CAChB,sBACJ,CACA,6EACI,kCACJ,CACA,qDACI,2BAA4B,CAC5B,4BACJ,CACA,sGAGI,UACJ,CACA,yHAEI,eACJ,CACA,qIAEI,2CACJ,CACA,uBACI,eACJ,CACA,qFAEI,qCACJ,CACA,uBACI,oCAAsC,CACtC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CACT,cACJ,CACA,6CACI,wBACJ,CACA,6CACI,yBACJ,CACA,6CACI,2BACJ,CACA,6CACI,4BACJ,CACA,eACI,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAiB,CACjB,YAAa,CACb,oBAAqB,CACrB,kBACJ,CACA,kCACI,YAAa,CACb,kBAAmB,CACnB,kBAAmB,CACnB,WACJ,CACA,yCACI,oBACJ,CACA,yGAEI,YACJ,CACA,uCACI,eACJ,CACA,sDACI,gBACJ,CACA,sDACI,qBACJ,CACA,sDACI,gBACJ,CACA,yFAII,YACJ,CACA,eACI,eACJ,CACA,qEAEI,qCACJ,CACA,eACI,6CAA8C,CAC9C,iCAAkC,CAClC,+CACJ,CACA,yCACI,kBAAmB,CACnB,SAAU,CACV,aAAc,CACd,yCAA0C,CAC1C,kCAAmC,CACnC,qCACJ,CACA,uCACI,QACJ,CACA,gEACI,oCACJ,CACA,kEACI,YACJ,CACA,gHAEI,kCAAmC,CACnC,qCACJ,CACA,mCACI,SACJ,CACA,0DACI,UAAW,CACX,QAAS,CACT,eAAgB,CAChB,QACJ,CACA,kCACI,SACJ,CACA,uDACI,QACJ,CACA,yFAGI,eACJ,CACA,kFAGI,mCACJ,CACA,qCACI,QACJ,CACA,+FAEI,cACJ,CACA,iJAEI,mCACJ,CACA,qHAEI,aACJ,CACA,6JAOI,wBAAyB,CACzB,2BACJ,CACA,2JAOI,yBAA0B,CAC1B,4BACJ,CAKA,8RAKI,mCACJ,CACA,qHAEI,cACJ,CACA,6JAOI,yBAA0B,CAC1B,4BACJ,CACA,2JAOI,wBAAyB,CACzB,2BACJ,CAKA,8RAKI,oCACJ,CACA,YACI,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAiB,CACjB,YAAa,CACb,qBACJ,CACA,2DAEI,aACJ,CACA,kCACI,iBAAkB,CAClB,2BACJ,CACA,YACI,eACJ,CACA,+DAEI,qCACJ,CACA,YACI,oBAAqB,CACrB,0CACJ,CACA,kBACI,cAAe,CACf,cACJ,CACA,6BACI,gBAAiB,CACjB,UAAW,CACX,eAAgB,CAChB,eAAgB,CAChB,mIAEJ,CACA,+CACI,yEAGJ,CACA,oCACI,eACJ,CACA,mCACI,oDAAqD,CACrD,yCACJ,CACA,0CACI,eACJ,CACA,2DACI,0DACJ,CACA,2DACI,4CACJ,CACA,qDACI,uDACJ,CACA,yCACI,0CAA2C,CAC3C,aACJ,CACA,iEACI,uDAAwD,CACxD,aACJ,CACA,uBACI,UAAW,CACX,UAAW,CACX,sCACJ,CACA,MACI,oCACJ,CACA,4CACI,iBAAkB,CAClB,8CACJ,CACA,6DACI,qCACJ,CACA,oCACI,QACJ,CACA,6CACI,eACJ,CACA,iIAEI,qCAAsC,CACtC,wBACJ,CACA,mFAKI,eACJ,CACA,6MAWI,qCAAsC,CACtC,wBAAyB,CACzB,2BAA4B,CAC5B,4BACJ,CACA,kFAKI,eACJ,CACA,2MAWI,qCAAsC,CACtC,wBAAyB,CACzB,yBACJ,CACA,MACI,0CACJ,CACA,yDACI,eACJ,CACA,yJAEI,qCACJ,CACA,oEACI,YAAa,CACb,2BAA4B,CAC5B,qCACJ,CACA,+BACI,aAAc,CACd,oCAAqC,CACrC,4BACJ,CACA,wCACI,eACJ,CACA,wCACI,gBACJ,CACA,4CACI,kCACJ,CACA,2CACI,qCACJ,CACA,sDACI,kDACJ,CACA,gEACI,mDACJ,CACA,gEACI,gDACJ,CACA,aACI,aACJ,CACA,mBACI,YACJ,CACA,aACI,eACJ,CACA,oBACI,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,kBAAmB,CACnB,6BACJ,CACA,MACI,4BACJ,CACA,oBACI,uDAAwD,CACxD,mCAAoC,CACpC,wCAAyC,CACzC,mDACJ,CACA,4CACI,eACJ,CACA,MACI,qBAAsB,CACtB,2CACJ,CACA,aACI,eACJ,CACA,iEAEI,qCACJ,CACA,aACI,2CAA4C,CAC5C,6CAA8C,CAC9C,6DAA8D,CAC9D,+BAAgC,CAChC,4CAA6C,CAC7C,4DACJ,CACA,mBACI,YAAa,CACb,2BAA4B,CAC5B,2CACJ,CACA,uBACI,sDAAuD,CACvD,oDAAqD,CACrD,yCACJ,CACA,6BACI,oDACJ,CACA,sBACI,+CAAgD,CAChD,sCACJ,CACA,4BACI,iDACJ,CACA,0BACI,IACI,0BACJ,CACA,IACI,yBACJ,CACA,IACI,0BACJ,CACA,IACI,yBACJ,CACJ,CACA,mEACI,YAAa,CACb,iBACJ,CACA,uCACI,aAAc,CACd,iBACJ,CACA,MACI,mEAAuE,CACvE,gFAC4B,CAC5B,yEACJ,CACA,0BACI,eACJ,CACA,2FAEI,qCACJ,CACA,mEACI,UACJ,CACA,gFAGI,KACJ,CACA,0FAII,MACJ,CACA,0FAII,OACJ,CACA,gFAGI,mBAAoB,CACpB,oBAAqB,CACrB,6DAAgE,CAChE,yDAA0D,CAC1D,4CAA+C,CAC/C,kBAAmB,CACnB,eAAgB,CAChB,sBAAuB,CACvB,eAAgB,CAChB,cAAe,CACf,+JAGJ,CACA,mKAII,gCACJ,CACA,yDACI,mCAAoC,CACpC,kCAAmC,CACnC,kBACJ,CACA,6FAEI,gCACJ,CACA,4OAMI,yCACJ,CACA,oUAQI,yFAKJ,CACA,oUAQI,kGAKJ,CACA,gTAMI,iEAAkE,CAClE,sBAAuB,CACvB,SACJ,CACA,8FAII,sBACJ,CACA,yIAKI,SACJ,CACA,kMAII,8HAIJ,CACA,MACI,8DACJ,CACA,qBACI,YAAa,CACb,iBAAkB,CAClB,yBACJ,CACA,+GAEI,UAAW,CACX,iBACJ,CACA,wDACI,6CACJ,CACA,uDACI,uDACJ,CACA,4CACI,6CACJ,CACA,2CACI,uDACJ,CACA,4CACI,6CACJ,CACA,2CACI,uDACJ,CACA,8CACI,aACJ,CACA,MACI,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACJ,CACA,qBACI,eACJ,CACA,iFAEI,qCACJ,CACA,qBACI,oCAAsC,CACtC,eAAgB,CAChB,2CAA4C,CAC5C,6CACJ,CACA,+GAEI,OAAQ,CACR,QAAS,CACT,kBACJ,CACA,uFAEI,oDAAqD,CACrD,kDAAmD,CACnD,qDAAsD,CACtD,kBACJ,CACA,4CACI,gDACJ,CACA,uFAEI,6BAA8B,CAC9B,8BAA+B,CAC/B,4BACJ,CACA,2CACI,oDAAqD,CACrD,yCACJ,CACA,uFAEI,oDAAqD,CACrD,qBAAsB,CACtB,qDAAsD,CACtD,+CACJ,CACA,4CACI,6CAA8C,CAC9C,uDACJ,CACA,uFAEI,6BAA8B,CAC9B,+BAAgC,CAChC,8BACJ,CACA,2CACI,iDAAkD,CAClD,4CACJ,CACA,yGAEI,QAAS,CACT,uDAA0D,CAC1D,2CACJ,CACA,2GAEI,+CAAkD,CAClD,2CACJ,CACA,2GAEI,gDAAmD,CACnD,2CACJ,CACA,yGAEI,QAAS,CACT,uDAA0D,CAC1D,8CACJ,CACA,2GAEI,+CAAkD,CAClD,8CACJ,CACA,2GAEI,gDAAmD,CACnD,8CACJ,CACA,6GAEI,SAAU,CACV,uDAA0D,CAC1D,8CACJ,CACA,6GAEI,QAAS,CACT,sDAAyD,CACzD,8CACJ,CACA,6GAEI,SAAU,CACV,uDAA0D,CAC1D,2CACJ,CACA,6GAEI,QAAS,CACT,sDAAyD,CACzD,2CACJ,CACA,oCACI,YAAa,CACb,kBAAmB,CACnB,sBACJ,CACA,6CACI,sBACJ,CACA,oCACI,6CAA8C,CAC9C,sDAAuD,CACvD,iCACJ,CACA,sCACI,oCAAqC,CACrC,kCAAmC,CACnC,qCACJ,CACA,iEACI,uCAAwC,CACxC,mCACJ,CACA,2DACI,eACJ,CACA,mBACI,iBAAkB,CAClB,mCACJ,CACA,uBACI,iBACJ,CACA,mCACI,SACJ,CACA,oCACI,SACJ,CACA,MACI,6CAA8C,CAC9C,2CACJ,CACA,uBACI,oCAAsC,CACtC,eAAgB,CAChB,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CACtC,UAAW,CACX,WACJ,CACA,mCACI,0DAA2D,CAC3D,uDACJ,CACA,oCACI,kEAAqE,CACrE,+DACJ,CACA,oCACI,kEAAqE,CACrE,+DACJ,CACA,yIAGI,4CACJ,CACA,qDACI,yBAA0B,CAC1B,cAAe,CACf,KACJ,CACA,kEACI,QAAS,CACT,iBACJ,CACA,qDACI,oCAAsC,CACtC,sBAAuB,CACvB,wBAAyB,CACzB,yBACJ,CACA,4BACI,iBAAkB,CAClB,2BACJ,CACA,MACI,oDAAqD,CACrD,yDACJ,CACA,4BACI,0CAA2C,CAC3C,sCACJ,CACA,uCAEI,iBACJ,CACA,qDAEI,iBAAkB,CAClB,MAAO,CACP,OAAQ,CACR,8BAA+B,CAC/B,mBACJ,CACA,wCACI,YACJ,CACA,qDAEI,WAAY,CACZ,6CACJ,CACA,cACI,iBACJ,CACA,2DACI,yBACJ,CACA,gDACI,eACJ,CACA,uIAEI,qCAAsC,CACtC,2BAA4B,CAC5B,4BACJ,CACA,gDACI,qBACJ,CACA,iFAII,uBAAwB,CACxB,eACJ,CACA,yMASI,qCAAsC,CACtC,eACJ,CACA,yCACI,0CAA2C,CAC3C,eACJ,CACA,yHAEI,qCAAsC,CACtC,wBAAyB,CACzB,yBACJ,CACA,0DACI,wCACJ,CACA,+CACI,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAChB,2BACJ,CACA,mDACI,iBAAkB,CAClB,OAAQ,CACR,QAAS,CACT,qCACJ,CACA,qFAGI,iDAAoD,CACpD,kBAAoB,CACpB,0BACJ,CACA,oFAGI,oDAAuD,CACvD,mBAAqB,CACrB,yBACJ,CACA,mLAQI,UAAW,CACX,aAAc,CACd,iBAAkB,CAClB,OAAQ,CACR,QAAS,CACT,qCACJ,CACA,2EACI,YAAa,CACb,iBAAkB,CAClB,MAAO,CACP,OACJ,CACA,iFAII,gDAAmD,CACnD,iDACJ,CACA,wHAII,qDAAwD,CACxD,aACJ,CACA,uHAII,wDAA2D,CAC3D,aACJ,CACA,mOAKI,YACJ,CACA,MACI,wCAAyC,CACzC,wEAAyE,CACzE,8EAEC,CACD,2FAEC,CACD,wDAAyD,CACzD,wDAAyD,CACzD,yEACJ,CACA,+CACI,8CAA+C,CAC/C,+CAAgD,CAChD,oDAAqD,CACrD,mBAAoB,CACpB,uMAGgD,CAChD,SAAU,CACV,mBACJ,CACA,mDACI,UAAW,CACX,UAAW,CACX,8BAAgC,CAChC,6BAA+B,CAC/B,cACJ,CACA,qDACI,mBAAoB,CACpB,mBAAoB,CACpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACJ,CACA,wDACI,kBACJ,CACA,qDACI,6DACJ,CACA,kEACI,oDACJ,CACA,8DACI,wDACJ,CACA,uKAQI,SAAU,CACV,mBACJ,CACA,gGAII,0DACJ,CACA,uKAQI,2DACJ,CACA,mLAQI,0DAA2D,CAC3D,2DAA4D,CAC5D,mBAAoB,CACpB,uEAKJ,CACA,8GAII,gBACJ,CACA,mDACI,mBAAoB,CACpB,UAAW,CACX,mFACY,CACZ,oCAAyC,CACzC,oCACJ,CACA,6JAEI,yBACJ,CACA,yKAII,iDACJ,CACA,uOAQI,SAAU,CACV,mBACJ,CAeA,6yBAMI,SACJ,CACA,uHAII,aAAc,CACd,iBACJ,CACA,iRAQI,SAAU,CACV,mBACJ,CACA,kIAII,qEACJ,CACA,wIAMI,WACJ,CACA,4CACI,GACI,oBACJ,CACA,OAEI,mBACJ,CACJ,CACA,gDACI,OAEI,mBACJ,CACA,OAEI,mBACJ,CACJ,CACA,8CACI,GACI,6HAKJ,CACA,IACI,6HAKJ,CACA,GACI,+HAKJ,CACJ,CACA,kDACI,GACI,SACJ,CACA,IACI,SACJ,CACA,IACI,SACJ,CACA,IACI,SACJ,CACA,GACI,SACJ,CACJ,CACA,MACI,+CAAgD,CAChD,6CAA8C,CAC9C,uCAAwC,CACxC,kDAAmD,CACnD,gCAAiC,CACjC,kEACJ,CACA,8DAEI,iBACJ,CACA,4EACI,iBACJ,CACA,qFAII,aACJ,CACA,iLAMI,kBACJ,CACA,kBACI,qDAAsD,CACtD,0CAA2C,CAC3C,qDAAsD,CACtD,6CAA8C,CAC9C,kCAAmC,CACnC,aAAc,CACd,iCAAkC,CAClC,uCAAwC,CACxC,4CACJ,CACA,8NAKI,iBACJ,CACA,0CACI,oCAAqC,CACrC,qCACJ,CACA,2CACI,oCAAqC,CACrC,sCACJ,CACA,8CACI,uCAAwC,CACxC,sCACJ,CACA,6CACI,uCAAwC,CACxC,qCACJ,CACA,8CACI,6CAAgD,CAChD,QAAS,CACT,yBACJ,CACA,MACI,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CACzC,wCAAyC,CACzC,sCAAuC,CACvC,2EAEC,CACD,yEACJ,CACA,eACI,gDAAiD,CACjD,mBAAoB,CACpB,yBAA0B,CAC1B,6GAEJ,CACA,0EAEI,6EAEJ,CACA,qBACI,iDACJ,CACA,gCACI,4BACJ,CACA,yGAEI,YAAa,CACb,2BAA4B,CAC5B,qCAAuC,CACvC,iEACJ,CACA,4EACI,WAAY,CACZ,qBAAsB,CACtB,4BAA6B,CAC7B,SAAU,CACV,6SAKgD,CAChD,iEAAkE,CAClE,2BAA4B,CAC5B,mDAAoD,CACpD,KACJ,CACA,qFAII,wCAAyC,CACzC,yCAA0C,CAC1C,oDACJ,CACA,kHAKI,SAAU,CACV,+DACJ,CACA,wHAKI,SACJ,CACA,kFAGI,SAAU,CACV,oDACJ,CACA,oMAMI,SAAU,CACV,6CACJ,CACA,gRAUI,SACJ,CACA,qFAGI,SAAU,CACV,oDACJ,CACA,gDACI,eACJ,CACA,yEACI,iCACJ,CACA,gOAMI,gDACJ,CACA,wIAEI,mDACJ,CACA,ghBAYI,gDACJ,CACA,yKAKI,yDACJ,CACA,8DACI,cAAe,CACf,iBAAkB,CAClB,mBACJ,CACA,mEACI,iBAAkB,CAClB,OACJ,CACA,qJAEI,YACJ,CACA,MACI,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACJ,CACA,mEACI,4DAA+D,CAC/D,yDAA4D,CAC5D,sDAAuD,CACvD,gDAAiD,CACjD,gBACJ,CACA,yEACI,UAAW,CACX,OAAQ,CACR,QAAS,CACT,aAAc,CACd,iBAAkB,CAClB,QAAS,CACT,yDAA4D,CAC5D,0BAA2B,CAC3B,iFACe,CACf,iCAAkC,CAClC,kFACe,CACf,uGAEJ,CACA,kEACI,gGAEJ,CACA,gDACI,OAAS,CACT,sBACJ,CACA,uBACI,eAAgB,CAChB,mBAAoB,CACpB,kBAAmB,CACnB,aAAc,CACd,cAAe,CACf,iBAAkB,CAClB,0BACJ,CACA,gCACI,aAAc,CACd,2BACJ,CACA,wBACI,cACJ,CACA,wBACI,cACJ,CACA,wBACI,cACJ,CACA,+BACI,eACJ,CACA,2EACI,SACJ,CACA,uEACI,cACJ,CACA,4BACI,iBACJ,CACA,wBACI,YAAa,CACb,iBAAkB,CAClB,mBAAoB,CACpB,MAAO,CACP,KACJ,CACA,2EACI,aACJ,CACA,gCACI,iBAAkB,CAClB,kBACJ,CACA,4IAEI,kBACJ,CACA,4IAEI,kBACJ,CACA,MACI,sBAAuB,CACvB,yDAA4D,CAC5D,6BACJ,CACA,wBACI,yCACJ,CACA,gCACI,4BAA6B,CAC7B,6BAA8B,CAC9B,uCAAwC,CACxC,gDAAiD,CACjD,6CACJ,CACA,oEACI,4BAA6B,CAC7B,6BACJ,CACA,qEACI,4BAA6B,CAC7B,8BACJ,CACA,wEACI,+BAAgC,CAChC,8BACJ,CACA,uEACI,+BAAgC,CAChC,6BACJ,CACA,6BACI,YAAa,CACb,kBAAmB,CACnB,gBACJ,CACA,oDACI,oBACJ,CACA,uCACI,YACJ,CACA,oCACI,6BACI,cACJ,CACA,oDACI,eACJ,CACA,wCACI,cACJ,CACJ,CACA,mCACI,UAAW,CACX,OAAQ,CACR,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAC5B,8BAA+B,CAC/B,SACJ,CACA,oCACI,wCACI,UAAW,CACX,OAAQ,CACR,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAC5B,8BAA+B,CAC/B,SACJ,CACJ,CACA,qDACI,kDACJ,CACA,uBACI,+BACJ,CACA,6BACI,YACJ,CACA,uGAEI,sCACJ,CACA,oCACI,uBACI,SAAU,CACV,qCACJ,CACA,8CACI,wDACJ,CACA,6DACI,WAAY,CACZ,UACJ,CACA,4EAGI,kBACJ,CACA,iGAEI,kCAAmC,CACnC,kCAAmC,CACnC,eAAgB,CAChB,QAAS,CACT,gDACJ,CACA,0OAII,aACJ,CACA,yMAKI,kDACJ,CACJ,CACA,mBACI,aAAc,CACd,UAAW,CACX,iBAAkB,CAClB,gBAAkB,CAClB,cACJ,CACA,uBACI,aAAc,CACd,aAAc,CACd,cACJ,CACA,0BACI,mBAAoB,CACpB,cAAe,CACf,sBACJ,CACA,kCACI,YACJ,CACA,gEAEI,WAAY,CACZ,aAAc,CACd,cACJ,CACA,gEACI,oBAAqB,CACrB,qBAAsB,CACtB,kBAAmB,CACnB,eAAgB,CAChB,sBACJ,CACA,2GAEI,SACJ,CACA,qEACI,YACJ,CACA,0FAEI,cACJ,CACA,MACI,2CAA4C,CAC5C,kCAAmC,CACnC,mDACJ,CACA,8BACI,qBAAsB,CACtB,mBAAoB,CACpB,qBAAsB,CACtB,wCAAyC,CACzC,yDAA0D,CAC1D,YAAc,CACd,eAAiB,CACjB,mBACJ,CACA,qEACI,iDACJ,CACA,sCACI,GACI,oEACJ,CACA,GACI,yDACJ,CACJ,CACA,MACI,8BAA+B,CAC/B,qEACJ,CACA,qFAEI,oDACJ,CACA,yEAEI,UACJ,CACA,8BACI,WAAY,CACZ,yCAA0C,CAC1C,aACJ,CACA,oCACI,UAAW,CACX,0CACJ,CACA,sCACI,gBAAiB,CACjB,iBACJ,CACA,qCACI,WAAY,CACZ,yCACJ,CACA,2CACI,cAAe,CACf,gBACJ,CACA,0CACI,aAAc,CACd,iBACJ,CACA,6GAGI,YACJ,CACA,mGAEI,+CAAgD,CAChD,kDACJ,CACA,iDACI,iDACJ,CACA,kDACI,gDACJ,CACA,0lBAYI,qDACJ,CACA,8nBAYI,YACJ,CACA,oVAMI,2DACJ,CACA,qEAEI,iBACJ,CACA,uGAEI,iBAAkB,CAClB,KAAM,CACN,MACJ,CACA,yFAEI,oBACJ,CACA,uGAEI,UAAW,CACX,OAAQ,CACR,gDAAiD,CACjD,oBACJ,CACA,kBACI,GACI,SACJ,CACA,GACI,SACJ,CACJ,CACA,+BACI,aAAc,CACd,iBAAkB,CAClB,oCAAsC,CACtC,sCAAwC,CACxC,iBAAkB,CAClB,SACJ,CACA,qCACI,UAAW,CACX,iBACJ,CACA,MACI,iCAAkC,CAClC,+CAAgD,CAChD,8BAA+B,CAC/B,gCAAiC,CACjC,4DACJ,CACA,+BACI,SAAU,CACV,uDAAwD,CACxD,wEAA0E,CAC1E,qCAAuC,CACvC,0BAA8B,CAC9B,oDAAuD,CACvD,sBAAwB,CACxB,eAAgB,CAChB,mFAGC,CACD,oFAIJ,CACA,qCACI,QAAS,CACT,OAAQ,CACR,SAAU,CACV,QAAS,CACT,OAAQ,CACR,mCAAoC,CACpC,yBAA0B,CAC1B,oFACqC,CACrC,sFACqC,CACrC,4CAA6C,CAC7C,sBAAwB,CACxB,mBAAqB,CACrB,4BAA6B,CAC7B,qBACJ,CACA,wCACI,GACI,SACJ,CACA,GACI,SACJ,CACJ,CACA,wCACI,GACI,SACJ,CACA,GACI,SACJ,CACJ,CACA,yCACI,GACI,SAAU,CACV,OAAQ,CACR,QACJ,CACA,IACI,UAAY,CACZ,QACJ,CACA,GACI,SAAU,CACV,UAAY,CACZ,YACJ,CACJ,CACA,kCACI,iBAAkB,CAClB,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,KAAM,CACN,MACJ,CACA,yCACI,UAAW,CACX,iBACJ,CACA,MACI,4CAA6C,CAC7C,wCAAyC,CACzC,8CACJ,CACA,iCACI,UAAW,CACX,QACJ,CACA,8CACI,sGAIJ,CACA,qCACI,4DACJ,CACA,kCACI,UAAW,CACX,WACJ,CACA,yCACI,8CAA+C,CAC/C,+CAAgD,CAChD,iBAAkB,CAClB,8DAA+D,CAC/D,kCAAmC,CACnC,yDACJ,CACA,wCACI,GACI,uBACJ,CACJ,CACA,sBACI,mDACJ,CACA,wCACI,yFAEJ,CACA,4BACI,8CACJ,CACA,sCACI,WAAY,CACZ,gDAAiD,CACjD,iBAAkB,CAClB,oCACJ,CACA,iBACI,YACJ,CACA,2BACI,YACJ,CACA,oCACI,iBACI,cACJ,CACA,wCACI,eACJ,CACA,4BACI,cACJ,CACJ,CACA,iCACI,aACJ,CACA,wHAEI,mCACJ,CACA,iCACI,SAAU,CACV,+BACJ,CACA,wDACI,8EAEJ,CACA,uEACI,WAAY,CACZ,UACJ,CACA,4CACI,kCAAmC,CACnC,QAAS,CACT,eAAgB,CAChB,QAAS,CACT,gDAAiD,CACjD,SACJ,CACA,4GAEI,aACJ,CACA,mEACI,kDACJ,CACA,6CACI,yDACJ,CACA,wEACI,QAAS,CACT,SAAU,CACV,UACJ,CACA,8EACI,eACJ,CACA,oBACI,YAAa,CACb,kBAAmB,CACnB,gBACJ,CACA,8CACI,oBACJ,CACA,gEACI,eACJ,CACA,oCACI,oBACI,cACJ,CACA,8CACI,eACJ,CACA,8DACI,cACJ,CACJ,CACA,wDACI,cAAe,CACf,eACJ,CACA,0EACI,kCAAmC,CACnC,kCAAmC,CACnC,sBAAuB,CACvB,cAAe,CACf,+BAAgC,CAChC,aAAc,CACd,iBACJ,CACA,gFAGI,yBACJ,CACA,mPAII,eACJ,CACA,+DACI,eACJ,CACA,gFAGI,yBACJ,CACA,qHAEI,sCACJ,CACA,oCACI,wDACI,8DACJ,CACA,0EACI,WAAY,CACZ,cACJ,CACA,gJAEI,aACJ,CACJ,CACA,0CACI,YAAa,CACb,qBAAsB,CACtB,kBACJ,CACA,kFAII,aACJ,CACA,oBACI,kFAII,YACJ,CACJ,CACA,sEACI,cAAe,CACf,iBACJ,CACA,wFAII,kBAAmB,CACnB,SACJ,CACA,wGAII,eAAgB,CAChB,aACJ,CACA,6kBAqBI,YACJ,CACA,2LAMI,mBACJ,CACA,MACI,0CAA2C,CAC3C,mDAAoD,CACpD,2EAGJ,CACA,mBACI,aACJ,CACA,0CACI,0CAA6C,CAC7C,0CACJ,CACA,uEACI,qDAAsD,CACtD,kDAAmD,CACnD,qCAAsC,CACtC,uBAAwB,CACxB,qBACJ,CACA,gFAII,UAAW,CACX,WACJ,CACA,4EACI,sDAAuD,CACvD,kBAAmB,CACnB,iBAAkB,CAClB,iBAAkB,CAClB,sBACJ,CACA,kFAGI,4DAA6D,CAC7D,cAAe,CACf,yBACJ,CACA,wDACI,eAAgB,CAChB,gBACJ,CACA,4UAOI,gvGACJ,CACA,2EACI,kBACJ,CACA,wGAGI,orBACJ,CACA,6GAGI,UACJ,CACA,mHAGI,UACJ,CACA,4EACI,2DACJ,CACA,yGAGI,wjHACJ,CACA,8GAGI,aACJ,CACA,oHAGI,UACJ,CACA,6EACI,iDACJ,CACA,0GAGI,48BACJ,CACA,+GAGI,aACJ,CACA,qHAGI,UACJ,CACA,kBACI,YAAa,CACb,sBAAuB,CACvB,kBAAmB,CACnB,gBACJ,CACA,yCACI,oBACJ,CACA,4BACI,YACJ,CACA,oCACI,kBACI,cACJ,CACA,yCACI,eACJ,CACA,6BACI,cACJ,CACJ,CACA,mBACI,UAAW,CACX,aAAe,CACf,aAAc,CACd,cACJ,CACA,MACI,8DACJ,CACA,8QAMI,wDAAyD,CACzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACJ,CACA,oCACI,YAAa,CACb,kBAAmB,CACnB,cACJ,CACA,MACI,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACJ,CACA,oCACI,oJAIC,CACD,yFAEJ,CACA,qCACI,iBACJ,CACA,uCACI,+CAAgD,CAChD,iDAAkD,CAClD,iDAAkD,CAClD,4CAA6C,CAC7C,iBACJ,CACA,6CACI,yCAA0C,CAC1C,6CACJ,CACA,MACI,yDACJ,CACA,0IAEI,iBAAkB,CAClB,uBAAwB,CACxB,aAAc,CACd,gBACJ,CACA,sJAEI,UAAW,CACX,mBAAoB,CACpB,yDAA0D,CAC1D,iBAAkB,CAClB,KAAM,CACN,MAAO,CACP,OAAQ,CACR,QACJ,CACA,wTAYI,4BACJ,CACA,gKAMI,aACJ,CACA,0NAYI,YACJ,CAgCA,4CACI,YAAa,CACb,kBAAmB,CACnB,UACJ,CACA,8BACI,iBACJ,CACA,4CACI,qEAAwE,CACxE,2BAA4B,CAC5B,4BACJ,CACA,wDACI,mDACJ,CACA,kEACI,uCACJ,CACA,kEACI,sCACJ,CACA,uBACI,cACJ,CACA,wBACI,eACJ,CACA,sBACI,eACJ,CACA,uBACI,eACJ,CACA,mBACI,UAAW,CACX,YAAa,CACb,0BACJ,CACA,0CACI,cAAe,CACf,WACJ,CACA,sCACI,cACJ,CACA,kFAII,YACJ,CACA,8CACI,YACJ,CACA,kFAGI,iBAAkB,CAClB,eACJ,CACA,0IAII,iBAAkB,CAClB,aACJ,CACA,+CACI,yBAA0B,CAC1B,4BACJ,CACA,+CACI,wBAAyB,CACzB,2BACJ,CACA,wEACI,SACJ,CACA,kFAII,mBAAoB,CACpB,wBAAyB,CACzB,2BACJ,CACA,kFAII,oBAAqB,CACrB,yBAA0B,CAC1B,4BACJ,CACA,oFAGI,oDACJ,CACA,4GAII,eACJ,CACA,+PASI,qCACJ,CACA,4GAII,UAAW,CACX,WAAY,CACZ,6CACJ,CACA,oKAKI,QAAS,CACT,QAAS,CACT,WAAY,CACZ,QAAS,CACT,cAAe,CACf,iBAAkB,CAClB,uBAAwB,CACxB,oBACJ,CACA,oDACI,UAAW,CACX,oDAAqD,CACrD,qEAAwE,CACxE,2BAA4B,CAC5B,4BACJ,CACA,8DACI,yBACJ,CACA,8DACI,wBACJ,CACA,gEACI,uCACJ,CACA,0EACI,cAAe,CACf,sCACJ,CACA,iBACI,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BACJ,CACA,iCACI,WACJ,CACA,wHAEI,sBACJ,CACA,iBACI,4DACJ,CACA,6CACI,mCACJ,CACA,6CACI,oCACJ,CACA,2BACI,UAAW,CACX,cACJ,CACA,2CACI,kCACJ,CACA,wEACI,0BACJ,CACA,YACI,mCACJ,CACA,kBACI,YACJ,CACA,8BACI,cAAe,CACf,OACJ,CACA,4BACI,cACJ,CACA,6DACI,4CACJ,CACA,mEACI,UACJ,CACA,wHAEI,cACJ,CACA,8DACI,cAAe,CACf,kBACJ,CACA,qFAGI,YAAa,CACb,6BAA8B,CAC9B,kBACJ,CACA,sMAOI,WACJ,CACA,4CACI,iBACJ,CACA,8EACI,iBAAkB,CAClB,QAAS,CACT,2DAA8D,CAC9D,8BAAgC,CAChC,SACJ,CACA,oFAGI,UAAW,CACX,iBAAkB,CAClB,wDAA2D,CAC3D,QAAS,CACT,0BACJ,CACA,MACI,0CAA2C,CAC3C,2CACJ,CACA,2FAII,kCAAmC,CACnC,iBACJ,CACA,8KAMI,UAAW,CACX,cAAe,CACf,cACJ,CACA,8DACI,SACJ,CACA,yMAMI,QACJ,CACA,iGAGI,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACJ,CACA,4CACI,sCACJ,CACA,8EACI,eACJ,CACA,mMAOI,qCACJ,CACA,8EACI,qCAAsC,CACtC,qCAAsC,CACtC,wDAAyD,CACzD,oDAAqD,CACrD,iBACJ,CACA,oFAGI,yEAA0E,CAC1E,0FAC8B,CAC9B,0EAA2E,CAC3E,8BACJ,CACA,8EACI,iEACJ,CACA,6GAII,YACJ,CACA,oDACI,GACI,SACJ,CACA,GACI,SACJ,CACJ,CACA,mFAEI,cAAe,CACf,YAAa,CACb,sBACJ,CACA,qHAII,gBACJ,CACA,6BACI,WACJ,CACA,mFAEI,mBAAoB,CACpB,SACJ,CACA,kGAGI,eAAgB,CAChB,qCACJ,CACA,uHAKI,UACJ,CACA,6FAEI,cACJ,CACA,0HAGI,cACJ,CACA,yHAGI,cACJ,CACA,uHAII,WACJ,CACA,kCACI,WACJ,CACA,2FAEI,mBAAoB,CACpB,SAAU,CACV,SACJ,CACA,4GAGI,eAAgB,CAChB,qCACJ,CACA,MACI,2CAA4C,CAC5C,kCAAmC,CACnC,oDACJ,CACA,8BACI,qBAAsB,CACtB,gBAAiB,CACjB,qBAAsB,CACtB,iBAAkB,CAClB,wCAAyC,CACzC,yDAA0D,CAC1D,YAAc,CACd,eAAiB,CACjB,mBACJ,CACA,qEACI,iDACJ,CACA,gEACI,oBAAqB,CACrB,qBAAsB,CACtB,kBAAmB,CACnB,eAAgB,CAChB,sBACJ,CACA,sCACI,GACI,qEACJ,CACA,GACI,yDACJ,CACJ,CC9xHC,mBAIG,gBAAkB,CAClB,aAgCJ,CA9BI,yBAEI,wBAAyB,CACzB,gBAAiB,CAIjB,UAAW,CACX,WAAY,CAIZ,yBAiBJ,CAfI,wDAEI,aAAc,CACd,YAAc,CAKd,wBACJ,CAEA,4BACI,eAAiB,CACjB,2BACJ,CAMR,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*!\n * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md.\n */\n .ck.ck-editor__editable span[data-ck-unsafe-element] {\n display: none;\n}\n.ck-hidden {\n display: none !important;\n}\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n /* box-sizing:border-box; */ /* width:auto; */ /* height:auto; */ /* position:static */\n}\n:root {\n --ck-z-default: 1;\n --ck-z-modal: calc(var(--ck-z-default) + 999);\n}\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n transition: none !important;\n}\n:root {\n --ck-color-base-foreground: #fafafa;\n --ck-color-base-background: #fff;\n --ck-color-base-border: #c4c4c4;\n --ck-color-base-action: #61b045;\n --ck-color-base-focus: #6cb5f9;\n --ck-color-base-text: #333;\n --ck-color-base-active: #198cf0;\n --ck-color-base-active-focus: #0e7fe1;\n --ck-color-base-error: #db3700;\n --ck-color-focus-border-coordinates: 208, 79%, 51%;\n --ck-color-focus-border: hsl(var(--ck-color-focus-border-coordinates));\n --ck-color-focus-outer-shadow: #bcdefb;\n --ck-color-focus-disabled-shadow: rgba(119, 186, 248, 0.3);\n --ck-color-focus-error-shadow: rgba(255, 64, 31, 0.3);\n --ck-color-text: var(--ck-color-base-text);\n --ck-color-shadow-drop: rgba(0, 0, 0, 0.15);\n --ck-color-shadow-drop-active: rgba(0, 0, 0, 0.2);\n --ck-color-shadow-inner: rgba(0, 0, 0, 0.1);\n --ck-color-button-default-background: transparent;\n --ck-color-button-default-hover-background: #e6e6e6;\n --ck-color-button-default-active-background: #d9d9d9;\n --ck-color-button-default-active-shadow: #bfbfbf;\n --ck-color-button-default-disabled-background: transparent;\n --ck-color-button-on-background: #dedede;\n --ck-color-button-on-hover-background: #c4c4c4;\n --ck-color-button-on-active-background: #bababa;\n --ck-color-button-on-active-shadow: #a1a1a1;\n --ck-color-button-on-disabled-background: #dedede;\n --ck-color-button-action-background: var(--ck-color-base-action);\n --ck-color-button-action-hover-background: #579e3d;\n --ck-color-button-action-active-background: #53973b;\n --ck-color-button-action-active-shadow: #498433;\n --ck-color-button-action-disabled-background: #7ec365;\n --ck-color-button-action-text: var(--ck-color-base-background);\n --ck-color-button-save: #008a00;\n --ck-color-button-cancel: #db3700;\n --ck-color-switch-button-off-background: #b0b0b0;\n --ck-color-switch-button-off-hover-background: #a3a3a3;\n --ck-color-switch-button-on-background: var(\n --ck-color-button-action-background\n );\n --ck-color-switch-button-on-hover-background: #579e3d;\n --ck-color-switch-button-inner-background: var(--ck-color-base-background);\n --ck-color-switch-button-inner-shadow: rgba(0, 0, 0, 0.1);\n --ck-color-dropdown-panel-background: var(--ck-color-base-background);\n --ck-color-dropdown-panel-border: var(--ck-color-base-border);\n --ck-color-input-background: var(--ck-color-base-background);\n --ck-color-input-border: #c7c7c7;\n --ck-color-input-error-border: var(--ck-color-base-error);\n --ck-color-input-text: var(--ck-color-base-text);\n --ck-color-input-disabled-background: #f2f2f2;\n --ck-color-input-disabled-border: #c7c7c7;\n --ck-color-input-disabled-text: #757575;\n --ck-color-list-background: var(--ck-color-base-background);\n --ck-color-list-button-hover-background: var(\n --ck-color-button-default-hover-background\n );\n --ck-color-list-button-on-background: var(--ck-color-base-active);\n --ck-color-list-button-on-background-focus: var(\n --ck-color-base-active-focus\n );\n --ck-color-list-button-on-text: var(--ck-color-base-background);\n --ck-color-panel-background: var(--ck-color-base-background);\n --ck-color-panel-border: var(--ck-color-base-border);\n --ck-color-toolbar-background: var(--ck-color-base-foreground);\n --ck-color-toolbar-border: var(--ck-color-base-border);\n --ck-color-tooltip-background: var(--ck-color-base-text);\n --ck-color-tooltip-text: var(--ck-color-base-background);\n --ck-color-engine-placeholder-text: #707070;\n --ck-color-upload-bar-background: #6cb5f9;\n --ck-color-link-default: #0000f0;\n --ck-color-link-selected-background: rgba(31, 177, 255, 0.1);\n --ck-color-link-fake-selection: rgba(31, 177, 255, 0.3);\n --ck-disabled-opacity: 0.5;\n --ck-focus-outer-shadow-geometry: 0 0 0 3px;\n --ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry)\n var(--ck-color-focus-outer-shadow);\n --ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry)\n var(--ck-color-focus-disabled-shadow);\n --ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry)\n var(--ck-color-focus-error-shadow);\n --ck-focus-ring: 1px solid var(--ck-color-focus-border);\n --ck-font-size-base: 13px;\n --ck-line-height-base: 1.84615;\n --ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n --ck-font-size-tiny: 0.7em;\n --ck-font-size-small: 0.75em;\n --ck-font-size-normal: 1em;\n --ck-font-size-big: 1.4em;\n --ck-font-size-large: 1.8em;\n --ck-ui-component-min-height: 2.3em;\n}\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n /* margin:0; */ /* padding:0; */ /* border:0; */ /* background:transparent; */ /* text-decoration:none; */ /* vertical-align:middle; */ /* transition:none; */ /* word-wrap:break-word */\n}\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n border-collapse: collapse;\n font: normal normal normal var(--ck-font-size-base) /\n var(--ck-line-height-base) var(--ck-font-face);\n color: var(--ck-color-text);\n text-align: left;\n white-space: nowrap;\n cursor: auto;\n float: none;\n}\n.ck.ck-reset_all .ck-rtl * {\n text-align: right;\n}\n.ck.ck-reset_all iframe {\n vertical-align: inherit;\n}\n.ck.ck-reset_all textarea {\n white-space: pre-wrap;\n}\n.ck.ck-reset_all input[type="password"],\n.ck.ck-reset_all input[type="text"],\n.ck.ck-reset_all textarea {\n cursor: text;\n}\n.ck.ck-reset_all input[type="password"][disabled],\n.ck.ck-reset_all input[type="text"][disabled],\n.ck.ck-reset_all textarea[disabled] {\n cursor: default;\n}\n.ck.ck-reset_all fieldset {\n padding: 10px;\n border: 2px groove #dfdee3;\n}\n.ck.ck-reset_all button::-moz-focus-inner {\n padding: 0;\n border: 0;\n}\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n text-align: right;\n}\n:root {\n --ck-border-radius: 2px;\n --ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n --ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n --ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n --ck-spacing-unit: 0.6em;\n --ck-spacing-large: calc(var(--ck-spacing-unit) * 1.5);\n --ck-spacing-standard: var(--ck-spacing-unit);\n --ck-spacing-medium: calc(var(--ck-spacing-unit) * 0.8);\n --ck-spacing-small: calc(var(--ck-spacing-unit) * 0.5);\n --ck-spacing-tiny: calc(var(--ck-spacing-unit) * 0.3);\n --ck-spacing-extra-tiny: calc(var(--ck-spacing-unit) * 0.16);\n}\n.ck.ck-icon {\n vertical-align: middle;\n}\n:root {\n --ck-icon-size: calc(\n var(--ck-line-height-base) * var(--ck-font-size-normal)\n );\n}\n.ck.ck-icon {\n min-width: 10px;\n width: var(--ck-icon-size);\n height: var(--ck-icon-size);\n font-size: 0.8333350694em;\n will-change: transform;\n}\n.ck.ck-icon,\n.ck.ck-icon * {\n color: inherit;\n cursor: inherit;\n}\n.ck.ck-icon :not([fill]) {\n fill: currentColor;\n}\n.ck.ck-tooltip,\n.ck.ck-tooltip .ck-tooltip__text:after {\n position: absolute;\n pointer-events: none;\n -webkit-backface-visibility: hidden;\n}\n.ck.ck-tooltip {\n visibility: hidden;\n opacity: 0;\n display: none;\n z-index: var(--ck-z-modal);\n}\n.ck.ck-tooltip .ck-tooltip__text {\n display: inline-block;\n}\n.ck.ck-tooltip .ck-tooltip__text:after {\n content: "";\n width: 0;\n height: 0;\n}\n:root {\n --ck-tooltip-arrow-size: 5px;\n}\n.ck.ck-tooltip {\n left: 50%;\n top: 0;\n transition: opacity 0.2s ease-in-out 0.2s;\n}\n.ck.ck-tooltip .ck-tooltip__text {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,\n.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-tooltip .ck-tooltip__text {\n font-size: 0.9em;\n line-height: 1.5;\n color: var(--ck-color-tooltip-text);\n padding: var(--ck-spacing-small) var(--ck-spacing-medium);\n background: var(--ck-color-tooltip-background);\n position: relative;\n left: -50%;\n}\n.ck.ck-tooltip .ck-tooltip__text:after {\n transition: opacity 0.2s ease-in-out 0.2s;\n border-style: solid;\n left: 50%;\n}\n.ck.ck-tooltip.ck-tooltip_s,\n.ck.ck-tooltip.ck-tooltip_se,\n.ck.ck-tooltip.ck-tooltip_sw {\n bottom: calc(var(--ck-tooltip-arrow-size) * -1);\n transform: translateY(100%);\n}\n.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,\n.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after,\n.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after {\n top: calc(var(--ck-tooltip-arrow-size) * -1 + 1px);\n transform: translateX(-50%);\n border-left-color: transparent;\n border-bottom-color: var(--ck-color-tooltip-background);\n border-right-color: transparent;\n border-top-color: transparent;\n border-left-width: var(--ck-tooltip-arrow-size);\n border-bottom-width: var(--ck-tooltip-arrow-size);\n border-right-width: var(--ck-tooltip-arrow-size);\n border-top-width: 0;\n}\n.ck.ck-tooltip.ck-tooltip_sw {\n right: 50%;\n left: auto;\n}\n.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text {\n left: auto;\n right: calc(var(--ck-tooltip-arrow-size) * -2);\n}\n.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after {\n left: auto;\n right: 0;\n}\n.ck.ck-tooltip.ck-tooltip_se {\n left: 50%;\n right: auto;\n}\n.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text {\n right: auto;\n left: calc(var(--ck-tooltip-arrow-size) * -2);\n}\n.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after {\n right: auto;\n left: 0;\n transform: translateX(50%);\n}\n.ck.ck-tooltip.ck-tooltip_n {\n top: calc(var(--ck-tooltip-arrow-size) * -1);\n transform: translateY(-100%);\n}\n.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after {\n bottom: calc(var(--ck-tooltip-arrow-size) * -1);\n transform: translateX(-50%);\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-right-color: transparent;\n border-top-color: var(--ck-color-tooltip-background);\n border-left-width: var(--ck-tooltip-arrow-size);\n border-bottom-width: 0;\n border-right-width: var(--ck-tooltip-arrow-size);\n border-top-width: var(--ck-tooltip-arrow-size);\n}\n.ck.ck-tooltip.ck-tooltip_e {\n left: calc(100% + var(--ck-tooltip-arrow-size));\n top: 50%;\n}\n.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text {\n left: 0;\n transform: translateY(-50%);\n}\n.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text:after {\n left: calc(var(--ck-tooltip-arrow-size) * -1);\n top: calc(50% - var(--ck-tooltip-arrow-size) * 1);\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-right-color: var(--ck-color-tooltip-background);\n border-top-color: transparent;\n border-left-width: 0;\n border-bottom-width: var(--ck-tooltip-arrow-size);\n border-right-width: var(--ck-tooltip-arrow-size);\n border-top-width: var(--ck-tooltip-arrow-size);\n}\n.ck.ck-tooltip.ck-tooltip_w {\n right: calc(100% + var(--ck-tooltip-arrow-size));\n left: auto;\n top: 50%;\n}\n.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text {\n left: 0;\n transform: translateY(-50%);\n}\n.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text:after {\n left: 100%;\n top: calc(50% - var(--ck-tooltip-arrow-size) * 1);\n border-left-color: var(--ck-color-tooltip-background);\n border-bottom-color: transparent;\n border-right-color: transparent;\n border-top-color: transparent;\n border-left-width: var(--ck-tooltip-arrow-size);\n border-bottom-width: var(--ck-tooltip-arrow-size);\n border-right-width: 0;\n border-top-width: var(--ck-tooltip-arrow-size);\n}\n.ck.ck-button,\na.ck.ck-button {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ck.ck-button .ck-tooltip,\na.ck.ck-button .ck-tooltip {\n display: block;\n}\n@media (hover: none) {\n .ck.ck-button .ck-tooltip,\n a.ck.ck-button .ck-tooltip {\n display: none;\n }\n}\n.ck.ck-button,\na.ck.ck-button {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: left;\n}\n.ck.ck-button .ck-button__label,\na.ck.ck-button .ck-button__label {\n display: none;\n}\n.ck.ck-button.ck-button_with-text .ck-button__label,\na.ck.ck-button.ck-button_with-text .ck-button__label {\n display: inline-block;\n}\n.ck.ck-button:not(.ck-button_with-text),\na.ck.ck-button:not(.ck-button_with-text) {\n justify-content: center;\n}\n.ck.ck-button:hover .ck-tooltip,\na.ck.ck-button:hover .ck-tooltip {\n visibility: visible;\n opacity: 1;\n}\n.ck.ck-button:focus:not(:hover) .ck-tooltip,\na.ck.ck-button:focus:not(:hover) .ck-tooltip {\n display: none;\n}\n.ck.ck-button,\na.ck.ck-button {\n background: var(--ck-color-button-default-background);\n}\n.ck.ck-button:not(.ck-disabled):hover,\na.ck.ck-button:not(.ck-disabled):hover {\n background: var(--ck-color-button-default-hover-background);\n}\n.ck.ck-button:not(.ck-disabled):active,\na.ck.ck-button:not(.ck-disabled):active {\n background: var(--ck-color-button-default-active-background);\n box-shadow: inset 0 2px 2px var(--ck-color-button-default-active-shadow);\n}\n.ck.ck-button.ck-disabled,\na.ck.ck-button.ck-disabled {\n background: var(--ck-color-button-default-disabled-background);\n}\n.ck.ck-button,\na.ck.ck-button {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-button,\n.ck-rounded-corners a.ck.ck-button,\n.ck.ck-button.ck-rounded-corners,\na.ck.ck-button.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-button,\na.ck.ck-button {\n white-space: nowrap;\n cursor: default;\n vertical-align: middle;\n padding: var(--ck-spacing-tiny);\n text-align: center;\n min-width: var(--ck-ui-component-min-height);\n min-height: var(--ck-ui-component-min-height);\n line-height: 1;\n font-size: inherit;\n border: 1px solid transparent;\n transition: box-shadow 0.2s ease-in-out, border 0.2s ease-in-out;\n -webkit-appearance: none;\n}\n.ck.ck-button:active,\n.ck.ck-button:focus,\na.ck.ck-button:active,\na.ck.ck-button:focus {\n outline: none;\n border: var(--ck-focus-ring);\n box-shadow: var(--ck-focus-outer-shadow), 0 0;\n}\n.ck.ck-button .ck-button__icon use,\n.ck.ck-button .ck-button__icon use *,\na.ck.ck-button .ck-button__icon use,\na.ck.ck-button .ck-button__icon use * {\n color: inherit;\n}\n.ck.ck-button .ck-button__label,\na.ck.ck-button .ck-button__label {\n font-size: inherit;\n font-weight: inherit;\n color: inherit;\n cursor: inherit;\n vertical-align: middle;\n}\n[dir="ltr"] .ck.ck-button .ck-button__label,\n[dir="ltr"] a.ck.ck-button .ck-button__label {\n text-align: left;\n}\n[dir="rtl"] .ck.ck-button .ck-button__label,\n[dir="rtl"] a.ck.ck-button .ck-button__label {\n text-align: right;\n}\n.ck.ck-button .ck-button__keystroke,\na.ck.ck-button .ck-button__keystroke {\n color: inherit;\n}\n[dir="ltr"] .ck.ck-button .ck-button__keystroke,\n[dir="ltr"] a.ck.ck-button .ck-button__keystroke {\n margin-left: var(--ck-spacing-large);\n}\n[dir="rtl"] .ck.ck-button .ck-button__keystroke,\n[dir="rtl"] a.ck.ck-button .ck-button__keystroke {\n margin-right: var(--ck-spacing-large);\n}\n.ck.ck-button .ck-button__keystroke,\na.ck.ck-button .ck-button__keystroke {\n font-weight: 700;\n opacity: 0.7;\n}\n.ck.ck-button.ck-disabled:active,\n.ck.ck-button.ck-disabled:focus,\na.ck.ck-button.ck-disabled:active,\na.ck.ck-button.ck-disabled:focus {\n box-shadow: var(--ck-focus-disabled-outer-shadow), 0 0;\n}\n.ck.ck-button.ck-disabled .ck-button__icon,\na.ck.ck-button.ck-disabled .ck-button__icon {\n opacity: var(--ck-disabled-opacity);\n}\n.ck.ck-button.ck-disabled .ck-button__label,\na.ck.ck-button.ck-disabled .ck-button__label {\n opacity: var(--ck-disabled-opacity);\n}\n.ck.ck-button.ck-disabled .ck-button__keystroke,\na.ck.ck-button.ck-disabled .ck-button__keystroke {\n opacity: 0.3;\n}\n.ck.ck-button.ck-button_with-text,\na.ck.ck-button.ck-button_with-text {\n padding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n}\n[dir="ltr"] .ck.ck-button.ck-button_with-text .ck-button__icon,\n[dir="ltr"] a.ck.ck-button.ck-button_with-text .ck-button__icon {\n margin-left: calc(var(--ck-spacing-small) * -1);\n margin-right: var(--ck-spacing-small);\n}\n[dir="rtl"] .ck.ck-button.ck-button_with-text .ck-button__icon,\n[dir="rtl"] a.ck.ck-button.ck-button_with-text .ck-button__icon {\n margin-right: calc(var(--ck-spacing-small) * -1);\n margin-left: var(--ck-spacing-small);\n}\n.ck.ck-button.ck-button_with-keystroke .ck-button__label,\na.ck.ck-button.ck-button_with-keystroke .ck-button__label {\n flex-grow: 1;\n}\n.ck.ck-button.ck-on,\na.ck.ck-button.ck-on {\n background: var(--ck-color-button-on-background);\n}\n.ck.ck-button.ck-on:not(.ck-disabled):hover,\na.ck.ck-button.ck-on:not(.ck-disabled):hover {\n background: var(--ck-color-button-on-hover-background);\n}\n.ck.ck-button.ck-on:not(.ck-disabled):active,\na.ck.ck-button.ck-on:not(.ck-disabled):active {\n background: var(--ck-color-button-on-active-background);\n box-shadow: inset 0 2px 2px var(--ck-color-button-on-active-shadow);\n}\n.ck.ck-button.ck-on.ck-disabled,\na.ck.ck-button.ck-on.ck-disabled {\n background: var(--ck-color-button-on-disabled-background);\n}\n.ck.ck-button.ck-button-save,\na.ck.ck-button.ck-button-save {\n color: var(--ck-color-button-save);\n}\n.ck.ck-button.ck-button-cancel,\na.ck.ck-button.ck-button-cancel {\n color: var(--ck-color-button-cancel);\n}\n.ck.ck-button-action,\na.ck.ck-button-action {\n background: var(--ck-color-button-action-background);\n}\n.ck.ck-button-action:not(.ck-disabled):hover,\na.ck.ck-button-action:not(.ck-disabled):hover {\n background: var(--ck-color-button-action-hover-background);\n}\n.ck.ck-button-action:not(.ck-disabled):active,\na.ck.ck-button-action:not(.ck-disabled):active {\n background: var(--ck-color-button-action-active-background);\n box-shadow: inset 0 2px 2px var(--ck-color-button-action-active-shadow);\n}\n.ck.ck-button-action.ck-disabled,\na.ck.ck-button-action.ck-disabled {\n background: var(--ck-color-button-action-disabled-background);\n}\n.ck.ck-button-action,\na.ck.ck-button-action {\n color: var(--ck-color-button-action-text);\n}\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n font-weight: 700;\n}\n.ck.ck-button.ck-switchbutton .ck-button__toggle,\n.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner {\n display: block;\n}\n:root {\n --ck-switch-button-toggle-width: 2.6153846154em;\n --ck-switch-button-toggle-inner-size: 1.0769230769em;\n --ck-switch-button-toggle-spacing: 1px;\n --ck-switch-button-translation: calc(\n var(--ck-switch-button-toggle-width) -\n var(--ck-switch-button-toggle-inner-size) -\n var(--ck-switch-button-toggle-spacing) * 2\n );\n}\n[dir="ltr"] .ck.ck-button.ck-switchbutton .ck-button__label {\n margin-right: calc(var(--ck-spacing-large) * 2);\n}\n[dir="rtl"] .ck.ck-button.ck-switchbutton .ck-button__label {\n margin-left: calc(var(--ck-spacing-large) * 2);\n}\n.ck.ck-button.ck-switchbutton .ck-button__toggle {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,\n.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n[dir="ltr"] .ck.ck-button.ck-switchbutton .ck-button__toggle {\n margin-left: auto;\n}\n[dir="rtl"] .ck.ck-button.ck-switchbutton .ck-button__toggle {\n margin-right: auto;\n}\n.ck.ck-button.ck-switchbutton .ck-button__toggle {\n transition: background 0.4s ease;\n width: var(--ck-switch-button-toggle-width);\n background: var(--ck-color-switch-button-off-background);\n}\n.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner {\n border-radius: 0;\n}\n.ck-rounded-corners\n .ck.ck-button.ck-switchbutton\n .ck-button__toggle\n .ck-button__toggle__inner,\n.ck.ck-button.ck-switchbutton\n .ck-button__toggle\n .ck-button__toggle__inner.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n border-radius: calc(var(--ck-border-radius) * 0.5);\n}\n.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner {\n margin: var(--ck-switch-button-toggle-spacing);\n width: var(--ck-switch-button-toggle-inner-size);\n height: var(--ck-switch-button-toggle-inner-size);\n background: var(--ck-color-switch-button-inner-background);\n transition: all 0.3s ease;\n}\n.ck.ck-button.ck-switchbutton .ck-button__toggle:hover {\n background: var(--ck-color-switch-button-off-hover-background);\n}\n.ck.ck-button.ck-switchbutton\n .ck-button__toggle:hover\n .ck-button__toggle__inner {\n box-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle {\n opacity: var(--ck-disabled-opacity);\n}\n.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle {\n background: var(--ck-color-switch-button-on-background);\n}\n.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover {\n background: var(--ck-color-switch-button-on-hover-background);\n}\n[dir="ltr"]\n .ck.ck-button.ck-switchbutton.ck-on\n .ck-button__toggle\n .ck-button__toggle__inner {\n transform: translateX(var(--ck-switch-button-translation));\n}\n[dir="rtl"]\n .ck.ck-button.ck-switchbutton.ck-on\n .ck-button__toggle\n .ck-button__toggle__inner {\n transform: translateX(calc(var(--ck-switch-button-translation) * -1));\n}\n.ck.ck-color-grid {\n display: grid;\n}\n:root {\n --ck-color-grid-tile-size: 24px;\n --ck-color-color-grid-check-icon: #000;\n}\n.ck.ck-color-grid {\n grid-gap: 5px;\n padding: 8px;\n}\n.ck.ck-color-grid__tile {\n width: var(--ck-color-grid-tile-size);\n height: var(--ck-color-grid-tile-size);\n min-width: var(--ck-color-grid-tile-size);\n min-height: var(--ck-color-grid-tile-size);\n padding: 0;\n transition: box-shadow 0.2s ease;\n border: 0;\n}\n.ck.ck-color-grid__tile.ck-disabled {\n cursor: unset;\n transition: unset;\n}\n.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered {\n box-shadow: 0 0 0 1px var(--ck-color-base-border);\n}\n.ck.ck-color-grid__tile .ck.ck-icon {\n display: none;\n color: var(--ck-color-color-grid-check-icon);\n}\n.ck.ck-color-grid__tile.ck-on {\n box-shadow: inset 0 0 0 1px var(--ck-color-base-background),\n 0 0 0 2px var(--ck-color-base-text);\n}\n.ck.ck-color-grid__tile.ck-on .ck.ck-icon {\n display: block;\n}\n.ck.ck-color-grid__tile.ck-on,\n.ck.ck-color-grid__tile:focus:not(.ck-disabled),\n.ck.ck-color-grid__tile:hover:not(.ck-disabled) {\n border: 0;\n}\n.ck.ck-color-grid__tile:focus:not(.ck-disabled),\n.ck.ck-color-grid__tile:hover:not(.ck-disabled) {\n box-shadow: inset 0 0 0 1px var(--ck-color-base-background),\n 0 0 0 2px var(--ck-color-focus-border);\n}\n.ck.ck-color-grid__label {\n padding: 0 var(--ck-spacing-standard);\n}\n.ck.ck-splitbutton {\n font-size: inherit;\n}\n.ck.ck-splitbutton .ck-splitbutton__action:focus {\n z-index: calc(var(--ck-z-default) + 1);\n}\n.ck.ck-splitbutton.ck-splitbutton_open > .ck-button .ck-tooltip {\n display: none;\n}\n:root {\n --ck-color-split-button-hover-background: #ebebeb;\n --ck-color-split-button-hover-border: #b3b3b3;\n}\n[dir="ltr"] .ck.ck-splitbutton.ck-splitbutton_open > .ck-splitbutton__action,\n[dir="ltr"] .ck.ck-splitbutton:hover > .ck-splitbutton__action {\n border-top-right-radius: unset;\n border-bottom-right-radius: unset;\n}\n[dir="rtl"] .ck.ck-splitbutton.ck-splitbutton_open > .ck-splitbutton__action,\n[dir="rtl"] .ck.ck-splitbutton:hover > .ck-splitbutton__action {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n}\n.ck.ck-splitbutton > .ck-splitbutton__arrow {\n min-width: unset;\n}\n[dir="ltr"] .ck.ck-splitbutton > .ck-splitbutton__arrow {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n}\n[dir="rtl"] .ck.ck-splitbutton > .ck-splitbutton__arrow {\n border-top-right-radius: unset;\n border-bottom-right-radius: unset;\n}\n.ck.ck-splitbutton > .ck-splitbutton__arrow svg {\n width: var(--ck-dropdown-arrow-size);\n}\n.ck.ck-splitbutton.ck-splitbutton_open\n > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover),\n.ck.ck-splitbutton:hover\n > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n background: var(--ck-color-split-button-hover-background);\n}\n.ck.ck-splitbutton.ck-splitbutton_open\n > .ck-splitbutton__arrow:not(.ck-disabled):after,\n.ck.ck-splitbutton:hover > .ck-splitbutton__arrow:not(.ck-disabled):after {\n content: "";\n position: absolute;\n width: 1px;\n height: 100%;\n background-color: var(--ck-color-split-button-hover-border);\n}\n[dir="ltr"]\n .ck.ck-splitbutton.ck-splitbutton_open\n > .ck-splitbutton__arrow:not(.ck-disabled):after,\n[dir="ltr"]\n .ck.ck-splitbutton:hover\n > .ck-splitbutton__arrow:not(.ck-disabled):after {\n left: -1px;\n}\n[dir="rtl"]\n .ck.ck-splitbutton.ck-splitbutton_open\n > .ck-splitbutton__arrow:not(.ck-disabled):after,\n[dir="rtl"]\n .ck.ck-splitbutton:hover\n > .ck-splitbutton__arrow:not(.ck-disabled):after {\n right: -1px;\n}\n.ck.ck-splitbutton.ck-splitbutton_open {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,\n.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck-rounded-corners\n .ck.ck-splitbutton.ck-splitbutton_open\n > .ck-splitbutton__action,\n.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners\n > .ck-splitbutton__action {\n border-bottom-left-radius: 0;\n}\n.ck-rounded-corners\n .ck.ck-splitbutton.ck-splitbutton_open\n > .ck-splitbutton__arrow,\n.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners\n > .ck-splitbutton__arrow {\n border-bottom-right-radius: 0;\n}\n:root {\n --ck-dropdown-max-width: 75vw;\n}\n.ck.ck-dropdown {\n display: inline-block;\n position: relative;\n}\n.ck.ck-dropdown .ck-dropdown__arrow {\n pointer-events: none;\n z-index: var(--ck-z-default);\n}\n.ck.ck-dropdown .ck-button.ck-dropdown__button {\n width: 100%;\n}\n.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip {\n display: none;\n}\n.ck.ck-dropdown .ck-dropdown__panel {\n -webkit-backface-visibility: hidden;\n display: none;\n z-index: var(--ck-z-modal);\n max-width: var(--ck-dropdown-max-width);\n position: absolute;\n}\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible {\n display: inline-block;\n}\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw {\n bottom: 100%;\n}\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw {\n top: 100%;\n bottom: auto;\n}\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se {\n left: 0;\n}\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw {\n right: 0;\n}\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s {\n left: 50%;\n transform: translateX(-50%);\n}\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw {\n left: 75%;\n transform: translateX(-75%);\n}\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,\n.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme {\n left: 25%;\n transform: translateX(-25%);\n}\n.ck.ck-toolbar .ck-dropdown__panel {\n z-index: calc(var(--ck-z-modal) + 1);\n}\n:root {\n --ck-dropdown-arrow-size: calc(var(--ck-icon-size) * 0.5);\n}\n.ck.ck-dropdown {\n font-size: inherit;\n}\n.ck.ck-dropdown .ck-dropdown__arrow {\n width: var(--ck-dropdown-arrow-size);\n}\n[dir="ltr"] .ck.ck-dropdown .ck-dropdown__arrow {\n right: var(--ck-spacing-standard);\n margin-left: var(--ck-spacing-standard);\n}\n[dir="rtl"] .ck.ck-dropdown .ck-dropdown__arrow {\n left: var(--ck-spacing-standard);\n margin-right: var(--ck-spacing-small);\n}\n.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow {\n opacity: var(--ck-disabled-opacity);\n}\n[dir="ltr"]\n .ck.ck-dropdown\n .ck-button.ck-dropdown__button:not(.ck-button_with-text) {\n padding-left: var(--ck-spacing-small);\n}\n[dir="rtl"]\n .ck.ck-dropdown\n .ck-button.ck-dropdown__button:not(.ck-button_with-text) {\n padding-right: var(--ck-spacing-small);\n}\n.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label {\n width: 7em;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label {\n opacity: var(--ck-disabled-opacity);\n}\n.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ck.ck-dropdown\n .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto\n .ck-button__label {\n width: auto;\n}\n.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,\n.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active {\n box-shadow: none;\n}\n.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,\n.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus {\n box-shadow: var(--ck-focus-outer-shadow), 0 0;\n}\n.ck.ck-dropdown__panel {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-dropdown__panel,\n.ck.ck-dropdown__panel.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-dropdown__panel {\n box-shadow: var(--ck-drop-shadow), 0 0;\n background: var(--ck-color-dropdown-panel-background);\n border: 1px solid var(--ck-color-dropdown-panel-border);\n bottom: 0;\n min-width: 100%;\n}\n.ck.ck-dropdown__panel.ck-dropdown__panel_se {\n border-top-left-radius: 0;\n}\n.ck.ck-dropdown__panel.ck-dropdown__panel_sw {\n border-top-right-radius: 0;\n}\n.ck.ck-dropdown__panel.ck-dropdown__panel_ne {\n border-bottom-left-radius: 0;\n}\n.ck.ck-dropdown__panel.ck-dropdown__panel_nw {\n border-bottom-right-radius: 0;\n}\n.ck.ck-toolbar {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n}\n.ck.ck-toolbar > .ck-toolbar__items {\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n flex-grow: 1;\n}\n.ck.ck-toolbar .ck.ck-toolbar__separator {\n display: inline-block;\n}\n.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,\n.ck.ck-toolbar .ck.ck-toolbar__separator:last-child {\n display: none;\n}\n.ck.ck-toolbar .ck-toolbar__line-break {\n flex-basis: 100%;\n}\n.ck.ck-toolbar.ck-toolbar_grouping > .ck-toolbar__items {\n flex-wrap: nowrap;\n}\n.ck.ck-toolbar.ck-toolbar_vertical > .ck-toolbar__items {\n flex-direction: column;\n}\n.ck.ck-toolbar.ck-toolbar_floating > .ck-toolbar__items {\n flex-wrap: nowrap;\n}\n.ck.ck-toolbar\n > .ck.ck-toolbar__grouped-dropdown\n > .ck-dropdown__button\n .ck-dropdown__arrow {\n display: none;\n}\n.ck.ck-toolbar {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-toolbar,\n.ck.ck-toolbar.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-toolbar {\n background: var(--ck-color-toolbar-background);\n padding: 0 var(--ck-spacing-small);\n border: 1px solid var(--ck-color-toolbar-border);\n}\n.ck.ck-toolbar .ck.ck-toolbar__separator {\n align-self: stretch;\n width: 1px;\n min-width: 1px;\n background: var(--ck-color-toolbar-border);\n margin-top: var(--ck-spacing-small);\n margin-bottom: var(--ck-spacing-small);\n}\n.ck.ck-toolbar .ck-toolbar__line-break {\n height: 0;\n}\n.ck.ck-toolbar > .ck-toolbar__items > :not(.ck-toolbar__line-break) {\n margin-right: var(--ck-spacing-small);\n}\n.ck.ck-toolbar > .ck-toolbar__items:empty + .ck.ck-toolbar__separator {\n display: none;\n}\n.ck.ck-toolbar > .ck-toolbar__items > :not(.ck-toolbar__line-break),\n.ck.ck-toolbar > .ck.ck-toolbar__grouped-dropdown {\n margin-top: var(--ck-spacing-small);\n margin-bottom: var(--ck-spacing-small);\n}\n.ck.ck-toolbar.ck-toolbar_vertical {\n padding: 0;\n}\n.ck.ck-toolbar.ck-toolbar_vertical > .ck-toolbar__items > .ck {\n width: 100%;\n margin: 0;\n border-radius: 0;\n border: 0;\n}\n.ck.ck-toolbar.ck-toolbar_compact {\n padding: 0;\n}\n.ck.ck-toolbar.ck-toolbar_compact > .ck-toolbar__items > * {\n margin: 0;\n}\n.ck.ck-toolbar.ck-toolbar_compact\n > .ck-toolbar__items\n > :not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.ck.ck-toolbar\n > .ck.ck-toolbar__grouped-dropdown\n > .ck.ck-button.ck-dropdown__button {\n padding-left: var(--ck-spacing-tiny);\n}\n.ck-toolbar-container .ck.ck-toolbar {\n border: 0;\n}\n.ck.ck-toolbar[dir="rtl"] > .ck-toolbar__items > .ck,\n[dir="rtl"] .ck.ck-toolbar > .ck-toolbar__items > .ck {\n margin-right: 0;\n}\n.ck.ck-toolbar[dir="rtl"]:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck,\n[dir="rtl"] .ck.ck-toolbar:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n margin-left: var(--ck-spacing-small);\n}\n.ck.ck-toolbar[dir="rtl"] > .ck-toolbar__items > .ck:last-child,\n[dir="rtl"] .ck.ck-toolbar > .ck-toolbar__items > .ck:last-child {\n margin-left: 0;\n}\n.ck.ck-toolbar[dir="rtl"].ck-toolbar_compact\n > .ck-toolbar__items\n > .ck:first-child,\n[dir="rtl"]\n .ck.ck-toolbar.ck-toolbar_compact\n > .ck-toolbar__items\n > .ck:first-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ck.ck-toolbar[dir="rtl"].ck-toolbar_compact\n > .ck-toolbar__items\n > .ck:last-child,\n[dir="rtl"]\n .ck.ck-toolbar.ck-toolbar_compact\n > .ck-toolbar__items\n > .ck:last-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ck.ck-toolbar[dir="rtl"] > .ck.ck-toolbar__separator,\n[dir="rtl"] .ck.ck-toolbar > .ck.ck-toolbar__separator {\n margin-left: var(--ck-spacing-small);\n}\n.ck.ck-toolbar[dir="rtl"].ck-toolbar_grouping\n > .ck-toolbar__items:not(:empty):not(:only-child),\n[dir="rtl"]\n .ck.ck-toolbar.ck-toolbar_grouping\n > .ck-toolbar__items:not(:empty):not(:only-child) {\n margin-left: var(--ck-spacing-small);\n}\n.ck.ck-toolbar[dir="ltr"] > .ck-toolbar__items > .ck:last-child,\n[dir="ltr"] .ck.ck-toolbar > .ck-toolbar__items > .ck:last-child {\n margin-right: 0;\n}\n.ck.ck-toolbar[dir="ltr"].ck-toolbar_compact\n > .ck-toolbar__items\n > .ck:first-child,\n[dir="ltr"]\n .ck.ck-toolbar.ck-toolbar_compact\n > .ck-toolbar__items\n > .ck:first-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ck.ck-toolbar[dir="ltr"].ck-toolbar_compact\n > .ck-toolbar__items\n > .ck:last-child,\n[dir="ltr"]\n .ck.ck-toolbar.ck-toolbar_compact\n > .ck-toolbar__items\n > .ck:last-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ck.ck-toolbar[dir="ltr"] > .ck.ck-toolbar__separator,\n[dir="ltr"] .ck.ck-toolbar > .ck.ck-toolbar__separator {\n margin-right: var(--ck-spacing-small);\n}\n.ck.ck-toolbar[dir="ltr"].ck-toolbar_grouping\n > .ck-toolbar__items:not(:empty):not(:only-child),\n[dir="ltr"]\n .ck.ck-toolbar.ck-toolbar_grouping\n > .ck-toolbar__items:not(:empty):not(:only-child) {\n margin-right: var(--ck-spacing-small);\n}\n.ck.ck-list {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n flex-direction: column;\n}\n.ck.ck-list .ck-list__item,\n.ck.ck-list .ck-list__separator {\n display: block;\n}\n.ck.ck-list .ck-list__item > :focus {\n position: relative;\n z-index: var(--ck-z-default);\n}\n.ck.ck-list {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-list,\n.ck.ck-list.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-list {\n list-style-type: none;\n background: var(--ck-color-list-background);\n}\n.ck.ck-list__item {\n cursor: default;\n min-width: 12em;\n}\n.ck.ck-list__item .ck-button {\n min-height: unset;\n width: 100%;\n text-align: left;\n border-radius: 0;\n padding: calc(var(--ck-line-height-base) * 0.2 * var(--ck-font-size-base))\n calc(var(--ck-line-height-base) * 0.4 * var(--ck-font-size-base));\n}\n.ck.ck-list__item .ck-button .ck-button__label {\n line-height: calc(\n var(--ck-line-height-base) * 1.2 * var(--ck-font-size-base)\n );\n}\n.ck.ck-list__item .ck-button:active {\n box-shadow: none;\n}\n.ck.ck-list__item .ck-button.ck-on {\n background: var(--ck-color-list-button-on-background);\n color: var(--ck-color-list-button-on-text);\n}\n.ck.ck-list__item .ck-button.ck-on:active {\n box-shadow: none;\n}\n.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled) {\n background: var(--ck-color-list-button-on-background-focus);\n}\n.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled) {\n border-color: var(--ck-color-base-background);\n}\n.ck.ck-list__item .ck-button:hover:not(.ck-disabled) {\n background: var(--ck-color-list-button-hover-background);\n}\n.ck.ck-list__item .ck-switchbutton.ck-on {\n background: var(--ck-color-list-background);\n color: inherit;\n}\n.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled) {\n background: var(--ck-color-list-button-hover-background);\n color: inherit;\n}\n.ck.ck-list__separator {\n height: 1px;\n width: 100%;\n background: var(--ck-color-base-border);\n}\n:root {\n --ck-toolbar-dropdown-max-width: 60vw;\n}\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n width: max-content;\n max-width: var(--ck-toolbar-dropdown-max-width);\n}\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel .ck-button:focus {\n z-index: calc(var(--ck-z-default) + 1);\n}\n.ck.ck-toolbar-dropdown .ck-toolbar {\n border: 0;\n}\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,\n.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n border-top-left-radius: 0;\n}\n.ck.ck-dropdown\n .ck-dropdown__panel\n .ck-list\n .ck-list__item:first-child\n .ck-button {\n border-radius: 0;\n}\n.ck-rounded-corners\n .ck.ck-dropdown\n .ck-dropdown__panel\n .ck-list\n .ck-list__item:first-child\n .ck-button,\n.ck.ck-dropdown\n .ck-dropdown__panel\n .ck-list\n .ck-list__item:first-child\n .ck-button.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ck.ck-dropdown\n .ck-dropdown__panel\n .ck-list\n .ck-list__item:last-child\n .ck-button {\n border-radius: 0;\n}\n.ck-rounded-corners\n .ck.ck-dropdown\n .ck-dropdown__panel\n .ck-list\n .ck-list__item:last-child\n .ck-button,\n.ck.ck-dropdown\n .ck-dropdown__panel\n .ck-list\n .ck-list__item:last-child\n .ck-button.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n:root {\n --ck-color-editable-blur-selection: #d9d9d9;\n}\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),\n.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused {\n outline: none;\n border: var(--ck-focus-ring);\n box-shadow: var(--ck-inner-shadow), 0 0;\n}\n.ck.ck-editor__editable_inline {\n overflow: auto;\n padding: 0 var(--ck-spacing-standard);\n border: 1px solid transparent;\n}\n.ck.ck-editor__editable_inline[dir="ltr"] {\n text-align: left;\n}\n.ck.ck-editor__editable_inline[dir="rtl"] {\n text-align: right;\n}\n.ck.ck-editor__editable_inline > :first-child {\n margin-top: var(--ck-spacing-large);\n}\n.ck.ck-editor__editable_inline > :last-child {\n margin-bottom: var(--ck-spacing-large);\n}\n.ck.ck-editor__editable_inline.ck-blurred ::selection {\n background: var(--ck-color-editable-blur-selection);\n}\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"]:after {\n border-bottom-color: var(--ck-color-base-foreground);\n}\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"]:after {\n border-top-color: var(--ck-color-base-foreground);\n}\n.ck.ck-label {\n display: block;\n}\n.ck.ck-voice-label {\n display: none;\n}\n.ck.ck-label {\n font-weight: 700;\n}\n.ck.ck-form__header {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n justify-content: space-between;\n}\n:root {\n --ck-form-header-height: 38px;\n}\n.ck.ck-form__header {\n padding: var(--ck-spacing-small) var(--ck-spacing-large);\n height: var(--ck-form-header-height);\n line-height: var(--ck-form-header-height);\n border-bottom: 1px solid var(--ck-color-base-border);\n}\n.ck.ck-form__header .ck-form__header__label {\n font-weight: 700;\n}\n:root {\n --ck-input-width: 18em;\n --ck-input-text-width: var(--ck-input-width);\n}\n.ck.ck-input {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-input,\n.ck.ck-input.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-input {\n background: var(--ck-color-input-background);\n border: 1px solid var(--ck-color-input-border);\n padding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n min-width: var(--ck-input-width);\n min-height: var(--ck-ui-component-min-height);\n transition: box-shadow 0.1s ease-in-out, border 0.1s ease-in-out;\n}\n.ck.ck-input:focus {\n outline: none;\n border: var(--ck-focus-ring);\n box-shadow: var(--ck-focus-outer-shadow), 0 0;\n}\n.ck.ck-input[readonly] {\n border: 1px solid var(--ck-color-input-disabled-border);\n background: var(--ck-color-input-disabled-background);\n color: var(--ck-color-input-disabled-text);\n}\n.ck.ck-input[readonly]:focus {\n box-shadow: var(--ck-focus-disabled-outer-shadow), 0 0;\n}\n.ck.ck-input.ck-error {\n border-color: var(--ck-color-input-error-border);\n animation: ck-input-shake 0.3s ease both;\n}\n.ck.ck-input.ck-error:focus {\n box-shadow: var(--ck-focus-error-outer-shadow), 0 0;\n}\n@keyframes ck-input-shake {\n 20% {\n transform: translateX(-2px);\n }\n 40% {\n transform: translateX(2px);\n }\n 60% {\n transform: translateX(-1px);\n }\n 80% {\n transform: translateX(1px);\n }\n}\n.ck.ck-labeled-field-view > .ck.ck-labeled-field-view__input-wrapper {\n display: flex;\n position: relative;\n}\n.ck.ck-labeled-field-view .ck.ck-label {\n display: block;\n position: absolute;\n}\n:root {\n --ck-labeled-field-view-transition: 0.1s cubic-bezier(0, 0, 0.24, 0.95);\n --ck-labeled-field-empty-unfocused-max-width: 100% - 2 *\n var(--ck-spacing-medium);\n --ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n.ck.ck-labeled-field-view {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-labeled-field-view,\n.ck.ck-labeled-field-view.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-labeled-field-view > .ck.ck-labeled-field-view__input-wrapper {\n width: 100%;\n}\n.ck.ck-labeled-field-view\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label {\n top: 0;\n}\n[dir="ltr"]\n .ck.ck-labeled-field-view\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label {\n left: 0;\n}\n[dir="rtl"]\n .ck.ck-labeled-field-view\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label {\n right: 0;\n}\n.ck.ck-labeled-field-view\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label {\n pointer-events: none;\n transform-origin: 0 0;\n transform: translate(var(--ck-spacing-medium), -6px) scale(0.75);\n background: var(--ck-color-labeled-field-label-background);\n padding: 0 calc(var(--ck-font-size-tiny) * 0.5);\n line-height: normal;\n font-weight: 400;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 100%;\n transition: transform var(--ck-labeled-field-view-transition),\n padding var(--ck-labeled-field-view-transition),\n background var(--ck-labeled-field-view-transition);\n}\n.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly]) + .ck.ck-label,\n.ck.ck-labeled-field-view.ck-error\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label {\n color: var(--ck-color-base-error);\n}\n.ck.ck-labeled-field-view .ck-labeled-field-view__status {\n font-size: var(--ck-font-size-small);\n margin-top: var(--ck-spacing-small);\n white-space: normal;\n}\n.ck.ck-labeled-field-view\n .ck-labeled-field-view__status.ck-labeled-field-view__status_error {\n color: var(--ck-color-base-error);\n}\n.ck.ck-labeled-field-view.ck-disabled\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label,\n.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label {\n color: var(--ck-color-input-disabled-text);\n}\n[dir="ltr"]\n .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label,\n[dir="ltr"]\n .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label {\n transform: translate(\n var(--ck-spacing-medium),\n calc(var(--ck-font-size-base) * 0.6)\n )\n scale(1);\n}\n[dir="rtl"]\n .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label,\n[dir="rtl"]\n .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label {\n transform: translate(\n calc(var(--ck-spacing-medium) * -1),\n calc(var(--ck-font-size-base) * 0.6)\n )\n scale(1);\n}\n.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label,\n.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck.ck-label {\n max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n background: transparent;\n padding: 0;\n}\n.ck.ck-labeled-field-view\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck-dropdown\n > .ck.ck-button {\n background: transparent;\n}\n.ck.ck-labeled-field-view.ck-labeled-field-view_empty\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck-dropdown\n > .ck-button\n > .ck-button__label {\n opacity: 0;\n}\n.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)\n > .ck.ck-labeled-field-view__input-wrapper\n > .ck-dropdown\n + .ck-label {\n max-width: calc(\n var(--ck-labeled-field-empty-unfocused-max-width) -\n var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard)\n );\n}\n:root {\n --ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n.ck.ck-balloon-panel {\n display: none;\n position: absolute;\n z-index: var(--ck-z-modal);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,\n.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before {\n content: "";\n position: absolute;\n}\n.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before {\n z-index: var(--ck-balloon-panel-arrow-z-index);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after {\n z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n}\n.ck.ck-balloon-panel[class*="arrow_n"]:before {\n z-index: var(--ck-balloon-panel-arrow-z-index);\n}\n.ck.ck-balloon-panel[class*="arrow_n"]:after {\n z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n}\n.ck.ck-balloon-panel[class*="arrow_s"]:before {\n z-index: var(--ck-balloon-panel-arrow-z-index);\n}\n.ck.ck-balloon-panel[class*="arrow_s"]:after {\n z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_visible {\n display: block;\n}\n:root {\n --ck-balloon-arrow-offset: 2px;\n --ck-balloon-arrow-height: 10px;\n --ck-balloon-arrow-half-width: 8px;\n --ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n.ck.ck-balloon-panel {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-balloon-panel,\n.ck.ck-balloon-panel.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-balloon-panel {\n box-shadow: var(--ck-drop-shadow), 0 0;\n min-height: 15px;\n background: var(--ck-color-panel-background);\n border: 1px solid var(--ck-color-panel-border);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,\n.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before {\n width: 0;\n height: 0;\n border-style: solid;\n}\n.ck.ck-balloon-panel[class*="arrow_n"]:after,\n.ck.ck-balloon-panel[class*="arrow_n"]:before {\n border-left-width: var(--ck-balloon-arrow-half-width);\n border-bottom-width: var(--ck-balloon-arrow-height);\n border-right-width: var(--ck-balloon-arrow-half-width);\n border-top-width: 0;\n}\n.ck.ck-balloon-panel[class*="arrow_n"]:before {\n border-bottom-color: var(--ck-color-panel-border);\n}\n.ck.ck-balloon-panel[class*="arrow_n"]:after,\n.ck.ck-balloon-panel[class*="arrow_n"]:before {\n border-left-color: transparent;\n border-right-color: transparent;\n border-top-color: transparent;\n}\n.ck.ck-balloon-panel[class*="arrow_n"]:after {\n border-bottom-color: var(--ck-color-panel-background);\n margin-top: var(--ck-balloon-arrow-offset);\n}\n.ck.ck-balloon-panel[class*="arrow_s"]:after,\n.ck.ck-balloon-panel[class*="arrow_s"]:before {\n border-left-width: var(--ck-balloon-arrow-half-width);\n border-bottom-width: 0;\n border-right-width: var(--ck-balloon-arrow-half-width);\n border-top-width: var(--ck-balloon-arrow-height);\n}\n.ck.ck-balloon-panel[class*="arrow_s"]:before {\n border-top-color: var(--ck-color-panel-border);\n filter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n}\n.ck.ck-balloon-panel[class*="arrow_s"]:after,\n.ck.ck-balloon-panel[class*="arrow_s"]:before {\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-right-color: transparent;\n}\n.ck.ck-balloon-panel[class*="arrow_s"]:after {\n border-top-color: var(--ck-color-panel-background);\n margin-bottom: var(--ck-balloon-arrow-offset);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before {\n left: 50%;\n margin-left: calc(var(--ck-balloon-arrow-half-width) * -1);\n top: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before {\n left: calc(var(--ck-balloon-arrow-half-width) * 2);\n top: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before {\n right: calc(var(--ck-balloon-arrow-half-width) * 2);\n top: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before {\n left: 50%;\n margin-left: calc(var(--ck-balloon-arrow-half-width) * -1);\n bottom: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before {\n left: calc(var(--ck-balloon-arrow-half-width) * 2);\n bottom: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before {\n right: calc(var(--ck-balloon-arrow-half-width) * 2);\n bottom: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before {\n right: 25%;\n margin-right: calc(var(--ck-balloon-arrow-half-width) * 2);\n bottom: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before {\n left: 25%;\n margin-left: calc(var(--ck-balloon-arrow-half-width) * 2);\n bottom: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before {\n right: 25%;\n margin-right: calc(var(--ck-balloon-arrow-half-width) * 2);\n top: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,\n.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before {\n left: 25%;\n margin-left: calc(var(--ck-balloon-arrow-half-width) * 2);\n top: calc(var(--ck-balloon-arrow-height) * -1);\n}\n.ck .ck-balloon-rotator__navigation {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.ck .ck-balloon-rotator__content .ck-toolbar {\n justify-content: center;\n}\n.ck .ck-balloon-rotator__navigation {\n background: var(--ck-color-toolbar-background);\n border-bottom: 1px solid var(--ck-color-toolbar-border);\n padding: 0 var(--ck-spacing-small);\n}\n.ck .ck-balloon-rotator__navigation > * {\n margin-right: var(--ck-spacing-small);\n margin-top: var(--ck-spacing-small);\n margin-bottom: var(--ck-spacing-small);\n}\n.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter {\n margin-right: var(--ck-spacing-standard);\n margin-left: var(--ck-spacing-small);\n}\n.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper {\n box-shadow: none;\n}\n.ck .ck-fake-panel {\n position: absolute;\n z-index: calc(var(--ck-z-modal) - 1);\n}\n.ck .ck-fake-panel div {\n position: absolute;\n}\n.ck .ck-fake-panel div:first-child {\n z-index: 2;\n}\n.ck .ck-fake-panel div:nth-child(2) {\n z-index: 1;\n}\n:root {\n --ck-balloon-fake-panel-offset-horizontal: 6px;\n --ck-balloon-fake-panel-offset-vertical: 6px;\n}\n.ck .ck-fake-panel div {\n box-shadow: var(--ck-drop-shadow), 0 0;\n min-height: 15px;\n background: var(--ck-color-panel-background);\n border: 1px solid var(--ck-color-panel-border);\n border-radius: var(--ck-border-radius);\n width: 100%;\n height: 100%;\n}\n.ck .ck-fake-panel div:first-child {\n margin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n margin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n.ck .ck-fake-panel div:nth-child(2) {\n margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child(3) {\n margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\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 --ck-balloon-fake-panel-offset-vertical: -6px;\n}\n.ck.ck-sticky-panel .ck-sticky-panel__content_sticky {\n z-index: var(--ck-z-modal);\n position: fixed;\n top: 0;\n}\n.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit {\n top: auto;\n position: absolute;\n}\n.ck.ck-sticky-panel .ck-sticky-panel__content_sticky {\n box-shadow: var(--ck-drop-shadow), 0 0;\n border-width: 0 1px 1px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.ck.ck-block-toolbar-button {\n position: absolute;\n z-index: var(--ck-z-default);\n}\n:root {\n --ck-color-block-toolbar-button: var(--ck-color-text);\n --ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n.ck.ck-block-toolbar-button {\n color: var(--ck-color-block-toolbar-button);\n font-size: var(--ck-block-toolbar-size);\n}\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n position: relative;\n}\n.ck.ck-placeholder:before,\n.ck .ck-placeholder:before {\n position: absolute;\n left: 0;\n right: 0;\n content: attr(data-placeholder);\n pointer-events: none;\n}\n.ck.ck-read-only .ck-placeholder:before {\n display: none;\n}\n.ck.ck-placeholder:before,\n.ck .ck-placeholder:before {\n cursor: text;\n color: var(--ck-color-engine-placeholder-text);\n}\n.ck.ck-editor {\n position: relative;\n}\n.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar {\n z-index: var(--ck-z-modal);\n}\n.ck.ck-editor__top .ck-sticky-panel .ck-toolbar {\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,\n.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ck.ck-editor__top .ck-sticky-panel .ck-toolbar {\n border-bottom-width: 0;\n}\n.ck.ck-editor__top\n .ck-sticky-panel\n .ck-sticky-panel__content_sticky\n .ck-toolbar {\n border-bottom-width: 1px;\n border-radius: 0;\n}\n.ck-rounded-corners\n .ck.ck-editor__top\n .ck-sticky-panel\n .ck-sticky-panel__content_sticky\n .ck-toolbar,\n.ck.ck-editor__top\n .ck-sticky-panel\n .ck-sticky-panel__content_sticky\n .ck-toolbar.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n border-radius: 0;\n}\n.ck.ck-editor__main > .ck-editor__editable {\n background: var(--ck-color-base-background);\n border-radius: 0;\n}\n.ck-rounded-corners .ck.ck-editor__main > .ck-editor__editable,\n.ck.ck-editor__main > .ck-editor__editable.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {\n border-color: var(--ck-color-base-border);\n}\n.ck .ck-widget .ck-widget__type-around__button {\n display: block;\n position: absolute;\n overflow: hidden;\n z-index: var(--ck-z-default);\n}\n.ck .ck-widget .ck-widget__type-around__button svg {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: calc(var(--ck-z-default) + 2);\n}\n.ck\n .ck-widget\n .ck-widget__type-around__button.ck-widget__type-around__button_before {\n top: calc(var(--ck-widget-outline-thickness) * -0.5);\n left: min(10%, 30px);\n transform: translateY(-50%);\n}\n.ck\n .ck-widget\n .ck-widget__type-around__button.ck-widget__type-around__button_after {\n bottom: calc(var(--ck-widget-outline-thickness) * -0.5);\n right: min(10%, 30px);\n transform: translateY(50%);\n}\n.ck\n .ck-widget.ck-widget_selected\n > .ck-widget__type-around\n > .ck-widget__type-around__button:after,\n.ck\n .ck-widget\n > .ck-widget__type-around\n > .ck-widget__type-around__button:hover:after {\n content: "";\n display: block;\n position: absolute;\n top: 1px;\n left: 1px;\n z-index: calc(var(--ck-z-default) + 1);\n}\n.ck .ck-widget > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n}\n.ck\n .ck-widget:hover\n > .ck-widget__type-around\n > .ck-widget__type-around__fake-caret {\n left: calc(var(--ck-widget-outline-thickness) * -1);\n right: calc(var(--ck-widget-outline-thickness) * -1);\n}\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_before\n > .ck-widget__type-around\n > .ck-widget__type-around__fake-caret {\n top: calc(var(--ck-widget-outline-thickness) * -1 - 1px);\n display: block;\n}\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_after\n > .ck-widget__type-around\n > .ck-widget__type-around__fake-caret {\n bottom: calc(var(--ck-widget-outline-thickness) * -1 - 1px);\n display: block;\n}\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted\n .ck-widget__type-around,\n.ck.ck-editor__editable.ck-widget__type-around_disabled\n .ck-widget__type-around {\n display: none;\n}\n:root {\n --ck-widget-type-around-button-size: 20px;\n --ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n --ck-color-widget-type-around-button-hover: var(\n --ck-color-widget-hover-border\n );\n --ck-color-widget-type-around-button-blurred-editable: var(\n --ck-color-widget-blurred-border\n );\n --ck-color-widget-type-around-button-radar-start-alpha: 0;\n --ck-color-widget-type-around-button-radar-end-alpha: 0.3;\n --ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n.ck .ck-widget .ck-widget__type-around__button {\n width: var(--ck-widget-type-around-button-size);\n height: var(--ck-widget-type-around-button-size);\n background: var(--ck-color-widget-type-around-button);\n border-radius: 100px;\n transition: opacity var(--ck-widget-handler-animation-duration)\n var(--ck-widget-handler-animation-curve),\n background var(--ck-widget-handler-animation-duration)\n var(--ck-widget-handler-animation-curve);\n opacity: 0;\n pointer-events: none;\n}\n.ck .ck-widget .ck-widget__type-around__button svg {\n width: 10px;\n height: 8px;\n transform: translate(-50%, -50%);\n transition: transform 0.5s ease;\n margin-top: 1px;\n}\n.ck .ck-widget .ck-widget__type-around__button svg * {\n stroke-dasharray: 10;\n stroke-dashoffset: 0;\n fill: none;\n stroke: var(--ck-color-widget-type-around-button-icon);\n stroke-width: 1.5px;\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.ck .ck-widget .ck-widget__type-around__button svg line {\n stroke-dasharray: 7;\n}\n.ck .ck-widget .ck-widget__type-around__button:hover {\n animation: ck-widget-type-around-button-sonar 1s ease infinite;\n}\n.ck .ck-widget .ck-widget__type-around__button:hover svg polyline {\n animation: ck-widget-type-around-arrow-dash 2s linear;\n}\n.ck .ck-widget .ck-widget__type-around__button:hover svg line {\n animation: ck-widget-type-around-arrow-tip-dash 2s linear;\n}\n.ck\n .ck-widget.ck-widget_selected\n > .ck-widget__type-around\n > .ck-widget__type-around__button,\n.ck\n .ck-widget:hover\n > .ck-widget__type-around\n > .ck-widget__type-around__button {\n opacity: 1;\n pointer-events: auto;\n}\n.ck\n .ck-widget:not(.ck-widget_selected)\n > .ck-widget__type-around\n > .ck-widget__type-around__button {\n background: var(--ck-color-widget-type-around-button-hover);\n}\n.ck\n .ck-widget.ck-widget_selected\n > .ck-widget__type-around\n > .ck-widget__type-around__button,\n.ck\n .ck-widget\n > .ck-widget__type-around\n > .ck-widget__type-around__button:hover {\n background: var(--ck-color-widget-type-around-button-active);\n}\n.ck\n .ck-widget.ck-widget_selected\n > .ck-widget__type-around\n > .ck-widget__type-around__button:after,\n.ck\n .ck-widget\n > .ck-widget__type-around\n > .ck-widget__type-around__button:hover:after {\n width: calc(var(--ck-widget-type-around-button-size) - 2px);\n height: calc(var(--ck-widget-type-around-button-size) - 2px);\n border-radius: 100px;\n background: linear-gradient(\n 135deg,\n hsla(0, 0%, 100%, 0),\n hsla(0, 0%, 100%, 0.3)\n );\n}\n.ck\n .ck-widget.ck-widget_with-selection-handle\n > .ck-widget__type-around\n > .ck-widget__type-around__button_before {\n margin-left: 20px;\n}\n.ck .ck-widget .ck-widget__type-around__fake-caret {\n pointer-events: none;\n height: 1px;\n animation: ck-widget-type-around-fake-caret-pulse 1s linear infinite normal\n forwards;\n outline: 1px solid hsla(0, 0%, 100%, 0.5);\n background: var(--ck-color-base-text);\n}\n.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,\n.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before {\n outline-color: transparent;\n}\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover {\n outline-color: var(--ck-color-widget-hover-border);\n}\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_after\n > .ck-widget__type-around\n > .ck-widget__type-around__button,\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_before\n > .ck-widget__type-around\n > .ck-widget__type-around__button {\n opacity: 0;\n pointer-events: none;\n}\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover\n > .ck-widget__selection-handle,\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected\n > .ck-widget__selection-handle,\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover\n > .ck-widget__selection-handle,\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected\n > .ck-widget__selection-handle {\n opacity: 0;\n}\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer\n > .ck-widget__resizer,\n.ck\n .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer\n > .ck-widget__resizer {\n opacity: 0;\n}\n.ck[dir="rtl"]\n .ck-widget.ck-widget_with-selection-handle\n .ck-widget__type-around\n > .ck-widget__type-around__button_before {\n margin-left: 0;\n margin-right: 20px;\n}\n.ck-editor__nested-editable.ck-editor__editable_selected\n .ck-widget.ck-widget_selected\n > .ck-widget__type-around\n > .ck-widget__type-around__button,\n.ck-editor__nested-editable.ck-editor__editable_selected\n .ck-widget:hover\n > .ck-widget__type-around\n > .ck-widget__type-around__button {\n opacity: 0;\n pointer-events: none;\n}\n.ck-editor__editable.ck-blurred\n .ck-widget.ck-widget_selected\n > .ck-widget__type-around\n > .ck-widget__type-around__button:not(:hover) {\n background: var(--ck-color-widget-type-around-button-blurred-editable);\n}\n.ck-editor__editable.ck-blurred\n .ck-widget.ck-widget_selected\n > .ck-widget__type-around\n > .ck-widget__type-around__button:not(:hover)\n svg\n * {\n stroke: #999;\n}\n@keyframes ck-widget-type-around-arrow-dash {\n 0% {\n stroke-dashoffset: 10;\n }\n 20%,\n to {\n stroke-dashoffset: 0;\n }\n}\n@keyframes ck-widget-type-around-arrow-tip-dash {\n 0%,\n 20% {\n stroke-dashoffset: 7;\n }\n 40%,\n to {\n stroke-dashoffset: 0;\n }\n}\n@keyframes ck-widget-type-around-button-sonar {\n 0% {\n box-shadow: 0 0 0 0\n hsla(\n var(--ck-color-focus-border-coordinates),\n var(--ck-color-widget-type-around-button-radar-start-alpha)\n );\n }\n 50% {\n box-shadow: 0 0 0 5px\n hsla(\n var(--ck-color-focus-border-coordinates),\n var(--ck-color-widget-type-around-button-radar-end-alpha)\n );\n }\n to {\n box-shadow: 0 0 0 5px\n hsla(\n var(--ck-color-focus-border-coordinates),\n var(--ck-color-widget-type-around-button-radar-start-alpha)\n );\n }\n}\n@keyframes ck-widget-type-around-fake-caret-pulse {\n 0% {\n opacity: 1;\n }\n 49% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 99% {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n:root {\n --ck-color-resizer: var(--ck-color-focus-border);\n --ck-color-resizer-tooltip-background: #262626;\n --ck-color-resizer-tooltip-text: #f2f2f2;\n --ck-resizer-border-radius: var(--ck-border-radius);\n --ck-resizer-tooltip-offset: 10px;\n --ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n.ck .ck-widget,\n.ck .ck-widget.ck-widget_with-selection-handle {\n position: relative;\n}\n.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n position: absolute;\n}\n.ck\n .ck-widget.ck-widget_with-selection-handle\n .ck-widget__selection-handle\n .ck-icon {\n display: block;\n}\n.ck\n .ck-widget.ck-widget_with-selection-handle.ck-widget_selected\n > .ck-widget__selection-handle,\n.ck\n .ck-widget.ck-widget_with-selection-handle:hover\n > .ck-widget__selection-handle {\n visibility: visible;\n}\n.ck .ck-size-view {\n background: var(--ck-color-resizer-tooltip-background);\n color: var(--ck-color-resizer-tooltip-text);\n border: 1px solid var(--ck-color-resizer-tooltip-text);\n border-radius: var(--ck-resizer-border-radius);\n font-size: var(--ck-font-size-tiny);\n display: block;\n padding: 0 var(--ck-spacing-small);\n height: var(--ck-resizer-tooltip-height);\n line-height: var(--ck-resizer-tooltip-height);\n}\n.ck .ck-size-view.ck-orientation-above-center,\n.ck .ck-size-view.ck-orientation-bottom-left,\n.ck .ck-size-view.ck-orientation-bottom-right,\n.ck .ck-size-view.ck-orientation-top-left,\n.ck .ck-size-view.ck-orientation-top-right {\n position: absolute;\n}\n.ck .ck-size-view.ck-orientation-top-left {\n top: var(--ck-resizer-tooltip-offset);\n left: var(--ck-resizer-tooltip-offset);\n}\n.ck .ck-size-view.ck-orientation-top-right {\n top: var(--ck-resizer-tooltip-offset);\n right: var(--ck-resizer-tooltip-offset);\n}\n.ck .ck-size-view.ck-orientation-bottom-right {\n bottom: var(--ck-resizer-tooltip-offset);\n right: var(--ck-resizer-tooltip-offset);\n}\n.ck .ck-size-view.ck-orientation-bottom-left {\n bottom: var(--ck-resizer-tooltip-offset);\n left: var(--ck-resizer-tooltip-offset);\n}\n.ck .ck-size-view.ck-orientation-above-center {\n top: calc(var(--ck-resizer-tooltip-height) * -1);\n left: 50%;\n transform: translate(-50%);\n}\n:root {\n --ck-widget-outline-thickness: 3px;\n --ck-widget-handler-icon-size: 16px;\n --ck-widget-handler-animation-duration: 200ms;\n --ck-widget-handler-animation-curve: ease;\n --ck-color-widget-blurred-border: #dedede;\n --ck-color-widget-hover-border: #ffc83d;\n --ck-color-widget-editable-focus-background: var(\n --ck-color-base-background\n );\n --ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n.ck .ck-widget {\n outline-width: var(--ck-widget-outline-thickness);\n outline-style: solid;\n outline-color: transparent;\n transition: outline-color var(--ck-widget-handler-animation-duration)\n var(--ck-widget-handler-animation-curve);\n}\n.ck .ck-widget.ck-widget_selected,\n.ck .ck-widget.ck-widget_selected:hover {\n outline: var(--ck-widget-outline-thickness) solid\n var(--ck-color-focus-border);\n}\n.ck .ck-widget:hover {\n outline-color: var(--ck-color-widget-hover-border);\n}\n.ck .ck-editor__nested-editable {\n border: 1px solid transparent;\n}\n.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,\n.ck .ck-editor__nested-editable:focus {\n outline: none;\n border: var(--ck-focus-ring);\n box-shadow: var(--ck-inner-shadow), 0 0;\n background-color: var(--ck-color-widget-editable-focus-background);\n}\n.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n padding: 4px;\n box-sizing: border-box;\n background-color: transparent;\n opacity: 0;\n transition: background-color var(--ck-widget-handler-animation-duration)\n var(--ck-widget-handler-animation-curve),\n visibility var(--ck-widget-handler-animation-duration)\n var(--ck-widget-handler-animation-curve),\n opacity var(--ck-widget-handler-animation-duration)\n var(--ck-widget-handler-animation-curve);\n border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n transform: translateY(-100%);\n left: calc(0px - var(--ck-widget-outline-thickness));\n top: 0;\n}\n.ck\n .ck-widget.ck-widget_with-selection-handle\n .ck-widget__selection-handle\n .ck-icon {\n width: var(--ck-widget-handler-icon-size);\n height: var(--ck-widget-handler-icon-size);\n color: var(--ck-color-widget-drag-handler-icon-color);\n}\n.ck\n .ck-widget.ck-widget_with-selection-handle\n .ck-widget__selection-handle\n .ck-icon\n .ck-icon__selected-indicator {\n opacity: 0;\n transition: opacity 0.3s var(--ck-widget-handler-animation-curve);\n}\n.ck\n .ck-widget.ck-widget_with-selection-handle\n .ck-widget__selection-handle:hover\n .ck-icon\n .ck-icon__selected-indicator {\n opacity: 1;\n}\n.ck\n .ck-widget.ck-widget_with-selection-handle:hover\n > .ck-widget__selection-handle {\n opacity: 1;\n background-color: var(--ck-color-widget-hover-border);\n}\n.ck\n .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover\n > .ck-widget__selection-handle,\n.ck\n .ck-widget.ck-widget_with-selection-handle.ck-widget_selected\n > .ck-widget__selection-handle {\n opacity: 1;\n background-color: var(--ck-color-focus-border);\n}\n.ck\n .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover\n > .ck-widget__selection-handle\n .ck-icon\n .ck-icon__selected-indicator,\n.ck\n .ck-widget.ck-widget_with-selection-handle.ck-widget_selected\n > .ck-widget__selection-handle\n .ck-icon\n .ck-icon__selected-indicator {\n opacity: 1;\n}\n.ck[dir="rtl"]\n .ck-widget.ck-widget_with-selection-handle\n .ck-widget__selection-handle {\n left: auto;\n right: calc(0px - var(--ck-widget-outline-thickness));\n}\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n transition: none;\n}\n.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected) {\n --ck-widget-outline-thickness: 0px;\n}\n.ck.ck-editor__editable.ck-read-only\n .ck-widget.ck-widget_with-selection-handle\n .ck-widget__selection-handle,\n.ck.ck-editor__editable.ck-read-only\n .ck-widget.ck-widget_with-selection-handle\n .ck-widget__selection-handle:hover {\n background: var(--ck-color-widget-blurred-border);\n}\n.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,\n.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover {\n outline-color: var(--ck-color-widget-blurred-border);\n}\n.ck.ck-editor__editable.ck-blurred\n .ck-widget.ck-widget_selected.ck-widget_with-selection-handle\n > .ck-widget__selection-handle,\n.ck.ck-editor__editable.ck-blurred\n .ck-widget.ck-widget_selected.ck-widget_with-selection-handle\n > .ck-widget__selection-handle:hover,\n.ck.ck-editor__editable.ck-blurred\n .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle\n > .ck-widget__selection-handle,\n.ck.ck-editor__editable.ck-blurred\n .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle\n > .ck-widget__selection-handle:hover {\n background: var(--ck-color-widget-blurred-border);\n}\n.ck.ck-editor__editable\n > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable\n blockquote\n > .ck-widget.ck-widget_with-selection-handle:first-child {\n margin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position {\n display: inline;\n position: relative;\n pointer-events: none;\n}\n.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span {\n position: absolute;\n width: 0;\n}\n.ck.ck-editor__editable .ck-widget:-webkit-drag > .ck-widget__selection-handle,\n.ck.ck-editor__editable .ck-widget:-webkit-drag > .ck-widget__type-around {\n display: none;\n}\n:root {\n --ck-clipboard-drop-target-dot-width: 12px;\n --ck-clipboard-drop-target-dot-height: 8px;\n --ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span {\n bottom: calc(var(--ck-clipboard-drop-target-dot-height) * -0.5);\n top: calc(var(--ck-clipboard-drop-target-dot-height) * -0.5);\n border: 1px solid var(--ck-clipboard-drop-target-color);\n background: var(--ck-clipboard-drop-target-color);\n margin-left: -1px;\n}\n.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after {\n content: "";\n width: 0;\n height: 0;\n display: block;\n position: absolute;\n left: 50%;\n top: calc(var(--ck-clipboard-drop-target-dot-height) * -0.5);\n transform: translateX(-50%);\n border-left: calc(var(--ck-clipboard-drop-target-dot-width) * 0.5) solid\n transparent;\n border-bottom: 0 solid transparent;\n border-right: calc(var(--ck-clipboard-drop-target-dot-width) * 0.5) solid\n transparent;\n border-top: calc(var(--ck-clipboard-drop-target-dot-height)) solid\n var(--ck-clipboard-drop-target-color);\n}\n.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range {\n outline: var(--ck-widget-outline-thickness) solid\n var(--ck-clipboard-drop-target-color) !important;\n}\n.ck.ck-editor__editable .ck-widget:-webkit-drag {\n zoom: 0.6;\n outline: none !important;\n}\n.ck-content blockquote {\n overflow: hidden;\n padding-right: 1.5em;\n padding-left: 1.5em;\n margin-left: 0;\n margin-right: 0;\n font-style: italic;\n border-left: 5px solid #ccc;\n}\n.ck-content[dir="rtl"] blockquote {\n border-left: 0;\n border-right: 5px solid #ccc;\n}\n.ck.ck-heading_heading1 {\n font-size: 20px;\n}\n.ck.ck-heading_heading2 {\n font-size: 17px;\n}\n.ck.ck-heading_heading3 {\n font-size: 14px;\n}\n.ck[class*="ck-heading_heading"] {\n font-weight: 700;\n}\n.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label {\n width: 8em;\n}\n.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item {\n min-width: 18em;\n}\n.ck .ck-widget_with-resizer {\n position: relative;\n}\n.ck .ck-widget__resizer {\n display: none;\n position: absolute;\n pointer-events: none;\n left: 0;\n top: 0;\n}\n.ck-focused .ck-widget_with-resizer.ck-widget_selected > .ck-widget__resizer {\n display: block;\n}\n.ck .ck-widget__resizer__handle {\n position: absolute;\n pointer-events: all;\n}\n.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,\n.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left {\n cursor: nwse-resize;\n}\n.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,\n.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right {\n cursor: nesw-resize;\n}\n:root {\n --ck-resizer-size: 10px;\n --ck-resizer-offset: calc(var(--ck-resizer-size) / -2 - 2px);\n --ck-resizer-border-width: 1px;\n}\n.ck .ck-widget__resizer {\n outline: 1px solid var(--ck-color-resizer);\n}\n.ck .ck-widget__resizer__handle {\n width: var(--ck-resizer-size);\n height: var(--ck-resizer-size);\n background: var(--ck-color-focus-border);\n border: var(--ck-resizer-border-width) solid #fff;\n border-radius: var(--ck-resizer-border-radius);\n}\n.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left {\n top: var(--ck-resizer-offset);\n left: var(--ck-resizer-offset);\n}\n.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right {\n top: var(--ck-resizer-offset);\n right: var(--ck-resizer-offset);\n}\n.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right {\n bottom: var(--ck-resizer-offset);\n right: var(--ck-resizer-offset);\n}\n.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left {\n bottom: var(--ck-resizer-offset);\n left: var(--ck-resizer-offset);\n}\n.ck.ck-text-alternative-form {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n}\n.ck.ck-text-alternative-form .ck-labeled-field-view {\n display: inline-block;\n}\n.ck.ck-text-alternative-form .ck-label {\n display: none;\n}\n@media screen and (max-width: 600px) {\n .ck.ck-text-alternative-form {\n flex-wrap: wrap;\n }\n .ck.ck-text-alternative-form .ck-labeled-field-view {\n flex-basis: 100%;\n }\n .ck.ck-text-alternative-form .ck-button {\n flex-basis: 50%;\n }\n}\n.ck-vertical-form .ck-button:after {\n content: "";\n width: 0;\n position: absolute;\n right: -1px;\n top: var(--ck-spacing-small);\n bottom: var(--ck-spacing-small);\n z-index: 1;\n}\n@media screen and (max-width: 600px) {\n .ck.ck-responsive-form .ck-button:after {\n content: "";\n width: 0;\n position: absolute;\n right: -1px;\n top: var(--ck-spacing-small);\n bottom: var(--ck-spacing-small);\n z-index: 1;\n }\n}\n.ck-vertical-form > .ck-button:nth-last-child(2):after {\n border-right: 1px solid var(--ck-color-base-border);\n}\n.ck.ck-responsive-form {\n padding: var(--ck-spacing-large);\n}\n.ck.ck-responsive-form:focus {\n outline: none;\n}\n[dir="ltr"] .ck.ck-responsive-form > :not(:first-child),\n[dir="rtl"] .ck.ck-responsive-form > :not(:last-child) {\n margin-left: var(--ck-spacing-standard);\n}\n@media screen and (max-width: 600px) {\n .ck.ck-responsive-form {\n padding: 0;\n width: calc(var(--ck-input-width) * 0.8);\n }\n .ck.ck-responsive-form .ck-labeled-field-view {\n margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n }\n .ck.ck-responsive-form .ck-labeled-field-view .ck-input-text {\n min-width: 0;\n width: 100%;\n }\n .ck.ck-responsive-form\n .ck-labeled-field-view\n .ck-labeled-field-view__error {\n white-space: normal;\n }\n .ck.ck-responsive-form > .ck-button:last-child,\n .ck.ck-responsive-form > .ck-button:nth-last-child(2) {\n padding: var(--ck-spacing-standard);\n margin-top: var(--ck-spacing-large);\n border-radius: 0;\n border: 0;\n border-top: 1px solid var(--ck-color-base-border);\n }\n [dir="ltr"] .ck.ck-responsive-form > .ck-button:last-child,\n [dir="ltr"] .ck.ck-responsive-form > .ck-button:nth-last-child(2),\n [dir="rtl"] .ck.ck-responsive-form > .ck-button:last-child,\n [dir="rtl"] .ck.ck-responsive-form > .ck-button:nth-last-child(2) {\n margin-left: 0;\n }\n .ck.ck-responsive-form > .ck-button:nth-last-child(2):after,\n [dir="rtl"] .ck.ck-responsive-form > .ck-button:last-child:last-of-type,\n [dir="rtl"]\n .ck.ck-responsive-form\n > .ck-button:nth-last-child(2):last-of-type {\n border-right: 1px solid var(--ck-color-base-border);\n }\n}\n.ck-content .image {\n display: table;\n clear: both;\n text-align: center;\n margin: 0.9em auto;\n min-width: 50px;\n}\n.ck-content .image img {\n display: block;\n margin: 0 auto;\n max-width: 100%;\n}\n.ck-content .image-inline {\n display: inline-flex;\n max-width: 100%;\n align-items: flex-start;\n}\n.ck-content .image-inline picture {\n display: flex;\n}\n.ck-content .image-inline img,\n.ck-content .image-inline picture {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 100%;\n}\n.ck.ck-editor__editable .image > figcaption.ck-placeholder:before {\n padding-left: inherit;\n padding-right: inherit;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ck.ck-editor__editable .image-inline.ck-widget_selected,\n.ck.ck-editor__editable .image.ck-widget_selected {\n z-index: 1;\n}\n.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection {\n display: none;\n}\n.ck.ck-editor__editable td .image-inline img,\n.ck.ck-editor__editable th .image-inline img {\n max-width: none;\n}\n:root {\n --ck-color-image-caption-background: #f7f7f7;\n --ck-color-image-caption-text: #333;\n --ck-color-image-caption-highligted-background: #fd0;\n}\n.ck-content .image > figcaption {\n display: table-caption;\n caption-side: bottom;\n word-break: break-word;\n color: var(--ck-color-image-caption-text);\n background-color: var(--ck-color-image-caption-background);\n padding: 0.6em;\n font-size: 0.75em;\n outline-offset: -1px;\n}\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n animation: ck-image-caption-highlight 0.6s ease-out;\n}\n@keyframes ck-image-caption-highlight {\n 0% {\n background-color: var(--ck-color-image-caption-highligted-background);\n }\n to {\n background-color: var(--ck-color-image-caption-background);\n }\n}\n:root {\n --ck-image-style-spacing: 1.5em;\n --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n.ck-content .image-style-block-align-left,\n.ck-content .image-style-block-align-right {\n max-width: calc(100% - var(--ck-image-style-spacing));\n}\n.ck-content .image-style-align-left,\n.ck-content .image-style-align-right {\n clear: none;\n}\n.ck-content .image-style-side {\n float: right;\n margin-left: var(--ck-image-style-spacing);\n max-width: 50%;\n}\n.ck-content .image-style-align-left {\n float: left;\n margin-right: var(--ck-image-style-spacing);\n}\n.ck-content .image-style-align-center {\n margin-left: auto;\n margin-right: auto;\n}\n.ck-content .image-style-align-right {\n float: right;\n margin-left: var(--ck-image-style-spacing);\n}\n.ck-content .image-style-block-align-right {\n margin-right: 0;\n margin-left: auto;\n}\n.ck-content .image-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n}\n.ck-content p + .image-style-align-left,\n.ck-content p + .image-style-align-right,\n.ck-content p + .image-style-side {\n margin-top: 0;\n}\n.ck-content .image-inline.image-style-align-left,\n.ck-content .image-inline.image-style-align-right {\n margin-top: var(--ck-inline-image-style-spacing);\n margin-bottom: var(--ck-inline-image-style-spacing);\n}\n.ck-content .image-inline.image-style-align-left {\n margin-right: var(--ck-inline-image-style-spacing);\n}\n.ck-content .image-inline.image-style-align-right {\n margin-left: var(--ck-inline-image-style-spacing);\n}\n.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open\n > .ck-splitbutton__action:not(.ck-disabled),\n.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open\n > .ck-splitbutton__arrow:not(.ck-disabled),\n.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open\n > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover),\n.ck.ck-splitbutton.ck-splitbutton_flatten:hover\n > .ck-splitbutton__action:not(.ck-disabled),\n.ck.ck-splitbutton.ck-splitbutton_flatten:hover\n > .ck-splitbutton__arrow:not(.ck-disabled),\n.ck.ck-splitbutton.ck-splitbutton_flatten:hover\n > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n background-color: var(--ck-color-button-on-background);\n}\n.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open\n > .ck-splitbutton__action:not(.ck-disabled):after,\n.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open\n > .ck-splitbutton__arrow:not(.ck-disabled):after,\n.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open\n > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,\n.ck.ck-splitbutton.ck-splitbutton_flatten:hover\n > .ck-splitbutton__action:not(.ck-disabled):after,\n.ck.ck-splitbutton.ck-splitbutton_flatten:hover\n > .ck-splitbutton__arrow:not(.ck-disabled):after,\n.ck.ck-splitbutton.ck-splitbutton_flatten:hover\n > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after {\n display: none;\n}\n.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover\n > .ck-splitbutton__action:not(.ck-disabled),\n.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover\n > .ck-splitbutton__arrow:not(.ck-disabled),\n.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover\n > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n background-color: var(--ck-color-button-on-hover-background);\n}\n.ck.ck-editor__editable .image,\n.ck.ck-editor__editable .image-inline {\n position: relative;\n}\n.ck.ck-editor__editable .image-inline .ck-progress-bar,\n.ck.ck-editor__editable .image .ck-progress-bar {\n position: absolute;\n top: 0;\n left: 0;\n}\n.ck.ck-editor__editable .image-inline.ck-appear,\n.ck.ck-editor__editable .image.ck-appear {\n animation: fadeIn 0.7s;\n}\n.ck.ck-editor__editable .image-inline .ck-progress-bar,\n.ck.ck-editor__editable .image .ck-progress-bar {\n height: 2px;\n width: 0;\n background: var(--ck-color-upload-bar-background);\n transition: width 0.1s;\n}\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.ck-image-upload-complete-icon {\n display: block;\n position: absolute;\n top: min(var(--ck-spacing-medium), 6%);\n right: min(var(--ck-spacing-medium), 6%);\n border-radius: 50%;\n z-index: 1;\n}\n.ck-image-upload-complete-icon:after {\n content: "";\n position: absolute;\n}\n:root {\n --ck-color-image-upload-icon: #fff;\n --ck-color-image-upload-icon-background: #008a00;\n --ck-image-upload-icon-size: 20;\n --ck-image-upload-icon-width: 2px;\n --ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n.ck-image-upload-complete-icon {\n opacity: 0;\n background: var(--ck-color-image-upload-icon-background);\n animation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n animation-fill-mode: forwards, forwards;\n animation-duration: 0.5s, 0.5s;\n font-size: calc(1px * var(--ck-image-upload-icon-size));\n animation-delay: 0ms, 3s;\n overflow: hidden;\n width: calc(\n var(--ck-image-upload-icon-is-visible) *\n var(--ck-image-upload-icon-size)\n );\n height: calc(\n var(--ck-image-upload-icon-is-visible) *\n var(--ck-image-upload-icon-size)\n );\n}\n.ck-image-upload-complete-icon:after {\n left: 25%;\n top: 50%;\n opacity: 0;\n height: 0;\n width: 0;\n transform: scaleX(-1) rotate(135deg);\n transform-origin: left top;\n border-top: var(--ck-image-upload-icon-width) solid\n var(--ck-color-image-upload-icon);\n border-right: var(--ck-image-upload-icon-width) solid\n var(--ck-color-image-upload-icon);\n animation-name: ck-upload-complete-icon-check;\n animation-duration: 0.5s;\n animation-delay: 0.5s;\n animation-fill-mode: forwards;\n box-sizing: border-box;\n}\n@keyframes ck-upload-complete-icon-show {\n 0% {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@keyframes ck-upload-complete-icon-hide {\n 0% {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n@keyframes ck-upload-complete-icon-check {\n 0% {\n opacity: 1;\n width: 0;\n height: 0;\n }\n 33% {\n width: 0.3em;\n height: 0;\n }\n to {\n opacity: 1;\n width: 0.3em;\n height: 0.45em;\n }\n}\n.ck .ck-upload-placeholder-loader {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n}\n.ck .ck-upload-placeholder-loader:before {\n content: "";\n position: relative;\n}\n:root {\n --ck-color-upload-placeholder-loader: #b3b3b3;\n --ck-upload-placeholder-loader-size: 32px;\n --ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n.ck .ck-image-upload-placeholder {\n width: 100%;\n margin: 0;\n}\n.ck .ck-image-upload-placeholder.image-inline {\n width: calc(\n var(--ck-upload-placeholder-loader-size) * 2 *\n var(--ck-upload-placeholder-image-aspect-ratio)\n );\n}\n.ck .ck-image-upload-placeholder img {\n aspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n}\n.ck .ck-upload-placeholder-loader {\n width: 100%;\n height: 100%;\n}\n.ck .ck-upload-placeholder-loader:before {\n width: var(--ck-upload-placeholder-loader-size);\n height: var(--ck-upload-placeholder-loader-size);\n border-radius: 50%;\n border-top: 3px solid var(--ck-color-upload-placeholder-loader);\n border-right: 2px solid transparent;\n animation: ck-upload-placeholder-loader 1s linear infinite;\n}\n@keyframes ck-upload-placeholder-loader {\n to {\n transform: rotate(1turn);\n }\n}\n.ck .ck-link_selected {\n background: var(--ck-color-link-selected-background);\n}\n.ck .ck-link_selected span.image-inline {\n outline: var(--ck-widget-outline-thickness) solid\n var(--ck-color-link-selected-background);\n}\n.ck .ck-fake-link-selection {\n background: var(--ck-color-link-fake-selection);\n}\n.ck .ck-fake-link-selection_collapsed {\n height: 100%;\n border-right: 1px solid var(--ck-color-base-text);\n margin-right: -1px;\n outline: 1px solid hsla(0, 0%, 100%, 0.5);\n}\n.ck.ck-link-form {\n display: flex;\n}\n.ck.ck-link-form .ck-label {\n display: none;\n}\n@media screen and (max-width: 600px) {\n .ck.ck-link-form {\n flex-wrap: wrap;\n }\n .ck.ck-link-form .ck-labeled-field-view {\n flex-basis: 100%;\n }\n .ck.ck-link-form .ck-button {\n flex-basis: 50%;\n }\n}\n.ck.ck-link-form_layout-vertical {\n display: block;\n}\n.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,\n.ck.ck-link-form_layout-vertical .ck-button.ck-button-save {\n margin-top: var(--ck-spacing-medium);\n}\n.ck.ck-link-form_layout-vertical {\n padding: 0;\n min-width: var(--ck-input-width);\n}\n.ck.ck-link-form_layout-vertical .ck-labeled-field-view {\n margin: var(--ck-spacing-large) var(--ck-spacing-large)\n var(--ck-spacing-small);\n}\n.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text {\n min-width: 0;\n width: 100%;\n}\n.ck.ck-link-form_layout-vertical .ck-button {\n padding: var(--ck-spacing-standard);\n margin: 0;\n border-radius: 0;\n border: 0;\n border-top: 1px solid var(--ck-color-base-border);\n width: 50%;\n}\n[dir="ltr"] .ck.ck-link-form_layout-vertical .ck-button,\n[dir="rtl"] .ck.ck-link-form_layout-vertical .ck-button {\n margin-left: 0;\n}\n[dir="rtl"] .ck.ck-link-form_layout-vertical .ck-button:last-of-type {\n border-right: 1px solid var(--ck-color-base-border);\n}\n.ck.ck-link-form_layout-vertical .ck.ck-list {\n margin: var(--ck-spacing-standard) var(--ck-spacing-large);\n}\n.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton {\n border: 0;\n padding: 0;\n width: 100%;\n}\n.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover {\n background: none;\n}\n.ck.ck-link-actions {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n}\n.ck.ck-link-actions .ck-link-actions__preview {\n display: inline-block;\n}\n.ck.ck-link-actions .ck-link-actions__preview .ck-button__label {\n overflow: hidden;\n}\n@media screen and (max-width: 600px) {\n .ck.ck-link-actions {\n flex-wrap: wrap;\n }\n .ck.ck-link-actions .ck-link-actions__preview {\n flex-basis: 100%;\n }\n .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview) {\n flex-basis: 50%;\n }\n}\n.ck.ck-link-actions .ck-button.ck-link-actions__preview {\n padding-left: 0;\n padding-right: 0;\n}\n.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label {\n padding: 0 var(--ck-spacing-medium);\n color: var(--ck-color-link-default);\n text-overflow: ellipsis;\n cursor: pointer;\n max-width: var(--ck-input-width);\n min-width: 3em;\n text-align: center;\n}\n.ck.ck-link-actions\n .ck-button.ck-link-actions__preview\n .ck-button__label:hover {\n text-decoration: underline;\n}\n.ck.ck-link-actions .ck-button.ck-link-actions__preview,\n.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,\n.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,\n.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover {\n background: none;\n}\n.ck.ck-link-actions .ck-button.ck-link-actions__preview:active {\n box-shadow: none;\n}\n.ck.ck-link-actions\n .ck-button.ck-link-actions__preview:focus\n .ck-button__label {\n text-decoration: underline;\n}\n[dir="ltr"] .ck.ck-link-actions .ck-button:not(:first-child),\n[dir="rtl"] .ck.ck-link-actions .ck-button:not(:last-child) {\n margin-left: var(--ck-spacing-standard);\n}\n@media screen and (max-width: 600px) {\n .ck.ck-link-actions .ck-button.ck-link-actions__preview {\n margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n }\n .ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label {\n min-width: 0;\n max-width: 100%;\n }\n [dir="ltr"] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),\n [dir="rtl"] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview) {\n margin-left: 0;\n }\n}\n.ck-media__wrapper .ck-media__placeholder {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ck-media__wrapper\n .ck-media__placeholder\n .ck-media__placeholder__url\n .ck-tooltip {\n display: block;\n}\n@media (hover: none) {\n .ck-media__wrapper\n .ck-media__placeholder\n .ck-media__placeholder__url\n .ck-tooltip {\n display: none;\n }\n}\n.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url {\n max-width: 100%;\n position: relative;\n}\n.ck-media__wrapper\n .ck-media__placeholder\n .ck-media__placeholder__url:hover\n .ck-tooltip {\n visibility: visible;\n opacity: 1;\n}\n.ck-media__wrapper\n .ck-media__placeholder\n .ck-media__placeholder__url\n .ck-media__placeholder__url__text {\n overflow: hidden;\n display: block;\n}\n.ck-media__wrapper[data-oembed-url*="facebook.com"]\n .ck-media__placeholder__icon\n *,\n.ck-media__wrapper[data-oembed-url*="goo.gl/maps"]\n .ck-media__placeholder__icon\n *,\n.ck-media__wrapper[data-oembed-url*="google.com/maps"]\n .ck-media__placeholder__icon\n *,\n.ck-media__wrapper[data-oembed-url*="instagram.com"]\n .ck-media__placeholder__icon\n *,\n.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"]\n .ck-media__placeholder__icon\n *,\n.ck-media__wrapper[data-oembed-url*="maps.google.com"]\n .ck-media__placeholder__icon\n *,\n.ck-media__wrapper[data-oembed-url*="twitter.com"]\n .ck-media__placeholder__icon\n * {\n display: none;\n}\n.ck-editor__editable:not(.ck-read-only)\n .ck-media__wrapper\n > :not(.ck-media__placeholder),\n.ck-editor__editable:not(.ck-read-only)\n .ck-widget:not(.ck-widget_selected)\n .ck-media__placeholder {\n pointer-events: none;\n}\n:root {\n --ck-media-embed-placeholder-icon-size: 3em;\n --ck-color-media-embed-placeholder-url-text: #757575;\n --ck-color-media-embed-placeholder-url-text-hover: var(\n --ck-color-base-text\n );\n}\n.ck-media__wrapper {\n margin: 0 auto;\n}\n.ck-media__wrapper .ck-media__placeholder {\n padding: calc(var(--ck-spacing-standard) * 3);\n background: var(--ck-color-base-foreground);\n}\n.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon {\n min-width: var(--ck-media-embed-placeholder-icon-size);\n height: var(--ck-media-embed-placeholder-icon-size);\n margin-bottom: var(--ck-spacing-large);\n background-position: 50%;\n background-size: cover;\n}\n.ck-media__wrapper\n .ck-media__placeholder\n .ck-media__placeholder__icon\n .ck-icon {\n width: 100%;\n height: 100%;\n}\n.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text {\n color: var(--ck-color-media-embed-placeholder-url-text);\n white-space: nowrap;\n text-align: center;\n font-style: italic;\n text-overflow: ellipsis;\n}\n.ck-media__wrapper\n .ck-media__placeholder\n .ck-media__placeholder__url__text:hover {\n color: var(--ck-color-media-embed-placeholder-url-text-hover);\n cursor: pointer;\n text-decoration: underline;\n}\n.ck-media__wrapper[data-oembed-url*="open.spotify.com"] {\n max-width: 300px;\n max-height: 380px;\n}\n.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n.ck-media__wrapper[data-oembed-url*="google.com/maps"]\n .ck-media__placeholder__icon,\n.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"]\n .ck-media__placeholder__icon,\n.ck-media__wrapper[data-oembed-url*="maps.google.com"]\n .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=);\n}\n.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n background: #4268b3;\n}\n.ck-media__wrapper[data-oembed-url*="facebook.com"]\n .ck-media__placeholder\n .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=);\n}\n.ck-media__wrapper[data-oembed-url*="facebook.com"]\n .ck-media__placeholder\n .ck-media__placeholder__url__text {\n color: #cdf;\n}\n.ck-media__wrapper[data-oembed-url*="facebook.com"]\n .ck-media__placeholder\n .ck-media__placeholder__url__text:hover {\n color: #fff;\n}\n.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n background: linear-gradient(-135deg, #1400c7, #b800b1, #f50000);\n}\n.ck-media__wrapper[data-oembed-url*="instagram.com"]\n .ck-media__placeholder\n .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==);\n}\n.ck-media__wrapper[data-oembed-url*="instagram.com"]\n .ck-media__placeholder\n .ck-media__placeholder__url__text {\n color: #ffe0fe;\n}\n.ck-media__wrapper[data-oembed-url*="instagram.com"]\n .ck-media__placeholder\n .ck-media__placeholder__url__text:hover {\n color: #fff;\n}\n.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n background: linear-gradient(90deg, #71c6f4, #0d70a5);\n}\n.ck-media__wrapper[data-oembed-url*="twitter.com"]\n .ck.ck-media__placeholder\n .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=);\n}\n.ck-media__wrapper[data-oembed-url*="twitter.com"]\n .ck.ck-media__placeholder\n .ck-media__placeholder__url__text {\n color: #b8e6ff;\n}\n.ck-media__wrapper[data-oembed-url*="twitter.com"]\n .ck.ck-media__placeholder\n .ck-media__placeholder__url__text:hover {\n color: #fff;\n}\n.ck.ck-media-form {\n display: flex;\n align-items: flex-start;\n flex-direction: row;\n flex-wrap: nowrap;\n}\n.ck.ck-media-form .ck-labeled-field-view {\n display: inline-block;\n}\n.ck.ck-media-form .ck-label {\n display: none;\n}\n@media screen and (max-width: 600px) {\n .ck.ck-media-form {\n flex-wrap: wrap;\n }\n .ck.ck-media-form .ck-labeled-field-view {\n flex-basis: 100%;\n }\n .ck.ck-media-form .ck-button {\n flex-basis: 50%;\n }\n}\n.ck-content .media {\n clear: both;\n margin: 0.9em 0;\n display: block;\n min-width: 15em;\n}\n:root {\n --ck-color-table-focused-cell-background: rgba(158, 207, 250, 0.3);\n}\n.ck-widget.table\n td.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n.ck-widget.table td.ck-editor__nested-editable:focus,\n.ck-widget.table\n th.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n.ck-widget.table th.ck-editor__nested-editable:focus {\n background: var(--ck-color-table-focused-cell-background);\n border-style: none;\n outline: 1px solid var(--ck-color-focus-border);\n outline-offset: -1px;\n}\n.ck .ck-insert-table-dropdown__grid {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n}\n:root {\n --ck-insert-table-dropdown-padding: 10px;\n --ck-insert-table-dropdown-box-height: 11px;\n --ck-insert-table-dropdown-box-width: 12px;\n --ck-insert-table-dropdown-box-margin: 1px;\n}\n.ck .ck-insert-table-dropdown__grid {\n width: calc(\n var(--ck-insert-table-dropdown-box-width) * 10 +\n var(--ck-insert-table-dropdown-box-margin) * 20 +\n var(--ck-insert-table-dropdown-padding) * 2\n );\n padding: var(--ck-insert-table-dropdown-padding)\n var(--ck-insert-table-dropdown-padding) 0;\n}\n.ck .ck-insert-table-dropdown__label {\n text-align: center;\n}\n.ck .ck-insert-table-dropdown-grid-box {\n width: var(--ck-insert-table-dropdown-box-width);\n height: var(--ck-insert-table-dropdown-box-height);\n margin: var(--ck-insert-table-dropdown-box-margin);\n border: 1px solid var(--ck-color-base-border);\n border-radius: 1px;\n}\n.ck .ck-insert-table-dropdown-grid-box.ck-on {\n border-color: var(--ck-color-focus-border);\n background: var(--ck-color-focus-outer-shadow);\n}\n:root {\n --ck-table-selected-cell-background: rgba(158, 207, 250, 0.3);\n}\n.ck.ck-editor__editable .table table td.ck-editor__editable_selected,\n.ck.ck-editor__editable .table table th.ck-editor__editable_selected {\n position: relative;\n caret-color: transparent;\n outline: unset;\n box-shadow: unset;\n}\n.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,\n.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after {\n content: "";\n pointer-events: none;\n background-color: var(--ck-table-selected-cell-background);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.ck.ck-editor__editable\n .table\n table\n td.ck-editor__editable_selected\n ::selection,\n.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,\n.ck.ck-editor__editable\n .table\n table\n th.ck-editor__editable_selected\n ::selection,\n.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus {\n background-color: transparent;\n}\n.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,\n.ck.ck-editor__editable\n .table\n table\n th.ck-editor__editable_selected\n .ck-widget {\n outline: unset;\n}\n.ck.ck-editor__editable\n .table\n table\n td.ck-editor__editable_selected\n .ck-widget\n > .ck-widget__selection-handle,\n.ck.ck-editor__editable\n .table\n table\n th.ck-editor__editable_selected\n .ck-widget\n > .ck-widget__selection-handle {\n display: none;\n}\n.ck-content .table {\n margin: 0.9em auto;\n display: table;\n}\n.ck-content .table table {\n border-collapse: collapse;\n border-spacing: 0;\n width: 100%;\n height: 100%;\n border: 1px double #b3b3b3;\n}\n.ck-content .table table td,\n.ck-content .table table th {\n min-width: 2em;\n padding: 0.4em;\n border: 1px solid #bfbfbf;\n}\n.ck-content .table table th {\n font-weight: 700;\n background: hsla(0, 0%, 0%, 5%);\n}\n.ck-content[dir="rtl"] .table th {\n text-align: right;\n}\n.ck-content[dir="ltr"] .table th {\n text-align: left;\n}\n.ck-editor__editable .ck-table-bogus-paragraph {\n display: inline-block;\n width: 100%;\n}\n.ck .ck-button.ck-color-table__remove-color {\n display: flex;\n align-items: center;\n width: 100%;\n}\nlabel.ck.ck-color-grid__label {\n font-weight: unset;\n}\n.ck .ck-button.ck-color-table__remove-color {\n padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ck .ck-button.ck-color-table__remove-color:not(:focus) {\n border-bottom: 1px solid var(--ck-color-base-border);\n}\n[dir="ltr"] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon {\n margin-right: var(--ck-spacing-standard);\n}\n[dir="rtl"] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon {\n margin-left: var(--ck-spacing-standard);\n}\n.ck-content .text-tiny {\n font-size: 0.7em;\n}\n.ck-content .text-small {\n font-size: 0.85em;\n}\n.ck-content .text-big {\n font-size: 1.4em;\n}\n.ck-content .text-huge {\n font-size: 1.8em;\n}\n.ck.ck-input-color {\n width: 100%;\n display: flex;\n flex-direction: row-reverse;\n}\n.ck.ck-input-color > input.ck.ck-input-text {\n min-width: auto;\n flex-grow: 1;\n}\n.ck.ck-input-color > div.ck.ck-dropdown {\n min-width: auto;\n}\n.ck.ck-input-color\n > div.ck.ck-dropdown\n > .ck-input-color__button\n .ck-dropdown__arrow {\n display: none;\n}\n.ck.ck-input-color .ck.ck-input-color__button {\n display: flex;\n}\n.ck.ck-input-color\n .ck.ck-input-color__button\n .ck.ck-input-color__button__preview {\n position: relative;\n overflow: hidden;\n}\n.ck.ck-input-color\n .ck.ck-input-color__button\n .ck.ck-input-color__button__preview\n > .ck.ck-input-color__button__preview__no-color-indicator {\n position: absolute;\n display: block;\n}\n[dir="ltr"] .ck.ck-input-color > .ck.ck-input-text {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n[dir="rtl"] .ck.ck-input-color > .ck.ck-input-text {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ck.ck-input-color > .ck.ck-dropdown > .ck.ck-button.ck-input-color__button {\n padding: 0;\n}\n[dir="ltr"]\n .ck.ck-input-color\n > .ck.ck-dropdown\n > .ck.ck-button.ck-input-color__button {\n border-left-width: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n[dir="rtl"]\n .ck.ck-input-color\n > .ck.ck-dropdown\n > .ck.ck-button.ck-input-color__button {\n border-right-width: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ck.ck-input-color\n > .ck.ck-dropdown\n > .ck.ck-button.ck-input-color__button.ck-disabled {\n background: var(--ck-color-input-disabled-background);\n}\n.ck.ck-input-color\n > .ck.ck-dropdown\n > .ck.ck-button.ck-input-color__button\n > .ck.ck-input-color__button__preview {\n border-radius: 0;\n}\n.ck-rounded-corners\n .ck.ck-input-color\n > .ck.ck-dropdown\n > .ck.ck-button.ck-input-color__button\n > .ck.ck-input-color__button__preview,\n.ck.ck-input-color\n > .ck.ck-dropdown\n > .ck.ck-button.ck-input-color__button\n > .ck.ck-input-color__button__preview.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-input-color\n > .ck.ck-dropdown\n > .ck.ck-button.ck-input-color__button\n > .ck.ck-input-color__button__preview {\n width: 20px;\n height: 20px;\n border: 1px solid var(--ck-color-input-border);\n}\n.ck.ck-input-color\n > .ck.ck-dropdown\n > .ck.ck-button.ck-input-color__button\n > .ck.ck-input-color__button__preview\n > .ck.ck-input-color__button__preview__no-color-indicator {\n top: -30%;\n left: 50%;\n height: 150%;\n width: 8%;\n background: red;\n border-radius: 2px;\n transform: rotate(45deg);\n transform-origin: 50%;\n}\n.ck.ck-input-color .ck.ck-input-color__remove-color {\n width: 100%;\n border-bottom: 1px solid var(--ck-color-input-border);\n padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n[dir="ltr"] .ck.ck-input-color .ck.ck-input-color__remove-color {\n border-top-right-radius: 0;\n}\n[dir="rtl"] .ck.ck-input-color .ck.ck-input-color__remove-color {\n border-top-left-radius: 0;\n}\n.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon {\n margin-right: var(--ck-spacing-standard);\n}\n[dir="rtl"] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon {\n margin-right: 0;\n margin-left: var(--ck-spacing-standard);\n}\n.ck.ck-form__row {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n}\n.ck.ck-form__row > :not(.ck-label) {\n flex-grow: 1;\n}\n.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,\n.ck.ck-form__row.ck-table-form__action-row .ck-button-save {\n justify-content: center;\n}\n.ck.ck-form__row {\n padding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n}\n[dir="ltr"] .ck.ck-form__row > :not(.ck-label) + * {\n margin-left: var(--ck-spacing-large);\n}\n[dir="rtl"] .ck.ck-form__row > :not(.ck-label) + * {\n margin-right: var(--ck-spacing-large);\n}\n.ck.ck-form__row > .ck-label {\n width: 100%;\n min-width: 100%;\n}\n.ck.ck-form__row.ck-table-form__action-row {\n margin-top: var(--ck-spacing-large);\n}\n.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label {\n color: var(--ck-color-text);\n}\n.ck.ck-form {\n padding: 0 0 var(--ck-spacing-large);\n}\n.ck.ck-form:focus {\n outline: none;\n}\n.ck.ck-form .ck.ck-input-text {\n min-width: 100%;\n width: 0;\n}\n.ck.ck-form .ck.ck-dropdown {\n min-width: 100%;\n}\n.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus) {\n border: 1px solid var(--ck-color-base-border);\n}\n.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label {\n width: 100%;\n}\n.ck.ck-table-form .ck-form__row.ck-table-form__background-row,\n.ck.ck-table-form .ck-form__row.ck-table-form__border-row {\n flex-wrap: wrap;\n}\n.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row {\n flex-wrap: wrap;\n align-items: center;\n}\n.ck.ck-table-form\n .ck-form__row.ck-table-form__dimensions-row\n .ck-labeled-field-view {\n display: flex;\n flex-direction: column-reverse;\n align-items: center;\n}\n.ck.ck-table-form\n .ck-form__row.ck-table-form__dimensions-row\n .ck-labeled-field-view\n .ck.ck-dropdown,\n.ck.ck-table-form\n .ck-form__row.ck-table-form__dimensions-row\n .ck-table-form__dimension-operator {\n flex-grow: 0;\n}\n.ck.ck-table-form .ck.ck-labeled-field-view {\n position: relative;\n}\n.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {\n position: absolute;\n left: 50%;\n bottom: calc(var(--ck-table-properties-error-arrow-size) * -1);\n transform: translate(-50%, 100%);\n z-index: 1;\n}\n.ck.ck-table-form\n .ck.ck-labeled-field-view\n .ck.ck-labeled-field-view__status:after {\n content: "";\n position: absolute;\n top: calc(var(--ck-table-properties-error-arrow-size) * -1);\n left: 50%;\n transform: translateX(-50%);\n}\n:root {\n --ck-table-properties-error-arrow-size: 6px;\n --ck-table-properties-min-error-width: 150px;\n}\n.ck.ck-table-form\n .ck-form__row.ck-table-form__border-row\n .ck-labeled-field-view\n > .ck-label {\n font-size: var(--ck-font-size-tiny);\n text-align: center;\n}\n.ck.ck-table-form\n .ck-form__row.ck-table-form__border-row\n .ck-table-form__border-style,\n.ck.ck-table-form\n .ck-form__row.ck-table-form__border-row\n .ck-table-form__border-width {\n width: 80px;\n min-width: 80px;\n max-width: 80px;\n}\n.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row {\n padding: 0;\n}\n.ck.ck-table-form\n .ck-form__row.ck-table-form__dimensions-row\n .ck-table-form__dimensions-row__height,\n.ck.ck-table-form\n .ck-form__row.ck-table-form__dimensions-row\n .ck-table-form__dimensions-row__width {\n margin: 0;\n}\n.ck.ck-table-form\n .ck-form__row.ck-table-form__dimensions-row\n .ck-table-form__dimension-operator {\n align-self: flex-end;\n display: inline-block;\n height: var(--ck-ui-component-min-height);\n line-height: var(--ck-ui-component-min-height);\n margin: 0 var(--ck-spacing-small);\n}\n.ck.ck-table-form .ck.ck-labeled-field-view {\n padding-top: var(--ck-spacing-standard);\n}\n.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {\n border-radius: 0;\n}\n.ck-rounded-corners\n .ck.ck-table-form\n .ck.ck-labeled-field-view\n .ck.ck-labeled-field-view__status,\n.ck.ck-table-form\n .ck.ck-labeled-field-view\n .ck.ck-labeled-field-view__status.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n}\n.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {\n background: var(--ck-color-base-error);\n color: var(--ck-color-base-background);\n padding: var(--ck-spacing-small) var(--ck-spacing-medium);\n min-width: var(--ck-table-properties-min-error-width);\n text-align: center;\n}\n.ck.ck-table-form\n .ck.ck-labeled-field-view\n .ck.ck-labeled-field-view__status:after {\n border-left: var(--ck-table-properties-error-arrow-size) solid transparent;\n border-bottom: var(--ck-table-properties-error-arrow-size) solid\n var(--ck-color-base-error);\n border-right: var(--ck-table-properties-error-arrow-size) solid transparent;\n border-top: 0 solid transparent;\n}\n.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status {\n animation: ck-table-form-labeled-view-status-appear 0.15s ease both;\n}\n.ck.ck-table-form\n .ck.ck-labeled-field-view\n .ck-input.ck-error:not(:focus)\n + .ck.ck-labeled-field-view__status {\n display: none;\n}\n@keyframes ck-table-form-labeled-view-status-appear {\n 0% {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.ck.ck-table-properties-form\n .ck-form__row.ck-table-properties-form__alignment-row {\n flex-wrap: wrap;\n flex-basis: 0;\n align-content: baseline;\n}\n.ck.ck-table-properties-form\n .ck-form__row.ck-table-properties-form__alignment-row\n .ck.ck-toolbar\n .ck-toolbar__items {\n flex-wrap: nowrap;\n}\n.ck.ck-table-properties-form {\n width: 320px;\n}\n.ck.ck-table-properties-form\n .ck-form__row.ck-table-properties-form__alignment-row {\n align-self: flex-end;\n padding: 0;\n}\n.ck.ck-table-properties-form\n .ck-form__row.ck-table-properties-form__alignment-row\n .ck.ck-toolbar {\n background: none;\n margin-top: var(--ck-spacing-standard);\n}\n.ck.ck-table-properties-form\n .ck-form__row.ck-table-properties-form__alignment-row\n .ck.ck-toolbar\n .ck-toolbar__items\n > * {\n width: 40px;\n}\n.ck.ck-table-cell-properties-form\n .ck-form__row.ck-table-cell-properties-form__alignment-row {\n flex-wrap: wrap;\n}\n.ck.ck-table-cell-properties-form\n .ck-form__row.ck-table-cell-properties-form__alignment-row\n .ck.ck-toolbar:first-of-type {\n flex-grow: 0.57;\n}\n.ck.ck-table-cell-properties-form\n .ck-form__row.ck-table-cell-properties-form__alignment-row\n .ck.ck-toolbar:last-of-type {\n flex-grow: 0.43;\n}\n.ck.ck-table-cell-properties-form\n .ck-form__row.ck-table-cell-properties-form__alignment-row\n .ck.ck-toolbar\n .ck-button {\n flex-grow: 1;\n}\n.ck.ck-table-cell-properties-form {\n width: 320px;\n}\n.ck.ck-table-cell-properties-form\n .ck-form__row.ck-table-cell-properties-form__padding-row {\n align-self: flex-end;\n padding: 0;\n width: 25%;\n}\n.ck.ck-table-cell-properties-form\n .ck-form__row.ck-table-cell-properties-form__alignment-row\n .ck.ck-toolbar {\n background: none;\n margin-top: var(--ck-spacing-standard);\n}\n:root {\n --ck-color-table-caption-background: #f7f7f7;\n --ck-color-table-caption-text: #333;\n --ck-color-table-caption-highlighted-background: #fd0;\n}\n.ck-content .table > figcaption {\n display: table-caption;\n caption-side: top;\n word-break: break-word;\n text-align: center;\n color: var(--ck-color-table-caption-text);\n background-color: var(--ck-color-table-caption-background);\n padding: 0.6em;\n font-size: 0.75em;\n outline-offset: -1px;\n}\n.ck.ck-editor__editable .table > figcaption.table__caption_highlighted {\n animation: ck-table-caption-highlight 0.6s ease-out;\n}\n.ck.ck-editor__editable .table > figcaption.ck-placeholder:before {\n padding-left: inherit;\n padding-right: inherit;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n@keyframes ck-table-caption-highlight {\n 0% {\n background-color: var(--ck-color-table-caption-highlighted-background);\n }\n to {\n background-color: var(--ck-color-table-caption-background);\n }\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n @import "./snippet.css";\n .ck-content .table {\n /* Give the table widget some air and center it horizontally */\n /* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n margin: 0.9em auto;\n display: table;\n\n & table {\n /* The table cells should have slight borders */\n border-collapse: collapse;\n border-spacing: 0;\n\n /* Table width and height are set on the parent <figure>. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n width: 100%;\n height: 100%;\n\n /* 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 border: 1px double hsl(0, 0%, 70%);\n\n & td,\n & th {\n min-width: 2em;\n padding: 0.4em;\n\n /* 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 border: 1px solid hsl(0, 0%, 75%);\n }\n\n & th {\n font-weight: bold;\n background: hsla(0, 0%, 0%, 5%);\n }\n }\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 editor. 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\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-input-color{width:100%;display:flex;flex-direction:row-reverse}.ck.ck-input-color>input.ck.ck-input-text{min-width:auto;flex-grow:1}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{position:relative;overflow:hidden}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{position:absolute;display:block}","",{version:3,sources:["webpack://./src/plugins/table/theme/colorinput.css"],names:[],mappings:"AAKA,mBACC,UAAW,CACX,YAAa,CACb,0BA8BD,CA5BC,0CACC,cAAe,CACf,WACD,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFACC,iBAAkB,CAClB,eAMD,CAJC,0IACC,iBAAkB,CAClB,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".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-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}","",{version:3,sources:["webpack://./src/plugins/table/theme/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\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-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{flex-wrap:wrap;align-items:center}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{display:flex;flex-direction:column-reverse;align-items:center}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{position:absolute;left:50%;bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;transform:translateX(-50%)}',"",{version:3,sources:["webpack://./src/plugins/table/theme/tableform.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DACC,cAAe,CACf,kBAeD,CAbC,qFACC,YAAa,CACb,6BAA8B,CAC9B,kBAKD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EACC,iBAAkB,CAClB,QAAS,CACT,2DAAgE,CAChE,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CACX,iBAAkB,CAClB,wDAA6D,CAC7D,QAAS,CACT,0BACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{flex-wrap:wrap;flex-basis:0;align-content:baseline}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}","",{version:3,sources:["webpack://./src/plugins/table/theme/tableproperties.css"],names:[],mappings:"AAOE,mFACC,cAAe,CACf,YAAa,CACb,sBAKD,CAHC,qHACC,gBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}","",{version:3,sources:["webpack://./src/plugins/table/theme/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-anchor-form{display:flex}.ck.ck-anchor-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-anchor-form{flex-wrap:wrap}.ck.ck-anchor-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-anchor-form .ck-button{flex-basis:50%}}.ck.ck-anchor-form_layout-vertical{display:block}.ck.ck-anchor-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-anchor-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./src/plugins/anchor/theme/anchorform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,mBACC,YAiBD,CAfC,6BACC,YACD,CCNA,oCDCD,mBAQE,cAUF,CARE,0CACC,eACD,CAEA,8BACC,cACD,CCfD,CDuBD,mCACC,aAYD,CALE,4HAEC,mCACD",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-anchor-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 anchor form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-anchor/issues/186.\n */\n.ck.ck-anchor-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,'.ck.ck-anchor-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-anchor-actions .ck-anchor-actions__preview{display:inline-block}.ck.ck-anchor-actions .ck-anchor-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-anchor-actions{flex-wrap:wrap}.ck.ck-anchor-actions .ck-anchor-actions__preview{flex-basis:100%}.ck.ck-anchor-actions .ck-button:not(.ck-anchor-actions__preview){flex-basis:50%}}div[contenteditable=false] .ck-anchor{background-size:16px;padding-left:18px;color:#00f;cursor:auto}div[contenteditable=true] .ck-anchor{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAACFElEQVQ4y3WSz2pTQRTGf2du2opNYymCreCiKYIo7lrUnYs+QB+gT+Ar+BouXXRTwa1YKlIEu7AUayk0SLiXmwahVOwiMUSlSWY+F3fSNv754MAwc+bHN3M+y7KMIAEQgL5z3F9YuA/cA3ZrzeZR4j0WAgZghgCTSMwgTVMkvVahTUlvWru7+riyos7+viQdSHoq6Ubt+BhJt+PeRj3LIMsyJAmQJL2bm9M6aB30ArQG+rC8HPlqd3d2wpPYW89zSmYGwPTsLABTJyfcqlQ47HSoAOUk4fvWFmtmDODadaBHIUsSSnFN33sAFmdmqMd3Mj7OWLnMQrnM4uQk01NTfD06YvP0NBLsEqBXcCURuFAwY2BGzzlsYoLBEB7lhgsfHRAncn4gFdBYgv8A+v3oykjMSIAEcGY4s2KE/9A5gHBh/Ee3yzfgV6/HhPeMA2NmJM6RwAjs/A+IDt62WrwCZoBD4Eq7zaN2m4fVKoRAt9u9uC1RwkbNZcAzqQXsAQ+2l5Yqn/b22Go0sEaDM+BO0fpe3kOe5yNBkrQt6Wat2URSSdJjSS8l9Q9WVyXpTNJzSdP1NMXyPKdarcrMkESa5xa8xwCZgXME57g7P38VqAJfPud5JwmBxIySpJEnOMA5xzChAjQYUE/Tn4KaAWPO4ZwrghRCGAEohBGAAXLu0riGISzOXQzQRnSy4b3nT1dm9lcN9RsyQ0BYyr+EAQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxMy0wNy0wNFQxNzowMzowMyswMjowME2ku3gAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTMtMDctMDRUMTc6MDM6MDMrMDI6MDA8+QPEAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAABJRU5ErkJggg==") no-repeat 0;background-size:16px;padding-left:18px;color:#00f;cursor:auto}',"",{version:3,sources:["webpack://./src/plugins/anchor/theme/anchoractions.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,sBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,kDACC,oBAKD,CAHC,oEACC,eACD,CCXD,oCDCD,sBAcE,cAUF,CARE,kDACC,eACD,CAEA,kEACC,cACD,CCrBD,CDyBD,sCACC,oBAAqB,CACrB,iBAAkB,CAClB,UAAW,CACX,WACD,CAEA,qCACC,gjCAA2jC,CAC3jC,oBAAqB,CACrB,iBAAkB,CAClB,UAAW,CACX,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@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-anchor-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-anchor-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-anchor-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-anchor-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\ndiv[contenteditable=false] .ck-anchor {\n\tbackground-size: 16px;\n\tpadding-left: 18px;\n\tcolor: #00f;\n\tcursor: auto;\n}\n\ndiv[contenteditable=true] .ck-anchor {\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAACFElEQVQ4y3WSz2pTQRTGf2du2opNYymCreCiKYIo7lrUnYs+QB+gT+Ar+BouXXRTwa1YKlIEu7AUayk0SLiXmwahVOwiMUSlSWY+F3fSNv754MAwc+bHN3M+y7KMIAEQgL5z3F9YuA/cA3ZrzeZR4j0WAgZghgCTSMwgTVMkvVahTUlvWru7+riyos7+viQdSHoq6Ubt+BhJt+PeRj3LIMsyJAmQJL2bm9M6aB30ArQG+rC8HPlqd3d2wpPYW89zSmYGwPTsLABTJyfcqlQ47HSoAOUk4fvWFmtmDODadaBHIUsSSnFN33sAFmdmqMd3Mj7OWLnMQrnM4uQk01NTfD06YvP0NBLsEqBXcCURuFAwY2BGzzlsYoLBEB7lhgsfHRAncn4gFdBYgv8A+v3oykjMSIAEcGY4s2KE/9A5gHBh/Ee3yzfgV6/HhPeMA2NmJM6RwAjs/A+IDt62WrwCZoBD4Eq7zaN2m4fVKoRAt9u9uC1RwkbNZcAzqQXsAQ+2l5Yqn/b22Go0sEaDM+BO0fpe3kOe5yNBkrQt6Wat2URSSdJjSS8l9Q9WVyXpTNJzSdP1NMXyPKdarcrMkESa5xa8xwCZgXME57g7P38VqAJfPud5JwmBxIySpJEnOMA5xzChAjQYUE/Tn4KaAWPO4ZwrghRCGAEohBGAAXLu0riGISzOXQzQRnSy4b3nT1dm9lcN9RsyQ0BYyr+EAQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxMy0wNy0wNFQxNzowMzowMyswMjowME2ku3gAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTMtMDctMDRUMTc6MDM6MDMrMDI6MDA8+QPEAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAABJRU5ErkJggg==") no-repeat left center;\n\tbackground-size: 16px;\n\tpadding-left: 18px;\n\tcolor: #00f;\n\tcursor: auto;\n}\n',"/*\n * Copyright (c) 2003-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./src/themes/styles/linkform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2021, 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\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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;width:100px;text-overflow:ellipsis}@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%}}","",{version:3,sources:["webpack://./src/themes/styles/linkactions.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAuBD,CArBC,8CACC,oBAOD,CALC,gEACC,eAAgB,CACP,WAAY,CACZ,sBACV,CCbD,oCDCD,oBAgBE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCvBD",sourcesContent:['/*\n * Copyright (c) 2003-2021, 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 width: 100px;\n text-overflow: ellipsis;\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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-link-image_icon{position:absolute;top:var(--ck-spacing-medium);right:var(--ck-spacing-medium);width:28px;height:28px;padding:4px;box-sizing:border-box;border-radius:var(--ck-border-radius);color:#fff;background:rgba(0,0,0,.4)}.ck.ck-link-image_icon svg{fill:currentColor}","",{version:3,sources:["webpack://./src/themes/styles/linkimage.css"],names:[],mappings:"AAKA,uBACC,iBAAkB,CAClB,4BAA6B,CAC7B,8BAA+B,CAC/B,UAAW,CACX,WAAY,CACZ,WAAY,CACZ,qBAAsB,CACtB,qCAAsC,CACrC,UAAU,CACV,yBAKF,CAHC,2BACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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-link-image_icon {\n\tposition: absolute;\n\ttop: var(--ck-spacing-medium);\n\tright: var(--ck-spacing-medium);\n\twidth: 28px;\n\theight: 28px;\n\tpadding: 4px;\n\tbox-sizing: border-box;\n\tborder-radius: var(--ck-border-radius);\n color:#fff;\n background:rgba(0,0,0,.4);\n\n\t& svg {\n\t\tfill: currentColor;\n\t}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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}.ck .ck-widget{width:fit-content}',"",{version:3,sources:["webpack://./src/plugins/media/theme/mediaembedediting.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.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,CAEA,eACE,iBACF",sourcesContent:['/*\n * Copyright (c) 2003-2021, 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.ck .ck-widget {\n width: fit-content;\n}\n',"/*\n * Copyright (c) 2003-2021, 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"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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://./src/plugins/media/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-2021, 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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck-content .media{display:table;clear:both;text-align:center;margin:1em auto;width:640px}.ck-content .media media{display:block;margin:0 auto;max-width:100%;min-width:50px}.ck.ck-editor__editable .media>figcaption.ck-placeholder:before{position:static}","",{version:3,sources:["webpack://./src/plugins/media/theme/mediaembed.css"],names:[],mappings:"AAaA,mBACE,aAAc,CACd,UAAW,CACX,iBAAkB,CAClB,eAAgB,CAChB,WAOF,CANE,yBACI,aAAc,CACd,aAAc,CACd,cAAe,CACf,cACJ,CAGF,gEACE,eACF",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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\tclear: both;\n\tmargin: 1em 0;\n\tdisplay: table;\n\tmin-width: 15em;\n text-align: center;\n} */\n\n.ck-content .media {\n display: table;\n clear: both;\n text-align: center;\n margin: 1em auto;\n width: 640px;\n & media {\n display: block;\n margin: 0 auto;\n max-width: 100%;\n min-width: 50px;\n }\n}\n\n.ck.ck-editor__editable .media > figcaption.ck-placeholder::before {\n position: static;\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck-content .media.media_resized{max-width:100%;display:block;box-sizing:border-box}.ck-content .media.media_resized media{width:100%}.ck-content .media.media_resized>figcaption{display:block}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-media-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-media-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-media-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./src/plugins/media/theme/mediaresize.css"],names:[],mappings:"AAAA,iCACI,cAAe,CAMf,aAAc,CACd,qBAWJ,CATI,uCAEM,UACJ,CAEF,4CAEM,aACJ,CAGN,oFACI,uCACJ,CAEA,oFACI,sCACJ,CAEA,oEACI,SACJ",sourcesContent:['.ck-content .media.media_resized {\n max-width: 100%;\n /*\n The `<figure>` element for resized medias must not use `display:table` as browsers do not support `max-width` for it well.\n See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n Fortunately, since we control the width, there is no risk that the media will look bad.\n */\n display: block;\n box-sizing: border-box;\n\n & media {\n /* For resized medias it is the `<figure>` element that determines the media width. */\n width: 100%;\n }\n\n & > figcaption {\n /* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\n display: block;\n }\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-media-button .ck-button__icon {\n margin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-media-button .ck-button__icon {\n margin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-media-button .ck-button__label {\n width: 4em;\n}\n'],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,":root{--ck-media-style-spacing:1.5em}.ck-content .media-style-side{float:right;margin-left:var(--ck-media-style-spacing);max-width:50%}.ck-content .media-style-align-left{float:left;margin-right:var(--ck-media-style-spacing)}.ck-content .media-style-align-center{margin-left:auto;margin-right:auto}.ck-content .media-style-align-right{float:right;margin-left:var(--ck-media-style-spacing)}","",{version:3,sources:["webpack://./src/plugins/media/theme/mediastyle.css"],names:[],mappings:"AAAA,MACI,8BACJ,CAGI,8BACI,WAAY,CACZ,yCAA0C,CAC1C,aACJ,CAEA,oCACI,UAAW,CACX,0CACJ,CAEA,sCACI,gBAAiB,CACjB,iBACJ,CAEA,qCACI,WAAY,CACZ,yCACJ",sourcesContent:[":root {\n --ck-media-style-spacing: 1.5em;\n}\n\n.ck-content {\n & .media-style-side {\n float: right;\n margin-left: var(--ck-media-style-spacing);\n max-width: 50%;\n }\n\n & .media-style-align-left {\n float: left;\n margin-right: var(--ck-media-style-spacing);\n }\n\n & .media-style-align-center {\n margin-left: auto;\n margin-right: auto;\n }\n\n & .media-style-align-right {\n float: right;\n margin-left: var(--ck-media-style-spacing);\n }\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck-content .video{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .video video{display:block;margin:0 auto;min-width:50px}.ck.ck-editor__editable .video>figcaption.ck-placeholder:before{position:static}","",{version:3,sources:["webpack://./src/plugins/video/theme/video.css"],names:[],mappings:"AAAA,mBACI,aAAc,CACd,UAAW,CACX,iBAAkB,CAClB,eAOJ,CALI,yBACI,aAAc,CACd,aAAc,CACd,cACJ,CAGJ,gEACI,eACJ",sourcesContent:[".ck-content .video {\n display: table;\n clear: both;\n text-align: center;\n margin: 1em auto;\n\n & video {\n display: block;\n margin: 0 auto;\n min-width: 50px;\n }\n}\n\n.ck.ck-editor__editable .video > figcaption.ck-placeholder::before {\n position: static;\n}\n\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck-content .video.video_resized{max-width:100%;display:block;box-sizing:border-box}.ck-content .video.video_resized video{width:100%;height:100%}.ck-content .video.video_resized>figcaption{display:block}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-video-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-video-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-video-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./src/plugins/video/theme/videoresize.css"],names:[],mappings:"AAAA,iCACI,cAAe,CAMf,aAAc,CACd,qBAYJ,CAVI,uCAEM,UAAW,CACX,WACJ,CAEF,4CAEM,aACJ,CAGN,oFACI,uCACJ,CAEA,oFACI,sCACJ,CAEA,oEACI,SACJ",sourcesContent:['.ck-content .video.video_resized {\n max-width: 100%;\n /*\n The `<figure>` element for resized videos must not use `display:table` as browsers do not support `max-width` for it well.\n See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n Fortunately, since we control the width, there is no risk that the video will look bad.\n */\n display: block;\n box-sizing: border-box;\n\n & video {\n /* For resized videos it is the `<figure>` element that determines the video width. */\n width: 100%;\n height: 100%;\n }\n\n & > figcaption {\n /* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\n display: block;\n }\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-video-button .ck-button__icon {\n margin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-video-button .ck-button__icon {\n margin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-video-button .ck-button__label {\n width: 4em;\n}\n'],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,":root{--ck-video-style-spacing:1.5em}.ck-content .video-style-side{float:right;margin-left:var(--ck-video-style-spacing);max-width:50%}.ck-content .video-style-align-left{float:left;margin-right:var(--ck-video-style-spacing)}.ck-content .video-style-align-center{margin-left:auto;margin-right:auto}.ck-content .video-style-align-right{float:right;margin-left:var(--ck-video-style-spacing)}","",{version:3,sources:["webpack://./src/plugins/video/theme/videostyle.css"],names:[],mappings:"AAAA,MACI,8BACJ,CAGI,8BACI,WAAY,CACZ,yCAA0C,CAC1C,aACJ,CAEA,oCACI,UAAW,CACX,0CACJ,CAEA,sCACI,gBAAiB,CACjB,iBACJ,CAEA,qCACI,WAAY,CACZ,yCACJ",sourcesContent:[":root {\n --ck-video-style-spacing: 1.5em;\n}\n\n.ck-content {\n & .video-style-side {\n float: right;\n margin-left: var(--ck-video-style-spacing);\n max-width: 50%;\n }\n\n & .video-style-align-left {\n float: left;\n margin-right: var(--ck-video-style-spacing);\n }\n\n & .video-style-align-center {\n margin-left: auto;\n margin-right: auto;\n }\n\n & .video-style-align-right {\n float: right;\n margin-left: var(--ck-video-style-spacing);\n }\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-editor__editable .video{position:relative}.ck.ck-editor__editable .video .ck-progress-bar{position:absolute;top:0;left:0}","",{version:3,sources:["webpack://./src/plugins/video/theme/videouploadprogress.css"],names:[],mappings:"AAAA,+BACI,iBACJ,CAGA,gDACI,iBAAkB,CAClB,KAAM,CACN,MACJ",sourcesContent:[".ck.ck-editor__editable .video {\n position: relative;\n}\n\n/* Upload progress bar. */\n.ck.ck-editor__editable .video .ck-progress-bar {\n position: absolute;\n top: 0;\n left: 0;\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,'.ck-video-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-video-upload-complete-icon:after{content:"";position:absolute}',"",{version:3,sources:["webpack://./src/plugins/video/theme/videouploadicon.css"],names:[],mappings:"AAAA,+BACI,aAAc,CACd,iBAAkB,CAClB,QAAS,CACT,UAAW,CACX,iBAMJ,CAJI,qCACK,UAAW,CACX,iBACJ",sourcesContent:['.ck-video-upload-complete-icon {\n display: block;\n position: absolute;\n top: 10px;\n right: 10px;\n border-radius: 50%;\n\n &::after {\n content: "";\n position: absolute;\n }\n}\n'],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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}',"",{version:3,sources:["webpack://./src/plugins/video/theme/videouploadloader.css"],names:[],mappings:"AAAA,kCACI,iBAAkB,CAClB,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,KAAM,CACN,MAMJ,CAJI,yCACK,UAAW,CACX,iBACJ",sourcesContent:[".ck .ck-upload-placeholder-loader {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n\n &::before {\n content: '';\n position: relative;\n }\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-character-grid{max-width:100%}.ck.ck-character-grid .ck-character-grid__tiles{display:grid}:root{--ck-character-grid-tile-size:24px}.ck.ck-character-grid{overflow-y:auto;overflow-x:hidden;width:350px;max-height:200px}.ck.ck-character-grid .ck-character-grid__tiles{grid-template-columns:repeat(auto-fit,minmax(var(--ck-character-grid-tile-size),1fr));margin:var(--ck-spacing-standard) var(--ck-spacing-large);grid-gap:var(--ck-spacing-standard)}.ck.ck-character-grid .ck-character-grid__tile{width:var(--ck-character-grid-tile-size);height:var(--ck-character-grid-tile-size);min-width:var(--ck-character-grid-tile-size);min-height:var(--ck-character-grid-tile-size);font-size:1.2em;padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-character-grid .ck-character-grid__tile:focus:not(.ck-disabled),.ck.ck-character-grid .ck-character-grid__tile:hover:not(.ck-disabled){border:0;box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-character-grid .ck-character-grid__tile .ck-button__label{line-height:var(--ck-character-grid-tile-size);width:100%;text-align:center}","",{version:3,sources:["webpack://./src/plugins/ckeditor5-special-characters/theme/charactergrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-special-characters/charactergrid.css"],names:[],mappings:"AAKA,sBACC,cAKD,CAHC,gDACC,YACD,CCHD,MACC,kCACD,CAEA,sBACC,eAAgB,CAChB,iBAAkB,CAClB,WAAY,CACZ,gBAgCD,CA9BC,gDACC,qFAAwF,CACxF,yDAA0D,CAC1D,mCACD,CAEA,+CACC,wCAAyC,CACzC,yCAA0C,CAC1C,4CAA6C,CAC7C,6CAA8C,CAC9C,eAAgB,CAChB,SAAU,CACV,8BAA+B,CAC/B,QAeD,CAbC,8IAGC,QAAS,CACT,iGACD,CAGA,iEACC,8CAA+C,CAC/C,UAAW,CACX,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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-character-grid {\n\tmax-width: 100%;\n\t\n\t& .ck-character-grid__tiles {\n\t\tdisplay: grid;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2021, 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-character-grid-tile-size: 24px;\n}\n\n.ck.ck-character-grid {\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\twidth: 350px;\n\tmax-height: 200px;\n\n\t& .ck-character-grid__tiles {\n\t\tgrid-template-columns: repeat(auto-fit, minmax(var(--ck-character-grid-tile-size), 1fr));\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\t\tgrid-gap: var(--ck-spacing-standard);\n\t}\n\n\t& .ck-character-grid__tile {\n\t\twidth: var(--ck-character-grid-tile-size);\n\t\theight: var(--ck-character-grid-tile-size);\n\t\tmin-width: var(--ck-character-grid-tile-size);\n\t\tmin-height: var(--ck-character-grid-tile-size);\n\t\tfont-size: 1.2em;\n\t\tpadding: 0;\n\t\ttransition: .2s ease box-shadow;\n\t\tborder: 0;\n\n\t\t&:focus:not( .ck-disabled ),\n\t\t&:hover:not( .ck-disabled ) {\n\t\t\t/* Disable the default .ck-button\'s border ring. */\n\t\t\tborder: 0;\n\t\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t\t}\n\n\t\t/* Make sure the glyph is rendered in the center of the button */\n\t\t& .ck-button__label {\n\t\t\tline-height: var(--ck-character-grid-tile-size);\n\t\t\twidth: 100%;\n\t\t\ttext-align: center;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-character-info{display:flex;justify-content:space-between;padding:var(--ck-spacing-small) var(--ck-spacing-large);border-top:1px solid var(--ck-color-base-border)}.ck.ck-character-info>*{text-transform:uppercase;font-size:var(--ck-font-size-small)}.ck.ck-character-info .ck-character-info__name{max-width:280px;text-overflow:ellipsis;overflow:hidden}.ck.ck-character-info .ck-character-info__code{opacity:.6}","",{version:3,sources:["webpack://./src/plugins/ckeditor5-special-characters/theme/characterinfo.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-special-characters/characterinfo.css"],names:[],mappings:"AAKA,sBACC,YAAa,CACb,6BAA8B,CCD9B,uDAAwD,CACxD,gDDCD,CCCC,wBACC,wBAAyB,CACzB,mCACD,CAEA,+CACC,eAAgB,CAChB,sBAAuB,CACvB,eACD,CAEA,+CACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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-character-info {\n\tdisplay: flex;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2021, 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-character-info {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t& > * {\n\t\ttext-transform: uppercase;\n\t\tfont-size: var(--ck-font-size-small);\n\t}\n\n\t& .ck-character-info__name {\n\t\tmax-width: 280px;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t& .ck-character-info__code {\n\t\topacity: .6;\n\t}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck.ck-special-characters-navigation>.ck-label{max-width:160px;text-overflow:ellipsis;overflow:hidden}.ck.ck-special-characters-navigation>.ck-dropdown .ck-dropdown__panel{max-height:250px;overflow-y:auto;overflow-x:hidden}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-special-characters/specialcharacters.css"],names:[],mappings:"AASC,+CACC,eAAgB,CAChB,sBAAuB,CACvB,eACD,CAEA,sEAEC,gBAAiB,CACjB,eAAgB,CAChB,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2021, 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-special-characters-navigation {\n\n\t& > .ck-label {\n\t\tmax-width: 160px;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t& > .ck-dropdown .ck-dropdown__panel {\n\t\t/* There could be dozens of categories available. Use scroll to prevent a 10e6px dropdown. */\n\t\tmax-height: 250px;\n\t\toverflow-y: auto;\n\t\toverflow-x: hidden;\n\t}\n}\n'],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck .ck-find-and-replace-form .ck-find-form__wrapper,.ck .ck-find-and-replace-form .ck-replace-form__wrapper{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:wrap}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button{margin-top:var(--ck-spacing-standard);background-color:var(--ck-color-base-active);padding:5px 10px;text-transform:uppercase}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-disabled,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button.ck-disabled{background-color:var(--ck-color-switch-button-off-background)}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button:not(.ck-disabled),.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button:not(.ck-disabled){color:var(--ck-color-base-background)}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button:not(.ck-disabled):hover,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button:not(.ck-disabled):hover{background-color:var(--ck-color-base-focus);cursor:pointer}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text{padding:var(--ck-spacing-extra-tiny) calc(var(--ck-spacing-medium)*8) var(--ck-spacing-extra-tiny) var(--ck-spacing-medium)}@media screen and (max-width:600px){.ck .ck-find-and-replace-form .ck-find-form__wrapper,.ck .ck-find-and-replace-form .ck-replace-form__wrapper{flex-wrap:wrap}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-labeled-field-view,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-labeled-field-view{flex-basis:100%}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button{flex-basis:50%}}.ck .ck-find-and-replace-form .ck-replace-form__wrapper{justify-content:flex-end;border-top:1px solid var(--ck-color-base-border)}.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text{padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium) var(--ck-spacing-extra-tiny) var(--ck-spacing-medium)}.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button{border-radius:5px;font-size:calc(var(--ck-font-size-normal)*0.9)}.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button:last-child{margin-left:var(--ck-spacing-standard)}.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button .ck.ck-button__label{line-height:20px}.ck .ck-find-and-replace-form .ck-find-form__wrapper{justify-content:space-between}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-button-next,.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-button-prev{margin-left:1px}.ck .ck-find-and-replace-form .ck-find-form__wrapper span.ck-results-counter{position:absolute;top:calc(var(--ck-spacing-standard)*2);right:calc(var(--ck-spacing-standard)*3);color:var(--ck-color-base-border)}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons{display:flex;align-items:center}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button{border-radius:5px;padding:5px}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button svg.ck-button__icon{margin:0}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-find{padding:4px 16px}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-prev{border-radius:5px 0 0 5px}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-prev svg{transform:rotate(180deg) translateY(-2px)}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-next{border-radius:0 5px 5px 0}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-next svg{transform:translateY(-1px)}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-is-searching .ck-button.ck-button-find,.ck .ck-find-and-replace-form .ck-find-form__wrapper:not(.ck-is-searching) .ck-button.ck-button-next,.ck .ck-find-and-replace-form .ck-find-form__wrapper:not(.ck-is-searching) .ck-button.ck-button-prev{display:none}.ck .ck-find-and-replace-form .ck-find-form__wrapper:not(.ck-is-searching) .ck-button.ck-button-find{display:flex}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes{margin:0}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box{display:flex;align-items:center;max-width:150px;overflow:hidden}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box label{margin-left:5px;line-height:calc(var(--ck-spacing-standard)*2.2);overflow:hidden;text-overflow:ellipsis}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box input[type=checkbox]:hover,.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box label:hover{cursor:pointer}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box:first-child{margin-top:var(--ck-spacing-medium)}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box input[type=checkbox]:disabled+label{color:var(--ck-color-switch-button-off-background)}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text{padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium) var(--ck-spacing-extra-tiny) calc(var(--ck-spacing-medium)*8)}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-replace-buttons{display:flex;flex-flow:row-reverse}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-replace-buttons .ck-button:last-child{margin-left:var(--ck-spacing-standard)}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text{padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium)}.ck[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:0}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-button-next,.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-button-prev{margin-right:1px;margin-left:0}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper span.ck-results-counter{left:calc(var(--ck-spacing-standard)*3)}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons{flex-flow:row-reverse}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes{margin:0}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box label{margin-right:5px}","",{version:3,sources:["webpack://./src/plugins/ckeditor5-find-and-replace/theme/findandreplaceform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAYA,6GAEC,YAAa,CACb,sBAAuB,CACvB,kBAAmB,CACnB,cAqCD,CAnCC,mIACC,qCAAsC,CACtC,4CAA6C,CAC7C,gBAAiB,CACjB,wBAcD,CAZC,2JACC,6DACD,CAEA,uKACC,qCAMD,CAJC,mLACC,2CAA4C,CAC5C,cACD,CAIF,6NACC,2HACD,CCnCA,oCDMD,6GAgCE,cAUF,CARE,2JACC,eACD,CAEA,mIACC,cACD,CC5CD,CDgDD,wDACC,wBAAyB,CACzB,gDAkBD,CAhBC,gHACC,mHACD,CAEA,mEACC,iBAAkB,CAClB,8CASD,CAPC,8EACC,sCACD,CAEA,wFACC,gBACD,CAIF,qDACC,6BAgGD,CA9FC,8JAEC,eACD,CAEA,6EACC,iBAAkB,CAClB,sCAAyC,CACzC,wCAA2C,CAC3C,iCACD,CAEA,sEACC,YAAa,CACb,kBA8BD,CA5BC,iFACC,iBAAkB,CAClB,WAyBD,CAvBC,qGACC,QACD,CAEA,gGACC,gBACD,CAEA,gGACC,yBAKD,CAHC,oGACC,yCACD,CAGD,gGACC,yBAKD,CAHC,oGACC,0BACD,CAYF,ySAEC,YACD,CAEA,qGACC,YACD,CAGD,4FACC,QA6BD,CA3BC,qHACC,YAAa,CACb,kBAAmB,CACnB,eAAgB,CAChB,eAsBD,CApBC,2HACC,eAAgB,CAChB,gDAAmD,CACnD,eAAgB,CAChB,sBACD,CAEA,iRAGC,cACD,CAEA,iIACC,mCACD,CAEA,yJACC,kDACD,CAMF,0HACC,2HACD,CAGC,yFACC,YAAa,CACb,qBAKD,CAHC,+GACC,sCACD,CAED,6HACC,6DACD,CAGD,sDACC,aACD,CAGC,wLAEC,gBAAiB,CACjB,aACD,CAEA,0FACC,uCACD,CAEA,mFACC,qBACD,CAEA,yGACC,QAKD,CAHC,wIACC,gBACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* stylelint-disable no-descending-specificity */\n\n/* disabled buttons bg color: #C3C3C3 */\n/* button color #4E8AE4 */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css\";\n\n.ck .ck-find-and-replace-form .ck-find-form__wrapper,\n.ck .ck-find-and-replace-form .ck-replace-form__wrapper {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n\n\t& .ck-button {\n\t\tmargin-top: var(--ck-spacing-standard);\n\t\tbackground-color: var(--ck-color-base-active);\n\t\tpadding: 5px 10px;\n\t\ttext-transform: uppercase;\n\n\t\t&.ck-disabled {\n\t\t\tbackground-color: var(--ck-color-switch-button-off-background);\n\t\t}\n\n\t\t&:not(.ck-disabled) {\n\t\t\tcolor: var(--ck-color-base-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground-color: var(--ck-color-base-focus);\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__input-wrapper .ck.ck-input-text{\n\t\tpadding: var(--ck-spacing-extra-tiny) calc(var(--ck-spacing-medium) * 8) var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\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.ck .ck-find-and-replace-form .ck-replace-form__wrapper {\n\tjustify-content: flex-end;\n\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t& .ck-labeled-field-view__input-wrapper .ck.ck-input-text{\n\t\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium) var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\t}\n\n\t& .ck-button {\n\t\tborder-radius: 5px;\n\t\tfont-size: calc(var(--ck-font-size-normal) * 0.9);\n\n\t\t&:last-child {\n\t\t\tmargin-left: var(--ck-spacing-standard)\n\t\t}\n\n\t\t& .ck.ck-button__label {\n\t\t\tline-height: 20px;\n\t\t}\n\t}\n}\n\n.ck .ck-find-and-replace-form .ck-find-form__wrapper {\n\tjustify-content: space-between;\n\n\t& .ck-button.ck-button-prev,\n\t& .ck-button.ck-button-next {\n\t\tmargin-left: 1px;\n\t}\n\n\t& span.ck-results-counter {\n\t\tposition: absolute;\n\t\ttop: calc(var(--ck-spacing-standard) * 2);\n\t\tright: calc(var(--ck-spacing-standard) * 3);\n\t\tcolor: var(--ck-color-base-border)\n\t}\n\n\t& .ck-find-buttons {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\n\t\t& .ck-button {\n\t\t\tborder-radius: 5px;\n\t\t\tpadding: 5px;\n\n\t\t\t& svg.ck-button__icon {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t&.ck-button-find {\n\t\t\t\tpadding: 4px 16px;\n\t\t\t}\n\n\t\t\t&.ck-button-prev {\n\t\t\t\tborder-radius: 5px 0 0 5px;\n\n\t\t\t\t& svg {\n\t\t\t\t\ttransform: rotate(180deg) translateY(-2px);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-button-next {\n\t\t\t\tborder-radius: 0 5px 5px 0;\n\n\t\t\t\t& svg {\n\t\t\t\t\ttransform: translateY(-1px);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-is-searching {\n\t\t& .ck-button.ck-button-find {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t&:not(.ck-is-searching) {\n\t\t& .ck-button.ck-button-prev,\n\t\t& .ck-button.ck-button-next {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& .ck-button.ck-button-find {\n\t\t\tdisplay: flex;\n\t\t}\n\t}\n\n\t&.ck-responsive-form .ck-find-checkboxes {\n\t\tmargin: 0;\n\n\t\t& .ck-find-checkboxes__box {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tmax-width: 150px;\n\t\t\toverflow: hidden;\n\n\t\t\t& label {\n\t\t\t\tmargin-left: 5px;\n\t\t\t\tline-height: calc(var(--ck-spacing-standard) * 2.2);\n\t\t\t\toverflow: hidden;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t}\n\n\t\t\t& label:hover,\n\t\t\t& input[type=checkbox]:hover\n\t\t\t {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& input[type=checkbox]:disabled+label {\n\t\t\t\tcolor: var(--ck-color-switch-button-off-background);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck[dir='rtl'] {\n\t& .ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text {\n\t\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium) var(--ck-spacing-extra-tiny) calc(var(--ck-spacing-medium) * 8);\n\t}\n\n\t& .ck .ck-find-and-replace-form .ck-replace-form__wrapper {\n\t\t& .ck-replace-buttons {\n\t\t\tdisplay: flex;\n\t\t\tflex-flow: row-reverse;\n\n\t\t\t& .ck-button:last-child {\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t\t& .ck-labeled-field-view__input-wrapper .ck.ck-input-text{\n\t\t\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\t\t}\n\t}\n\n\t& .ck.ck-responsive-form > :not(:last-child) {\n\t\tmargin-left: 0;\n\t}\n\n\t& .ck .ck-find-and-replace-form .ck-find-form__wrapper {\n\t\t& .ck-button.ck-button-prev,\n\t\t& .ck-button.ck-button-next {\n\t\t\tmargin-right: 1px;\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t& span.ck-results-counter {\n\t\t\tleft: calc(var(--ck-spacing-standard) * 3);\n\t\t}\n\n\t\t& .ck-find-buttons {\n\t\t\tflex-flow: row-reverse;\n\t\t}\n\n\t\t&.ck-responsive-form .ck-find-checkboxes {\n\t\t\tmargin: 0;\n\n\t\t\t& .ck-find-checkboxes__box label {\n\t\t\t\tmargin-right: 5px;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* stylelint-enable no-descending-specificity */","/*\n * Copyright (c) 2003-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".ck-find-result{background:#fff700;color:var(--ck-color-text)}.ck-find-result_selected{background:#fd0}","",{version:3,sources:["webpack://./src/plugins/ckeditor5-find-and-replace/theme/findandreplace.css"],names:[],mappings:"AAKA,gBACC,kBAA8B,CAC9B,0BACD,CAEA,yBACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-find-result {\n\tbackground: hsl(58, 100%, 50%);\n\tcolor: var(--ck-color-text);\n}\n\n.ck-find-result_selected {\n\tbackground: hsl(52, 100%, 50%);\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".qms-tooltip{position:relative;font-style:italic;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}","",{version:3,sources:["webpack://./src/themes/styles/tooltip.css"],names:[],mappings:"AAAA,aACI,iBAAkB,CAClB,iBAAkB,CAClB,gCAAiC,CACjC,WAAY,CACZ,qCAAsC,CACtC,6BACJ",sourcesContent:['.qms-tooltip {\n position: relative;\n font-style: italic;\n text-decoration: underline dotted;\n cursor: help;\n -webkit-text-decoration-skip-ink: none;\n text-decoration-skip-ink: none;\n}\n\n/* .qms-tooltip:hover:before {\n content: "";\n width: auto;\n color: var(--ck-color-base-text);\n padding: var(--ck-spacing-small) var(--ck-spacing-medium);\n background: var(--ck-color-base-background);\n border-radius: var(--ck-color-base-border);\n position: absolute;\n top: 100%;\n}\n\n.qms-tooltip:hover:after {\n position: absolute;\n content: "";\n top: 60%;\n left: 50%;\n transform: rotateX(180deg);\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-color: var(--ck-color-base-background) transparent transparent transparent;\n} */\n '],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,'.ck-content .page-break{position:relative;clear:both;padding:5px 0;display:flex;align-items:center;justify-content:center}.ck-content .page-break:after{content:"";position:absolute;border-bottom:2px dashed #c4c4c4;width:100%}.ck-content .page-break__label{position:relative;z-index:1;padding:.3em .6em;display:block;text-transform:uppercase;border:1px solid #c4c4c4;border-radius:2px;font-family:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;font-size:.75em;font-weight:700;color:#333;background:#fff;box-shadow:2px 2px 1px rgba(0,0,0,.15);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media print{.ck-content .page-break{padding:0}.ck-content .page-break:after{display:none}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-page-break/theme/pagebreak.css"],names:[],mappings:"AAKA,wBACC,iBAAkB,CAClB,UAAW,CACX,aAAc,CACd,YAAa,CACb,kBAAmB,CACnB,sBAQD,CANC,8BACC,UAAW,CACX,iBAAkB,CAClB,gCAAyC,CACzC,UACD,CAGD,+BACC,iBAAkB,CAClB,SAAU,CACV,iBAAkB,CAClB,aAAc,CACd,wBAAyB,CACzB,wBAAiC,CACjC,iBAAkB,CAClB,qDAA0D,CAC1D,eAAiB,CACjB,eAAiB,CACjB,UAAsB,CACtB,eAA4B,CAC5B,sCAA6C,CAG7C,wBAAyB,CACzB,qBAAsB,CACtB,oBAAqB,CACrB,gBACD,CAGA,aACC,wBACC,SAKD,CAHC,8BACC,YACD,CAEF",sourcesContent:["/*\n * Copyright (c) 2003-2021, 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 .page-break {\n\tposition: relative;\n\tclear: both;\n\tpadding: 5px 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\t&::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tborder-bottom: 2px dashed hsl(0, 0%, 77%);\n\t\twidth: 100%;\n\t}\n}\n\n.ck-content .page-break__label {\n\tposition: relative;\n\tz-index: 1;\n\tpadding: .3em .6em;\n\tdisplay: block;\n\ttext-transform: uppercase;\n\tborder: 1px solid hsl(0, 0%, 77%);\n\tborder-radius: 2px;\n\tfont-family: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\tfont-size: 0.75em;\n\tfont-weight: bold;\n\tcolor: hsl(0, 0%, 20%);\n\tbackground: hsl(0, 0%, 100%);\n\tbox-shadow: 2px 2px 1px hsla(0, 0%, 0%, 0.15);\n\n\t/* Disable the possibility to select the label text by the user. */\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n}\n\n/* Do not show the page break element inside the print preview window. */\n@media print {\n\t.ck-content .page-break {\n\t\tpadding: 0;\n\n\t\t&::after {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.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-2021, 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:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,".h1,.h2,.h3,.h4,.h5,.h6{font-weight:500;line-height:1.2}.h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1{font-size:2.5rem}}.h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2{font-size:2rem}}.h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3{font-size:1.75rem}}.h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4{font-size:1.5rem}}.h5{font-size:1.25rem}.h6{font-size:1rem}","",{version:3,sources:["webpack://./src/themes/styles/heading.css"],names:[],mappings:"AAEA,wBACI,eAAgB,CAChB,eACJ,CAEA,IACI,gCACJ,CAEA,0BACI,IACI,gBACJ,CACJ,CAEA,IACI,+BACJ,CAEA,0BACI,IACI,cACJ,CACJ,CAEA,IACI,6BACJ,CAEA,0BACI,IACI,iBACJ,CACJ,CAEA,IACI,+BACJ,CAEA,0BACI,IACI,gBACJ,CACJ,CAEA,IACI,iBACJ,CAEA,IACI,cACJ",sourcesContent:["/*https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.css*/\n\n.h6, .h5, .h4, .h3, .h2, .h1 {\n font-weight: 500;\n line-height: 1.2;\n}\n\n.h1 {\n font-size: calc(1.375rem + 1.5vw);\n}\n\n@media (min-width: 1200px) {\n .h1 {\n font-size: 2.5rem;\n }\n}\n\n.h2 {\n font-size: calc(1.325rem + 0.9vw);\n}\n\n@media (min-width: 1200px) {\n .h2 {\n font-size: 2rem;\n }\n}\n\n.h3 {\n font-size: calc(1.3rem + 0.6vw);\n}\n\n@media (min-width: 1200px) {\n .h3 {\n font-size: 1.75rem;\n }\n}\n\n.h4 {\n font-size: calc(1.275rem + 0.3vw);\n}\n\n@media (min-width: 1200px) {\n .h4 {\n font-size: 1.5rem;\n }\n}\n\n.h5 {\n font-size: 1.25rem;\n}\n\n.h6 {\n font-size: 1rem;\n}\n"],sourceRoot:""}]),e.a=s},function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(3),s=n.n(r)()(i.a);s.push([t.i,'.ck-source-editing-area{display:inline-grid;width:100%;font-family:monospace}.ck-source-editing-area:after,.ck-source-editing-area textarea{grid-area:1/1;padding:var(--ck-spacing-large);margin:0;border:1px solid transparent;line-height:var(--ck-line-height-base);font-size:var(--ck-font-size-normal);white-space:pre-wrap}.ck-source-editing-area:after{content:attr(data-value) " ";visibility:hidden}.ck-source-editing-area textarea{resize:none;outline:none;overflow:hidden;border-color:var(--ck-color-base-border);border-radius:0}.ck-rounded-corners .ck-source-editing-area textarea,.ck-source-editing-area textarea.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck-source-editing-area textarea:not([readonly]):focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}',"",{version:3,sources:["webpack://./src/plugins/ckeditor5-source-editing/theme/sourceediting.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:"AASA,wBACC,mBAAoB,CACpB,UAAW,CACX,qBACD,CAEA,+DAEC,aAAc,CACd,+BAAgC,CAChC,QAAS,CACT,4BAA6B,CAC7B,sCAAuC,CACvC,oCAAqC,CACrC,oBACD,CAEA,8BACC,4BAA6B,CAC7B,iBACD,CAEA,iCACC,WAAY,CACZ,YAAa,CACb,eAAgB,CAEhB,wCAAyC,CCzBzC,eDoCD,CAhBA,yGChBE,qCAAsC,CDwBtC,wBAAyB,CACzB,yBAOF,CAJC,uDEjCA,YAAa,CACb,2BAA2B,CCF3B,qCHqCA",sourcesContent:['/*\n * Copyright (c) 2003-2021, 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-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck-source-editing-area {\n\tdisplay: inline-grid;\n\twidth: 100%;\n\tfont-family: monospace;\n}\n\n.ck-source-editing-area::after,\n.ck-source-editing-area textarea {\n\tgrid-area: 1/1;\n\tpadding: var(--ck-spacing-large);\n\tmargin: 0;\n\tborder: 1px solid transparent;\n\tline-height: var(--ck-line-height-base);\n\tfont-size: var(--ck-font-size-normal);\n\twhite-space: pre-wrap;\n}\n\n.ck-source-editing-area::after {\n\tcontent: attr(data-value) " ";\n\tvisibility: hidden;\n}\n\n.ck-source-editing-area textarea {\n\tresize: none;\n\toutline: none;\n\toverflow: hidden;\n\n\tborder-color: var(--ck-color-base-border);\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([readonly]):focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2021, 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-2021, 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-2021, 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:""}]),e.a=s},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";e.a=function(){return!1}},function(t,e,n){"use strict";n.r(e);var o=function(){return function t(){t.called=!0}};class i{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=o(),this.off=o()}}const r=new Array(256).fill().map(((t,e)=>("0"+e.toString(16)).slice(-2)));function s(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0;return"e"+r[t>>0&255]+r[t>>8&255]+r[t>>16&255]+r[t>>24&255]+r[e>>0&255]+r[e>>8&255]+r[e>>16&255]+r[e>>24&255]+r[n>>0&255]+r[n>>8&255]+r[n>>16&255]+r[n>>24&255]+r[o>>0&255]+r[o>>8&255]+r[o>>16&255]+r[o>>24&255]}var a={get(t){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},c=n(8),l=n(0);const d=Symbol("listeningTo"),u=Symbol("emitterId");var h={on(t,e,n={}){this.listenTo(this,t,e,n)},once(t,e,n){let o=!1;this.listenTo(this,t,(function(t,...n){o||(o=!0,t.off(),e.call(this,t,...n))}),n)},off(t,e){this.stopListening(this,t,e)},listenTo(t,e,n,o={}){let i,r;this[d]||(this[d]={});const s=this[d];p(t)||k(t);const a=p(t);(i=s[a])||(i=s[a]={emitter:t,callbacks:{}}),(r=i.callbacks[e])||(r=i.callbacks[e]=[]),r.push(n),function(t,e,n,o,i){e._addEventListener?e._addEventListener(n,o,i):t._addEventListener.call(e,n,o,i)}(this,t,e,n,o)},stopListening(t,e,n){const o=this[d];let i=t&&p(t);const r=o&&i&&o[i],s=r&&e&&r.callbacks[e];if(!(!o||t&&!r||e&&!s))if(n){A(this,t,e,n);-1!==s.indexOf(n)&&(1===s.length?delete r.callbacks[e]:A(this,t,e,n))}else if(s){for(;n=s.pop();)A(this,t,e,n);delete r.callbacks[e]}else if(r){for(e in r.callbacks)this.stopListening(t,e);delete o[i]}else{for(i in o)this.stopListening(o[i].emitter);delete this[d]}},fire(t,...e){try{const n=t instanceof i?t:new i(this,t),o=n.name;let r=b(this,o);if(n.path.push(this),r){const t=[n,...e];r=Array.from(r);for(let e=0;e<r.length&&(r[e].callback.apply(this,t),n.off.called&&(delete n.off.called,this._removeEventListener(o,r[e].callback)),!n.stop.called);e++);}if(this._delegations){const t=this._delegations.get(o),i=this._delegations.get("*");t&&f(t,n,e),i&&f(i,n,e)}return n.return}catch(t){l.a.rethrowUnexpectedError(t,this)}},delegate(...t){return{to:(e,n)=>{this._delegations||(this._delegations=new Map),t.forEach((t=>{const o=this._delegations.get(t);o?o.set(e,n):this._delegations.set(t,new Map([[e,n]]))}))}}},stopDelegating(t,e){if(this._delegations)if(t)if(e){const n=this._delegations.get(t);n&&n.delete(e)}else this._delegations.delete(t);else this._delegations.clear()},_addEventListener(t,e,n){!function(t,e){const n=g(t);if(n[e])return;let o=e,i=null;const r=[];for(;""!==o&&!n[o];)n[o]={callbacks:[],childEvents:[]},r.push(n[o]),i&&n[o].childEvents.push(i),i=o,o=o.substr(0,o.lastIndexOf(":"));if(""!==o){for(const t of r)t.callbacks=n[o].callbacks.slice();n[o].childEvents.push(i)}}(this,t);const o=m(this,t),i=a.get(n.priority),r={callback:e,priority:i};for(const t of o){let e=!1;for(let n=0;n<t.length;n++)if(t[n].priority<i){t.splice(n,0,r),e=!0;break}e||t.push(r)}},_removeEventListener(t,e){const n=m(this,t);for(const t of n)for(let n=0;n<t.length;n++)t[n].callback==e&&(t.splice(n,1),n--)}};function k(t,e){t[u]||(t[u]=e||s())}function p(t){return t[u]}function g(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function m(t,e){const n=g(t)[e];if(!n)return[];let o=[n.callbacks];for(let e=0;e<n.childEvents.length;e++){const i=m(t,n.childEvents[e]);o=o.concat(i)}return o}function b(t,e){let n;return t._events&&(n=t._events[e])&&n.callbacks.length?n.callbacks:e.indexOf(":")>-1?b(t,e.substr(0,e.lastIndexOf(":"))):null}function f(t,e,n){for(let[o,r]of t){r?"function"==typeof r&&(r=r(e.name)):r=e.name;const t=new i(e.source,r);t.path=[...e.path],o.fire(t,...n)}}function A(t,e,n,o){e._removeEventListener?e._removeEventListener(n,o):t._removeEventListener.call(e,n,o)}var C=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},w=n(5),_=w.a.Symbol,v=Object.prototype,y=v.hasOwnProperty,x=v.toString,E=_?_.toStringTag:void 0;var I=function(t){var e=y.call(t,E),n=t[E];try{t[E]=void 0;var o=!0}catch(t){}var i=x.call(t);return o&&(e?t[E]=n:delete t[E]),i},D=Object.prototype.toString;var B=function(t){return D.call(t)},S=_?_.toStringTag:void 0;var T=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?I(t):B(t)};var M,z=function(t){if(!C(t))return!1;var e=T(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},N=w.a["__core-js_shared__"],P=(M=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"";var L=function(t){return!!P&&P in t},O=Function.prototype.toString;var R=function(t){if(null!=t){try{return O.call(t)}catch(t){}try{return t+""}catch(t){}}return""},F=/^\[object .+?Constructor\]$/,V=Function.prototype,j=Object.prototype,J=V.toString,H=j.hasOwnProperty,U=RegExp("^"+J.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var q=function(t){return!(!C(t)||L(t))&&(z(t)?U:F).test(R(t))};var G=function(t,e){return null==t?void 0:t[e]};var W=function(t,e){var n=G(t,e);return q(n)?n:void 0},K=function(){try{var t=W(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Y=function(t,e,n){"__proto__"==e&&K?K(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Q=function(t,e){return t===e||t!=t&&e!=e},X=Object.prototype.hasOwnProperty;var Z=function(t,e,n){var o=t[e];X.call(t,e)&&Q(o,n)&&(void 0!==n||e in t)||Y(t,e,n)};var $=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],c=o?o(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),i?Y(n,a,c):Z(n,a,c)}return n};var tt=function(t){return t};var et=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},nt=Math.max;var ot=function(t,e,n){return e=nt(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=nt(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=o[i];return a[e]=n(s),et(t,this,a)}};var it=function(t){return function(){return t}},rt=K?function(t,e){return K(t,"toString",{configurable:!0,enumerable:!1,value:it(e),writable:!0})}:tt,st=Date.now;var at=function(t){var e=0,n=0;return function(){var o=st(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(rt);var ct=function(t,e){return at(ot(t,e,tt),t+"")};var lt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var dt=function(t){return null!=t&&lt(t.length)&&!z(t)},ut=/^(?:0|[1-9]\d*)$/;var ht=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ut.test(t))&&t>-1&&t%1==0&&t<e};var kt=function(t,e,n){if(!C(n))return!1;var o=typeof e;return!!("number"==o?dt(n)&&ht(e,n.length):"string"==o&&e in n)&&Q(n[e],t)};var pt=function(t){return ct((function(e,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(i--,r):void 0,s&&kt(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++o<i;){var a=n[o];a&&t(e,a,o,r)}return e}))};var gt=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};var mt=function(t){return null!=t&&"object"==typeof t};var bt=function(t){return mt(t)&&"[object Arguments]"==T(t)},ft=Object.prototype,At=ft.hasOwnProperty,Ct=ft.propertyIsEnumerable,wt=bt(function(){return arguments}())?bt:function(t){return mt(t)&&At.call(t,"callee")&&!Ct.call(t,"callee")},_t=Array.isArray,vt=n(6),yt={};yt["[object Float32Array]"]=yt["[object Float64Array]"]=yt["[object Int8Array]"]=yt["[object Int16Array]"]=yt["[object Int32Array]"]=yt["[object Uint8Array]"]=yt["[object Uint8ClampedArray]"]=yt["[object Uint16Array]"]=yt["[object Uint32Array]"]=!0,yt["[object Arguments]"]=yt["[object Array]"]=yt["[object ArrayBuffer]"]=yt["[object Boolean]"]=yt["[object DataView]"]=yt["[object Date]"]=yt["[object Error]"]=yt["[object Function]"]=yt["[object Map]"]=yt["[object Number]"]=yt["[object Object]"]=yt["[object RegExp]"]=yt["[object Set]"]=yt["[object String]"]=yt["[object WeakMap]"]=!1;var xt=function(t){return mt(t)&&lt(t.length)&&!!yt[T(t)]};var Et=function(t){return function(e){return t(e)}},It=n(7),Dt=It.a&&It.a.isTypedArray,Bt=Dt?Et(Dt):xt,St=Object.prototype.hasOwnProperty;var Tt=function(t,e){var n=_t(t),o=!n&&wt(t),i=!n&&!o&&Object(vt.a)(t),r=!n&&!o&&!i&&Bt(t),s=n||o||i||r,a=s?gt(t.length,String):[],c=a.length;for(var l in t)!e&&!St.call(t,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||r&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ht(l,c))||a.push(l);return a},Mt=Object.prototype;var zt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Mt)};var Nt=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},Pt=Object.prototype.hasOwnProperty;var Lt=function(t){if(!C(t))return Nt(t);var e=zt(t),n=[];for(var o in t)("constructor"!=o||!e&&Pt.call(t,o))&&n.push(o);return n};var Ot=function(t){return dt(t)?Tt(t,!0):Lt(t)},Rt=pt((function(t,e){$(e,Ot(e),t)}));const Ft=Symbol("observableProperties"),Vt=Symbol("boundObservables"),jt=Symbol("boundProperties"),Jt=Symbol("decoratedMethods"),Ht=Symbol("decoratedOriginal"),Ut={set(t,e){if(C(t))return void Object.keys(t).forEach((e=>{this.set(e,t[e])}),this);Gt(this);const n=this[Ft];if(t in this&&!n.has(t))throw new l.a("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(e){const o=n.get(t);let i=this.fire("set:"+t,t,e,o);void 0===i&&(i=e),o===i&&n.has(t)||(n.set(t,i),this.fire("change:"+t,t,i,o))}}),this[t]=e},bind(...t){if(!t.length||!Yt(t))throw new l.a("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new l.a("observable-bind-duplicate-properties",this);Gt(this);const e=this[jt];t.forEach((t=>{if(e.has(t))throw new l.a("observable-bind-rebind",this)}));const n=new Map;return t.forEach((t=>{const o={property:t,to:[]};e.set(t,o),n.set(t,o)})),{to:Wt,toMany:Kt,_observable:this,_bindProperties:t,_to:[],_bindings:n}},unbind(...t){if(!this[Ft])return;const e=this[jt],n=this[Vt];if(t.length){if(!Yt(t))throw new l.a("observable-unbind-wrong-properties",this);t.forEach((t=>{const o=e.get(t);if(!o)return;let i,r,s,a;o.to.forEach((t=>{i=t[0],r=t[1],s=n.get(i),a=s[r],a.delete(o),a.size||delete s[r],Object.keys(s).length||(n.delete(i),this.stopListening(i,"change"))})),e.delete(t)}))}else n.forEach(((t,e)=>{this.stopListening(e,"change")})),n.clear(),e.clear()},decorate(t){const e=this[t];if(!e)throw new l.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,((t,n)=>{t.return=e.apply(this,n)})),this[t]=function(...e){return this.fire(t,e)},this[t][Ht]=e,this[Jt]||(this[Jt]=[]),this[Jt].push(t)}};Rt(Ut,h),Ut.stopListening=function(t,e,n){if(!t&&this[Jt]){for(const t of this[Jt])this[t]=this[t][Ht];delete this[Jt]}h.stopListening.call(this,t,e,n)};var qt=Ut;function Gt(t){t[Ft]||(Object.defineProperty(t,Ft,{value:new Map}),Object.defineProperty(t,Vt,{value:new Map}),Object.defineProperty(t,jt,{value:new Map}))}function Wt(...t){const e=function(...t){if(!t.length)throw new l.a("observable-bind-to-parse-error",null);const e={to:[]};let n;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach((t=>{if("string"==typeof t)n.properties.push(t);else{if("object"!=typeof t)throw new l.a("observable-bind-to-parse-error",null);n={observable:t,properties:[]},e.to.push(n)}})),e}(...t),n=Array.from(this._bindings.keys()),o=n.length;if(!e.callback&&e.to.length>1)throw new l.a("observable-bind-to-no-callback",this);if(o>1&&e.callback)throw new l.a("observable-bind-to-extra-callback",this);var i;e.to.forEach((t=>{if(t.properties.length&&t.properties.length!==o)throw new l.a("observable-bind-to-properties-length",this);t.properties.length||(t.properties=this._bindProperties)})),this._to=e.to,e.callback&&(this._bindings.get(n[0]).callback=e.callback),i=this._observable,this._to.forEach((t=>{const e=i[Vt];let n;e.get(t.observable)||i.listenTo(t.observable,"change",((o,r)=>{n=e.get(t.observable)[r],n&&n.forEach((t=>{Qt(i,t.property)}))}))})),function(t){let e;t._bindings.forEach(((n,o)=>{t._to.forEach((i=>{e=i.properties[n.callback?0:t._bindProperties.indexOf(o)],n.to.push([i.observable,e]),function(t,e,n,o){const i=t[Vt],r=i.get(n),s=r||{};s[o]||(s[o]=new Set);s[o].add(e),r||i.set(n,s)}(t._observable,n,i.observable,e)}))}))}(this),this._bindProperties.forEach((t=>{Qt(this._observable,t)}))}function Kt(t,e,n){if(this._bindings.size>1)throw new l.a("observable-bind-to-many-not-one-binding",this);this.to(...function(t,e){const n=t.map((t=>[t,e]));return Array.prototype.concat.apply([],n)}(t,e),n)}function Yt(t){return t.every((t=>"string"==typeof t))}function Qt(t,e){const n=t[jt].get(e);let o;n.callback?o=n.callback.apply(t,n.to.map((t=>t[0][t[1]]))):(o=n.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=o:t.set(e,o)}function Xt(t,...e){e.forEach((e=>{Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)).forEach((n=>{if(n in t.prototype)return;const o=Object.getOwnPropertyDescriptor(e,n);o.enumerable=!1,Object.defineProperty(t.prototype,n,o)}))}))}class Zt{constructor(t){this.editor=t,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",$t,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",$t),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function $t(t){t.return=!1,t.stop()}Xt(Zt,qt);class te{constructor(t){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",(()=>{this.refresh()})),this.on("execute",(t=>{this.isEnabled||t.stop()}),{priority:"high"}),this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}))}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",ee,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",ee),this.refresh())}execute(){}destroy(){this.stopListening()}}function ee(t){t.return=!1,t.stop()}Xt(te,qt);class ne extends te{constructor(t){super(t),this._childCommands=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return null!=e&&e.execute(t)}registerChildCommand(t){this._childCommands.push(t),t.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){return this._childCommands.find((t=>t.isEnabled))}}var oe=function(t,e){return function(n){return t(e(n))}},ie=oe(Object.getPrototypeOf,Object),re=Function.prototype,se=Object.prototype,ae=re.toString,ce=se.hasOwnProperty,le=ae.call(Object);var de=function(t){if(!mt(t)||"[object Object]"!=T(t))return!1;var e=ie(t);if(null===e)return!0;var n=ce.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ae.call(n)==le};var ue=function(){this.__data__=[],this.size=0};var he=function(t,e){for(var n=t.length;n--;)if(Q(t[n][0],e))return n;return-1},ke=Array.prototype.splice;var pe=function(t){var e=this.__data__,n=he(e,t);return!(n<0)&&(n==e.length-1?e.pop():ke.call(e,n,1),--this.size,!0)};var ge=function(t){var e=this.__data__,n=he(e,t);return n<0?void 0:e[n][1]};var me=function(t){return he(this.__data__,t)>-1};var be=function(t,e){var n=this.__data__,o=he(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function fe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}fe.prototype.clear=ue,fe.prototype.delete=pe,fe.prototype.get=ge,fe.prototype.has=me,fe.prototype.set=be;var Ae=fe;var Ce=function(){this.__data__=new Ae,this.size=0};var we=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var _e=function(t){return this.__data__.get(t)};var ve=function(t){return this.__data__.has(t)},ye=W(w.a,"Map"),xe=W(Object,"create");var Ee=function(){this.__data__=xe?xe(null):{},this.size=0};var Ie=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},De=Object.prototype.hasOwnProperty;var Be=function(t){var e=this.__data__;if(xe){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return De.call(e,t)?e[t]:void 0},Se=Object.prototype.hasOwnProperty;var Te=function(t){var e=this.__data__;return xe?void 0!==e[t]:Se.call(e,t)};var Me=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=xe&&void 0===e?"__lodash_hash_undefined__":e,this};function ze(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}ze.prototype.clear=Ee,ze.prototype.delete=Ie,ze.prototype.get=Be,ze.prototype.has=Te,ze.prototype.set=Me;var Ne=ze;var Pe=function(){this.size=0,this.__data__={hash:new Ne,map:new(ye||Ae),string:new Ne}};var Le=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Oe=function(t,e){var n=t.__data__;return Le(e)?n["string"==typeof e?"string":"hash"]:n.map};var Re=function(t){var e=Oe(this,t).delete(t);return this.size-=e?1:0,e};var Fe=function(t){return Oe(this,t).get(t)};var Ve=function(t){return Oe(this,t).has(t)};var je=function(t,e){var n=Oe(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Je(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Je.prototype.clear=Pe,Je.prototype.delete=Re,Je.prototype.get=Fe,Je.prototype.has=Ve,Je.prototype.set=je;var He=Je;var Ue=function(t,e){var n=this.__data__;if(n instanceof Ae){var o=n.__data__;if(!ye||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new He(o)}return n.set(t,e),this.size=n.size,this};function qe(t){var e=this.__data__=new Ae(t);this.size=e.size}qe.prototype.clear=Ce,qe.prototype.delete=we,qe.prototype.get=_e,qe.prototype.has=ve,qe.prototype.set=Ue;var Ge=qe;var We=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t},Ke=oe(Object.keys,Object),Ye=Object.prototype.hasOwnProperty;var Qe=function(t){if(!zt(t))return Ke(t);var e=[];for(var n in Object(t))Ye.call(t,n)&&"constructor"!=n&&e.push(n);return e};var Xe=function(t){return dt(t)?Tt(t):Qe(t)};var Ze=function(t,e){return t&&$(e,Xe(e),t)};var $e=function(t,e){return t&&$(e,Ot(e),t)},tn=n(10);var en=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};var nn=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r};var on=function(){return[]},rn=Object.prototype.propertyIsEnumerable,sn=Object.getOwnPropertySymbols,an=sn?function(t){return null==t?[]:(t=Object(t),nn(sn(t),(function(e){return rn.call(t,e)})))}:on;var cn=function(t,e){return $(t,an(t),e)};var ln=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t},dn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ln(e,an(t)),t=ie(t);return e}:on;var un=function(t,e){return $(t,dn(t),e)};var hn=function(t,e,n){var o=e(t);return _t(t)?o:ln(o,n(t))};var kn=function(t){return hn(t,Xe,an)};var pn=function(t){return hn(t,Ot,dn)},gn=W(w.a,"DataView"),mn=W(w.a,"Promise"),bn=W(w.a,"Set"),fn=W(w.a,"WeakMap"),An="[object Map]",Cn="[object Promise]",wn="[object Set]",_n="[object WeakMap]",vn="[object DataView]",yn=R(gn),xn=R(ye),En=R(mn),In=R(bn),Dn=R(fn),Bn=T;(gn&&Bn(new gn(new ArrayBuffer(1)))!=vn||ye&&Bn(new ye)!=An||mn&&Bn(mn.resolve())!=Cn||bn&&Bn(new bn)!=wn||fn&&Bn(new fn)!=_n)&&(Bn=function(t){var e=T(t),n="[object Object]"==e?t.constructor:void 0,o=n?R(n):"";if(o)switch(o){case yn:return vn;case xn:return An;case En:return Cn;case In:return wn;case Dn:return _n}return e});var Sn=Bn,Tn=Object.prototype.hasOwnProperty;var Mn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Tn.call(t,"index")&&(n.index=t.index,n.input=t.input),n},zn=w.a.Uint8Array;var Nn=function(t){var e=new t.constructor(t.byteLength);return new zn(e).set(new zn(t)),e};var Pn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},Ln=/\w*$/;var On=function(t){var e=new t.constructor(t.source,Ln.exec(t));return e.lastIndex=t.lastIndex,e},Rn=_?_.prototype:void 0,Fn=Rn?Rn.valueOf:void 0;var Vn=function(t){return Fn?Object(Fn.call(t)):{}};var jn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var Jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Nn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Pn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return On(t);case"[object Set]":return new o;case"[object Symbol]":return Vn(t)}},Hn=Object.create,Un=function(){function t(){}return function(e){if(!C(e))return{};if(Hn)return Hn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var qn=function(t){return"function"!=typeof t.constructor||zt(t)?{}:Un(ie(t))};var Gn=function(t){return mt(t)&&"[object Map]"==Sn(t)},Wn=It.a&&It.a.isMap,Kn=Wn?Et(Wn):Gn;var Yn=function(t){return mt(t)&&"[object Set]"==Sn(t)},Qn=It.a&&It.a.isSet,Xn=Qn?Et(Qn):Yn,Zn="[object Arguments]",$n="[object Function]",to="[object Object]",eo={};eo[Zn]=eo["[object Array]"]=eo["[object ArrayBuffer]"]=eo["[object DataView]"]=eo["[object Boolean]"]=eo["[object Date]"]=eo["[object Float32Array]"]=eo["[object Float64Array]"]=eo["[object Int8Array]"]=eo["[object Int16Array]"]=eo["[object Int32Array]"]=eo["[object Map]"]=eo["[object Number]"]=eo["[object Object]"]=eo["[object RegExp]"]=eo["[object Set]"]=eo["[object String]"]=eo["[object Symbol]"]=eo["[object Uint8Array]"]=eo["[object Uint8ClampedArray]"]=eo["[object Uint16Array]"]=eo["[object Uint32Array]"]=!0,eo["[object Error]"]=eo[$n]=eo["[object WeakMap]"]=!1;var no=function t(e,n,o,i,r,s){var a,c=1&n,l=2&n,d=4&n;if(o&&(a=r?o(e,i,r,s):o(e)),void 0!==a)return a;if(!C(e))return e;var u=_t(e);if(u){if(a=Mn(e),!c)return en(e,a)}else{var h=Sn(e),k=h==$n||"[object GeneratorFunction]"==h;if(Object(vt.a)(e))return Object(tn.a)(e,c);if(h==to||h==Zn||k&&!r){if(a=l||k?{}:qn(e),!c)return l?un(e,$e(a,e)):cn(e,Ze(a,e))}else{if(!eo[h])return r?e:{};a=Jn(e,h,c)}}s||(s=new Ge);var p=s.get(e);if(p)return p;s.set(e,a),Xn(e)?e.forEach((function(i){a.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){a.set(r,t(i,n,o,r,e,s))}));var g=u?void 0:(d?l?pn:kn:l?Ot:Xe)(e);return We(g||e,(function(i,r){g&&(i=e[r=i]),Z(a,r,t(i,n,o,r,e,s))})),a};var oo=function(t,e){return no(t,5,e="function"==typeof e?e:void 0)};var io=function(t){return mt(t)&&1===t.nodeType&&!de(t)};class ro{constructor(t,e){this._config={},e&&this.define(so(e)),t&&this._setObjectToTarget(this._config,t)}set(t,e){this._setToTarget(this._config,t,e)}define(t,e){this._setToTarget(this._config,t,e,!0)}get(t){return this._getFromSource(this._config,t)}*names(){for(const t of Object.keys(this._config))yield t}_setToTarget(t,e,n,o=!1){if(de(e))return void this._setObjectToTarget(t,e,o);const i=e.split(".");e=i.pop();for(const e of i)de(t[e])||(t[e]={}),t=t[e];if(de(n))return de(t[e])||(t[e]={}),t=t[e],void this._setObjectToTarget(t,n,o);o&&void 0!==t[e]||(t[e]=n)}_getFromSource(t,e){const n=e.split(".");e=n.pop();for(const e of n){if(!de(t[e])){t=null;break}t=t[e]}return t?so(t[e]):void 0}_setObjectToTarget(t,e,n){Object.keys(e).forEach((o=>{this._setToTarget(t,o,e[o],n)}))}}function so(t){return oo(t,ao)}function ao(t){return io(t)?t:void 0}function co(t){return!(!t||!t[Symbol.iterator])}class lo{constructor(t={},e={}){const n=co(t);if(n||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const e of t)this._items.push(e),this._itemMap.set(this._getItemIdBeforeAdding(e),e)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}addMany(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new l.a("collection-add-item-invalid-index",this);for(let n=0;n<t.length;n++){const o=t[n],i=this._getItemIdBeforeAdding(o),r=e+n;this._items.splice(r,0,o),this._itemMap.set(i,o),this.fire("add",o,r)}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new l.a("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,this._items.indexOf(e)}remove(t){const[e,n]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:n}),e}map(t,e){return this._items.map(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new l.a("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:t=>{this._setUpBindToBinding((e=>new t(e)))},using:t=>{"function"==typeof t?this._setUpBindToBinding((e=>t(e))):this._setUpBindToBinding((e=>e[t]))}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(n,o,i)=>{const r=e._bindToCollection==this,s=e._bindToInternalToExternalMap.get(o);if(r&&s)this._bindToExternalToInternalMap.set(o,s),this._bindToInternalToExternalMap.set(s,o);else{const n=t(o);if(!n)return void this._skippedIndexesFromExternal.push(i);let r=i;for(const t of this._skippedIndexesFromExternal)i>t&&r--;for(const t of e._skippedIndexesFromExternal)r>=t&&r++;this._bindToExternalToInternalMap.set(o,n),this._bindToInternalToExternalMap.set(n,o),this.add(n,r);for(let t=0;t<e._skippedIndexesFromExternal.length;t++)r<=e._skippedIndexesFromExternal[t]&&e._skippedIndexesFromExternal[t]++}};for(const t of e)n(0,t,e.getIndex(t));this.listenTo(e,"add",n),this.listenTo(e,"remove",((t,e,n)=>{const o=this._bindToExternalToInternalMap.get(e);o&&this.remove(o),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((t,e)=>(n<e&&t.push(e-1),n>e&&t.push(e),t)),[])}))}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],"string"!=typeof n)throw new l.a("collection-add-invalid-id",this);if(this.get(n))throw new l.a("collection-add-item-already-exists",this)}else t[e]=n=s();return n}_remove(t){let e,n,o,i=!1;const r=this._idProperty;if("string"==typeof t?(n=t,o=this._itemMap.get(n),i=!o,o&&(e=this._items.indexOf(o))):"number"==typeof t?(e=t,o=this._items[e],i=!o,o&&(n=o[r])):(o=t,n=o[r],e=this._items.indexOf(o),i=-1==e||!this._itemMap.get(n)),i)throw new l.a("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const s=this._bindToInternalToExternalMap.get(o);return this._bindToInternalToExternalMap.delete(o),this._bindToExternalToInternalMap.delete(s),this.fire("remove",o,e),[o,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Xt(lo,h);class uo{constructor(t,e=[],n=[]){this._context=t,this._plugins=new Map,this._availablePlugins=new Map;for(const t of e)t.pluginName&&this._availablePlugins.set(t.pluginName,t);this._contextPlugins=new Map;for(const[t,e]of n)this._contextPlugins.set(t,e),this._contextPlugins.set(e,t),t.pluginName&&this._availablePlugins.set(t.pluginName,t)}*[Symbol.iterator](){for(const t of this._plugins)"function"==typeof t[0]&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){let e=t;throw"function"==typeof t&&(e=t.pluginName||t.name),new l.a("plugincollection-plugin-not-loaded",this._context,{plugin:e})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const o=this,i=this._context;!function t(e,n=new Set){e.forEach((e=>{a(e)&&(n.has(e)||(n.add(e),e.pluginName&&!o._availablePlugins.has(e.pluginName)&&o._availablePlugins.set(e.pluginName,e),e.requires&&t(e.requires,n)))}))}(t),h(t);const r=[...function t(e,n=new Set){return e.map((t=>a(t)?t:o._availablePlugins.get(t))).reduce(((e,o)=>n.has(o)?e:(n.add(o),o.requires&&(h(o.requires,o),t(o.requires,n).forEach((t=>e.add(t)))),e.add(o))),new Set)}(t.filter((t=>!d(t,e))))];!function(t,e){for(const n of e){if("function"!=typeof n)throw new l.a("plugincollection-replace-plugin-invalid-type",null,{pluginItem:n});const e=n.pluginName;if(!e)throw new l.a("plugincollection-replace-plugin-missing-name",null,{pluginItem:n});if(n.requires&&n.requires.length)throw new l.a("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:e});const i=o._availablePlugins.get(e);if(!i)throw new l.a("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:e});const r=t.indexOf(i);if(-1===r){if(o._contextPlugins.has(i))return;throw new l.a("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:e})}if(i.requires&&i.requires.length)throw new l.a("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:e});t.splice(r,1,n),o._availablePlugins.set(e,n)}}(r,n);const s=function(t){return t.map((t=>{const e=o._contextPlugins.get(t)||new t(i);return o._add(t,e),e}))}(r);return k(s,"init").then((()=>k(s,"afterInit"))).then((()=>s));function a(t){return"function"==typeof t}function c(t){return a(t)&&t.isContextPlugin}function d(t,e){return e.some((e=>e===t||(u(t)===e||u(e)===t)))}function u(t){return a(t)?t.pluginName||t.name:t}function h(t,n=null){t.map((t=>a(t)?t:o._availablePlugins.get(t)||t)).forEach((t=>{!function(t,e){if(a(t))return;if(e)throw new l.a("plugincollection-soft-required",i,{missingPlugin:t,requiredBy:u(e)});throw new l.a("plugincollection-plugin-not-found",i,{plugin:t})}(t,n),function(t,e){if(!c(e))return;if(c(t))return;throw new l.a("plugincollection-context-required",i,{plugin:u(t),requiredBy:u(e)})}(t,n),function(t,n){if(!n)return;if(!d(t,e))return;throw new l.a("plugincollection-required",i,{plugin:u(t),requiredBy:u(n)})}(t,n)}))}function k(t,e){return t.reduce(((t,n)=>n[e]?o._contextPlugins.has(n)?t:t.then(n[e].bind(n)):t),Promise.resolve())}}destroy(){const t=[];for(const[,e]of this)"function"!=typeof e.destroy||this._contextPlugins.has(e)||t.push(e.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;if(n){if(this._plugins.has(n))throw new l.a("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}function ho(t){return Array.isArray(t)?t:[t]}function ko(t,e,n=1){if("number"!=typeof n)throw new l.a("translation-service-quantity-not-a-number",null,{quantity:n});const o=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===o&&(t=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const i=e.id||e.string;if(0===o||!function(t,e){return!!window.CKEDITOR_TRANSLATIONS[t]&&!!window.CKEDITOR_TRANSLATIONS[t].dictionary[e]}(t,i))return 1!==n?e.plural:e.string;const r=window.CKEDITOR_TRANSLATIONS[t].dictionary,s=window.CKEDITOR_TRANSLATIONS[t].getPluralForm||(t=>1===t?0:1);if("string"==typeof r[i])return r[i];const a=Number(s(n));return r[i][a]}Xt(uo,h),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const po=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function go(t){return po.includes(t)?"rtl":"ltr"}class mo{constructor(t={}){this.uiLanguage=t.uiLanguage||"en",this.contentLanguage=t.contentLanguage||this.uiLanguage,this.uiLanguageDirection=go(this.uiLanguage),this.contentLanguageDirection=go(this.contentLanguage),this.t=(t,e)=>this._t(t,e)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){e=ho(e),"string"==typeof t&&(t={string:t});const n=!!t.plural?e[0]:1;return function(t,e){return t.replace(/%(\d+)/g,((t,n)=>n<e.length?e[n]:t))}(ko(this.uiLanguage,t,n),e)}}class bo{constructor(t){this.config=new ro(t,this.constructor.defaultConfig);const e=this.constructor.builtinPlugins;this.config.define("plugins",e),this.plugins=new uo(this,e);const n=this.config.get("language")||{};this.locale=new mo({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new lo,this._contextOwner=null}initPlugins(){const t=this.config.get("plugins")||[],e=this.config.get("substitutePlugins")||[];for(const n of t.concat(e)){if("function"!=typeof n)throw new l.a("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new l.a("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(t,[],e)}destroy(){return Promise.all(Array.from(this.editors,(t=>t.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(t,e){if(this._contextOwner)throw new l.a("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}_removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}_getEditorConfig(){const t={};for(const e of this.config.names())["plugins","removePlugins","extraPlugins"].includes(e)||(t[e]=this.config.get(e));return t}static create(t){return new Promise((e=>{const n=new this(t);e(n.initPlugins().then((()=>n)))}))}}class fo{constructor(t){this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}function Ao(t,e){const n=Math.min(t.length,e.length);for(let o=0;o<n;o++)if(t[o]!=e[o])return o;return t.length==e.length?"same":t.length<e.length?"prefix":"extension"}Xt(fo,qt);var Co=function(t){return no(t,4)};class wo{constructor(t){this.document=t,this.parent=null}get index(){let t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new l.a("view-node-not-found-in-parent",this);return t}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),o=t.getAncestors(e);let i=0;for(;n[i]==o[i]&&n[i];)i++;return 0===i?null:n[i-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),o=Ao(e,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return e[o]<n[o]}}isAfter(t){return this!=t&&(this.root===t.root&&!this.isBefore(t))}_remove(){this.parent._removeChildren(this.index)}_fireChange(t,e){this.fire("change:"+t,e),this.parent&&this.parent._fireChange(t,e)}toJSON(){const t=Co(this);return delete t.parent,t}is(t){return"node"===t||"view:node"===t}}Xt(wo,h);class _o extends wo{constructor(t,e){super(t),this._textData=e}is(t){return"$text"===t||"view:$text"===t||"text"===t||"view:text"===t||"node"===t||"view:node"===t}get data(){return this._textData}get _data(){return this.data}set _data(t){this._fireChange("text",this),this._textData=t}isSimilar(t){return t instanceof _o&&(this===t||this.data===t.data)}_clone(){return new _o(this.document,this.data)}}class vo{constructor(t,e,n){if(this.textNode=t,e<0||e>t.data.length)throw new l.a("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new l.a("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}function yo(t){return co(t)?new Map(t):function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}(t)}class xo{constructor(...t){this._patterns=[],this.add(...t)}add(...t){for(let e of t)("string"==typeof e||e instanceof RegExp)&&(e={name:e}),e.classes&&("string"==typeof e.classes||e.classes instanceof RegExp)&&(e.classes=[e.classes]),this._patterns.push(e)}match(...t){for(const e of t)for(const t of this._patterns){const n=Eo(e,t);if(n)return{element:e,pattern:t,match:n}}return null}matchAll(...t){const e=[];for(const n of t)for(const t of this._patterns){const o=Eo(n,t);o&&e.push({element:n,pattern:t,match:o})}return e.length>0?e:null}getElementName(){if(1!==this._patterns.length)return null;const t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}function Eo(t,e){if("function"==typeof e)return e(t);const n={};return e.name&&(n.name=function(t,e){if(t instanceof RegExp)return t.test(e);return t===e}(e.name,t.name),!n.name)||e.attributes&&(n.attributes=function(t,e){const n=[];for(const o in t){const i=t[o];if(!e.hasAttribute(o))return null;{const t=e.getAttribute(o);if(!0===i)n.push(o);else if(i instanceof RegExp){if(!i.test(t))return null;n.push(o)}else{if(t!==i)return null;n.push(o)}}}return n}(e.attributes,t),!n.attributes)?null:!(e.classes&&(n.classes=function(t,e){const n=[];for(const o of t)if(o instanceof RegExp){const t=e.getClassNames();for(const e of t)o.test(e)&&n.push(e);if(0===n.length)return null}else{if(!e.hasClass(o))return null;n.push(o)}return n}(e.classes,t),!n.classes))&&(!(e.styles&&(n.styles=function(t,e){const n=[];for(const o in t){const i=t[o];if(!e.hasStyle(o))return null;{const t=e.getStyle(o);if(i instanceof RegExp){if(!i.test(t))return null;n.push(o)}else{if(t!==i)return null;n.push(o)}}}return n}(e.styles,t),!n.styles))&&n)}var Io=function(t){return"symbol"==typeof t||mt(t)&&"[object Symbol]"==T(t)},Do=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bo=/^\w*$/;var So=function(t,e){if(_t(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Io(t))||(Bo.test(t)||!Do.test(t)||null!=e&&t in Object(e))};function To(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(To.Cache||He),n}To.Cache=He;var Mo=To;var zo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,No=/\\(\\)?/g,Po=function(t){var e=Mo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(zo,(function(t,n,o,i){e.push(o?i.replace(No,"$1"):n||t)})),e}));var Lo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i},Oo=_?_.prototype:void 0,Ro=Oo?Oo.toString:void 0;var Fo=function t(e){if("string"==typeof e)return e;if(_t(e))return Lo(e,t)+"";if(Io(e))return Ro?Ro.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};var Vo=function(t){return null==t?"":Fo(t)};var jo=function(t,e){return _t(t)?t:So(t,e)?[t]:Po(Vo(t))};var Jo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};var Ho=function(t){if("string"==typeof t||Io(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Uo=function(t,e){for(var n=0,o=(e=jo(e,t)).length;null!=t&&n<o;)t=t[Ho(e[n++])];return n&&n==o?t:void 0};var qo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};var Go=function(t,e){return e.length<2?t:Uo(t,qo(e,0,-1))};var Wo=function(t,e){return e=jo(e,t),null==(t=Go(t,e))||delete t[Ho(Jo(e))]};var Ko=function(t,e){return null==t||Wo(t,e)};var Yo=function(t,e,n){var o=null==t?void 0:Uo(t,e);return void 0===o?n:o};var Qo=function(t,e,n){(void 0!==n&&!Q(t[e],n)||void 0===n&&!(e in t))&&Y(t,e,n)};var Xo=function(t){return function(e,n,o){for(var i=-1,r=Object(e),s=o(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(r[c],c,r))break}return e}}();var Zo=function(t){return mt(t)&&dt(t)};var $o=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var ti=function(t){return $(t,Ot(t))};var ei=function(t,e,n,o,i,r,s){var a=$o(t,n),c=$o(e,n),l=s.get(c);if(l)Qo(t,n,l);else{var d=r?r(a,c,n+"",t,e,s):void 0,u=void 0===d;if(u){var h=_t(c),k=!h&&Object(vt.a)(c),p=!h&&!k&&Bt(c);d=c,h||k||p?_t(a)?d=a:Zo(a)?d=en(a):k?(u=!1,d=Object(tn.a)(c,!0)):p?(u=!1,d=jn(c,!0)):d=[]:de(c)||wt(c)?(d=a,wt(a)?d=ti(a):C(a)&&!z(a)||(d=qn(c))):u=!1}u&&(s.set(c,d),i(d,c,o,r,s),s.delete(c)),Qo(t,n,d)}};var ni=function t(e,n,o,i,r){e!==n&&Xo(n,(function(s,a){if(r||(r=new Ge),C(s))ei(e,n,a,o,t,i,r);else{var c=i?i($o(e,a),s,a+"",e,n,r):void 0;void 0===c&&(c=s),Qo(e,a,c)}}),Ot)},oi=pt((function(t,e,n){ni(t,e,n)}));var ii=function(t,e,n,o){if(!C(t))return t;for(var i=-1,r=(e=jo(e,t)).length,s=r-1,a=t;null!=a&&++i<r;){var c=Ho(e[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=s){var d=a[c];void 0===(l=o?o(d,c,a):void 0)&&(l=C(d)?d:ht(e[i+1])?[]:{})}Z(a,c,l),a=a[c]}return t};var ri=function(t,e,n){return null==t?t:ii(t,e,n)};class si{constructor(t){this._styles={},this._styleProcessor=t}get isEmpty(){const t=Object.entries(this._styles);return!Array.from(t).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(t){this.clear();const e=Array.from(function(t){let e=null,n=0,o=0,i=null;const r=new Map;if(""===t)return r;";"!=t.charAt(t.length-1)&&(t+=";");for(let s=0;s<t.length;s++){const a=t.charAt(s);if(null===e)switch(a){case":":i||(i=t.substr(n,s-n),o=s+1);break;case'"':case"'":e=a;break;case";":{const e=t.substr(o,s-o);i&&r.set(i.trim(),e.trim()),i=null,n=s+1;break}}else a===e&&(e=null)}return r}(t).entries());for(const[t,n]of e)this._styleProcessor.toNormalizedForm(t,n,this._styles)}has(t){if(this.isEmpty)return!1;const e=this._styleProcessor.getReducedForm(t,this._styles).find((([e])=>e===t));return Array.isArray(e)}set(t,e){if(C(t))for(const[e,n]of Object.entries(t))this._styleProcessor.toNormalizedForm(e,n,this._styles);else this._styleProcessor.toNormalizedForm(t,e,this._styles)}remove(t){const e=ci(t);Ko(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((t=>t.join(":"))).sort().join(";")+";"}getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!C(this._styles[t]))return this._styles[t];const e=this._styleProcessor.getReducedForm(t,this._styles).find((([e])=>e===t));return Array.isArray(e)?e[1]:void 0}getStyleNames(){if(this.isEmpty)return[];return this._getStylesEntries().map((([t])=>t))}clear(){this._styles={}}_getStylesEntries(){const t=[],e=Object.keys(this._styles);for(const n of e)t.push(...this._styleProcessor.getReducedForm(n,this._styles));return t}_cleanEmptyObjectsOnPath(t){const e=t.split(".");if(!(e.length>1))return;const n=e.splice(0,e.length-1).join("."),o=Yo(this._styles,n);if(!o)return;!Array.from(Object.keys(o)).length&&this.remove(n)}}class ai{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(C(e))li(n,ci(t),e);else if(this._normalizers.has(t)){const o=this._normalizers.get(t),{path:i,value:r}=o(e);li(n,i,r)}else li(n,t,e)}getNormalized(t,e){if(!t)return oi({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){const n=this._extractors.get(t);if("string"==typeof n)return Yo(e,n);const o=n(t,e);if(o)return o}return Yo(e,ci(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);if(void 0===n)return[];if(this._reducers.has(t)){return this._reducers.get(t)(n)}return[[t,n]]}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function ci(t){return t.replace("-",".")}function li(t,e,n){let o=n;C(n)&&(o=oi({},Yo(t,e),n)),ri(t,e,o)}class di extends wo{constructor(t,e,n,o){if(super(t),this.name=e,this._attrs=function(t){t=yo(t);for(const[e,n]of t)null===n?t.delete(e):"string"!=typeof n&&t.set(e,String(n));return t}(n),this._children=[],o&&this._insertChild(0,o),this._classes=new Set,this._attrs.has("class")){const t=this._attrs.get("class");ui(this._classes,t),this._attrs.delete("class")}this._styles=new si(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._isAllowedInsideAttributeElement=!1}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}get isAllowedInsideAttributeElement(){return this._isAllowedInsideAttributeElement}is(t,e=null){return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if("class"==t)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==t){const t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(t)}hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof di))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this.isAllowedInsideAttributeElement!=t.isAllowedInsideAttributeElement)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(){return this._styles.getStyleNames()}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new xo(...t);let n=this.parent;for(;n;){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map((t=>`${t[0]}="${t[1]}"`)).sort().join(" ");return this.name+(""==t?"":` class="${t}"`)+(e?` style="${e}"`:"")+(""==n?"":` ${n}`)}_clone(t=!1){const e=[];if(t)for(const n of this.getChildren())e.push(n._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._isAllowedInsideAttributeElement=this.isAllowedInsideAttributeElement,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const o=function(t,e){if("string"==typeof e)return[new _o(t,e)];co(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new _o(t,e):e instanceof vo?new _o(t,e.data):e))}(this.document,e);for(const e of o)null!==e.parent&&e._remove(),e.parent=this,e.document=this.document,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_setAttribute(t,e){e=String(e),this._fireChange("attributes",this),"class"==t?ui(this._classes,e):"style"==t?this._styles.setTo(e):this._attrs.set(t,e)}_removeAttribute(t){return this._fireChange("attributes",this),"class"==t?this._classes.size>0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of ho(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of ho(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of ho(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function ui(t,e){const n=e.split(/\s+/);t.clear(),n.forEach((e=>t.add(e)))}class hi extends di{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=ki}is(t,e=null){return e?e===this.name&&("containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}}function ki(){const t=[...this.getChildren()],e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;for(const e of t)if(!e.is("uiElement"))return null;return this.childCount}class pi extends hi{constructor(t,e,n,o){super(t,e,n,o),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",(e=>e&&t.selection.editableElement==this)),this.listenTo(t.selection,"change",(()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this}))}is(t,e=null){return e?e===this.name&&("editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}destroy(){this.stopListening()}}Xt(pi,qt);const gi=Symbol("rootName");class mi extends pi{constructor(t,e){super(t,e),this.rootName="main"}is(t,e=null){return e?e===this.name&&("rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}get rootName(){return this.getCustomProperty(gi)}set rootName(t){this._setCustomProperty(gi,t)}set _name(t){this.name=t}}class bi{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new l.a("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new l.a("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this.position=fi._createAt(t.startPosition):this.position=fi._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}[Symbol.iterator](){return this}skip(t){let e,n,o;do{o=this.position,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this.position=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};let o;if(n instanceof _o){if(t.isAtEnd)return this.position=fi._createAfter(n),this._next();o=n.data[t.offset]}else o=n.getChild(t.offset);if(o instanceof di)return this.shallow?t.offset++:t=new fi(o,0),this.position=t,this._formatReturnValue("elementStart",o,e,t,1);if(o instanceof _o){if(this.singleCharacters)return t=new fi(o,0),this.position=t,this._next();{let n,i=o.data.length;return o==this._boundaryEndParent?(i=this.boundaries.end.offset,n=new vo(o,0,i),t=fi._createAfter(n)):(n=new vo(o,0,o.data.length),t.offset++),this.position=t,this._formatReturnValue("text",n,e,t,i)}}if("string"==typeof o){let o;if(this.singleCharacters)o=1;else{o=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset}const i=new vo(n,t.offset,o);return t.offset+=o,this.position=t,this._formatReturnValue("text",i,e,t,o)}return t=fi._createAfter(n),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};let o;if(n instanceof _o){if(t.isAtStart)return this.position=fi._createBefore(n),this._previous();o=n.data[t.offset-1]}else o=n.getChild(t.offset-1);if(o instanceof di)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",o,e,t,1)):(t=new fi(o,o.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",o,e,t));if(o instanceof _o){if(this.singleCharacters)return t=new fi(o,o.data.length),this.position=t,this._previous();{let n,i=o.data.length;if(o==this._boundaryStartParent){const e=this.boundaries.start.offset;n=new vo(o,e,o.data.length-e),i=n.data.length,t=fi._createBefore(n)}else n=new vo(o,0,o.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",n,e,t,i)}}if("string"==typeof o){let o;if(this.singleCharacters)o=1;else{const e=n===this._boundaryStartParent?this.boundaries.start.offset:0;o=t.offset-e}t.offset-=o;const i=new vo(n,t.offset,o);return this.position=t,this._formatReturnValue("text",i,e,t,o)}return t=fi._createBefore(n),this.position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,o,i){return e instanceof vo&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=fi._createAfter(e.textNode):(o=fi._createAfter(e.textNode),this.position=o)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=fi._createBefore(e.textNode):(o=fi._createBefore(e.textNode),this.position=o))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:o,length:i}}}}class fi{constructor(t,e){this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof pi);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=fi._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new bi(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let o=0;for(;e[o]==n[o]&&e[o];)o++;return 0===o?null:e[o-1]}is(t){return"position"===t||"view:position"===t}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return"before"==this.compareWith(t)}isAfter(t){return"after"==this.compareWith(t)}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const o=Ao(e,n);switch(o){case"prefix":return"before";case"extension":return"after";default:return e[o]<n[o]?"before":"after"}}getWalker(t={}){return t.startPosition=this,new bi(t)}clone(){return new fi(this.parent,this.offset)}static _createAt(t,e){if(t instanceof fi)return new this(t.parent,t.offset);{const n=t;if("end"==e)e=n.is("$text")?n.data.length:n.childCount;else{if("before"==e)return this._createBefore(n);if("after"==e)return this._createAfter(n);if(0!==e&&!e)throw new l.a("view-createpositionat-offset-required",n)}return new fi(n,e)}}static _createAfter(t){if(t.is("$textProxy"))return new fi(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new l.a("view-position-after-root",t,{root:t});return new fi(t.parent,t.index+1)}static _createBefore(t){if(t.is("$textProxy"))return new fi(t.textNode,t.offsetInText);if(!t.parent)throw new l.a("view-position-before-root",t,{root:t});return new fi(t.parent,t.index)}}class Ai{constructor(t,e=null){this.start=t.clone(),this.end=e?e.clone():t.clone()}*[Symbol.iterator](){yield*new bi({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let t=this.start.getLastMatchingPosition(Ci,{direction:"backward"}),e=this.end.getLastMatchingPosition(Ci);return t.parent.is("$text")&&t.isAtStart&&(t=fi._createBefore(t.parent)),e.parent.is("$text")&&e.isAtEnd&&(e=fi._createAfter(e.parent)),new Ai(t,e)}getTrimmed(){let t=this.start.getLastMatchingPosition(Ci);if(t.isAfter(this.end)||t.isEqual(this.end))return new Ai(t,t);let e=this.end.getLastMatchingPosition(Ci,{direction:"backward"});const n=t.nodeAfter,o=e.nodeBefore;return n&&n.is("$text")&&(t=new fi(n,0)),o&&o.is("$text")&&(e=new fi(o,o.data.length)),new Ai(t,e)}isEqual(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end)}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),o=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&o}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Ai(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Ai(t.end,this.end))):e.push(this.clone()),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new Ai(e,n)}return null}getWalker(t={}){return t.boundaries=this,new bi(t)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let t=this.start.nodeAfter,e=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(t=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(e=this.end.parent.previousSibling),t&&t.is("element")&&t===e?t:null}clone(){return new Ai(this.start,this.end)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new bi(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new bi(t);yield e.position;for(const t of e)yield t.nextPosition}is(t){return"range"===t||"view:range"===t}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}static _createFromParentsAndOffsets(t,e,n,o){return new this(new fi(t,e),new fi(n,o))}static _createFromPositionAndShift(t,e){const n=t,o=t.getShiftedBy(e);return e>0?new this(n,o):new this(o,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(fi._createBefore(t),e)}}function Ci(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}function wi(t){let e=0;for(const n of t)e++;return e}class _i{constructor(t=null,e,n){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,e,n)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel)return!1;if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const o of t._ranges)if(e.isEqual(o)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=wi(this.getRanges());if(e!=wi(t.getRanges()))return!1;if(0==e)return!0;for(let e of this.getRanges()){e=e.getTrimmed();let n=!1;for(let o of t.getRanges())if(o=o.getTrimmed(),e.start.isEqual(o.start)&&e.end.isEqual(o.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(t,e,n){if(null===t)this._setRanges([]),this._setFakeOptions(e);else if(t instanceof _i||t instanceof vi)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Ai)this._setRanges([t],e&&e.backward),this._setFakeOptions(e);else if(t instanceof fi)this._setRanges([new Ai(t)]),this._setFakeOptions(e);else if(t instanceof wo){const o=!!n&&!!n.backward;let i;if(void 0===e)throw new l.a("view-selection-setto-required-second-parameter",this);i="in"==e?Ai._createIn(t):"on"==e?Ai._createOn(t):new Ai(fi._createAt(t,e)),this._setRanges([i],o),this._setFakeOptions(n)}else{if(!co(t))throw new l.a("view-selection-setto-not-selectable",this);this._setRanges(t,e&&e.backward),this._setFakeOptions(e)}this.fire("change")}setFocus(t,e){if(null===this.anchor)throw new l.a("view-selection-setfocus-no-ranges",this);const n=fi._createAt(t,e);if("same"==n.compareWith(this.focus))return;const o=this.anchor;this._ranges.pop(),"before"==n.compareWith(o)?this._addRange(new Ai(n,o),!0):this._addRange(new Ai(o,n)),this.fire("change")}is(t){return"selection"===t||"view:selection"===t}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const e of t)this._addRange(e);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof Ai))throw new l.a("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new l.a("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new Ai(t.start,t.end))}}Xt(_i,h);class vi{constructor(t=null,e,n){this._selection=new _i,this._selection.delegate("change").to(this),this._selection.setTo(t,e,n)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}is(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t}_setTo(t,e,n){this._selection.setTo(t,e,n)}_setFocus(t,e){this._selection.setFocus(t,e)}}Xt(vi,h);class yi extends i{constructor(t,e,n){super(t,e),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const xi=Symbol("bubbling contexts");var Ei={fire(t,...e){try{const n=t instanceof i?t:new i(this,t),o=Si(this);if(!o.size)return;if(Ii(n,"capturing",this),Di(o,"$capture",n,...e))return n.return;const r=n.startRange||this.selection.getFirstRange(),s=r?r.getContainedElement():null,a=!!s&&Boolean(Bi(o,s));let c=s||function(t){if(!t)return null;const e=t.start.parent,n=t.end.parent,o=e.getPath(),i=n.getPath();return o.length>i.length?e:n}(r);if(Ii(n,"atTarget",c),!a){if(Di(o,"$text",n,...e))return n.return;Ii(n,"bubbling",c)}for(;c;){if(c.is("rootElement")){if(Di(o,"$root",n,...e))return n.return}else if(c.is("element")&&Di(o,c.name,n,...e))return n.return;if(Di(o,c,n,...e))return n.return;c=c.parent,Ii(n,"bubbling",c)}return Ii(n,"bubbling",this),Di(o,"$document",n,...e),n.return}catch(t){l.a.rethrowUnexpectedError(t,this)}},_addEventListener(t,e,n){const o=ho(n.context||"$document"),i=Si(this);for(const r of o){let o=i.get(r);o||(o=Object.create(h),i.set(r,o)),this.listenTo(o,t,e,n)}},_removeEventListener(t,e){const n=Si(this);for(const o of n.values())this.stopListening(o,t,e)}};function Ii(t,e,n){t instanceof yi&&(t._eventPhase=e,t._currentTarget=n)}function Di(t,e,n,...o){const i="string"==typeof e?t.get(e):Bi(t,e);return!!i&&(i.fire(n,...o),n.stop.called)}function Bi(t,e){for(const[n,o]of t)if("function"==typeof n&&n(e))return o;return null}function Si(t){return t[xi]||(t[xi]=new Map),t[xi]}class Ti{constructor(t){this.selection=new vi,this.roots=new lo({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.map((t=>t.destroy())),this.stopListening()}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(e=n(t),e)break}while(e)}}Xt(Ti,Ei),Xt(Ti,qt);class Mi extends di{constructor(t,e,n,o){super(t,e,n,o),this.getFillerOffset=zi,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new l.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}is(t,e=null){return e?e===this.name&&("attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t):"attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}isSimilar(t){return null!==this.id||null!==t.id?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}function zi(){if(Ni(this))return null;let t=this.parent;for(;t&&t.is("attributeElement");){if(Ni(t)>1)return null;t=t.parent}return!t||Ni(t)>1?null:this.childCount}function Ni(t){return Array.from(t.getChildren()).filter((t=>!t.is("uiElement"))).length}Mi.DEFAULT_PRIORITY=10;class Pi extends di{constructor(t,e,n,o){super(t,e,n,o),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=Li}is(t,e=null){return e?e===this.name&&("emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t):"emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}_insertChild(t,e){if(e&&(e instanceof wo||Array.from(e).length>0))throw new l.a("view-emptyelement-cannot-add",[this,e])}}function Li(){return null}const Oi=navigator.userAgent.toLowerCase();var Ri={isMac:function(t){return t.indexOf("macintosh")>-1}(Oi),isGecko:function(t){return!!t.match(/gecko\/\d+/)}(Oi),isSafari:function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}(Oi),isAndroid:function(t){return t.indexOf("android")>-1}(Oi),isBlink:function(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}(Oi),features:{isRegExpUnicodePropertySupported:function(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}()}};const Fi={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Vi={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},ji=function(){const t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++){const n=String.fromCharCode(e);t[n.toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;return t}(),Ji=Object.fromEntries(Object.entries(ji).map((([t,e])=>[e,t.charAt(0).toUpperCase()+t.slice(1)])));function Hi(t){let e;if("string"==typeof t){if(e=ji[t.toLowerCase()],!e)throw new l.a("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?ji.alt:0)+(t.ctrlKey?ji.ctrl:0)+(t.shiftKey?ji.shift:0)+(t.metaKey?ji.cmd:0);return e}function Ui(t){return"string"==typeof t&&(t=function(t){return t.split("+").map((t=>t.trim()))}(t)),t.map((t=>"string"==typeof t?function(t){if(t.endsWith("!"))return Hi(t.slice(0,-1));const e=Hi(t);return Ri.isMac&&e==ji.ctrl?ji.cmd:e}(t):t)).reduce(((t,e)=>e+t),0)}function qi(t){let e=Ui(t);return Object.entries(Ri.isMac?Fi:Vi).reduce(((t,[n,o])=>(0!=(e&ji[n])&&(e&=~ji[n],t+=o),t)),"")+(e?Ji[e]:"")}function Gi(t,e){const n="ltr"===e;switch(t){case ji.arrowleft:return n?"left":"right";case ji.arrowright:return n?"right":"left";case ji.arrowup:return"up";case ji.arrowdown:return"down"}}function Wi(t,e){const n=Gi(t,e);return"down"===n||"right"===n}class Ki extends di{constructor(t,e,n,o){super(t,e,n,o),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=Qi}is(t,e=null){return e?e===this.name&&("uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t):"uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}_insertChild(t,e){if(e&&(e instanceof wo||Array.from(e).length>0))throw new l.a("view-uielement-cannot-add",this)}render(t){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const t of this.getAttributeKeys())e.setAttribute(t,this.getAttribute(t));return e}}function Yi(t){t.document.on("arrowKey",((e,n)=>function(t,e,n){if(e.keyCode==ji.arrowright){const t=e.domTarget.ownerDocument.defaultView.getSelection(),o=1==t.rangeCount&&t.getRangeAt(0).collapsed;if(o||e.shiftKey){const e=t.focusNode,i=t.focusOffset,r=n.domPositionToView(e,i);if(null===r)return;let s=!1;const a=r.getLastMatchingPosition((t=>(t.item.is("uiElement")&&(s=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement")))));if(s){const e=n.viewPositionToDom(a);o?t.collapse(e.parent,e.offset):t.extend(e.parent,e.offset)}}}}(0,n,t.domConverter)),{priority:"low"})}function Qi(){return null}class Xi extends di{constructor(t,e,n,o){super(t,e,n,o),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=Zi}is(t,e=null){return e?e===this.name&&("rawElement"===t||"view:rawElement"===t||"element"===t||"view:element"===t):"rawElement"===t||"view:rawElement"===t||t===this.name||t==="view:"+this.name||"element"===t||"view:element"===t||"node"===t||"view:node"===t}_insertChild(t,e){if(e&&(e instanceof wo||Array.from(e).length>0))throw new l.a("view-rawelement-cannot-add",[this,e])}}function Zi(){return null}class $i{constructor(t,e){this.document=t,this._children=[],e&&this._insertChild(0,e)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(t){return"documentFragment"===t||"view:documentFragment"===t}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const o=function(t,e){if("string"==typeof e)return[new _o(t,e)];co(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new _o(t,e):e instanceof vo?new _o(t,e.data):e))}(this.document,e);for(const e of o)null!==e.parent&&e._remove(),e.parent=this,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_fireChange(t,e){this.fire("change:"+t,e)}}Xt($i,h);class tr{constructor(t){this.document=t,this._cloneGroups=new Map}setSelection(t,e,n){this.document.selection._setTo(t,e,n)}setSelectionFocus(t,e){this.document.selection._setFocus(t,e)}createDocumentFragment(t){return new $i(this.document,t)}createText(t){return new _o(this.document,t)}createAttributeElement(t,e,n={}){const o=new Mi(this.document,t,e);return n.priority&&(o._priority=n.priority),n.id&&(o._id=n.id),o}createContainerElement(t,e,n={}){const o=new hi(this.document,t,e);return void 0!==n.isAllowedInsideAttributeElement&&(o._isAllowedInsideAttributeElement=n.isAllowedInsideAttributeElement),o}createEditableElement(t,e){const n=new pi(this.document,t,e);return n._document=this.document,n}createEmptyElement(t,e,n={}){const o=new Pi(this.document,t,e);return void 0!==n.isAllowedInsideAttributeElement&&(o._isAllowedInsideAttributeElement=n.isAllowedInsideAttributeElement),o}createUIElement(t,e,n,o={}){const i=new Ki(this.document,t,e);return n&&(i.render=n),void 0!==o.isAllowedInsideAttributeElement&&(i._isAllowedInsideAttributeElement=o.isAllowedInsideAttributeElement),i}createRawElement(t,e,n,o={}){const i=new Xi(this.document,t,e);return i.render=n||(()=>{}),void 0!==o.isAllowedInsideAttributeElement&&(i._isAllowedInsideAttributeElement=o.isAllowedInsideAttributeElement),i}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){de(t)&&void 0===n&&(n=e),n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}breakAttributes(t){return t instanceof fi?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new l.a("view-writer-break-non-container-element",this.document);if(!e.parent)throw new l.a("view-writer-break-root",this.document);if(t.isAtStart)return fi._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(fi._createAfter(e),n);const o=new Ai(t,fi._createAt(e,"end")),i=new fi(n,0);this.move(o,i)}return fi._createAfter(e)}mergeAttributes(t){const e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&0===n.childCount){const t=n.parent,e=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new fi(t,e))}const o=n.getChild(e-1),i=n.getChild(e);if(!o||!i)return t;if(o.is("$text")&&i.is("$text"))return rr(o,i);if(o.is("attributeElement")&&i.is("attributeElement")&&o.isSimilar(i)){const t=o.childCount;return o._appendChild(i.getChildren()),i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new fi(o,t))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new l.a("view-writer-merge-containers-invalid-position",this.document);const o=e.getChild(e.childCount-1),i=o instanceof _o?fi._createAt(o,"end"):fi._createAt(e,"end");return this.move(Ai._createIn(n),fi._createAt(e,"end")),this.remove(Ai._createOn(n)),i}insert(t,e){sr(e=co(e)?[...e]:[e],this.document);const n=e.reduce(((t,e)=>{const n=t[t.length-1],o=!(e.is("uiElement")&&e.isAllowedInsideAttributeElement);return n&&n.breakAttributes==o?n.nodes.push(e):t.push({breakAttributes:o,nodes:[e]}),t}),[]);let o=null,i=t;for(const{nodes:t,breakAttributes:e}of n){const n=this._insertNodes(i,t,e);o||(o=n.start),i=n.end}return o?new Ai(o,i):new Ai(t)}remove(t){const e=t instanceof Ai?t:Ai._createOn(t);if(lr(e,this.document),e.isCollapsed)return new $i(this.document);const{start:n,end:o}=this._breakAttributesRange(e,!0),i=n.parent,r=o.offset-n.offset,s=i._removeChildren(n.offset,r);for(const t of s)this._removeFromClonedElementsGroup(t);const a=this.mergeAttributes(n);return e.start=a,e.end=a.clone(),new $i(this.document,s)}clear(t,e){lr(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const o of n){const n=o.item;let i;if(n.is("element")&&e.isSimilar(n))i=Ai._createOn(n);else if(!o.nextPosition.isAfter(t.start)&&n.is("$textProxy")){const t=n.getAncestors().find((t=>t.is("element")&&e.isSimilar(t)));t&&(i=Ai._createIn(t))}i&&(i.end.isAfter(t.end)&&(i.end=t.end),i.start.isBefore(t.start)&&(i.start=t.start),this.remove(i))}}move(t,e){let n;if(e.isAfter(t.end)){const o=(e=this._breakAttributes(e,!0)).parent,i=o.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=o.childCount-i}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof Mi))throw new l.a("view-writer-wrap-invalid-attribute",this.document);if(lr(t,this.document),t.isCollapsed){let o=t.start;o.parent.is("element")&&(n=o.parent,!Array.from(n.getChildren()).some((t=>!t.is("uiElement"))))&&(o=o.getLastMatchingPosition((t=>t.item.is("uiElement")))),o=this._wrapPosition(o,e);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(t.start)&&this.setSelection(o),new Ai(o)}return this._wrapRange(t,e);var n}unwrap(t,e){if(!(e instanceof Mi))throw new l.a("view-writer-unwrap-invalid-attribute",this.document);if(lr(t,this.document),t.isCollapsed)return t;const{start:n,end:o}=this._breakAttributesRange(t,!0),i=n.parent,r=this._unwrapChildren(i,n.offset,o.offset,e),s=this.mergeAttributes(r.start);s.isEqual(r.start)||r.end.offset--;const a=this.mergeAttributes(r.end);return new Ai(s,a)}rename(t,e){const n=new hi(this.document,t,e.getAttributes());return this.insert(fi._createAfter(e),n),this.move(Ai._createIn(e),fi._createAt(n,0)),this.remove(Ai._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return fi._createAt(t,e)}createPositionAfter(t){return fi._createAfter(t)}createPositionBefore(t){return fi._createBefore(t)}createRange(t,e){return new Ai(t,e)}createRangeOn(t){return Ai._createOn(t)}createRangeIn(t){return Ai._createIn(t)}createSelection(t,e,n){return new _i(t,e,n)}_insertNodes(t,e,n){let o,i;if(o=n?er(t):t.parent.is("$text")?t.parent.parent:t.parent,!o)throw new l.a("view-writer-invalid-position-container",this.document);i=n?this._breakAttributes(t,!0):t.parent.is("$text")?ir(t):t;const r=o._insertChild(i.offset,e);for(const t of e)this._addToClonedElementsGroup(t);const s=i.getShiftedBy(r),a=this.mergeAttributes(i);a.isEqual(i)||s.offset--;const c=this.mergeAttributes(s);return new Ai(a,c)}_wrapChildren(t,e,n,o){let i=e;const r=[];for(;i<n;){const e=t.getChild(i),n=e.is("$text"),s=e.is("attributeElement"),a=e.isAllowedInsideAttributeElement;if(s&&this._wrapAttributeElement(o,e))r.push(new fi(t,i));else if(n||a||s&&nr(o,e)){const n=o._clone();e._remove(),n._appendChild(e),t._insertChild(i,n),this._addToClonedElementsGroup(n),r.push(new fi(t,i))}else s&&this._wrapChildren(e,0,e.childCount,o);i++}let s=0;for(const t of r){if(t.offset-=s,t.offset==e)continue;this.mergeAttributes(t).isEqual(t)||(s++,n--)}return Ai._createFromParentsAndOffsets(t,e,t,n)}_unwrapChildren(t,e,n,o){let i=e;const r=[];for(;i<n;){const e=t.getChild(i);if(e.is("attributeElement"))if(e.isSimilar(o)){const o=e.getChildren(),s=e.childCount;e._remove(),t._insertChild(i,o),this._removeFromClonedElementsGroup(e),r.push(new fi(t,i),new fi(t,i+s)),i+=s,n+=s-1}else this._unwrapAttributeElement(o,e)?(r.push(new fi(t,i),new fi(t,i+1)),i++):(this._unwrapChildren(e,0,e.childCount,o),i++);else i++}let s=0;for(const t of r){if(t.offset-=s,t.offset==e||t.offset==n)continue;this.mergeAttributes(t).isEqual(t)||(s++,n--)}return Ai._createFromParentsAndOffsets(t,e,t,n)}_wrapRange(t,e){const{start:n,end:o}=this._breakAttributesRange(t,!0),i=n.parent,r=this._wrapChildren(i,n.offset,o.offset,e),s=this.mergeAttributes(r.start);s.isEqual(r.start)||r.end.offset--;const a=this.mergeAttributes(r.end);return new Ai(s,a)}_wrapPosition(t,e){if(e.isSimilar(t.parent))return or(t.clone());t.parent.is("$text")&&(t=ir(t));const n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,t.parent._insertChild(t.offset,n);const o=new Ai(t,t.getShiftedBy(1));this.wrap(o,e);const i=new fi(n.parent,n.index);n._remove();const r=i.nodeBefore,s=i.nodeAfter;return r instanceof _o&&s instanceof _o?rr(r,s):or(i)}_wrapAttributeElement(t,e){if(!dr(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&(e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e));for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!dr(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,o=t.end;if(lr(t,this.document),t.isCollapsed){const n=this._breakAttributes(t.start,e);return new Ai(n,n)}const i=this._breakAttributes(o,e),r=i.parent.childCount,s=this._breakAttributes(n,e);return i.offset+=i.parent.childCount-r,new Ai(s,i)}_breakAttributes(t,e=!1){const n=t.offset,o=t.parent;if(t.parent.is("emptyElement"))throw new l.a("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new l.a("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new l.a("view-writer-cannot-break-raw-element",this.document);if(!e&&o.is("$text")&&cr(o.parent))return t.clone();if(cr(o))return t.clone();if(o.is("$text"))return this._breakAttributes(ir(t),e);if(n==o.childCount){const t=new fi(o.parent,o.index+1);return this._breakAttributes(t,e)}if(0===n){const t=new fi(o.parent,o.index);return this._breakAttributes(t,e)}{const t=o.index+1,i=o._clone();o.parent._insertChild(t,i),this._addToClonedElementsGroup(i);const r=o.childCount-n,s=o._removeChildren(n,r);i._appendChild(s);const a=new fi(o.parent,t);return this._breakAttributes(a,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const e of t.getChildren())this._addToClonedElementsGroup(e);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const e of t.getChildren())this._removeFromClonedElementsGroup(e);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}function er(t){let e=t.parent;for(;!cr(e);){if(!e)return;e=e.parent}return e}function nr(t,e){return t.priority<e.priority||!(t.priority>e.priority)&&t.getIdentity()<e.getIdentity()}function or(t){const e=t.nodeBefore;if(e&&e.is("$text"))return new fi(e,e.data.length);const n=t.nodeAfter;return n&&n.is("$text")?new fi(n,0):t}function ir(t){if(t.offset==t.parent.data.length)return new fi(t.parent.parent,t.parent.index+1);if(0===t.offset)return new fi(t.parent.parent,t.parent.index);const e=t.parent.data.slice(t.offset);return t.parent._data=t.parent.data.slice(0,t.offset),t.parent.parent._insertChild(t.parent.index+1,new _o(t.root.document,e)),new fi(t.parent.parent,t.parent.index+1)}function rr(t,e){const n=t.data.length;return t._data+=e.data,e._remove(),new fi(t,n)}function sr(t,e){for(const n of t){if(!ar.some((t=>n instanceof t)))throw new l.a("view-writer-insert-invalid-node-type",e);n.is("$text")||sr(n.getChildren(),e)}}const ar=[_o,Mi,hi,Pi,Xi,Ki];function cr(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function lr(t,e){const n=er(t.start),o=er(t.end);if(!n||!o||n!==o)throw new l.a("view-writer-invalid-range-container",e)}function dr(t,e){return null===t.id&&null===e.id}function ur(t){return"[object Text]"==Object.prototype.toString.call(t)}const hr=t=>t.createTextNode(" "),kr=t=>{const e=t.createElement("span");return e.dataset.ckeFiller=!0,e.innerHTML=" ",e},pr=t=>{const e=t.createElement("br");return e.dataset.ckeFiller=!0,e},gr="⁠".repeat(7);function mr(t){return ur(t)&&t.data.substr(0,7)===gr}function br(t){return 7==t.data.length&&mr(t)}function fr(t){return mr(t)?t.data.slice(7):t.data}function Ar(t,e){if(e.keyCode==ji.arrowleft){const t=e.domTarget.ownerDocument.defaultView.getSelection();if(1==t.rangeCount&&t.getRangeAt(0).collapsed){const e=t.getRangeAt(0).startContainer,n=t.getRangeAt(0).startOffset;mr(e)&&n<=7&&t.collapse(e,0)}}}function Cr(t,e,n,o=!1){n=n||function(t,e){return t===e},Array.isArray(t)||(t=Array.prototype.slice.call(t)),Array.isArray(e)||(e=Array.prototype.slice.call(e));const i=function(t,e,n){const o=wr(t,e,n);if(-1===o)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=_r(t,o),r=_r(e,o),s=wr(i,r,n),a=t.length-s,c=e.length-s;return{firstIndex:o,lastIndexOld:a,lastIndexNew:c}}(t,e,n);return o?function(t,e){const{firstIndex:n,lastIndexOld:o,lastIndexNew:i}=t;if(-1===n)return Array(e).fill("equal");let r=[];n>0&&(r=r.concat(Array(n).fill("equal")));i-n>0&&(r=r.concat(Array(i-n).fill("insert")));o-n>0&&(r=r.concat(Array(o-n).fill("delete")));i<e&&(r=r.concat(Array(e-i).fill("equal")));return r}(i,e.length):function(t,e){const n=[],{firstIndex:o,lastIndexOld:i,lastIndexNew:r}=e;r-o>0&&n.push({index:o,type:"insert",values:t.slice(o,r)});i-o>0&&n.push({index:o+(r-o),type:"delete",howMany:i-o});return n}(e,i)}function wr(t,e,n){for(let o=0;o<Math.max(t.length,e.length);o++)if(void 0===t[o]||void 0===e[o]||!n(t[o],e[o]))return o;return-1}function _r(t,e){return t.slice(e).reverse()}function vr(t,e,n){n=n||function(t,e){return t===e};const o=t.length,i=e.length;if(o>200||i>200||o+i>300)return vr.fastDiff(t,e,n,!0);let r,s;if(i<o){const n=t;t=e,e=n,r="delete",s="insert"}else r="insert",s="delete";const a=t.length,c=e.length,l=c-a,d={},u={};function h(o){const i=(void 0!==u[o-1]?u[o-1]:-1)+1,l=void 0!==u[o+1]?u[o+1]:-1,h=i>l?-1:1;d[o+h]&&(d[o]=d[o+h].slice(0)),d[o]||(d[o]=[]),d[o].push(i>l?r:s);let k=Math.max(i,l),p=k-o;for(;p<a&&k<c&&n(t[p],e[k]);)p++,k++,d[o].push("equal");return k}let k,p=0;do{for(k=-p;k<l;k++)u[k]=h(k);for(k=l+p;k>l;k--)u[k]=h(k);u[l]=h(l),p++}while(u[l]!==c);return d[l].slice(1)}function yr(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function xr(t){const e=t.parentNode;e&&e.removeChild(t)}function Er(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}vr.fastDiff=Cr;class Ir{constructor(t,e){this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=e,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t)throw new l.a("view-renderer-unknown-type",this);this.markedChildren.add(e)}}}render(){let t;for(const t of this.markedChildren)this._updateChildrenMappings(t);this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent));for(const t of this.markedAttributes)this._updateAttrs(t);for(const e of this.markedChildren)this._updateChildren(e,{inlineFillerPosition:t});for(const e of this.markedTexts)!this.markedChildren.has(e.parent)&&this.domConverter.mapViewToDom(e.parent)&&this._updateText(e,{inlineFillerPosition:t});if(t){const e=this.domConverter.viewPositionToDom(t),n=e.parent.ownerDocument;mr(e.parent)?this._inlineFiller=e.parent:this._inlineFiller=Dr(n,e.parent,e.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=this.domConverter.mapViewToDom(t).childNodes,o=Array.from(this.domConverter.viewChildrenToDom(t,e.ownerDocument,{withChildren:!1})),i=this._diffNodeLists(n,o),r=this._findReplaceActions(i,n,o);if(-1!==r.indexOf("replace")){const e={equal:0,insert:0,delete:0};for(const i of r)if("replace"===i){const i=e.equal+e.insert,r=e.equal+e.delete,s=t.getChild(i);!s||s.is("uiElement")||s.is("rawElement")||this._updateElementMappings(s,n[r]),xr(o[i]),e.equal++}else e[i]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?fi._createBefore(this.selection.getFirstPosition().parent):t}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&ur(e.parent)&&mr(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!mr(t))throw new l.a("view-renderer-filler-was-lost",this);br(t)?t.parentNode.removeChild(t):t.data=t.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;const e=t.findAncestor((t=>t.hasAttribute("contenteditable")));return!e||"true"==e.getAttribute("contenteditable")}(e))return!1;if(n===e.getFillerOffset())return!1;const o=t.nodeBefore,i=t.nodeAfter;return!(o instanceof _o||i instanceof _o)}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t),o=this.domConverter.viewToDom(t,n.ownerDocument),i=n.data;let r=o.data;const s=e.inlineFillerPosition;if(s&&s.parent==t.parent&&s.offset==t.index&&(r=gr+r),i!=r){const t=Cr(i,r);for(const e of t)"insert"===e.type?n.insertData(e.index,e.values.join("")):n.deleteData(e.index,e.howMany)}}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map((t=>t.name)),o=t.getAttributeKeys();for(const n of o)e.setAttribute(n,t.getAttribute(n));for(const o of n)t.hasAttribute(o)||e.removeAttribute(o)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;const o=e.inlineFillerPosition,i=this.domConverter.mapViewToDom(t).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(t,n.ownerDocument,{bind:!0,inlineFillerPosition:o}));o&&o.parent===t&&Dr(n.ownerDocument,r,o.offset);const s=this._diffNodeLists(i,r);let a=0;const c=new Set;for(const t of s)"delete"===t?(c.add(i[a]),xr(i[a])):"equal"===t&&a++;a=0;for(const t of s)"insert"===t?(yr(n,a,r[a]),a++):"equal"===t&&(this._markDescendantTextToSync(this.domConverter.domToView(r[a])),a++);for(const t of c)t.parentNode||this.domConverter.unbindDomElement(t)}_diffNodeLists(t,e){return vr(t=function(t,e){const n=Array.from(t);if(0==n.length||!e)return n;n[n.length-1]==e&&n.pop();return n}(t,this._fakeSelectionContainer),e,Sr.bind(null,this.domConverter))}_findReplaceActions(t,e,n){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;let o=[],i=[],r=[];const s={equal:0,insert:0,delete:0};for(const a of t)"insert"===a?r.push(n[s.equal+s.insert]):"delete"===a?i.push(e[s.equal+s.delete]):(o=o.concat(vr(i,r,Br).map((t=>"equal"===t?"replace":t))),o.push("equal"),i=[],r=[]),s[a]++;return o.concat(vr(i,r,Br).map((t=>"equal"===t?"replace":t)))}_markDescendantTextToSync(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}_updateSelection(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):(this._removeFakeSelection(),this._updateDomSelection(t)))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(t){const e=t.createElement("div");return e.className="ck-fake-selection-container",Object.assign(e.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),e.textContent=" ",e}(e));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";const o=e.getSelection(),i=e.createRange();o.removeAllRanges(),i.selectNodeContents(n),o.addRange(i)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),o=this.domConverter.viewPositionToDom(this.selection.focus);e.collapse(n.parent,n.offset),e.extend(o.parent,o.offset),Ri.isGecko&&function(t,e){const n=t.parent;if(n.nodeType!=Node.ELEMENT_NODE||t.offset!=n.childNodes.length-1)return;const o=n.childNodes[t.offset];o&&"BR"==o.tagName&&e.addRange(e.getRangeAt(0))}(o,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return(!e||!this.selection.isEqual(e))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(e))}_fakeSelectionNeedsUpdate(t){const e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||(n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const t of this.domDocuments){if(t.getSelection().rangeCount){const e=t.activeElement,n=this.domConverter.mapDomToView(e);e&&n&&t.getSelection().removeAllRanges()}}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function Dr(t,e,n){const o=e instanceof Array?e:e.childNodes,i=o[n];if(ur(i))return i.data=gr+i.data,i;{const i=t.createTextNode(gr);return Array.isArray(e)?o.splice(n,0,i):yr(e,n,i),i}}function Br(t,e){return Er(t)&&Er(e)&&!ur(t)&&!ur(e)&&t.nodeType!==Node.COMMENT_NODE&&e.nodeType!==Node.COMMENT_NODE&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}function Sr(t,e,n){return e===n||(ur(e)&&ur(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)))}Xt(Ir,qt);var Tr={window:window,document:document};function Mr(t){let e=0;for(;t.previousSibling;)t=t.previousSibling,e++;return e}function zr(t){const e=[];for(;t&&t.nodeType!=Node.DOCUMENT_NODE;)e.unshift(t),t=t.parentNode;return e}const Nr=pr(document),Pr=hr(document),Lr=kr(document);class Or{constructor(t,e={}){this.document=t,this.blockFillerMode=e.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new xo,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new _i(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const e of t.childNodes)this.unbindDomElement(e)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}viewToDom(t,e,n={}){if(t.is("$text")){const n=this._processDataFromViewText(t);return e.createTextNode(n)}{if(this.mapViewToDom(t))return this.mapViewToDom(t);let o;if(t.is("documentFragment"))o=e.createDocumentFragment(),n.bind&&this.bindDocumentFragments(o,t);else{if(t.is("uiElement"))return o=t.render(e),n.bind&&this.bindElements(o,t),o;o=t.hasAttribute("xmlns")?e.createElementNS(t.getAttribute("xmlns"),t.name):e.createElement(t.name),t.is("rawElement")&&t.render(o),n.bind&&this.bindElements(o,t);for(const e of t.getAttributeKeys())o.setAttribute(e,t.getAttribute(e))}if(!1!==n.withChildren)for(const i of this.viewChildrenToDom(t,e,n))o.appendChild(i);return o}}*viewChildrenToDom(t,e,n={}){const o=t.getFillerOffset&&t.getFillerOffset();let i=0;for(const r of t.getChildren())o===i&&(yield this._getBlockFiller(e)),yield this.viewToDom(r,e,n),i++;o===i&&(yield this._getBlockFiller(e))}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),o=document.createRange();return o.setStart(e.parent,e.offset),o.setEnd(n.parent,n.offset),o}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let o=t.offset;return mr(n)&&(o+=7),{parent:n,offset:o}}{let n,o,i;if(0===t.offset){if(n=this.mapViewToDom(e),!n)return null;i=n.childNodes[0]}else{const e=t.nodeBefore;if(o=e.is("$text")?this.findCorrespondingDomText(e):this.mapViewToDom(t.nodeBefore),!o)return null;n=o.parentNode,i=o.nextSibling}if(ur(i)&&mr(i))return{parent:i,offset:7};return{parent:n,offset:o?Mr(o)+1:0}}}domToView(t,e={}){if(this.isBlockFiller(t))return null;const n=this.getHostViewElement(t);if(n)return n;if(ur(t)){if(br(t))return null;{const e=this._processDataFromDomText(t);return""===e?null:new _o(this.document,e)}}if(this.isComment(t))return null;{if(this.mapDomToView(t))return this.mapDomToView(t);let n;if(this.isDocumentFragment(t))n=new $i(this.document),e.bind&&this.bindDocumentFragments(t,n);else{const o=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();n=new di(this.document,o),e.bind&&this.bindElements(t,n);const i=t.attributes;for(let t=i.length-1;t>=0;t--)n._setAttribute(i[t].name,i[t].value);if(!1!==e.withChildren&&this._rawContentElementMatcher.match(n))return n._setCustomProperty("$rawContent",t.innerHTML),this._encounteredRawContentDomNodes.add(t),n}if(!1!==e.withChildren)for(const o of this.domChildrenToView(t,e))n._appendChild(o);return n}}*domChildrenToView(t,e={}){for(let n=0;n<t.childNodes.length;n++){const o=t.childNodes[n],i=this.domToView(o,e);null!==i&&(yield i)}}domSelectionToView(t){if(1===t.rangeCount){let e=t.getRangeAt(0).startContainer;ur(e)&&(e=e.parentNode);const n=this.fakeSelectionToView(e);if(n)return n}const e=this.isDomSelectionBackward(t),n=[];for(let e=0;e<t.rangeCount;e++){const o=t.getRangeAt(e),i=this.domRangeToView(o);i&&n.push(i)}return new _i(n,{backward:e})}domRangeToView(t){const e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new Ai(e,n):null}domPositionToView(t,e){if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,Mr(t));const n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return fi._createBefore(n);if(ur(t)){if(br(t))return this.domPositionToView(t.parentNode,Mr(t));const n=this.findCorrespondingViewText(t);let o=e;return n?(mr(t)&&(o-=7,o=o<0?0:o),new fi(n,o)):null}if(0===e){const e=this.mapDomToView(t);if(e)return new fi(e,0)}else{const n=t.childNodes[e-1],o=ur(n)?this.findCorrespondingViewText(n):this.mapDomToView(n);if(o&&o.parent)return new fi(o.parent,o.index+1)}return null}mapDomToView(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}findCorrespondingViewText(t){if(br(t))return null;const e=this.getHostViewElement(t);if(e)return e;const n=t.previousSibling;if(n){if(!this.isElement(n))return null;const t=this.mapDomToView(n);if(t){return t.nextSibling instanceof _o?t.nextSibling:null}}else{const e=this.mapDomToView(t.parentNode);if(e){const t=e.getChild(0);return t instanceof _o?t:null}}return null}mapViewToDom(t){return this._viewToDomMapping.get(t)}findCorrespondingDomText(t){const e=t.previousSibling;return e&&this.mapViewToDom(e)?this.mapViewToDom(e).nextSibling:!e&&t.parent&&this.mapViewToDom(t.parent)?this.mapViewToDom(t.parent).childNodes[0]:null}focus(t){const e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){const{scrollX:t,scrollY:n}=Tr.window,o=[];Fr(e,(t=>{const{scrollLeft:e,scrollTop:n}=t;o.push([e,n])})),e.focus(),Fr(e,(t=>{const[e,n]=o.shift();t.scrollLeft=e,t.scrollTop=n})),Tr.window.scrollTo(t,n)}}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(t){return t&&t.nodeType==Node.COMMENT_NODE}isBlockFiller(t){return"br"==this.blockFillerMode?t.isEqualNode(Nr):!("BR"!==t.tagName||!Vr(t,this.blockElements)||1!==t.parentNode.childNodes.length)||(t.isEqualNode(Lr)||function(t,e){return t.isEqualNode(Pr)&&Vr(t,e)&&1===t.parentNode.childNodes.length}(t,this.blockElements))}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=document.createRange();e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=zr(t);for(e.pop();e.length;){const t=e.pop(),n=this._domToViewMapping.get(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return n}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}registerRawContentMatcher(t){this._rawContentElementMatcher.add(t)}_getBlockFiller(t){switch(this.blockFillerMode){case"nbsp":return hr(t);case"markedNbsp":return kr(t);case"br":return pr(t)}}_isDomSelectionPositionCorrect(t,e){if(ur(t)&&mr(t)&&e<7)return!1;if(this.isElement(t)&&mr(t.childNodes[e]))return!1;const n=this.mapDomToView(t);return!n||!n.is("uiElement")&&!n.is("rawElement")}_processDataFromViewText(t){let e=t.data;if(t.getAncestors().some((t=>this.preElements.includes(t.name))))return e;if(" "==e.charAt(0)){const n=this._getTouchingViewTextNode(t,!1);!(n&&this._nodeEndsWithSpace(n))&&n||(e=" "+e.substr(1))}if(" "==e.charAt(e.length-1)){const n=this._getTouchingViewTextNode(t,!0);" "!=e.charAt(e.length-2)&&n&&" "!=n.data.charAt(0)||(e=e.substr(0,e.length-1)+" ")}return e.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(t){if(t.getAncestors().some((t=>this.preElements.includes(t.name))))return!1;const e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1)}_processDataFromDomText(t){let e=t.data;if(Rr(t,this.preElements))return fr(t);e=e.replace(/[ \n\t\r]{1,}/g," ");const n=this._getTouchingInlineDomNode(t,!1),o=this._getTouchingInlineDomNode(t,!0),i=this._checkShouldLeftTrimDomText(t,n),r=this._checkShouldRightTrimDomText(t,o);return i&&(e=e.replace(/^ /,"")),r&&(e=e.replace(/ $/,"")),e=fr(new Text(e)),e=e.replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(e)||!o||o.data&&" "==o.data.charAt(0))&&(e=e.replace(/\u00A0$/," ")),i&&(e=e.replace(/^\u00A0/," ")),e}_checkShouldLeftTrimDomText(t,e){return!e||(!!io(e)||!this._encounteredRawContentDomNodes.has(t.previousSibling)&&/[^\S\u00A0]/.test(e.data.charAt(e.data.length-1)))}_checkShouldRightTrimDomText(t,e){return!e&&!mr(t)}_getTouchingViewTextNode(t,e){const n=new bi({startPosition:e?fi._createAfter(t):fi._createBefore(t),direction:e?"forward":"backward"});for(const t of n){if(t.item.is("containerElement"))return null;if(t.item.is("element","br"))return null;if(t.item.is("$textProxy"))return t.item}return null}_getTouchingInlineDomNode(t,e){if(!t.parentNode)return null;const n=e?"nextNode":"previousNode",o=t.ownerDocument,i=zr(t)[0],r=o.createTreeWalker(i,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:t=>ur(t)||"BR"==t.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});r.currentNode=t;const s=r[n]();if(null!==s){const e=function(t,e){const n=zr(t),o=zr(e);let i=0;for(;n[i]==o[i]&&n[i];)i++;return 0===i?null:n[i-1]}(t,s);if(e&&!Rr(t,this.blockElements,e)&&!Rr(s,this.blockElements,e))return s}return null}}function Rr(t,e,n){let o=zr(t);return n&&(o=o.slice(o.indexOf(n)+1)),o.some((t=>t.tagName&&e.includes(t.tagName.toLowerCase())))}function Fr(t,e){for(;t&&t!=Tr.document;)e(t),t=t.parentNode}function Vr(t,e){const n=t.parentNode;return n&&n.tagName&&e.includes(n.tagName.toLowerCase())}function jr(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}var Jr=Rt({},h,{listenTo(t,...e){if(Er(t)||jr(t)){const n=this._getProxyEmitter(t)||new Hr(t);n.attach(...e),t=n}h.listenTo.call(this,t,...e)},stopListening(t,e,n){if(Er(t)||jr(t)){const e=this._getProxyEmitter(t);if(!e)return;t=e}h.stopListening.call(this,t,e,n),t instanceof Hr&&t.detach(e)},_getProxyEmitter(t){return e=this,n=Ur(t),e[d]&&e[d][n]?e[d][n].emitter:null;var e,n}});class Hr{constructor(t){k(this,Ur(t)),this._domNode=t}}function Ur(t){return t["data-ck-expando"]||(t["data-ck-expando"]=s())}Rt(Hr.prototype,h,{attach(t,e,n={}){if(this._domListeners&&this._domListeners[t])return;const o={capture:!!n.useCapture,passive:!!n.usePassive},i=this._createDomListener(t,o);this._domNode.addEventListener(t,i,o),this._domListeners||(this._domListeners={}),this._domListeners[t]=i},detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()},_createDomListener(t,e){const n=e=>{this.fire(t,e)};return n.removeListener=()=>{this._domNode.removeEventListener(t,n,e),delete this._domListeners[t]},n}});class qr{constructor(t){this.view=t,this.document=t.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}Xt(qr,Jr);var Gr=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var Wr=function(t){return this.__data__.has(t)};function Kr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new He;++e<n;)this.add(t[e])}Kr.prototype.add=Kr.prototype.push=Gr,Kr.prototype.has=Wr;var Yr=Kr;var Qr=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};var Xr=function(t,e){return t.has(e)};var Zr=function(t,e,n,o,i,r){var s=1&n,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var l=r.get(t),d=r.get(e);if(l&&d)return l==e&&d==t;var u=-1,h=!0,k=2&n?new Yr:void 0;for(r.set(t,e),r.set(e,t);++u<a;){var p=t[u],g=e[u];if(o)var m=s?o(g,p,u,e,t,r):o(p,g,u,t,e,r);if(void 0!==m){if(m)continue;h=!1;break}if(k){if(!Qr(e,(function(t,e){if(!Xr(k,e)&&(p===t||i(p,t,n,o,r)))return k.push(e)}))){h=!1;break}}else if(p!==g&&!i(p,g,n,o,r)){h=!1;break}}return r.delete(t),r.delete(e),h};var $r=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};var ts=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},es=_?_.prototype:void 0,ns=es?es.valueOf:void 0;var os=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new zn(t),new zn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Q(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=$r;case"[object Set]":var c=1&o;if(a||(a=ts),t.size!=e.size&&!c)return!1;var l=s.get(t);if(l)return l==e;o|=2,s.set(t,e);var d=Zr(a(t),a(e),o,i,r,s);return s.delete(t),d;case"[object Symbol]":if(ns)return ns.call(t)==ns.call(e)}return!1},is=Object.prototype.hasOwnProperty;var rs=function(t,e,n,o,i,r){var s=1&n,a=kn(t),c=a.length;if(c!=kn(e).length&&!s)return!1;for(var l=c;l--;){var d=a[l];if(!(s?d in e:is.call(e,d)))return!1}var u=r.get(t),h=r.get(e);if(u&&h)return u==e&&h==t;var k=!0;r.set(t,e),r.set(e,t);for(var p=s;++l<c;){var g=t[d=a[l]],m=e[d];if(o)var b=s?o(m,g,d,e,t,r):o(g,m,d,t,e,r);if(!(void 0===b?g===m||i(g,m,n,o,r):b)){k=!1;break}p||(p="constructor"==d)}if(k&&!p){var f=t.constructor,A=e.constructor;f==A||!("constructor"in t)||!("constructor"in e)||"function"==typeof f&&f instanceof f&&"function"==typeof A&&A instanceof A||(k=!1)}return r.delete(t),r.delete(e),k},ss="[object Arguments]",as="[object Array]",cs="[object Object]",ls=Object.prototype.hasOwnProperty;var ds=function(t,e,n,o,i,r){var s=_t(t),a=_t(e),c=s?as:Sn(t),l=a?as:Sn(e),d=(c=c==ss?cs:c)==cs,u=(l=l==ss?cs:l)==cs,h=c==l;if(h&&Object(vt.a)(t)){if(!Object(vt.a)(e))return!1;s=!0,d=!1}if(h&&!d)return r||(r=new Ge),s||Bt(t)?Zr(t,e,n,o,i,r):os(t,e,c,n,o,i,r);if(!(1&n)){var k=d&&ls.call(t,"__wrapped__"),p=u&&ls.call(e,"__wrapped__");if(k||p){var g=k?t.value():t,m=p?e.value():e;return r||(r=new Ge),i(g,m,n,o,r)}}return!!h&&(r||(r=new Ge),rs(t,e,n,o,i,r))};var us=function t(e,n,o,i,r){return e===n||(null==e||null==n||!mt(e)&&!mt(n)?e!=e&&n!=n:ds(e,n,o,i,t,r))};var hs=function(t,e,n){var o=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===o?us(t,e,void 0,n):!!o};class ks extends qr{constructor(t){super(t),this._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},this.domConverter=t.domConverter,this.renderer=t._renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(t){this._domElements.push(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}enable(){super.enable();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(t){if(0===t.length)return;const e=this.domConverter,n=new Map,o=new Set;for(const n of t)if("childList"===n.type){const t=e.mapDomToView(n.target);if(t&&(t.is("uiElement")||t.is("rawElement")))continue;t&&!this._isBogusBrMutation(n)&&o.add(t)}for(const i of t){const t=e.mapDomToView(i.target);if((!t||!t.is("uiElement")&&!t.is("rawElement"))&&"characterData"===i.type){const t=e.findCorrespondingViewText(i.target);t&&!o.has(t.parent)?n.set(t,{type:"text",oldText:t.data,newText:fr(i.target),node:t}):!t&&mr(i.target)&&o.add(e.mapDomToView(i.target.parentNode))}}const i=[];for(const t of n.values())this.renderer.markToSync("text",t.node),i.push(t);for(const t of o){const n=e.mapViewToDom(t),o=Array.from(t.getChildren()),r=Array.from(e.domChildrenToView(n,{withChildren:!1}));hs(o,r,a)||(this.renderer.markToSync("children",t),i.push({type:"children",oldChildren:o,newChildren:r,node:t}))}const r=t[0].target.ownerDocument.getSelection();let s=null;if(r&&r.anchorNode){const t=e.domPositionToView(r.anchorNode,r.anchorOffset),n=e.domPositionToView(r.focusNode,r.focusOffset);t&&n&&(s=new _i(t),s.setFocus(n))}function a(t,e){if(!Array.isArray(t))return t===e||!(!t.is("$text")||!e.is("$text"))&&t.data===e.data}i.length&&(this.document.fire("mutations",i,s),this.view.forceRender())}_isBogusBrMutation(t){let e=null;return null===t.nextSibling&&0===t.removedNodes.length&&1==t.addedNodes.length&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}class ps{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,Rt(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class gs extends qr{constructor(t){super(t),this.useCapture=!1}observe(t){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((e=>{this.listenTo(t,e,((t,e)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(e.target)&&this.onDomEvent(e)}),{useCapture:this.useCapture})}))}fire(t,e,n){this.isEnabled&&this.document.fire(t,new ps(this.view,e,n))}}class ms extends gs{constructor(t){super(t),this.domEventType=["keydown","keyup"]}onDomEvent(t){this.fire(t.type,t,{keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return Hi(this)}})}}var bs=function(){return w.a.Date.now()},fs=/\s/;var As=function(t){for(var e=t.length;e--&&fs.test(t.charAt(e)););return e},Cs=/^\s+/;var ws=function(t){return t?t.slice(0,As(t)+1).replace(Cs,""):t},_s=/^[-+]0x[0-9a-f]+$/i,vs=/^0b[01]+$/i,ys=/^0o[0-7]+$/i,xs=parseInt;var Es=function(t){if("number"==typeof t)return t;if(Io(t))return NaN;if(C(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=C(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ws(t);var n=vs.test(t);return n||ys.test(t)?xs(t.slice(2),n?2:8):_s.test(t)?NaN:+t},Is=Math.max,Ds=Math.min;var Bs=function(t,e,n){var o,i,r,s,a,c,l=0,d=!1,u=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function k(e){var n=o,r=i;return o=i=void 0,l=e,s=t.apply(r,n)}function p(t){return l=t,a=setTimeout(m,e),d?k(t):s}function g(t){var n=t-c;return void 0===c||n>=e||n<0||u&&t-l>=r}function m(){var t=bs();if(g(t))return b(t);a=setTimeout(m,function(t){var n=e-(t-c);return u?Ds(n,r-(t-l)):n}(t))}function b(t){return a=void 0,h&&o?k(t):(o=i=void 0,s)}function f(){var t=bs(),n=g(t);if(o=arguments,i=this,c=t,n){if(void 0===a)return p(c);if(u)return clearTimeout(a),a=setTimeout(m,e),k(c)}return void 0===a&&(a=setTimeout(m,e)),s}return e=Es(e)||0,C(n)&&(d=!!n.leading,r=(u="maxWait"in n)?Is(Es(n.maxWait)||0,e):r,h="trailing"in n?!!n.trailing:h),f.cancel=function(){void 0!==a&&clearTimeout(a),l=0,o=c=i=a=void 0},f.flush=function(){return void 0===a?s:b(bs())},f};class Ss extends qr{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=Bs((t=>this.document.fire("selectionChangeDone",t)),200)}observe(){const t=this.document;t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&n.preventDefault()}),{context:"$capture"}),t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)}),{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new _i(e.getRanges(),{backward:e.isBackward,fake:!1});t!=ji.arrowleft&&t!=ji.arrowup||n.setTo(n.getFirstPosition()),t!=ji.arrowright&&t!=ji.arrowdown||n.setTo(n.getLastPosition());const o={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",o),this._fireSelectionChangeDoneDebounced(o)}}class Ts extends qr{constructor(t){super(t),this.mutationObserver=t.getObserver(ks),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Bs((t=>this.document.fire("selectionChangeDone",t)),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument;this._documents.has(e)||(this.listenTo(e,"selectionchange",((t,n)=>{this._handleSelectionChange(n,e)})),this._documents.add(e))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionChange(t,e){if(!this.isEnabled)return;const n=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const o=this.domConverter.domSelectionToView(n);if(0!=o.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(o)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(o))this.view.forceRender();else{const t={oldSelection:this.selection,newSelection:o,domSelection:n};this.document.fire("selectionChange",t),this._fireSelectionChangeDoneDebounced(t)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Ms extends gs{constructor(t){super(t),this.domEventType=["focus","blur"],this.useCapture=!0;const e=this.document;e.on("focus",(()=>{e.isFocused=!0,this._renderTimeoutId=setTimeout((()=>t.forceRender()),50)})),e.on("blur",((n,o)=>{const i=e.selection.editableElement;null!==i&&i!==o.target||(e.isFocused=!1,t.forceRender())}))}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class zs extends gs{constructor(t){super(t),this.domEventType=["compositionstart","compositionupdate","compositionend"];const e=this.document;e.on("compositionstart",(()=>{e.isComposing=!0})),e.on("compositionend",(()=>{e.isComposing=!1}))}onDomEvent(t){this.fire(t.type,t)}}class Ns extends gs{constructor(t){super(t),this.domEventType=["beforeinput"]}onDomEvent(t){this.fire(t.type,t)}}class Ps{constructor(){this._replacedElements=[]}replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}restore(){this._replacedElements.forEach((({element:t,newElement:e})=>{t.style.display="",e&&e.remove()})),this._replacedElements=[]}}var Ls=function(t){return"string"==typeof t||!_t(t)&&mt(t)&&"[object String]"==T(t)};function Os(t,e,n={},o=[]){const i=n&&n.xmlns,r=i?t.createElementNS(i,e):t.createElement(e);for(const t in n)r.setAttribute(t,n[t]);!Ls(o)&&co(o)||(o=[o]);for(let e of o)Ls(e)&&(e=t.createTextNode(e)),r.appendChild(e);return r}function Rs(t){return"[object Range]"==Object.prototype.toString.apply(t)}function Fs(t){const e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}const Vs=["top","right","bottom","left","width","height"];class js{constructor(t){const e=Rs(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),io(t)||e)if(e){const e=js.getDomRangeRects(t);Js(this,js.getBoundingRect(e))}else Js(this,t.getBoundingClientRect());else if(jr(t)){const{innerWidth:e,innerHeight:n}=t;Js(this,{top:0,right:e,bottom:n,left:0,width:e,height:n})}else Js(this,t)}clone(){return new js(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={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 e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0?null:new js(e)}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(!Hs(t)){let n=t.parentNode||t.commonAncestorContainer;for(;n&&!Hs(n);){const t=new js(n),o=e.getIntersection(t);if(!o)return null;o.getArea()<e.getArea()&&(e=o),n=n.parentNode}}return e}isEqual(t){for(const e of Vs)if(this[e]!==t[e])return!1;return!0}contains(t){const e=this.getIntersection(t);return!(!e||!e.isEqual(t))}excludeScrollbarsAndBorders(){const t=this._source;let e,n,o;if(jr(t))e=t.innerWidth-t.document.documentElement.clientWidth,n=t.innerHeight-t.document.documentElement.clientHeight,o=t.getComputedStyle(t.document.documentElement).direction;else{const i=Fs(this._source);e=t.offsetWidth-t.clientWidth-i.left-i.right,n=t.offsetHeight-t.clientHeight-i.top-i.bottom,o=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===o?this.right-=e:this.left+=e,this.height-=n,this.bottom-=n,this}static getDomRangeRects(t){const e=[],n=Array.from(t.getClientRects());if(n.length)for(const t of n)e.push(new js(t));else{let n=t.startContainer;ur(n)&&(n=n.parentNode);const o=new js(n.getBoundingClientRect());o.right=o.left,o.width=0,e.push(o)}return e}static getBoundingRect(t){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY};let n=0;for(const o of t)n++,e.left=Math.min(e.left,o.left),e.top=Math.min(e.top,o.top),e.right=Math.max(e.right,o.right),e.bottom=Math.max(e.bottom,o.bottom);return 0==n?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new js(e))}}function Js(t,e){for(const n of Vs)t[n]=e[n]}function Hs(t){return!!io(t)&&t===t.ownerDocument.body}class Us{constructor(t,e){Us._observerInstance||Us._createObserver(),this._element=t,this._callback=e,Us._addElementCallback(t,e),Us._observerInstance.observe(t)}destroy(){Us._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){Us._elementCallbacks||(Us._elementCallbacks=new Map);let n=Us._elementCallbacks.get(t);n||(n=new Set,Us._elementCallbacks.set(t,n)),n.add(e)}static _deleteElementCallback(t,e){const n=Us._getElementCallbacks(t);n&&(n.delete(e),n.size||(Us._elementCallbacks.delete(t),Us._observerInstance.unobserve(t))),Us._elementCallbacks&&!Us._elementCallbacks.size&&(Us._observerInstance=null,Us._elementCallbacks=null)}static _getElementCallbacks(t){return Us._elementCallbacks?Us._elementCallbacks.get(t):null}static _createObserver(){let t;t="function"==typeof Tr.window.ResizeObserver?Tr.window.ResizeObserver:qs,Us._observerInstance=new t((t=>{for(const e of t){const t=Us._getElementCallbacks(e.target);if(t)for(const n of t)n(e)}}))}}Us._observerInstance=null,Us._elementCallbacks=null;class qs{constructor(t){this._callback=t,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(t){this._elements.add(t),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(t){this._elements.delete(t),this._previousRects.delete(t),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const t=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(t,100)};this.listenTo(Tr.window,"resize",(()=>{this._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout(t,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const t=[];for(const e of this._elements)this._hasRectChanged(e)&&t.push({target:e,contentRect:this._previousRects.get(e)});t.length&&this._callback(t)}_hasRectChanged(t){if(!t.ownerDocument.body.contains(t))return!1;const e=new js(t),n=this._previousRects.get(t),o=!n||!n.isEqual(e);return this._previousRects.set(t,e),o}}function Gs(t){return e=>e+t}function Ws(t){const e=t.next();return e.done?null:e.value}Xt(qs,Jr);class Ks{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(t){if(this._elements.has(t))throw new l.a("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",(()=>this._focus(t)),{useCapture:!0}),this.listenTo(t,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(t),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}Xt(Ks,Jr),Xt(Ks,qt);class Ys{constructor(){this._listener=Object.create(Jr)}listenTo(t){this._listener.listenTo(t,"keydown",((t,e)=>{this._listener.fire("_keydown:"+Hi(e),e)}))}set(t,e,n={}){const o=Ui(t),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+o,((t,n)=>{e(n,(()=>{n.preventDefault(),n.stopPropagation(),t.stop()})),t.return=!0}),{priority:i})}press(t){return!!this._listener.fire("_keydown:"+Hi(t),t)}destroy(){this._listener.stopListening()}}class Qs extends qr{constructor(t){super(t),this.document.on("keydown",((t,e)=>{if(this.isEnabled&&((n=e.keyCode)==ji.arrowright||n==ji.arrowleft||n==ji.arrowup||n==ji.arrowdown)){const n=new yi(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(n,e),n.stop.called&&t.stop()}var n}))}observe(){}}function Xs({target:t,viewportOffset:e=0}){const n=ia(t);let o=n,i=null;for(;o;){let r;r=ra(o==n?t:i),$s(r,(()=>sa(t,o)));const s=sa(t,o);if(Zs(o,s,e),o.parent!=o){if(i=o.frameElement,o=o.parent,!i)return}else o=null}}function Zs(t,e,n){const o=e.clone().moveBy(0,n),i=e.clone().moveBy(0,-n),r=new js(t).excludeScrollbarsAndBorders();if(![i,o].every((t=>r.contains(t)))){let{scrollX:s,scrollY:a}=t;ea(i,r)?a-=r.top-e.top+n:ta(o,r)&&(a+=e.bottom-r.bottom+n),na(e,r)?s-=r.left-e.left+n:oa(e,r)&&(s+=e.right-r.right+n),t.scrollTo(s,a)}}function $s(t,e){const n=ia(t);let o,i;for(;t!=n.document.body;)i=e(),o=new js(t).excludeScrollbarsAndBorders(),o.contains(i)||(ea(i,o)?t.scrollTop-=o.top-i.top:ta(i,o)&&(t.scrollTop+=i.bottom-o.bottom),na(i,o)?t.scrollLeft-=o.left-i.left:oa(i,o)&&(t.scrollLeft+=i.right-o.right)),t=t.parentNode}function ta(t,e){return t.bottom>e.bottom}function ea(t,e){return t.top<e.top}function na(t,e){return t.left<e.left}function oa(t,e){return t.right>e.right}function ia(t){return Rs(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function ra(t){if(Rs(t)){let e=t.commonAncestorContainer;return ur(e)&&(e=e.parentNode),e}return t.parentNode}function sa(t,e){const n=ia(t),o=new js(t);if(n===e)return o;{let t=n;for(;t!=e;){const e=t.frameElement,n=new js(e).excludeScrollbarsAndBorders();o.moveBy(n.left,n.top),t=t.parent}}return o}Object.assign({},{scrollViewportToShowTarget:Xs,scrollAncestorsToShowTarget:function(t){$s(ra(t),(()=>new js(t)))}});class aa{constructor(t){this.document=new Ti(t),this.domConverter=new Or(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Ir(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 tr(this.document),this.addObserver(ks),this.addObserver(Ts),this.addObserver(Ms),this.addObserver(ms),this.addObserver(Ss),this.addObserver(zs),this.addObserver(Qs),Ri.isAndroid&&this.addObserver(Ns),this.document.on("arrowKey",Ar,{priority:"low"}),Yi(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0}))}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const o={};for(const{name:e,value:i}of Array.from(t.attributes))o[e]=i,"class"===e?this._writer.addClass(i.split(" "),n):this._writer.setAttribute(e,i,n);this._initialDomRootAttributes.set(t,o);const i=()=>{this._writer.setAttribute("contenteditable",!n.isReadOnly,n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};i(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",((t,e)=>this._renderer.markToSync("children",e))),n.on("change:attributes",((t,e)=>this._renderer.markToSync("attributes",e))),n.on("change:text",((t,e)=>this._renderer.markToSync("text",e))),n.on("change:isReadOnly",(()=>this.change(i))),n.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const n of this._observers.values())n.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach((({name:t})=>e.removeAttribute(t)));const n=this._initialDomRootAttributes.get(e);for(const t in n)e.setAttribute(t,n[t]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[t,n]of this.domRoots)e.observe(n,t);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection(){const t=this.document.selection.getFirstRange();t&&Xs({target:this.domConverter.viewRangeToDom(t),viewportOffset:20})}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new l.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(t){l.a.rethrowUnexpectedError(t,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change((()=>{}))}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return fi._createAt(t,e)}createPositionAfter(t){return fi._createAfter(t)}createPositionBefore(t){return fi._createBefore(t)}createRange(t,e){return new Ai(t,e)}createRangeOn(t){return Ai._createOn(t)}createRangeIn(t){return Ai._createIn(t)}createSelection(t,e,n){return new _i(t,e,n)}_disableRendering(t){this._renderingDisabled=t,0==t&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}Xt(aa,qt);class ca{constructor(t){this.parent=null,this._attrs=yo(t)}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new l.a("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new l.a("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),o=t.getAncestors(e);let i=0;for(;n[i]==o[i]&&n[i];)i++;return 0===i?null:n[i-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),o=Ao(e,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return e[o]<n[o]}}isAfter(t){return this!=t&&(this.root===t.root&&!this.isBefore(t))}hasAttribute(t){return this._attrs.has(t)}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const t={};return this._attrs.size&&(t.attributes=Array.from(this._attrs).reduce(((t,e)=>(t[e[0]]=e[1],t)),{})),t}is(t){return"node"===t||"model:node"===t}_clone(){return new ca(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=yo(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}class la extends ca{constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}is(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new la(this.data,this.getAttributes())}static fromJSON(t){return new la(t.data,t.attributes)}}class da{constructor(t,e,n){if(this.textNode=t,e<0||e>t.offsetSize)throw new l.a("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new l.a("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class ua{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((t,e)=>t+e.offsetSize),0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce(((t,e)=>t+e.offsetSize),0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new l.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t<e+n.offsetSize)return this.getNodeIndex(n);e+=n.offsetSize}if(e!=t)throw new l.a("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.length}_insertNodes(t,e){for(const t of e)if(!(t instanceof ca))throw new l.a("model-nodelist-insertnodes-not-node",this);this._nodes.splice(t,0,...e)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map((t=>t.toJSON()))}}class ha extends ca{constructor(t,e,n){super(e),this.name=t,this._children=new ua,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(t,e=null){return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={includeSelf:!1}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map((t=>t._clone(!0))):null;return new ha(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new la(t)];co(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new la(t):t instanceof da?new la(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}static fromJSON(t){let e=null;if(t.children){e=[];for(const n of t.children)n.name?e.push(ha.fromJSON(n)):e.push(la.fromJSON(n))}return new ha(t.name,t.attributes,e)}}class ka{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new l.a("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new l.a("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=ga._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}[Symbol.iterator](){return this}skip(t){let e,n,o,i;do{o=this.position,i=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this.position=o,this._visitedParent=i)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};const o=e.parent,i=ma(e,o),r=i||ba(e,o,i);if(r instanceof ha)return this.shallow?e.offset++:(e.path.push(0),this._visitedParent=r),this.position=e,pa("elementStart",r,t,e,1);if(r instanceof la){let o;if(this.singleCharacters)o=1;else{let t=r.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<t&&(t=this.boundaries.end.offset),o=t-e.offset}const i=e.offset-r.startOffset,s=new da(r,i,o);return e.offset+=o,this.position=e,pa("text",s,t,e,o)}return e.path.pop(),e.offset++,this.position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():pa("elementEnd",n,t,e)}_previous(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===e.offset)return{done:!0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0};const o=e.parent,i=ma(e,o),r=i||fa(e,o,i);if(r instanceof ha)return e.offset--,this.shallow?(this.position=e,pa("elementStart",r,t,e,1)):(e.path.push(r.maxOffset),this.position=e,this._visitedParent=r,this.ignoreElementEnd?this._previous():pa("elementEnd",r,t,e));if(r instanceof la){let o;if(this.singleCharacters)o=1;else{let t=r.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>t&&(t=this.boundaries.start.offset),o=e.offset-t}const i=e.offset-r.startOffset,s=new da(r,i-o,o);return e.offset-=o,this.position=e,pa("text",s,t,e,o)}return e.path.pop(),this.position=e,this._visitedParent=n.parent,pa("elementStart",n,t,e,1)}}function pa(t,e,n,o,i){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:o,length:i}}}class ga{constructor(t,e,n="toNone"){if(!t.is("element")&&!t.is("documentFragment"))throw new l.a("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new l.a("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e<this.path.length-1;e++)if(t=t.getChild(t.offsetToIndex(this.path[e])),!t)throw new l.a("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new l.a("model-position-path-incorrect",this,{position:this});return t}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return ma(this,this.parent)}get nodeAfter(){const t=this.parent;return ba(this,t,ma(this,t))}get nodeBefore(){const t=this.parent;return fa(this,t,ma(this,t))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(t){if(this.root!=t.root)return"different";const e=Ao(this.path,t.path);switch(e){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[e]<t.path[e]?"before":"after"}}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new ka(e);return n.skip(t),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const t=this.parent;return t.is("documentFragment")?[t]:t.getAncestors({includeSelf:!0})}findAncestor(t){const e=this.parent;return e.is("element")?e.findAncestor(t,{includeSelf:!0}):null}getCommonPath(t){if(this.root!=t.root)return[];const e=Ao(this.path,t.path),n="string"==typeof e?Math.min(this.path.length,t.path.length):e;return this.path.slice(0,n)}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let o=0;for(;e[o]==n[o]&&e[o];)o++;return 0===o?null:e[o-1]}getShiftedBy(t){const e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e}isAfter(t){return"after"==this.compareWith(t)}isBefore(t){return"before"==this.compareWith(t)}isEqual(t){return"same"==this.compareWith(t)}isTouching(t){let e=null,n=null;switch(this.compareWith(t)){case"same":return!0;case"before":e=ga._createAt(this),n=ga._createAt(t);break;case"after":e=ga._createAt(t),n=ga._createAt(this);break;default:return!1}let o=e.parent;for(;e.path.length+n.path.length;){if(e.isEqual(n))return!0;if(e.path.length>n.path.length){if(e.offset!==o.maxOffset)return!1;e.path=e.path.slice(0,-1),o=o.parent,e.offset++}else{if(0!==n.offset)return!1;n.path=n.path.slice(0,-1)}}}is(t){return"position"===t||"model:position"===t}hasSameParentAs(t){if(this.root!==t.root)return!1;return"same"==Ao(this.getParentPath(),t.getParentPath())}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=ga._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.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)?ga._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=ga._createAt(this);if(this.root!=t.root)return n;if("same"==Ao(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+e>this.offset)return null;n.offset-=e}}else if("prefix"==Ao(t.getParentPath(),this.getParentPath())){const o=t.path.length-1;if(t.offset<=this.path[o]){if(t.offset+e>this.path[o])return null;n.path[o]-=e}}return n}_getTransformedByInsertion(t,e){const n=ga._createAt(this);if(this.root!=t.root)return n;if("same"==Ao(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=e);else if("prefix"==Ao(t.getParentPath(),this.getParentPath())){const o=t.path.length-1;t.offset<=this.path[o]&&(n.path[o]+=e)}return n}_getTransformedByMove(t,e,n){if(e=e._getTransformedByDeletion(t,n),t.isEqual(e))return ga._createAt(this);const o=this._getTransformedByDeletion(t,n);return null===o||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,e):o._getTransformedByInsertion(e,n)}_getCombined(t,e){const n=t.path.length-1,o=ga._createAt(e);return o.stickiness=this.stickiness,o.offset=o.offset+this.path[n]-t.offset,o.path=[...o.path,...this.path.slice(n+1)],o}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(t,e,n="toNone"){if(t instanceof ga)return new ga(t.root,t.path,t.stickiness);{const o=t;if("end"==e)e=o.maxOffset;else{if("before"==e)return this._createBefore(o,n);if("after"==e)return this._createAfter(o,n);if(0!==e&&!e)throw new l.a("model-createpositionat-offset-required",[this,t])}if(!o.is("element")&&!o.is("documentFragment"))throw new l.a("model-position-parent-incorrect",[this,t]);const i=o.getPath();return i.push(e),new this(o.root,i,n)}}static _createAfter(t,e){if(!t.parent)throw new l.a("model-position-after-root",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e)}static _createBefore(t,e){if(!t.parent)throw new l.a("model-position-before-root",t,{root:t});return this._createAt(t.parent,t.startOffset,e)}static fromJSON(t,e){if("$graveyard"===t.root){const n=new ga(e.graveyard,t.path);return n.stickiness=t.stickiness,n}if(!e.getRoot(t.root))throw new l.a("model-position-fromjson-no-root",e,{rootName:t.root});return new ga(e.getRoot(t.root),t.path,t.stickiness)}}function ma(t,e){const n=e.getChild(e.offsetToIndex(t.offset));return n&&n.is("$text")&&n.startOffset<t.offset?n:null}function ba(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset))}function fa(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset)-1)}class Aa{constructor(t,e=null){this.start=ga._createAt(t),this.end=e?ga._createAt(e):ga._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new ka({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==Ao(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),o=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&o}containsItem(t){const e=ga._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}is(t){return"range"===t||"model:range"===t}isEqual(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Aa(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Aa(t.end,this.end))):e.push(new Aa(this.start,this.end)),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new Aa(e,n)}return null}getJoined(t,e=!1){let n=this.isIntersecting(t);if(n||(n=this.start.isBefore(t.start)?e?this.end.isTouching(t.start):this.end.isEqual(t.start):e?t.end.isTouching(this.start):t.end.isEqual(this.start)),!n)return null;let o=this.start,i=this.end;return t.start.isBefore(o)&&(o=t.start),t.end.isAfter(i)&&(i=t.end),new Aa(o,i)}getMinimalFlatRanges(){const t=[],e=this.start.getCommonPath(this.end).length,n=ga._createAt(this.start);let o=n.parent;for(;n.path.length>e+1;){const e=o.maxOffset-n.offset;0!==e&&t.push(new Aa(n,n.getShiftedBy(e))),n.path=n.path.slice(0,-1),n.offset++,o=o.parent}for(;n.path.length<=this.end.path.length;){const e=this.end.path[n.path.length-1],o=e-n.offset;0!==o&&t.push(new Aa(n,n.getShiftedBy(o))),n.offset=e,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new ka(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new ka(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new ka(t);yield e.position;for(const t of e)yield t.nextPosition}getTransformedByOperation(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 Aa(this.start,this.end)]}getTransformedByOperations(t){const e=[new Aa(this.start,this.end)];for(const n of t)for(let t=0;t<e.length;t++){const o=e[t].getTransformedByOperation(n);e.splice(t,1,...o),t+=o.length-1}for(let t=0;t<e.length;t++){const n=e[t];for(let o=t+1;o<e.length;o++){const t=e[o];(n.containsRange(t)||t.containsRange(n)||n.isEqual(t))&&e.splice(o,1)}}return e}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const t=this.start.nodeAfter,e=this.end.nodeBefore;return t&&t.is("element")&&t===e?t:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(t,e=!1){return this._getTransformedByInsertion(t.position,t.howMany,e)}_getTransformedByMoveOperation(t,e=!1){const n=t.sourcePosition,o=t.howMany,i=t.targetPosition;return this._getTransformedByMove(n,i,o,e)}_getTransformedBySplitOperation(t){const e=this.start._getTransformedBySplitOperation(t);let n=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(n=this.end.getShiftedBy(1)),e.root!=n.root&&(n=this.end.getShiftedBy(-1)),new Aa(e,n)}_getTransformedByMergeOperation(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new Aa(this.start);let e=this.start._getTransformedByMergeOperation(t),n=this.end._getTransformedByMergeOperation(t);return e.root!=n.root&&(n=this.end.getShiftedBy(-1)),e.isAfter(n)?(t.sourcePosition.isBefore(t.targetPosition)?(e=ga._createAt(n),e.offset=0):(t.deletionPosition.isEqual(e)||(n=t.deletionPosition),e=t.targetPosition),new Aa(e,n)):new Aa(e,n)}_getTransformedByInsertion(t,e,n=!1){if(n&&this.containsPosition(t))return[new Aa(this.start,t),new Aa(t.getShiftedBy(e),this.end._getTransformedByInsertion(t,e))];{const n=new Aa(this.start,this.end);return n.start=n.start._getTransformedByInsertion(t,e),n.end=n.end._getTransformedByInsertion(t,e),[n]}}_getTransformedByMove(t,e,n,o=!1){if(this.isCollapsed){const o=this.start._getTransformedByMove(t,e,n);return[new Aa(o)]}const i=Aa._createFromPositionAndShift(t,n),r=e._getTransformedByDeletion(t,n);if(this.containsPosition(e)&&!o&&(i.containsPosition(this.start)||i.containsPosition(this.end))){const o=this.start._getTransformedByMove(t,e,n),i=this.end._getTransformedByMove(t,e,n);return[new Aa(o,i)]}let s;const a=this.getDifference(i);let c=null;const l=this.getIntersection(i);if(1==a.length?c=new Aa(a[0].start._getTransformedByDeletion(t,n),a[0].end._getTransformedByDeletion(t,n)):2==a.length&&(c=new Aa(this.start,this.end._getTransformedByDeletion(t,n))),s=c?c._getTransformedByInsertion(r,n,null!==l||o):[],l){const t=new Aa(l.start._getCombined(i.start,r),l.end._getCombined(i.start,r));2==s.length?s.splice(1,0,t):s.push(t)}return s}_getTransformedByDeletion(t,e){let n=this.start._getTransformedByDeletion(t,e),o=this.end._getTransformedByDeletion(t,e);return null==n&&null==o?null:(null==n&&(n=t),null==o&&(o=t),new Aa(n,o))}static _createFromPositionAndShift(t,e){const n=t,o=t.getShiftedBy(e);return e>0?new this(n,o):new this(o,n)}static _createIn(t){return new this(ga._createAt(t,0),ga._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(ga._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(0===t.length)throw new l.a("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();const e=t[0];t.sort(((t,e)=>t.start.isAfter(e.start)?1:-1));const n=t.indexOf(e),o=new this(e.start,e.end);if(n>0)for(let e=n-1;t[e].end.isEqual(o.start);e++)o.start=ga._createAt(t[e].start);for(let e=n+1;e<t.length&&t[e].start.isEqual(o.end);e++)o.end=ga._createAt(t[e].end);return o}static fromJSON(t,e){return new this(ga.fromJSON(t.start,e),ga.fromJSON(t.end,e))}}class Ca{constructor(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",((t,e)=>{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);e.viewPosition=this.findPositionIn(n,e.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),o=this._viewToModelMapping.get(n),i=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=ga._createAt(o,i)}),{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t){const e=this.toModelElement(t);if(this._viewToModelMapping.delete(t),this._elementToMarkerNames.has(t))for(const e of this._elementToMarkerNames.get(t))this._unboundMarkerNames.add(e);this._modelToViewMapping.get(e)==t&&this._modelToViewMapping.delete(e)}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t);const o=this._elementToMarkerNames.get(t)||new Set;o.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,o)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));const o=this._elementToMarkerNames.get(t);o&&(o.delete(e),0==o.size&&this._elementToMarkerNames.delete(t))}flushUnboundMarkerNames(){const t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new Aa(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new Ai(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={isPhantom:!1}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const t of e)if(t.is("attributeElement"))for(const e of t.getElementsWithSameId())n.add(e);else n.add(t);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t){return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t)}if(t.is("$text"))return e;let o=0;for(let n=0;n<e;n++)o+=this.getModelLength(t.getChild(n));return o}getModelLength(t){if(this._viewToModelLengthCallbacks.get(t.name)){return this._viewToModelLengthCallbacks.get(t.name)(t)}if(this._viewToModelMapping.has(t))return 1;if(t.is("$text"))return t.data.length;if(t.is("uiElement"))return 0;{let e=0;for(const n of t.getChildren())e+=this.getModelLength(n);return e}}findPositionIn(t,e){let n,o=0,i=0,r=0;if(t.is("$text"))return new fi(t,e);for(;i<e;)n=t.getChild(r),o=this.getModelLength(n),i+=o,r++;return i==e?this._moveViewPositionToTextNode(new fi(t,r)):this.findPositionIn(n,e-(i-o))}_moveViewPositionToTextNode(t){const e=t.nodeBefore,n=t.nodeAfter;return e instanceof _o?new fi(e,e.data.length):n instanceof _o?new fi(n,0):t}}Xt(Ca,h);class wa{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(t,e){e=_a(e),t instanceof da&&(t=this._getSymbolForTextProxy(t)),this._consumable.has(t)||this._consumable.set(t,new Map),this._consumable.get(t).set(e,!0)}consume(t,e){return e=_a(e),t instanceof da&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}test(t,e){e=_a(e),t instanceof da&&(t=this._getSymbolForTextProxy(t));const n=this._consumable.get(t);if(void 0===n)return null;const o=n.get(e);return void 0===o?null:o}revert(t,e){e=_a(e),t instanceof da&&(t=this._getSymbolForTextProxy(t));const n=this.test(t,e);return!1===n?(this._consumable.get(t).set(e,!0),!0):!0!==n&&null}_getSymbolForTextProxy(t){let e=null;const n=this._textProxyRegistry.get(t.startOffset);if(n){const o=n.get(t.endOffset);o&&(e=o.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t.startOffset,t.endOffset,t.parent)),e}_addSymbolForTextProxy(t,e,n){const o=Symbol("textProxySymbol");let i,r;return i=this._textProxyRegistry.get(t),i||(i=new Map,this._textProxyRegistry.set(t,i)),r=i.get(e),r||(r=new Map,i.set(e,r)),r.set(n,o),o}}function _a(t){const e=t.split(":");return e.length>1?e[0]+":"+e[1]:e[0]}class va{constructor(t){this.conversionApi=Object.assign({dispatcher:this},t),this._reconversionEventsMapping=new Map}convertChanges(t,e,n){for(const e of t.getMarkersToRemove())this.convertMarkerRemove(e.name,e.range,n);const o=this._mapChangesWithAutomaticReconversion(t);for(const t of o)"insert"===t.type?this.convertInsert(Aa._createFromPositionAndShift(t.position,t.length),n):"remove"===t.type?this.convertRemove(t.position,t.length,t.name,n):"reconvert"===t.type?this.reconvertElement(t.element,n):this.convertAttribute(t.range,t.attributeKey,t.attributeOldValue,t.attributeNewValue,n);for(const t of this.conversionApi.mapper.flushUnboundMarkerNames()){const o=e.get(t).getRange();this.convertMarkerRemove(t,o,n),this.convertMarkerAdd(t,o,n)}for(const e of t.getMarkersToAdd())this.convertMarkerAdd(e.name,e.range,n)}convertInsert(t,e){this.conversionApi.writer=e,this.conversionApi.consumable=this._createInsertConsumable(t);for(const e of Array.from(t).map(xa))this._convertInsertWithAttributes(e);this._clearConversionApi()}convertRemove(t,e,n,o){this.conversionApi.writer=o,this.fire("remove:"+n,{position:t,length:e},this.conversionApi),this._clearConversionApi()}convertAttribute(t,e,n,o,i){this.conversionApi.writer=i,this.conversionApi.consumable=this._createConsumableForRange(t,`attribute:${e}`);for(const i of t){const t={item:i.item,range:Aa._createFromPositionAndShift(i.previousPosition,i.length),attributeKey:e,attributeOldValue:n,attributeNewValue:o};this._testAndFire(`attribute:${e}`,t)}this._clearConversionApi()}reconvertElement(t,e){const n=Aa._createOn(t);this.conversionApi.writer=e,this.conversionApi.consumable=this._createInsertConsumable(n);const o=this.conversionApi.mapper,i=o.toViewElement(t);e.remove(i),this._convertInsertWithAttributes({item:t,range:n});const r=o.toViewElement(t);for(const n of Aa._createIn(t)){const{item:t}=n,i=Ea(t,o);i?i.root!==r.root&&e.move(e.createRangeOn(i),o.toViewPosition(ga._createBefore(t))):this._convertInsertWithAttributes(xa(n))}o.unbindViewElement(i),this._clearConversionApi()}convertSelection(t,e,n){const o=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(t,o),this.fire("selection",{selection:t},this.conversionApi),t.isCollapsed){for(const e of o){const n=e.getRange();if(!ya(t.getFirstPosition(),e,this.conversionApi.mapper))continue;const o={item:t,markerName:e.name,markerRange:n};this.conversionApi.consumable.test(t,"addMarker:"+e.name)&&this.fire("addMarker:"+e.name,o,this.conversionApi)}for(const e of t.getAttributeKeys()){const n={item:t,range:t.getFirstRange(),attributeKey:e,attributeOldValue:null,attributeNewValue:t.getAttribute(e)};this.conversionApi.consumable.test(t,"attribute:"+n.attributeKey)&&this.fire("attribute:"+n.attributeKey+":$text",n,this.conversionApi)}this._clearConversionApi()}}convertMarkerAdd(t,e,n){if("$graveyard"==e.root.rootName)return;this.conversionApi.writer=n;const o="addMarker:"+t,i=new wa;if(i.add(e,o),this.conversionApi.consumable=i,this.fire(o,{markerName:t,markerRange:e},this.conversionApi),i.test(e,o)){this.conversionApi.consumable=this._createConsumableForRange(e,o);for(const n of e.getItems()){if(!this.conversionApi.consumable.test(n,o))continue;const i={item:n,range:Aa._createOn(n),markerName:t,markerRange:e};this.fire(o,i,this.conversionApi)}this._clearConversionApi()}}convertMarkerRemove(t,e,n){"$graveyard"!=e.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+t,{markerName:t,markerRange:e},this.conversionApi),this._clearConversionApi())}_mapReconversionTriggerEvent(t,e){this._reconversionEventsMapping.set(e,t)}_createInsertConsumable(t){const e=new wa;for(const n of t){const t=n.item;e.add(t,"insert");for(const n of t.getAttributeKeys())e.add(t,"attribute:"+n)}return e}_createConsumableForRange(t,e){const n=new wa;for(const o of t.getItems())n.add(o,e);return n}_createSelectionConsumable(t,e){const n=new wa;n.add(t,"selection");for(const o of e)n.add(t,"addMarker:"+o.name);for(const e of t.getAttributeKeys())n.add(t,"attribute:"+e);return n}_testAndFire(t,e){this.conversionApi.consumable.test(e.item,t)&&this.fire(function(t,e){const n=e.item.name||"$text";return`${t}:${n}`}(t,e),e,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}_convertInsertWithAttributes(t){this._testAndFire("insert",t);for(const e of t.item.getAttributeKeys())t.attributeKey=e,t.attributeOldValue=null,t.attributeNewValue=t.item.getAttribute(e),this._testAndFire(`attribute:${e}`,t)}_mapChangesWithAutomaticReconversion(t){const e=new Set,n=[];for(const o of t.getChanges()){const t=o.position||o.range.start,i=t.parent;if(ma(t,i)){n.push(o);continue}const r="attribute"===o.type?ba(t,i,null):i;if(r.is("$text")){n.push(o);continue}let s;if(s="attribute"===o.type?`attribute:${o.attributeKey}:${r.name}`:`${o.type}:${o.name}`,this._isReconvertTriggerEvent(s,r.name)){if(e.has(r))continue;e.add(r),n.push({type:"reconvert",element:r})}else n.push(o)}return n}_isReconvertTriggerEvent(t,e){return this._reconversionEventsMapping.get(t)===e}}function ya(t,e,n){const o=e.getRange(),i=Array.from(t.getAncestors());i.shift(),i.reverse();return!i.some((t=>{if(o.containsItem(t)){return!!n.toViewElement(t).getCustomProperty("addHighlight")}}))}function xa(t){return{item:t.item,range:Aa._createFromPositionAndShift(t.previousPosition,t.length)}}function Ea(t,e){if(t.is("textProxy")){const n=e.toViewPosition(ga._createBefore(t)).parent;return n.is("$text")?n:null}return e.toViewElement(t)}Xt(va,h);class Ia{constructor(t,e,n){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,e,n)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const o of t._ranges)if(e.isEqual(o)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new Aa(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?new Aa(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new Aa(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(t,e,n){if(null===t)this._setRanges([]);else if(t instanceof Ia)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof Aa)this._setRanges([t],!!e&&!!e.backward);else if(t instanceof ga)this._setRanges([new Aa(t)]);else if(t instanceof ca){const o=!!n&&!!n.backward;let i;if("in"==e)i=Aa._createIn(t);else if("on"==e)i=Aa._createOn(t);else{if(void 0===e)throw new l.a("model-selection-setto-required-second-parameter",[this,t]);i=new Aa(ga._createAt(t,e))}this._setRanges([i],o)}else{if(!co(t))throw new l.a("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,e&&!!e.backward)}}_setRanges(t,e=!1){const n=(t=Array.from(t)).some((e=>{if(!(e instanceof Aa))throw new l.a("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every((t=>!t.isEqual(e)))}));if(t.length!==this._ranges.length||n){this._removeAllRanges();for(const e of t)this._pushRange(e);this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0})}}setFocus(t,e){if(null===this.anchor)throw new l.a("model-selection-setfocus-no-ranges",[this,t]);const n=ga._createAt(t,e);if("same"==n.compareWith(this.focus))return;const o=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(o)?(this._pushRange(new Aa(n,o)),this._lastRangeBackward=!0):(this._pushRange(new Aa(o,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(t){return"selection"===t||"model:selection"===t}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=Sa(e.start,t);n&&Ta(n,e)&&(yield n);for(const n of e.getWalker()){const o=n.item;"elementEnd"==n.type&&Ba(o,t,e)&&(yield o)}const o=Sa(e.end,t);o&&!e.end.isTouching(ga._createAt(o,0))&&Ta(o,e)&&(yield o)}}containsEntireContent(t=this.anchor.root){const e=ga._createAt(t,0),n=ga._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new Aa(t.start,t.end))}_checkRange(t){for(let e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new l.a("model-selection-range-intersects",[this,t],{addedRange:t,intersectingRange:this._ranges[e]})}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function Da(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&t.parent)}function Ba(t,e,n){return Da(t,e)&&Ta(t,n)}function Sa(t,e){const n=t.parent.root.document.model.schema,o=t.parent.getAncestors({parentFirst:!0,includeSelf:!0});let i=!1;const r=o.find((t=>!i&&(i=n.isLimit(t),!i&&Da(t,e))));return o.forEach((t=>e.add(t))),r}function Ta(t,e){const n=function(t){const e=t.root.document.model.schema;let n=t.parent;for(;n;){if(e.isBlock(n))return n;n=n.parent}}(t);if(!n)return!0;return!e.containsRange(Aa._createOn(n),!0)}Xt(Ia,h);class Ma extends Aa{constructor(t,e){super(t,e),za.call(this)}detach(){this.stopListening()}is(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t}toRange(){return new Aa(this.start,this.end)}static fromRange(t){return new Ma(t.start,t.end)}}function za(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&Na.call(this,n)}),{priority:"low"})}function Na(t){const e=this.getTransformedByOperation(t),n=Aa._createFromRanges(e),o=!n.isEqual(this),i=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}(this,t);let r=null;if(o){"$graveyard"==n.root.rootName&&(r="remove"==t.type?t.sourcePosition:t.deletionPosition);const e=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",e,{deletionPosition:r})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:r})}Xt(Ma,h);const Pa="selection:";class La{constructor(t){this._selection=new Oa(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}is(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(t,e,n){this._selection.setTo(t,e,n)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return Pa+t}static _isStoreAttributeKey(t){return t.startsWith(Pa)}}Xt(La,h);class Oa extends Ia{constructor(t){super(),this.markers=new lo({idProperty:"name"}),this._model=t.model,this._document=t,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{for(const t of this.getRanges())if(!this._document._validateSelectionRange(t))throw new l.a("document-selection-wrong-position",this,{range:t})})),this.listenTo(this._model.markers,"update",((t,e,n,o)=>{this._updateMarker(e,o)})),this.listenTo(this._document,"change",((t,e)=>{!function(t,e){const n=t.document.differ;for(const o of n.getChanges()){if("insert"!=o.type)continue;const n=o.position.parent;o.length===n.maxOffset&&t.enqueueChange(e,(t=>{const e=Array.from(n.getAttributeKeys()).filter((t=>t.startsWith(Pa)));for(const o of e)t.removeAttribute(o,n)}))}}(this._model,e)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t<this._ranges.length;t++)this._ranges[t].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(t,e,n){super.setTo(t,e,n),this._updateAttributes(!0),this._updateMarkers()}setFocus(t,e){super.setFocus(t,e),this._updateAttributes(!0),this._updateMarkers()}setAttribute(t,e){if(this._setAttribute(t,e)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}removeAttribute(t){if(this._removeAttribute(t)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}overrideGravity(){const t=s();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new l.a("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(t){this._observedMarkers.add(t),this._updateMarkers()}_popRange(){this._ranges.pop().detach()}_pushRange(t){const e=this._prepareRange(t);e&&this._ranges.push(e)}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return;const e=Ma.fromRange(t);return e.on("change:range",((t,n,o)=>{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=o.deletionPosition;const t=this._ranges.indexOf(e);this._ranges.splice(t,1),e.detach()}})),e}_updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const e of this._model.markers){const n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;const o=e.getRange();for(const n of this.getRanges())o.containsRange(n,!n.isCollapsed)&&t.push(e)}const n=Array.from(this.markers);for(const n of t)this.markers.has(n)||(this.markers.add(n),e=!0);for(const n of Array.from(this.markers))t.includes(n)||(this.markers.remove(n),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let o=!1;const i=Array.from(this.markers),r=this.markers.has(t);if(e){let n=!1;for(const t of this.getRanges())if(e.containsRange(t,!t.isCollapsed)){n=!0;break}n&&!r?(this.markers.add(t),o=!0):!n&&r&&(this.markers.remove(t),o=!0)}else r&&(this.markers.remove(t),o=!0);o&&this.fire("change:marker",{oldMarkers:i,directChange:!1})}_updateAttributes(t){const e=yo(this._getSurroundingAttributes()),n=yo(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[t,e]of this._attributePriority)"low"==e&&(this._attrs.delete(t),this._attributePriority.delete(t));this._setAttributesTo(e);const o=[];for(const[t,e]of this.getAttributes())n.has(t)&&n.get(t)===e||o.push(t);for(const[t]of n)this.hasAttribute(t)||o.push(t);o.length>0&&this.fire("change:attribute",{attributeKeys:o,directChange:!1})}_setAttribute(t,e,n=!0){const o=n?"normal":"low";if("low"==o&&"normal"==this._attributePriority.get(t))return!1;return super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,o),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(t))&&(this._attributePriority.set(t,n),!!super.hasAttribute(t)&&(this._attrs.delete(t),!0))}_setAttributesTo(t){const e=new Set;for(const[e,n]of this.getAttributes())t.get(e)!==n&&this._removeAttribute(e,!1);for(const[n,o]of t){this._setAttribute(n,o,!1)&&e.add(n)}return e}*_getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())if(e.startsWith(Pa)){const n=e.substr(Pa.length);yield[n,t.getAttribute(e)]}}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;let n=null;if(this.isCollapsed){const o=t.textNode?t.textNode:t.nodeBefore,i=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=Ra(o)),n||(n=Ra(i)),!this.isGravityOverridden&&!n){let t=o;for(;t&&!e.isInline(t)&&!n;)t=t.previousSibling,n=Ra(t)}if(!n){let t=i;for(;t&&!e.isInline(t)&&!n;)t=t.nextSibling,n=Ra(t)}n||(n=this._getStoredAttributes())}else{const t=this.getFirstRange();for(const o of t){if(o.item.is("element")&&e.isObject(o.item))break;if("text"==o.type){n=o.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function Ra(t){return t instanceof da||t instanceof la?t.getAttributes():null}class Fa{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}var Va=function(t){return no(t,5)};class ja extends Fa{elementToElement(t){return this.add(function(t){return(t=Va(t)).view=Ua(t.view,"container"),e=>{var n;if(e.on("insert:"+t.model,(n=t.view,(t,e,o)=>{const i=n(e.item,o);if(!i)return;if(!o.consumable.consume(e.item,"insert"))return;const r=o.mapper.toViewPosition(e.range.start);o.mapper.bindElements(e.item,i),o.writer.insert(r,i)}),{priority:t.converterPriority||"normal"}),t.triggerBy){if(t.triggerBy.attributes)for(const n of t.triggerBy.attributes)e._mapReconversionTriggerEvent(t.model,`attribute:${n}:${t.model}`);if(t.triggerBy.children)for(const n of t.triggerBy.children)e._mapReconversionTriggerEvent(t.model,`insert:${n}`),e._mapReconversionTriggerEvent(t.model,`remove:${n}`)}}}(t))}attributeToElement(t){return this.add(function(t){t=Va(t);let e="attribute:"+(t.model.key?t.model.key:t.model);t.model.name&&(e+=":"+t.model.name);if(t.model.values)for(const e of t.model.values)t.view[e]=Ua(t.view[e],"attribute");else t.view=Ua(t.view,"attribute");const n=qa(t);return o=>{o.on(e,function(t){return(e,n,o)=>{const i=t(n.attributeOldValue,o),r=t(n.attributeNewValue,o);if(!i&&!r)return;if(!o.consumable.consume(n.item,e.name))return;const s=o.writer,a=s.document.selection;if(n.item instanceof Ia||n.item instanceof La)s.wrap(a.getFirstRange(),r);else{let t=o.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(t=s.unwrap(t,i)),null!==n.attributeNewValue&&r&&s.wrap(t,r)}}}(n),{priority:t.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=Va(t);let e="attribute:"+(t.model.key?t.model.key:t.model);t.model.name&&(e+=":"+t.model.name);if(t.model.values)for(const e of t.model.values)t.view[e]=Ga(t.view[e]);else t.view=Ga(t.view);const n=qa(t);return o=>{var i;o.on(e,(i=n,(t,e,n)=>{const o=i(e.attributeOldValue,n),r=i(e.attributeNewValue,n);if(!o&&!r)return;if(!n.consumable.consume(e.item,t.name))return;const s=n.mapper.toViewElement(e.item),a=n.writer;if(!s)throw new l.a("conversion-attribute-to-attribute-on-text",[e,n]);if(null!==e.attributeOldValue&&o)if("class"==o.key){const t=ho(o.value);for(const e of t)a.removeClass(e,s)}else if("style"==o.key){const t=Object.keys(o.value);for(const e of t)a.removeStyle(e,s)}else a.removeAttribute(o.key,s);if(null!==e.attributeNewValue&&r)if("class"==r.key){const t=ho(r.value);for(const e of t)a.addClass(e,s)}else if("style"==r.key){const t=Object.keys(r.value);for(const e of t)a.setStyle(e,r.value[e],s)}else a.setAttribute(r.key,r.value,s)}),{priority:t.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(t){return(t=Va(t)).view=Ua(t.view,"ui"),e=>{var n;e.on("addMarker:"+t.model,(n=t.view,(t,e,o)=>{e.isOpening=!0;const i=n(e,o);e.isOpening=!1;const r=n(e,o);if(!i||!r)return;const s=e.markerRange;if(s.isCollapsed&&!o.consumable.consume(s,t.name))return;for(const e of s)if(!o.consumable.consume(e.item,t.name))return;const a=o.mapper,c=o.writer;c.insert(a.toViewPosition(s.start),i),o.mapper.bindElementToMarker(i,e.markerName),s.isCollapsed||(c.insert(a.toViewPosition(s.end),r),o.mapper.bindElementToMarker(r,e.markerName)),t.stop()}),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,(t.view,(t,e,n)=>{const o=n.mapper.markerNameToElements(e.markerName);if(o){for(const t of o)n.mapper.unbindElementFromMarkerName(t,e.markerName),n.writer.clear(n.writer.createRangeOn(t),t);n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}),{priority:t.converterPriority||"normal"})}}(t))}markerToHighlight(t){return this.add(function(t){return e=>{var n;e.on("addMarker:"+t.model,(n=t.view,(t,e,o)=>{if(!e.item)return;if(!(e.item instanceof Ia||e.item instanceof La||e.item.is("$textProxy")))return;const i=Wa(n,e,o);if(!i)return;if(!o.consumable.consume(e.item,t.name))return;const r=o.writer,s=Ja(r,i),a=r.document.selection;if(e.item instanceof Ia||e.item instanceof La)r.wrap(a.getFirstRange(),s,a);else{const t=o.mapper.toViewRange(e.range),n=r.wrap(t,s);for(const t of n.getItems())if(t.is("attributeElement")&&t.isSimilar(s)){o.mapper.bindElementToMarker(t,e.markerName);break}}}),{priority:t.converterPriority||"normal"}),e.on("addMarker:"+t.model,function(t){return(e,n,o)=>{if(!n.item)return;if(!(n.item instanceof ha))return;const i=Wa(t,n,o);if(!i)return;if(!o.consumable.test(n.item,e.name))return;const r=o.mapper.toViewElement(n.item);if(r&&r.getCustomProperty("addHighlight")){o.consumable.consume(n.item,e.name);for(const t of Aa._createIn(n.item))o.consumable.consume(t.item,e.name);r.getCustomProperty("addHighlight")(r,i,o.writer),o.mapper.bindElementToMarker(r,n.markerName)}}}(t.view),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,function(t){return(e,n,o)=>{if(n.markerRange.isCollapsed)return;const i=Wa(t,n,o);if(!i)return;const r=Ja(o.writer,i),s=o.mapper.markerNameToElements(n.markerName);if(s){for(const t of s)o.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("attributeElement")?o.writer.unwrap(o.writer.createRangeOn(t),r):t.getCustomProperty("removeHighlight")(t,i.id,o.writer);o.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}markerToData(t){return this.add(function(t){const e=(t=Va(t)).model;t.view||(t.view=n=>({group:e,name:n.substr(t.model.length+1)}));return n=>{var o;n.on("addMarker:"+e,(o=t.view,(t,e,n)=>{const i=o(e.markerName,n);if(!i)return;const r=e.markerRange;n.consumable.consume(r,t.name)&&(Ha(r,!1,n,e,i),Ha(r,!0,n,e,i),t.stop())}),{priority:t.converterPriority||"normal"}),n.on("removeMarker:"+e,function(t){return(e,n,o)=>{const i=t(n.markerName,o);if(!i)return;const r=o.mapper.markerNameToElements(n.markerName);if(r){for(const t of r)o.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("containerElement")?(s(`data-${i.group}-start-before`,t),s(`data-${i.group}-start-after`,t),s(`data-${i.group}-end-before`,t),s(`data-${i.group}-end-after`,t)):o.writer.clear(o.writer.createRangeOn(t),t);o.writer.clearClonedElementsGroup(n.markerName),e.stop()}function s(t,e){if(e.hasAttribute(t)){const n=new Set(e.getAttribute(t).split(","));n.delete(i.name),0==n.size?o.writer.removeAttribute(t,e):o.writer.setAttribute(t,Array.from(n).join(","),e)}}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}}function Ja(t,e){const n=t.createAttributeElement("span",e.attributes);return e.classes&&n._addClass(e.classes),e.priority&&(n._priority=e.priority),n._id=e.id,n}function Ha(t,e,n,o,i){const r=e?t.start:t.end;if(n.schema.checkChild(r,"$text")){!function(t,e,n,o,i){const r=`${i.group}-${e?"start":"end"}`,s=i.name?{name:i.name}:null,a=n.writer.createUIElement(r,s);n.writer.insert(t,a),n.mapper.bindElementToMarker(a,o.markerName)}(n.mapper.toViewPosition(r),e,n,o,i)}else{let t,s;e&&r.nodeAfter||!e&&!r.nodeBefore?(t=r.nodeAfter,s=!0):(t=r.nodeBefore,s=!1);!function(t,e,n,o,i,r){const s=`data-${r.group}-${e?"start":"end"}-${n?"before":"after"}`,a=t.hasAttribute(s)?t.getAttribute(s).split(","):[];a.unshift(r.name),o.writer.setAttribute(s,a.join(","),t),o.mapper.bindElementToMarker(t,i.markerName)}(n.mapper.toViewElement(t),e,s,n,o,i)}}function Ua(t,e){return"function"==typeof t?t:(n,o)=>function(t,e,n){"string"==typeof t&&(t={name:t});let o;const i=e.writer,r=Object.assign({},t.attributes);if("container"==n)o=i.createContainerElement(t.name,r);else if("attribute"==n){const e={priority:t.priority||Mi.DEFAULT_PRIORITY};o=i.createAttributeElement(t.name,r,e)}else o=i.createUIElement(t.name,r);if(t.styles){const e=Object.keys(t.styles);for(const n of e)i.setStyle(n,t.styles[n],o)}if(t.classes){const e=t.classes;if("string"==typeof e)i.addClass(e,o);else for(const t of e)i.addClass(t,o)}return o}(t,o,e)}function qa(t){return t.model.values?(e,n)=>{const o=t.view[e];return o?o(e,n):null}:t.view}function Ga(t){return"string"==typeof t?e=>({key:t,value:e}):"object"==typeof t?t.value?()=>t:e=>({key:t.key,value:e}):t}function Wa(t,e,n){const o="function"==typeof t?t(e,n):t;return o?(o.priority||(o.priority=10),o.id||(o.id=e.markerName),o):null}function Ka(t){const{schema:e,document:n}=t.model;for(const o of n.getRootNames()){const i=n.getRoot(o);if(i.isEmpty&&!e.checkChild(i,"$text")&&e.checkChild(i,"paragraph"))return t.insertElement("paragraph",i),!0}return!1}function Ya(t,e,n){const o=n.createContext(t);return!!n.checkChild(o,"paragraph")&&!!n.checkChild(o.push("paragraph"),e)}function Qa(t,e){const n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0)}class Xa extends Fa{elementToElement(t){return this.add(Za(t))}elementToAttribute(t){return this.add(function(t){ec(t=Va(t));const e=nc(t,!1),n=$a(t.view),o=n?"element:"+n:"element";return n=>{n.on(o,e,{priority:t.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=Va(t);let e=null;("string"==typeof t.view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});const e=t.view.key;let n;if("class"==e||"style"==e){n={["class"==e?"classes":"styles"]:t.view.value}}else{n={attributes:{[e]:void 0===t.view.value?/[\s\S]*/:t.view.value}}}t.view.name&&(n.name=t.view.name);return t.view=n,e}(t));ec(t,e);const n=nc(t,!0);return e=>{e.on("element",n,{priority:t.converterPriority||"low"})}}(t))}elementToMarker(t){return Object(l.b)("upcast-helpers-element-to-marker-deprecated"),this.add(function(t){return function(t){const e=t.model;t.model=(t,n)=>{const o="string"==typeof e?e:e(t,n);return n.writer.createElement("$marker",{"data-name":o})}}(t=Va(t)),Za(t)}(t))}dataToMarker(t){return this.add(function(t){(t=Va(t)).model||(t.model=e=>e?t.view+":"+e:t.view);const e=tc(oc(t,"start")),n=tc(oc(t,"end"));return o=>{o.on("element:"+t.view+"-start",e,{priority:t.converterPriority||"normal"}),o.on("element:"+t.view+"-end",n,{priority:t.converterPriority||"normal"});const i=a.get("low"),r=a.get("highest"),s=a.get(t.converterPriority)/r;o.on("element",function(t){return(e,n,o)=>{const i=`data-${t.view}`;function r(e,i){for(const r of i){const i=t.model(r,o),s=o.writer.createElement("$marker",{"data-name":i});o.writer.insert(s,e),n.modelCursor.isEqual(e)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(e,1),n.modelRange=n.modelRange._getTransformedByInsertion(e,1)[0]}}n.modelRange||(n=Object.assign(n,o.convertChildren(n.viewItem,n.modelCursor))),o.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(","))}}(t),{priority:i+s})}}(t))}}function Za(t){const e=tc(t=Va(t)),n=$a(t.view),o=n?"element:"+n:"element";return n=>{n.on(o,e,{priority:t.converterPriority||"normal"})}}function $a(t){return"string"==typeof t?t:"object"==typeof t&&"string"==typeof t.name?t.name:null}function tc(t){const e=new xo(t.view);return(n,o,i)=>{const r=e.match(o.viewItem);if(!r)return;const s=r.match;if(s.name=!0,!i.consumable.test(o.viewItem,s))return;const a=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t)}(t.model,o.viewItem,i);a&&i.safeInsert(a,o.modelCursor)&&(i.consumable.consume(o.viewItem,s),i.convertChildren(o.viewItem,a),i.updateConversionResult(a,o))}}function ec(t,e=null){const n=null===e||(t=>t.getAttribute(e)),o="object"!=typeof t.model?t.model:t.model.key,i="object"!=typeof t.model||void 0===t.model.value?n:t.model.value;t.model={key:o,value:i}}function nc(t,e){const n=new xo(t.view);return(o,i,r)=>{const s=n.match(i.viewItem);if(!s)return;const a=t.model.key,c="function"==typeof t.model.value?t.model.value(i.viewItem,r):t.model.value;if(null===c)return;if(!function(t,e){const n="function"==typeof t?t(e):t;if("object"==typeof n&&!$a(n))return!1;return!n.classes&&!n.attributes&&!n.styles}(t.view,i.viewItem)?delete s.match.name:s.match.name=!0,!r.consumable.test(i.viewItem,s.match))return;i.modelRange||(i=Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor)));(function(t,e,n,o){let i=!1;for(const r of Array.from(t.getItems({shallow:n})))o.schema.checkAttribute(r,e.key)&&(i=!0,r.hasAttribute(e.key)||o.writer.setAttribute(e.key,e.value,r));return i})(i.modelRange,{key:a,value:c},e,r)&&r.consumable.consume(i.viewItem,s.match)}}function oc(t,e){const n={};return n.view=t.view+"-"+e,n.model=(e,n)=>{const o=e.getAttribute("name"),i=t.model(o,n);return n.writer.createElement("$marker",{"data-name":i})},n}class ic{constructor(t,e){this.model=t,this.view=new aa(e),this.mapper=new Ca,this.downcastDispatcher=new va({mapper:this.mapper,schema:t.schema});const n=this.model.document,o=n.selection,i=this.model.markers;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(n,"change",(()=>{this.view.change((t=>{this.downcastDispatcher.convertChanges(n.differ,i,t),this.downcastDispatcher.convertSelection(o,i,t)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(t,e){return(n,o)=>{const i=o.newSelection,r=[];for(const t of i.getRanges())r.push(e.toModelRange(t));const s=t.createSelection(r,{backward:i.isBackward});s.isEqual(t.document.selection)||t.change((t=>{t.setSelection(s)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,"insert"))return;const o=n.writer,i=n.mapper.toViewPosition(e.range.start),r=o.createText(e.item.data);o.insert(i,r)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((t,e,n)=>{const o=n.mapper.toViewPosition(e.position),i=e.position.getShiftedBy(e.length),r=n.mapper.toViewPosition(i,{isPhantom:!0}),s=n.writer.createRange(o,r),a=n.writer.remove(s.getTrimmed());for(const t of n.writer.createRangeIn(a).getItems())n.mapper.unbindViewElement(t)}),{priority:"low"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const o=n.writer,i=o.document.selection;for(const t of i.getRanges())t.isCollapsed&&t.end.parent.isAttached()&&n.writer.mergeAttributes(t.start);o.setSelection(null)}),{priority:"low"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const o=e.selection;if(o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;const i=[];for(const t of o.getRanges()){const e=n.mapper.toViewRange(t);i.push(e)}n.writer.setSelection(i,{backward:o.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const o=e.selection;if(!o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;const i=n.writer,r=o.getFirstPosition(),s=n.mapper.toViewPosition(r),a=i.breakAttributes(s);i.setSelection(a)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((t=>{if("$graveyard"==t.rootName)return null;const e=new mi(this.view.document,t.name);return e.rootName=t.rootName,this.mapper.bindElements(t,e),e}))}destroy(){this.view.destroy(),this.stopListening()}}Xt(ic,qt);class rc{constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new l.a("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}class sc{constructor(){this._consumables=new Map}add(t,e){let n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new ac(t),this._consumables.set(t,n)),n.add(e))}test(t,e){const n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}revert(t,e){const n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const t of n)"style"!=t&&"class"!=t&&e.attributes.push(t);const o=t.getClassNames();for(const t of o)e.classes.push(t);const i=t.getStyleNames();for(const t of i)e.styles.push(t);return e}static createFrom(t,e){if(e||(e=new sc(t)),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,sc.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=sc.createFrom(n,e);return e}}class ac{constructor(t){this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e in this._consumables)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e in this._consumables)if(e in t){const n=this._test(e,t[e]);if(!0!==n)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e in this._consumables)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e in this._consumables)e in t&&this._revert(e,t[e])}_add(t,e){const n=_t(e)?e:[e],o=this._consumables[t];for(const e of n){if("attributes"===t&&("class"===e||"style"===e))throw new l.a("viewconsumable-invalid-attribute",this);if(o.set(e,!0),"styles"===t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))o.set(t,!0)}}_test(t,e){const n=_t(e)?e:[e],o=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){const t=o.get(e);if(void 0===t)return null;if(!t)return!1}else{const t="class"==e?"classes":"styles",n=this._test(t,[...this._consumables[t].keys()]);if(!0!==n)return n}return!0}_consume(t,e){const n=_t(e)?e:[e],o=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){if(o.set(e,!1),"styles"==t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))o.set(t,!1)}else{const t="class"==e?"classes":"styles";this._consume(t,[...this._consumables[t].keys()])}}_revert(t,e){const n=_t(e)?e:[e],o=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){!1===o.get(e)&&o.set(e,!0)}else{const t="class"==e?"classes":"styles";this._revert(t,[...this._consumables[t].keys()])}}}class cc{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((t,e)=>{e[0]=new lc(e[0])}),{priority:"highest"}),this.on("checkChild",((t,e)=>{e[0]=new lc(e[0]),e[1]=this.getDefinition(e[1])}),{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new l.a("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new l.a("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return e="string"==typeof t?t:t.is&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!(!e||!e.isBlock)}isLimit(t){const e=this.getDefinition(t);return!!e&&!(!e.isLimit&&!e.isObject)}isObject(t){const e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}isInline(t){const e=this.getDefinition(t);return!(!e||!e.isInline)}isSelectable(t){const e=this.getDefinition(t);return!!e&&!(!e.isSelectable&&!e.isObject)}isContent(t){const e=this.getDefinition(t);return!!e&&!(!e.isContent&&!e.isObject)}checkChild(t,e){return!!e&&this._checkContextMatch(e,t)}checkAttribute(t,e){const n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}checkMerge(t,e=null){if(t instanceof ga){const e=t.nodeBefore,n=t.nodeAfter;if(!(e instanceof ha))throw new l.a("schema-check-merge-no-element-before",this);if(!(n instanceof ha))throw new l.a("schema-check-merge-no-element-after",this);return this.checkMerge(e,n)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",((e,[n,o])=>{if(!o)return;const i=t(n,o);"boolean"==typeof i&&(e.stop(),e.return=i)}),{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",((e,[n,o])=>{const i=t(n,o);"boolean"==typeof i&&(e.stop(),e.return=i)}),{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;if(t instanceof ga)e=t.parent;else{e=(t instanceof Aa?[t]:Array.from(t.getRanges())).reduce(((t,e)=>{const n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n}),null)}for(;!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const n=[...t.getFirstPosition().getAncestors(),new la("",t.getAttributes())];return this.checkAttribute(n,e)}{const n=t.getRanges();for(const t of n)for(const n of t)if(this.checkAttribute(n.item,e))return!0}return!1}*getValidRanges(t,e){t=function*(t){for(const e of t)yield*e.getMinimalFlatRanges()}(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if(this.checkChild(t,"$text"))return new Aa(t);let n,o;const i=t.getAncestors().reverse().find((t=>this.isLimit(t)))||t.root;"both"!=e&&"backward"!=e||(n=new ka({boundaries:Aa._createIn(i),startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(o=new ka({boundaries:Aa._createIn(i),startPosition:t}));for(const t of function*(t,e){let n=!1;for(;!n;){if(n=!0,t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}if(e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}}}(n,o)){const e=t.walker==n?"elementEnd":"elementStart",o=t.value;if(o.type==e&&this.isObject(o.item))return Aa._createOn(o.item);if(this.checkChild(o.nextPosition,"$text"))return new Aa(o.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))Cc(this,n,e);else{const t=Aa._createIn(n).getPositions();for(const n of t){Cc(this,n.nodeBefore||n.parent,e)}}}createContext(t){return new lc(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const o of n)t[o]=dc(e[o],o);for(const e of n)uc(t,e);for(const e of n)hc(t,e);for(const e of n)kc(t,e),pc(t,e);for(const e of n)gc(t,e),mc(t,e);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const o=e.getItem(n);if(t.allowIn.includes(o.name)){if(0==n)return!0;{const t=this.getDefinition(o);return this._checkContextMatch(t,e,n-1)}}return!1}*_getValidRangesForRange(t,e){let n=t.start,o=t.start;for(const i of t.getItems({shallow:!0}))i.is("element")&&(yield*this._getValidRangesForRange(Aa._createIn(i),e)),this.checkAttribute(i,e)||(n.isEqual(o)||(yield new Aa(n,o)),n=ga._createAfter(i)),o=ga._createAfter(i);n.isEqual(o)||(yield new Aa(n,o))}}Xt(cc,qt);class lc{constructor(t){if(t instanceof lc)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),this._items=t.map(Ac)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new lc([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map((t=>t.name))}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function dc(t,e){const n={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(t,e){for(const n of t){const t=Object.keys(n).filter((t=>t.startsWith("is")));for(const o of t)e[o]=n[o]}}(t,n),bc(t,n,"allowIn"),bc(t,n,"allowContentOf"),bc(t,n,"allowWhere"),bc(t,n,"allowAttributes"),bc(t,n,"allowAttributesOf"),bc(t,n,"inheritTypesFrom"),function(t,e){for(const n of t){const t=n.inheritAllFrom;t&&(e.allowContentOf.push(t),e.allowWhere.push(t),e.allowAttributesOf.push(t),e.inheritTypesFrom.push(t))}}(t,n),n}function uc(t,e){for(const n of t[e].allowContentOf)if(t[n]){fc(t,n).forEach((t=>{t.allowIn.push(e)}))}delete t[e].allowContentOf}function hc(t,e){for(const n of t[e].allowWhere){const o=t[n];if(o){const n=o.allowIn;t[e].allowIn.push(...n)}}delete t[e].allowWhere}function kc(t,e){for(const n of t[e].allowAttributesOf){const o=t[n];if(o){const n=o.allowAttributes;t[e].allowAttributes.push(...n)}}delete t[e].allowAttributesOf}function pc(t,e){const n=t[e];for(const e of n.inheritTypesFrom){const o=t[e];if(o){const t=Object.keys(o).filter((t=>t.startsWith("is")));for(const e of t)e in n||(n[e]=o[e])}}delete n.inheritTypesFrom}function gc(t,e){const n=t[e],o=n.allowIn.filter((e=>t[e]));n.allowIn=Array.from(new Set(o))}function mc(t,e){const n=t[e];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function bc(t,e,n){for(const o of t)"string"==typeof o[n]?e[n].push(o[n]):Array.isArray(o[n])&&e[n].push(...o[n])}function fc(t,e){const n=t[e];return(o=t,Object.keys(o).map((t=>o[t]))).filter((t=>t.allowIn.includes(n.name)));var o}function Ac(t){return"string"==typeof t||t.is("documentFragment")?{name:"string"==typeof t?t:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:t.is("element")?t.name:"$text",*getAttributeKeys(){yield*t.getAttributeKeys()},getAttribute:e=>t.getAttribute(e)}}function Cc(t,e,n){for(const o of e.getAttributeKeys())t.checkAttribute(e,o)||n.removeAttribute(o,e)}class wc{constructor(t={}){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)}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=function(t,e){let n;for(const o of new lc(t)){const t={};for(const e of o.getAttributeKeys())t[e]=o.getAttribute(e);const i=e.createElement(o.name,t);n&&e.append(i,n),n=ga._createAt(i,0)}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=sc.createFrom(t),this.conversionApi.store={};const{modelRange:o}=this._convertItem(t,this._modelCursor),i=e.createDocumentFragment();if(o){this._removeEmptyElements();for(const t of Array.from(this._modelCursor.parent.getChildren()))e.append(t,i);i.markers=function(t,e){const n=new Set,o=new Map,i=Aa._createIn(t).getItems();for(const t of i)"$marker"==t.name&&n.add(t);for(const t of n){const n=t.getAttribute("data-name"),i=e.createPositionBefore(t);o.has(n)?o.get(n).end=i.clone():o.set(n,new Aa(i.clone())),e.remove(t)}return o}(i,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i}_convertItem(t,e){const n=Object.assign({viewItem:t,modelCursor:e,modelRange:null});if(t.is("element")?this.fire("element:"+t.name,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof Aa))throw new l.a("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:ga._createAt(e,0);const o=new Aa(n);for(const e of Array.from(t.getChildren())){const t=this._convertItem(e,n);t.modelRange instanceof Aa&&(o.end=t.modelRange.end,n=t.modelCursor)}return{modelRange:o,modelCursor:n}}_safeInsert(t,e){const n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}_updateConversionResult(t,e){const n=this._getSplitParts(t),o=this.conversionApi.writer;e.modelRange||(e.modelRange=o.createRange(o.createPositionBefore(t),o.createPositionAfter(n[n.length-1])));const i=this._cursorParents.get(t);e.modelCursor=i?o.createPositionAt(i,0):e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:o}=this.conversionApi;let i=n.findAllowedParent(e,t);if(i){if(i===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(i)&&(i=null)}if(!i)return Ya(e,t,n)?{position:Qa(e,o)}:null;const r=this.conversionApi.writer.split(e,i),s=[];for(const t of r.range.getWalker())if("elementEnd"==t.type)s.push(t.item);else{const e=s.pop(),n=t.item;this._registerSplitPair(e,n)}const a=r.range.end.parent;return this._cursorParents.set(t,a),{position:r.position,cursorParent:a}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e}_removeEmptyElements(){let t=!1;for(const e of this._splitParts.keys())e.isEmpty&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}Xt(wc,h);class _c{getHtml(t){const e=document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class vc{constructor(t){this._domParser=new DOMParser,this._domConverter=new Or(t,{blockFillerMode:"nbsp"}),this._htmlWriter=new _c}toData(t){const e=this._domConverter.viewToDom(t,document);return this._htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this._domConverter.domToView(e)}registerRawContentMatcher(t){this._domConverter.registerRawContentMatcher(t)}useFillerType(t){this._domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}_toDom(t){const e=this._domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)n.appendChild(o[0]);return n}}class yc{constructor(t,e){this.model=t,this.mapper=new Ca,this.downcastDispatcher=new va({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,"insert"))return;const o=n.writer,i=n.mapper.toViewPosition(e.range.start),r=o.createText(e.item.data);o.insert(i,r)}),{priority:"lowest"}),this.upcastDispatcher=new wc({schema:t.schema}),this.viewDocument=new Ti(e),this.stylesProcessor=e,this.htmlProcessor=new vc(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new tr(this.viewDocument),this.upcastDispatcher.on("text",((t,e,{schema:n,consumable:o,writer:i})=>{let r=e.modelCursor;if(!o.test(e.viewItem))return;if(!n.checkChild(r,"$text")){if(!Ya(r,"$text",n))return;r=Qa(r,i)}o.consume(e.viewItem);const s=i.createText(e.viewItem.data);i.insert(s,r),e.modelRange=i.createRange(r,r.getShiftedBy(s.offsetSize)),e.modelCursor=e.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:o}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:o}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=o}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange("transparent",Ka)}),{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new l.a("datacontroller-get-non-existent-root",this);const o=this.model.document.getRoot(e);return"empty"!==n||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,t):""}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,o=this._viewWriter;this.mapper.clearBindings();const i=Aa._createIn(t),r=new $i(n);this.mapper.bindElements(t,r),this.downcastDispatcher.conversionApi.options=e,this.downcastDispatcher.convertInsert(i,o);const s=t.is("documentFragment")?Array.from(t.markers):function(t){const e=[],n=t.root.document;if(!n)return[];const o=Aa._createIn(t);for(const t of n.model.markers){const n=o.getIntersection(t.getRange());n&&e.push([t.name,n])}return e}(t);for(const[t,e]of s)this.downcastDispatcher.convertMarkerAdd(t,e,o);return delete this.downcastDispatcher.conversionApi.options,r}init(t){if(this.model.document.version)throw new l.a("datacontroller-init-document-not-empty",this);let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new l.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange("transparent",(t=>{for(const n of Object.keys(e)){const o=this.model.document.getRoot(n);t.insert(this.parse(e[n],o),o,0)}})),Promise.resolve()}set(t){let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new l.a("datacontroller-set-non-existent-root",this);this.model.enqueueChange("transparent",(t=>{t.setSelection(null),t.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const n of Object.keys(e)){const o=this.model.document.getRoot(n);t.remove(t.createRangeIn(o)),t.insert(this.parse(e[n],o),o,0)}}))}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change((n=>this.upcastDispatcher.convert(t,n,e)))}addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRootNames().includes(e))return!1;return!0}}Xt(yc,qt);class xc{constructor(t,e){this._helpers=new Map,this._downcast=ho(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=ho(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new l.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new l.a("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of Ec(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of Ec(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of Ec(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new l.a("conversion-group-exists",this);const o=n?new ja(e):new Xa(e);this._helpers.set(t,o)}}function*Ec(t){if(t.model.values)for(const e of t.model.values){const n={key:t.model.key,value:e},o=t.view[e],i=t.upcastAlso?t.upcastAlso[e]:void 0;yield*Ic(n,o,i)}else yield*Ic(t.model,t.view,t.upcastAlso)}function*Ic(t,e,n){if(yield{model:t,view:e},n)for(const e of ho(n))yield{model:t,view:e}}class Dc{constructor(t="default"){this.operations=[],this.type=t}get baseVersion(){for(const t of this.operations)if(null!==t.baseVersion)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}class Bc{constructor(t){this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t){return new this(t.baseVersion)}}class Sc{constructor(t){this.markers=new Map,this._children=new ua,t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(t){return"documentFragment"===t||"model:documentFragment"===t}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)n.name?e.push(ha.fromJSON(n)):e.push(la.fromJSON(n));return new Sc(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new la(t)];co(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new la(t):t instanceof da?new la(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}}function Tc(t,e){const n=(e=Nc(e)).reduce(((t,e)=>t+e.offsetSize),0),o=t.parent;Lc(t);const i=t.index;return o._insertChild(i,e),Pc(o,i+e.length),Pc(o,i),new Aa(t,t.getShiftedBy(n))}function Mc(t){if(!t.isFlat)throw new l.a("operation-utils-remove-range-not-flat",this);const e=t.start.parent;Lc(t.start),Lc(t.end);const n=e._removeChildren(t.start.index,t.end.index-t.start.index);return Pc(e,t.start.index),n}function zc(t,e){if(!t.isFlat)throw new l.a("operation-utils-move-range-not-flat",this);const n=Mc(t);return Tc(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function Nc(t){const e=[];t instanceof Array||(t=[t]);for(let n=0;n<t.length;n++)if("string"==typeof t[n])e.push(new la(t[n]));else if(t[n]instanceof da)e.push(new la(t[n].data,t[n].getAttributes()));else if(t[n]instanceof Sc||t[n]instanceof ua)for(const o of t[n])e.push(o);else t[n]instanceof ca&&e.push(t[n]);for(let t=1;t<e.length;t++){const n=e[t],o=e[t-1];n instanceof la&&o instanceof la&&Oc(n,o)&&(e.splice(t-1,2,new la(o.data+n.data,o.getAttributes())),t--)}return e}function Pc(t,e){const n=t.getChild(e-1),o=t.getChild(e);if(n&&o&&n.is("$text")&&o.is("$text")&&Oc(n,o)){const i=new la(n.data+o.data,n.getAttributes());t._removeChildren(e-1,2),t._insertChild(e-1,i)}}function Lc(t){const e=t.textNode,n=t.parent;if(e){const o=t.offset-e.startOffset,i=e.index;n._removeChildren(i,1);const r=new la(e.data.substr(0,o),e.getAttributes()),s=new la(e.data.substr(o),e.getAttributes());n._insertChild(i,[r,s])}}function Oc(t,e){const n=t.getAttributes(),o=e.getAttributes();for(const t of n){if(t[1]!==e.getAttribute(t[0]))return!1;o.next()}return o.next().done}var Rc=function(t,e){return us(t,e)};class Fc extends Bc{constructor(t,e,n,o,i){super(i),this.range=t.clone(),this.key=e,this.oldValue=void 0===n?null:n,this.newValue=void 0===o?null:o}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new Fc(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Fc(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const t=super.toJSON();return t.range=this.range.toJSON(),t}_validate(){if(!this.range.isFlat)throw new l.a("attribute-operation-range-not-flat",this);for(const t of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Rc(t.getAttribute(this.key),this.oldValue))throw new l.a("attribute-operation-wrong-old-value",this,{item:t,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&t.hasAttribute(this.key))throw new l.a("attribute-operation-attribute-exists",this,{node:t,key:this.key})}}_execute(){Rc(this.oldValue,this.newValue)||function(t,e,n){Lc(t.start),Lc(t.end);for(const o of t.getItems({shallow:!0})){const t=o.is("$textProxy")?o.textNode:o;null!==n?t._setAttribute(e,n):t._removeAttribute(e),Pc(t.parent,t.index)}Pc(t.end.parent,t.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new Fc(Aa.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}class Vc extends Bc{constructor(t,e){super(null),this.sourcePosition=t.clone(),this.howMany=e}get type(){return"detach"}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t}_validate(){if(this.sourcePosition.root.document)throw new l.a("detach-operation-on-document-node",this)}_execute(){Mc(Aa._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class jc extends Bc{constructor(t,e,n,o){super(o),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toNext",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,o=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new l.a("move-operation-nodes-do-not-exist",this);if(t===e&&n<o&&o<n+this.howMany)throw new l.a("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==Ao(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const t=this.sourcePosition.path.length-1;if(this.targetPosition.path[t]>=n&&this.targetPosition.path[t]<n+this.howMany)throw new l.a("move-operation-node-into-itself",this)}}_execute(){zc(Aa._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t}static get className(){return"MoveOperation"}static fromJSON(t,e){const n=ga.fromJSON(t.sourcePosition,e),o=ga.fromJSON(t.targetPosition,e);return new this(n,t.howMany,o,t.baseVersion)}}class Jc extends Bc{constructor(t,e,n){super(n),this.position=t.clone(),this.position.stickiness="toNone",this.nodes=new ua(Nc(e)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const t=new ua([...this.nodes].map((t=>t._clone(!0)))),e=new Jc(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new ga(t,[0]);return new jc(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new l.a("insert-operation-position-invalid",this)}_execute(){const t=this.nodes;this.nodes=new ua([...t].map((t=>t._clone(!0)))),Tc(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const e of t.nodes)e.name?n.push(ha.fromJSON(e)):n.push(la.fromJSON(e));const o=new Jc(ga.fromJSON(t.position,e),n,t.baseVersion);return o.shouldReceiveAttributes=t.shouldReceiveAttributes,o}}class Hc extends Bc{constructor(t,e,n,o,i,r){super(r),this.name=t,this.oldRange=e?e.clone():null,this.newRange=n?n.clone():null,this.affectsData=i,this._markers=o}get type(){return"marker"}clone(){return new Hc(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Hc(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const t=this.newRange?"_set":"_remove";this._markers[t](this.name,this.newRange,!0,this.affectsData)}toJSON(){const t=super.toJSON();return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t}static get className(){return"MarkerOperation"}static fromJSON(t,e){return new Hc(t.name,t.oldRange?Aa.fromJSON(t.oldRange,e):null,t.newRange?Aa.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}class Uc extends Bc{constructor(t,e,n,o){super(o),this.position=t,this.position.stickiness="toNext",this.oldName=e,this.newName=n}get type(){return"rename"}clone(){return new Uc(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Uc(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(!(t instanceof ha))throw new l.a("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new l.a("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t}static get className(){return"RenameOperation"}static fromJSON(t,e){return new Uc(ga.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class qc extends Bc{constructor(t,e,n,o,i){super(i),this.root=t,this.key=e,this.oldValue=n,this.newValue=o}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new qc(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new qc(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new l.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new l.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new l.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const t=super.toJSON();return t.root=this.root.toJSON(),t}static get className(){return"RootAttributeOperation"}static fromJSON(t,e){if(!e.getRoot(t.root))throw new l.a("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new qc(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}class Gc extends Bc{constructor(t,e,n,o,i){super(i),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=o.clone()}get type(){return"merge"}get deletionPosition(){return new ga(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Aa(this.sourcePosition,t)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new ga(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new Wc(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new l.a("merge-operation-source-position-invalid",this);if(!e.parent)throw new l.a("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new l.a("merge-operation-how-many-invalid",this)}_execute(){const t=this.sourcePosition.parent;zc(Aa._createIn(t),this.targetPosition),zc(Aa._createOn(t),this.graveyardPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t}static get className(){return"MergeOperation"}static fromJSON(t,e){const n=ga.fromJSON(t.sourcePosition,e),o=ga.fromJSON(t.targetPosition,e),i=ga.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,o,i,t.baseVersion)}}class Wc extends Bc{constructor(t,e,n,o,i){super(i),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=o?o.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new ga(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Aa(this.splitPosition,t)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new ga(t,[0]);return new Gc(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new l.a("split-operation-position-invalid",this);if(!t.parent)throw new l.a("split-operation-split-in-root",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new l.a("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new l.a("split-operation-graveyard-position-invalid",this)}_execute(){const t=this.splitPosition.parent;if(this.graveyardPosition)zc(Aa._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const e=t._clone();Tc(this.insertionPosition,e)}zc(new Aa(ga._createAt(t,this.splitPosition.offset),ga._createAt(t,t.maxOffset)),this.moveTargetPosition)}toJSON(){const t=super.toJSON();return t.splitPosition=this.splitPosition.toJSON(),t.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(t.graveyardPosition=this.graveyardPosition.toJSON()),t}static get className(){return"SplitOperation"}static getInsertionPosition(t){const e=t.path.slice(0,-1);return e[e.length-1]++,new ga(t.root,e,"toPrevious")}static fromJSON(t,e){const n=ga.fromJSON(t.splitPosition,e),o=ga.fromJSON(t.insertionPosition,e),i=t.graveyardPosition?ga.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,o,i,t.baseVersion)}}class Kc extends ha{constructor(t,e,n="main"){super(e),this._document=t,this.rootName=n}get document(){return this._document}is(t,e){return e?e===this.name&&("rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t):"rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t||"node"===t||"model:node"===t}toJSON(){return this.rootName}}class Yc{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new la(t,e)}createElement(t,e){return new ha(t,e)}createDocumentFragment(){return new Sc}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof la&&""==t.data)return;const o=ga._createAt(e,n);if(t.parent){if(tl(t.root,o.root))return void this.move(Aa._createOn(t),o);if(t.root.document)throw new l.a("model-writer-insert-forbidden-move",this);this.remove(t)}const i=o.root.document?o.root.document.version:null,r=new Jc(o,t,i);if(t instanceof la&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),t instanceof Sc)for(const[e,n]of t.markers){const t=ga._createAt(n.root,0),i={range:new Aa(n.start._getCombined(t,o),n.end._getCombined(t,o)),usingOperation:!0,affectsData:!0};this.model.markers.has(e)?this.updateMarker(e,i):this.addMarker(e,i)}}insertText(t,e,n,o){e instanceof Sc||e instanceof ha||e instanceof ga?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,o)}insertElement(t,e,n,o){e instanceof Sc||e instanceof ha||e instanceof ga?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,o)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof Sc||e instanceof ha?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof Sc||e instanceof ha?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof Aa){const o=n.getMinimalFlatRanges();for(const n of o)Qc(this,t,e,n)}else Xc(this,t,e,n)}setAttributes(t,e){for(const[n,o]of yo(t))this.setAttribute(n,o,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof Aa){const n=e.getMinimalFlatRanges();for(const e of n)Qc(this,t,null,e)}else Xc(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=t=>{for(const e of t.getAttributeKeys())this.removeAttribute(e,t)};if(t instanceof Aa)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof Aa))throw new l.a("writer-move-invalid-range",this);if(!t.isFlat)throw new l.a("writer-move-range-not-flat",this);const o=ga._createAt(e,n);if(o.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!tl(t.root,o.root))throw new l.a("writer-move-different-document",this);const i=t.root.document?t.root.document.version:null,r=new jc(t.start,t.end.offset-t.start.offset,o,i);this.batch.addOperation(r),this.model.applyOperation(r)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof Aa?t:Aa._createOn(t)).getMinimalFlatRanges().reverse();for(const t of e)this._addOperationForAffectedMarkers("move",t),$c(t.start,t.end.offset-t.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof ha))throw new l.a("writer-merge-no-element-before",this);if(!(n instanceof ha))throw new l.a("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(t,e,n){return this.model.createSelection(t,e,n)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(Aa._createIn(n),ga._createAt(e,"end")),this.remove(n)}_merge(t){const e=ga._createAt(t.nodeBefore,"end"),n=ga._createAt(t.nodeAfter,0),o=t.root.document.graveyard,i=new ga(o,[0]),r=t.root.document.version,s=new Gc(n,t.nodeAfter.maxOffset,e,i,r);this.batch.addOperation(s),this.model.applyOperation(s)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof ha))throw new l.a("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,o=new Uc(ga._createBefore(t),t.name,e,n);this.batch.addOperation(o),this.model.applyOperation(o)}split(t,e){this._assertWriterUsedCorrectly();let n,o,i=t.parent;if(!i.parent)throw new l.a("writer-split-element-no-parent",this);if(e||(e=i.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new l.a("writer-split-invalid-limit-element",this);do{const e=i.root.document?i.root.document.version:null,r=i.maxOffset-t.offset,s=Wc.getInsertionPosition(t),a=new Wc(t,r,s,null,e);this.batch.addOperation(a),this.model.applyOperation(a),n||o||(n=i,o=t.parent.nextSibling),i=(t=this.createPositionAfter(t.parent)).parent}while(i!==e);return{position:t,range:new Aa(ga._createAt(n,"end"),ga._createAt(o,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new l.a("writer-wrap-range-not-flat",this);const n=e instanceof ha?e:new ha(e);if(n.childCount>0)throw new l.a("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new l.a("writer-wrap-element-attached",this);this.insert(n,t.start);const o=new Aa(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(o,ga._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new l.a("writer-unwrap-element-no-parent",this);this.move(Aa._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new l.a("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,o=e.range,i=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new l.a("writer-addmarker-marker-exists",this);if(!o)throw new l.a("writer-addmarker-no-range",this);return n?(Zc(this,t,null,o,i),this.model.markers.get(t)):this.model.markers._set(t,o,n,i)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n="string"==typeof t?t:t.name,o=this.model.markers.get(n);if(!o)throw new l.a("writer-updatemarker-marker-not-exists",this);if(!e)return void this.model.markers._refresh(o);const i="boolean"==typeof e.usingOperation,r="boolean"==typeof e.affectsData,s=r?e.affectsData:o.affectsData;if(!i&&!e.range&&!r)throw new l.a("writer-updatemarker-wrong-options",this);const a=o.getRange(),c=e.range?e.range:a;i&&e.usingOperation!==o.managedUsingOperations?e.usingOperation?Zc(this,n,null,c,s):(Zc(this,n,a,null,s),this.model.markers._set(n,c,void 0,s)):o.managedUsingOperations?Zc(this,n,a,c,s):this.model.markers._set(n,c,void 0,s)}removeMarker(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new l.a("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations)return void this.model.markers._remove(e);Zc(this,e,n.getRange(),null,n.affectsData)}setSelection(t,e,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(t,e,n)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else for(const[e,n]of yo(t))this._setSelectionAttribute(e,n)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const o=La._getStoreAttributeKey(t);this.setAttribute(o,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=La._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new l.a("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const o=n.getRange();let i=!1;if("move"===t)i=e.containsPosition(o.start)||e.start.isEqual(o.start)||e.containsPosition(o.end)||e.end.isEqual(o.end);else{const t=e.nodeBefore,n=e.nodeAfter,r=o.start.parent==t&&o.start.isAtEnd,s=o.end.parent==n&&0==o.end.offset,a=o.end.nodeAfter==n,c=o.start.nodeAfter==n;i=r||s||a||c}i&&this.updateMarker(n.name,{range:o})}}}function Qc(t,e,n,o){const i=t.model,r=i.document;let s,a,c,l=o.start;for(const t of o.getWalker({shallow:!0}))c=t.item.getAttribute(e),s&&a!=c&&(a!=n&&d(),l=s),s=t.nextPosition,a=c;function d(){const o=new Aa(l,s),c=o.root.document?r.version:null,d=new Fc(o,e,a,n,c);t.batch.addOperation(d),i.applyOperation(d)}s instanceof ga&&s!=l&&a!=n&&d()}function Xc(t,e,n,o){const i=t.model,r=i.document,s=o.getAttribute(e);let a,c;if(s!=n){if(o.root===o){const t=o.document?r.version:null;c=new qc(o,e,s,n,t)}else{a=new Aa(ga._createBefore(o),t.createPositionAfter(o));const i=a.root.document?r.version:null;c=new Fc(a,e,s,n,i)}t.batch.addOperation(c),i.applyOperation(c)}}function Zc(t,e,n,o,i){const r=t.model,s=r.document,a=new Hc(e,n,o,r.markers,i,s.version);t.batch.addOperation(a),r.applyOperation(a)}function $c(t,e,n,o){let i;if(t.root.document){const n=o.document,r=new ga(n.graveyard,[0]);i=new jc(t,e,r,n.version)}else i=new Vc(t,e);n.addOperation(i),o.applyOperation(i)}function tl(t,e){return t===e||t instanceof Kc&&e instanceof Kc}class el{constructor(t){this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize);const e=Aa._createOn(t);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getRange();this.bufferMarkerChange(t.name,e,e,t.affectsData)}this._cachedChanges=null}bufferOperation(t){switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const e of t.range.getItems({shallow:!0}))this._isInInsertedElement(e.parent)||this._markAttribute(e);break;case"remove":case"move":case"reinsert":{if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;const e=this._isInInsertedElement(t.sourcePosition.parent),n=this._isInInsertedElement(t.targetPosition.parent);e||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),n||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break}case"rename":{if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);const e=Aa._createFromPositionAndShift(t.position,1);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getRange();this.bufferMarkerChange(t.name,e,e,t.affectsData)}break}case"split":{const e=t.splitPosition.parent;this._isInInsertedElement(e)||this._markRemove(e,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break}case"merge":{const e=t.sourcePosition.parent;this._isInInsertedElement(e.parent)||this._markRemove(e.parent,e.startOffset,1);const n=t.graveyardPosition.parent;this._markInsert(n,t.graveyardPosition.offset,1);const o=t.targetPosition.parent;this._isInInsertedElement(o)||this._markInsert(o,t.targetPosition.offset,e.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(t,e,n,o){const i=this._changedMarkers.get(t);i?(i.newRange=n,i.affectsData=o,null==i.oldRange&&null==i.newRange&&this._changedMarkers.delete(t)):this._changedMarkers.set(t,{oldRange:e,newRange:n,affectsData:o})}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.oldRange&&t.push({name:e,range:n.oldRange});return t}getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.newRange&&t.push({name:e,range:n.newRange});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map((t=>({name:t[0],data:{oldRange:t[1].oldRange,newRange:t[1].newRange}})))}hasDataChanges(){for(const[,t]of this._changedMarkers)if(t.affectsData)return!0;return this._changesInElement.size>0}getChanges(t={includeChangesInGraveyard:!1}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const t of this._changesInElement.keys()){const n=this._changesInElement.get(t).sort(((t,e)=>t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offset<e.offset?-1:1)),o=this._elementSnapshots.get(t),i=nl(t.getChildren()),r=ol(o.length,n);let s=0,a=0;for(const n of r)if("i"===n)e.push(this._getInsertDiff(t,s,i[s].name)),s++;else if("r"===n)e.push(this._getRemoveDiff(t,s,o[a].name)),a++;else if("a"===n){const n=i[s].attributes,r=o[a].attributes;let c;if("$text"==i[s].name)c=new Aa(ga._createAt(t,s),ga._createAt(t,s+1));else{const e=t.offsetToIndex(s);c=new Aa(ga._createAt(t,s),ga._createAt(t.getChild(e),0))}e.push(...this._getAttributesDiff(c,r,n)),s++,a++}else s++,a++}e.sort(((t,e)=>t.position.root!=e.position.root?t.position.root.rootName<e.position.root.rootName?-1:1:t.position.isEqual(e.position)?t.changeCount-e.changeCount:t.position.isBefore(e.position)?-1:1));for(let t=1,n=0;t<e.length;t++){const o=e[n],i=e[t],r="remove"==o.type&&"remove"==i.type&&"$text"==o.name&&"$text"==i.name&&o.position.isEqual(i.position),s="insert"==o.type&&"insert"==i.type&&"$text"==o.name&&"$text"==i.name&&o.position.parent==i.position.parent&&o.position.offset+o.length==i.position.offset,a="attribute"==o.type&&"attribute"==i.type&&o.position.parent==i.position.parent&&o.range.isFlat&&i.range.isFlat&&o.position.offset+o.length==i.position.offset&&o.attributeKey==i.attributeKey&&o.attributeOldValue==i.attributeOldValue&&o.attributeNewValue==i.attributeNewValue;r||s||a?(o.length++,a&&(o.range.end=o.range.end.getShiftedBy(1)),e[t]=null):n=t}e=e.filter((t=>t));for(const t of e)delete t.changeCount,"attribute"==t.type&&(delete t.position,delete t.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e.slice(),this._cachedChanges=e.filter(il),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}_markInsert(t,e,n){const o={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,o)}_markRemove(t,e,n){const o={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,o),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let t=0;t<n.length;t++)n[t].howMany<1&&(n.splice(t,1),t--)}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshot(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,nl(t.getChildren()))}_handleChange(t,e){t.nodesToHandle=t.howMany;for(const n of e){const o=t.offset+t.howMany,i=n.offset+n.howMany;if("insert"==t.type&&("insert"==n.type&&(t.offset<=n.offset?n.offset+=t.howMany:t.offset<i&&(n.howMany+=t.nodesToHandle,t.nodesToHandle=0)),"remove"==n.type&&t.offset<n.offset&&(n.offset+=t.howMany),"attribute"==n.type))if(t.offset<=n.offset)n.offset+=t.howMany;else if(t.offset<i){const i=n.howMany;n.howMany=t.offset-n.offset,e.unshift({type:"attribute",offset:o,howMany:i-n.howMany,count:this._changeCount++})}if("remove"==t.type){if("insert"==n.type)if(o<=n.offset)n.offset-=t.howMany;else if(o<=i)if(t.offset<n.offset){const e=o-n.offset;n.offset=t.offset,n.howMany-=e,t.nodesToHandle-=e}else n.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=n.offset)t.nodesToHandle-=n.howMany,n.howMany=0;else if(t.offset<i){const e=i-t.offset;n.howMany-=e,t.nodesToHandle-=e}if("remove"==n.type&&(o<=n.offset?n.offset-=t.howMany:t.offset<n.offset&&(t.nodesToHandle+=n.howMany,n.howMany=0)),"attribute"==n.type)if(o<=n.offset)n.offset-=t.howMany;else if(t.offset<n.offset){const e=o-n.offset;n.offset=t.offset,n.howMany-=e}else if(t.offset<i)if(o<=i){const o=n.howMany;n.howMany=t.offset-n.offset;const i=o-n.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:i,count:this._changeCount++})}else n.howMany-=i-t.offset}if("attribute"==t.type){if("insert"==n.type)if(t.offset<n.offset&&o>n.offset){if(o>i){const t={type:"attribute",offset:i,howMany:o-i,count:this._changeCount++};this._handleChange(t,e),e.push(t)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offset<i&&(o>i?(t.nodesToHandle=o-i,t.offset=i):t.nodesToHandle=0);if("remove"==n.type&&t.offset<n.offset&&o>n.offset){const i={type:"attribute",offset:n.offset,howMany:o-n.offset,count:this._changeCount++};this._handleChange(i,e),e.push(i),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==n.type&&(t.offset>=n.offset&&o<=i?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&o>=i&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:ga._createAt(t,e),name:n,length:1,changeCount:this._changeCount++}}_getRemoveDiff(t,e,n){return{type:"remove",position:ga._createAt(t,e),name:n,length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const o=[];n=new Map(n);for(const[i,r]of e){const e=n.has(i)?n.get(i):null;e!==r&&o.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:i,attributeOldValue:r,attributeNewValue:e,changeCount:this._changeCount++}),n.delete(i)}for(const[e,i]of n)o.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:e,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return o}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),o=t.startOffset;if(n)for(const t of n)if("insert"==t.type&&o>=t.offset&&o<t.offset+t.howMany)return!0;return this._isInInsertedElement(e)}_removeAllNestedChanges(t,e,n){const o=new Aa(ga._createAt(t,e),ga._createAt(t,e+n));for(const t of o.getItems({shallow:!0}))t.is("element")&&(this._elementSnapshots.delete(t),this._changesInElement.delete(t),this._removeAllNestedChanges(t,0,t.maxOffset))}}function nl(t){const e=[];for(const n of t)if(n.is("$text"))for(let t=0;t<n.data.length;t++)e.push({name:"$text",attributes:new Map(n.getAttributes())});else e.push({name:n.name,attributes:new Map(n.getAttributes())});return e}function ol(t,e){const n=[];let o=0,i=0;for(const t of e){if(t.offset>o){for(let e=0;e<t.offset-o;e++)n.push("e");i+=t.offset-o}if("insert"==t.type){for(let e=0;e<t.howMany;e++)n.push("i");o=t.offset+t.howMany}else if("remove"==t.type){for(let e=0;e<t.howMany;e++)n.push("r");o=t.offset,i+=t.howMany}else n.push(..."a".repeat(t.howMany).split("")),o=t.offset+t.howMany,i+=t.howMany}if(i<t)for(let e=0;e<t-i-o;e++)n.push("e");return n}function il(t){const e=t.position&&"$graveyard"==t.position.root.rootName,n=t.range&&"$graveyard"==t.range.root.rootName;return!e&&!n}class rl{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}addOperation(t){this._operations.includes(t)||this._operations.push(t)}getOperations(t=Number.NEGATIVE_INFINITY,e=Number.POSITIVE_INFINITY){const n=[];for(const o of this._operations)o.baseVersion>=t&&o.baseVersion<e&&n.push(o);return n}getOperation(t){for(const e of this._operations)if(e.baseVersion==t)return e}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}}function sl(t,e){return!!(n=t.charAt(e-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t)}(t.charAt(e));var n}function al(t,e){return!!(n=t.charAt(e))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}const cl="$graveyard";class ll{constructor(t){this.model=t,this.version=0,this.history=new rl(this),this.selection=new La(this),this.roots=new lo({idProperty:"rootName"}),this.differ=new el(t.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",cl),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];if(n.isDocumentOperation&&n.baseVersion!==this.version)throw new l.a("model-document-applyoperation-wrong-version",this,{operation:n})}),{priority:"highest"}),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&this.differ.bufferOperation(n)}),{priority:"high"}),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&(this.version++,this.history.addOperation(n))}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",((t,e,n,o)=>{this.differ.bufferMarkerChange(e.name,n,o,e.affectsData),null===n&&e.on("change",((t,n)=>{this.differ.bufferMarkerChange(e.name,n,e.getRange(),e.affectsData)}))}))}get graveyard(){return this.getRoot(cl)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new l.a("model-document-createroot-name-exists",this,{name:e});const n=new Kc(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(){return Array.from(this.roots,(t=>t.rootName)).filter((t=>t!=cl))}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=Co(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const t of this.roots)if(t!==this.graveyard)return t;return this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,o=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(o)||e.createRange(o)}_validateSelectionRange(t){return dl(t.start)&&dl(t.end)}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),e=n(t),e)break}while(e)}}function dl(t){const e=t.textNode;if(e){const n=e.data,o=t.offset-e.startOffset;return!sl(n,o)&&!al(n,o)}return!0}Xt(ll,h);class ul{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){return this._markers.has(t)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,o=!1){const i=t instanceof hl?t.name:t;if(i.includes(","))throw new l.a("markercollection-incorrect-marker-name",this);const r=this._markers.get(i);if(r){const t=r.getRange();let s=!1;return t.isEqual(e)||(r._attachLiveRange(Ma.fromRange(e)),s=!0),n!=r.managedUsingOperations&&(r._managedUsingOperations=n,s=!0),"boolean"==typeof o&&o!=r.affectsData&&(r._affectsData=o,s=!0),s&&this.fire("update:"+i,r,t,e),r}const s=Ma.fromRange(e),a=new hl(i,s,n,o);return this._markers.set(i,a),this.fire("update:"+i,a,null,e),a}_remove(t){const e=t instanceof hl?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire("update:"+e,n,n.getRange(),null),this._destroyMarker(n),!0)}_refresh(t){const e=t instanceof hl?t.name:t,n=this._markers.get(e);if(!n)throw new l.a("markercollection-refresh-marker-not-exists",this);const o=n.getRange();this.fire("update:"+e,n,o,o,n.managedUsingOperations,n.affectsData)}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)null!==e.getRange().getIntersection(t)&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}Xt(ul,h);class hl{constructor(t,e,n,o){this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=o}get managedUsingOperations(){if(!this._liveRange)throw new l.a("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new l.a("marker-destroyed",this);return this._affectsData}getStart(){if(!this._liveRange)throw new l.a("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new l.a("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new l.a("marker-destroyed",this);return this._liveRange.toRange()}is(t){return"marker"===t||"model:marker"===t}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Xt(hl,h);class kl extends Bc{get type(){return"noop"}clone(){return new kl(this.baseVersion)}getReversed(){return new kl(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const pl={};pl[Fc.className]=Fc,pl[Jc.className]=Jc,pl[Hc.className]=Hc,pl[jc.className]=jc,pl[kl.className]=kl,pl[Bc.className]=Bc,pl[Uc.className]=Uc,pl[qc.className]=qc,pl[Wc.className]=Wc,pl[Gc.className]=Gc;class gl extends ga{constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new l.a("model-liveposition-root-not-rootelement",t);ml.call(this)}detach(){this.stopListening()}is(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t}toPosition(){return new ga(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}function ml(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&bl.call(this,n)}),{priority:"low"})}function bl(t){const e=this.getTransformedByOperation(t);if(!this.isEqual(e)){const t=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",t)}}Xt(gl,h);class fl{constructor(t,e,n){this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(t){for(const e of Array.from(t))this._handleNode(e);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(t){const e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new l.a("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this.nodeToSelect?Aa._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Aa(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){if(this.schema.isObject(t))return void this._handleObject(t);let e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t),e)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=gl.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}_handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new l.a("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=t:this.nodeToSelect=null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=gl.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=gl.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof ha))return;if(!this._canMergeLeft(t))return;const e=gl._createBefore(t);e.stickiness="toNext";const n=gl.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=gl._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=gl._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_mergeOnRight(){const t=this._lastNode;if(!(t instanceof ha))return;if(!this._canMergeRight(t))return;const e=gl._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new l.a("insertcontent-invalid-insertion-position",this);this.position=ga._createAt(e.nodeBefore,"end");const n=gl.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=gl._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=gl._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_canMergeLeft(t){const e=t.previousSibling;return e instanceof ha&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof ha&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_tryAutoparagraphing(t){const e=this.writer.createElement("paragraph");this._getAllowedIn(e,this.position.parent)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}_checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();const e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(t,this.position.parent);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){const t=this.position.parent;this.position=this.writer.createPositionBefore(t),t.isEmpty&&t.parent===e&&this.writer.remove(t)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const t=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=t,this.canMergeWith.add(this.position.nodeAfter)}}return!0}_getAllowedIn(t,e){return this.schema.checkChild(e,t)?e:e.parent?this._getAllowedIn(t,e.parent):null}}function Al(t,e,n={}){if(e.isCollapsed)return;const o=e.getFirstRange();if("$graveyard"==o.root.rootName)return;const i=t.schema;t.change((t=>{if(!n.doNotResetEntireContent&&function(t,e){const n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;const o=e.getFirstRange();if(o.start.parent==o.end.parent)return!1;return t.checkChild(n,"paragraph")}(i,e))return void function(t,e){const n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),vl(t,t.createPositionAt(n,0),e)}(t,e);const[r,s]=function(t){const e=t.root.document.model,n=t.start;let o=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){const n=function(t){const e=t.parent,n=e.root.document.model.schema,o=e.getAncestors({parentFirst:!0,includeSelf:!0});for(const t of o){if(n.isLimit(t))return null;if(n.isBlock(t))return t}}(o);if(n&&o.isTouching(e.createPositionAt(n,0))){const n=e.createSelection(t);e.modifySelection(n,{direction:"backward"}),o=n.getLastPosition()}}return[gl.fromPosition(n,"toPrevious"),gl.fromPosition(o,"toNext")]}(o);r.isTouching(s)||t.remove(t.createRange(r,s)),n.leaveUnmerged||(!function(t,e,n){const o=t.model;if(!_l(t.model.schema,e,n))return;const[i,r]=function(t,e){const n=t.getAncestors(),o=e.getAncestors();let i=0;for(;n[i]&&n[i]==o[i];)i++;return[n[i],o[i]]}(e,n);if(!i||!r)return;!o.hasContent(i,{ignoreMarkers:!0})&&o.hasContent(r,{ignoreMarkers:!0})?wl(t,e,n,i.parent):Cl(t,e,n,i.parent)}(t,r,s),i.removeDisallowedAttributes(r.parent.getChildren(),t)),yl(t,e,r),!n.doNotAutoparagraph&&function(t,e){const n=t.checkChild(e,"$text"),o=t.checkChild(e,"paragraph");return!n&&o}(i,r)&&vl(t,r,e),r.detach(),s.detach()}))}function Cl(t,e,n,o){const i=e.parent,r=n.parent;if(i!=o&&r!=o){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(r,e),t.merge(e);n.parent.isEmpty;){const e=n.parent;n=t.createPositionBefore(e),t.remove(e)}_l(t.model.schema,e,n)&&Cl(t,e,n,o)}}function wl(t,e,n,o){const i=e.parent,r=n.parent;if(i!=o&&r!=o){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(i,n);e.parent.isEmpty;){const n=e.parent;e=t.createPositionBefore(n),t.remove(n)}n=t.createPositionBefore(r),function(t,e){const n=e.nodeBefore,o=e.nodeAfter;n.name!=o.name&&t.rename(n,o.name);t.clearAttributes(n),t.setAttributes(Object.fromEntries(o.getAttributes()),n),t.merge(e)}(t,n),_l(t.model.schema,e,n)&&wl(t,e,n,o)}}function _l(t,e,n){const o=e.parent,i=n.parent;return o!=i&&(!t.isLimit(o)&&!t.isLimit(i)&&function(t,e,n){const o=new Aa(t,e);for(const t of o.getWalker())if(n.isLimit(t.item))return!1;return!0}(e,n,t))}function vl(t,e,n){const o=t.createElement("paragraph");t.insert(o,e),yl(t,n,t.createPositionAt(o,0))}function yl(t,e,n){e instanceof La?t.setSelection(n):e.setTo(n)}const xl=' ,.?!:;"-()';function El(t,e){const{isForward:n,walker:o,unit:i,schema:r}=t,{type:s,item:a,nextPosition:c}=e;if("text"==s)return"word"===t.unit?function(t,e){let n=t.position.textNode;if(n){let o=t.position.offset-n.startOffset;for(;!Dl(n.data,o,e)&&!Bl(n,o,e);){t.next();const i=e?t.position.nodeAfter:t.position.nodeBefore;if(i&&i.is("$text")){const o=i.data.charAt(e?0:i.data.length-1);xl.includes(o)||(t.next(),n=t.position.textNode)}o=t.position.offset-n.startOffset}}return t.position}(o,n):function(t,e){const n=t.position.textNode;if(n){const o=n.data;let i=t.position.offset-n.startOffset;for(;sl(o,i)||"character"==e&&al(o,i);)t.next(),i=t.position.offset-n.startOffset}return t.position}(o,i);if(s==(n?"elementStart":"elementEnd")){if(r.isSelectable(a))return ga._createAt(a,n?"after":"before");if(r.checkChild(c,"$text"))return c}else{if(r.isLimit(a))return void o.skip((()=>!0));if(r.checkChild(c,"$text"))return c}}function Il(t,e){const n=t.root,o=ga._createAt(n,e?"end":0);return e?new Aa(t,o):new Aa(o,t)}function Dl(t,e,n){const o=e+(n?0:-1);return xl.includes(t.charAt(o))}function Bl(t,e,n){return e===(n?t.endOffset:0)}function Sl(t,e){const n=[];Array.from(t.getItems({direction:"backward"})).map((t=>e.createRangeOn(t))).filter((e=>(e.start.isAfter(t.start)||e.start.isEqual(t.start))&&(e.end.isBefore(t.end)||e.end.isEqual(t.end)))).forEach((t=>{n.push(t.start.parent),e.remove(t)})),n.forEach((t=>{let n=t;for(;n.parent&&n.isEmpty;){const t=e.createRangeOn(n);n=n.parent,e.remove(t)}}))}function Tl(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.selection,o=e.schema,i=[];let r=!1;for(const t of n.getRanges()){const e=Ml(t,o);e&&!e.isEqual(t)?(i.push(e),r=!0):i.push(t)}r&&t.setSelection(function(t){const e=[];e.push(t.shift());for(const n of t){const t=e.pop();if(n.isEqual(t))e.push(t);else if(n.isIntersecting(t)){const o=t.start.isAfter(n.start)?n.start:t.start,i=t.end.isAfter(n.end)?t.end:n.end,r=new Aa(o,i);e.push(r)}else e.push(t),e.push(n)}return e}(i),{backward:n.isBackward})}(e,t)))}function Ml(t,e){return t.isCollapsed?function(t,e){const n=t.start,o=e.getNearestSelectionRange(n);if(!o)return null;if(!o.isCollapsed)return o;const i=o.start;if(n.isEqual(i))return null;return new Aa(i)}(t,e):function(t,e){const{start:n,end:o}=t,i=e.checkChild(n,"$text"),r=e.checkChild(o,"$text"),s=e.getLimitElement(n),a=e.getLimitElement(o);if(s===a){if(i&&r)return null;if(function(t,e,n){const o=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),i=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return o||i}(n,o,e)){const t=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),i=o.nodeBefore&&e.isSelectable(o.nodeBefore)?null:e.getNearestSelectionRange(o,"backward"),r=t?t.start:n,s=i?i.end:o;return new Aa(r,s)}}const c=s&&!s.is("rootElement"),l=a&&!a.is("rootElement");if(c||l){const t=n.nodeAfter&&o.nodeBefore&&n.nodeAfter.parent===o.nodeBefore.parent,i=c&&(!t||!Nl(n.nodeAfter,e)),r=l&&(!t||!Nl(o.nodeBefore,e));let d=n,u=o;return i&&(d=ga._createBefore(zl(s,e))),r&&(u=ga._createAfter(zl(a,e))),new Aa(d,u)}return null}(t,e)}function zl(t,e){let n=t,o=n;for(;e.isLimit(o)&&o.parent;)n=o,o=o.parent;return n}function Nl(t,e){return t&&e.isSelectable(t)}class Pl{constructor(){this.markers=new ul,this.document=new ll(this),this.schema=new cc,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((t=>this.decorate(t))),this.on("applyOperation",((t,e)=>{e[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("$documentFragment",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$documentFragment"}),this.schema.register("$marker"),this.schema.addChildCheck(((t,e)=>{if("$marker"===e.name)return!0})),Tl(this),this.document.registerPostFixer(Ka)}change(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Dc,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(t){l.a.rethrowUnexpectedError(t,this)}}enqueueChange(t,e){try{"string"==typeof t?t=new Dc(t):"function"==typeof t&&(e=t,t=new Dc),this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(t){l.a.rethrowUnexpectedError(t,this)}}applyOperation(t){t._execute()}insertContent(t,e,n){return function(t,e,n,o){return t.change((i=>{let r;r=n?n instanceof Ia||n instanceof La?n:i.createSelection(n,o):t.document.selection,r.isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0});const s=new fl(t,i,r.anchor);let a;a=e.is("documentFragment")?e.getChildren():[e],s.handleNodes(a);const c=s.getSelectionRange();c&&(r instanceof La?i.setSelection(c):r.setTo(c));const l=s.getAffectedRange()||t.createRange(r.anchor);return s.destroy(),l}))}(this,t,e,n)}deleteContent(t,e){Al(this,t,e)}modifySelection(t,e){!function(t,e,n={}){const o=t.schema,i="backward"!=n.direction,r=n.unit?n.unit:"character",s=e.focus,a=new ka({boundaries:Il(s,i),singleCharacters:!0,direction:i?"forward":"backward"}),c={walker:a,schema:o,isForward:i,unit:r};let l;for(;l=a.next();){if(l.done)return;const n=El(c,l.value);if(n)return void(e instanceof La?t.change((t=>{t.setSelectionFocus(n)})):e.setFocus(n))}}(this,t,e)}getSelectedContent(t){return function(t,e){return t.change((t=>{const n=t.createDocumentFragment(),o=e.getFirstRange();if(!o||o.isCollapsed)return n;const i=o.start.root,r=o.start.getCommonPath(o.end),s=i.getNodeByPath(r);let a;a=o.start.parent==o.end.parent?o:t.createRange(t.createPositionAt(s,o.start.path[r.length]),t.createPositionAt(s,o.end.path[r.length]+1));const c=a.end.offset-a.start.offset;for(const e of a.getItems({shallow:!0}))e.is("$textProxy")?t.appendText(e.data,e.getAttributes(),n):t.append(t.cloneElement(e,!0),n);if(a!=o){const e=o._getTransformedByMove(a.start,t.createPositionAt(n,0),c)[0],i=t.createRange(t.createPositionAt(n,0),e.start);Sl(t.createRange(e.end,t.createPositionAt(n,"end")),t),Sl(i,t)}return n}))}(this,t)}hasContent(t,e={}){const n=t instanceof ha?Aa._createIn(t):t;if(n.isCollapsed)return!1;const{ignoreWhitespaces:o=!1,ignoreMarkers:i=!1}=e;if(!i)for(const t of this.markers.getMarkersIntersectingRange(n))if(t.affectsData)return!0;for(const t of n.getItems())if(this.schema.isContent(t)){if(!t.is("$textProxy"))return!0;if(!o)return!0;if(-1!==t.data.search(/\S/))return!0}return!1}createPositionFromPath(t,e,n){return new ga(t,e,n)}createPositionAt(t,e){return ga._createAt(t,e)}createPositionAfter(t){return ga._createAfter(t)}createPositionBefore(t){return ga._createBefore(t)}createRange(t,e){return new Aa(t,e)}createRangeIn(t){return Aa._createIn(t)}createRangeOn(t){return Aa._createOn(t)}createSelection(t,e,n){return new Ia(t,e,n)}createBatch(t){return new Dc(t)}createOperationFromJSON(t){return class{static fromJSON(t,e){return pl[t.__className].fromJSON(t,e)}}.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){const e=this._pendingChanges[0].batch;this._currentWriter=new Yc(this,e);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),t}}Xt(Pl,qt);class Ll extends Ys{constructor(t){super(),this.editor=t}set(t,e,n={}){if("string"==typeof e){const t=e;e=(e,n)=>{this.editor.execute(t),n()}}super.set(t,e,n)}}class Ol{constructor(t={}){this._context=t.context||new bo({language:t.language}),this._context._addEditor(this,!t.context);const e=Array.from(this.constructor.builtinPlugins||[]);this.config=new ro(t,this.constructor.defaultConfig),this.config.define("plugins",e),this.config.define(this._context._getEditorConfig()),this.plugins=new uo(this,e,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new rc,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.set("isReadOnly",!1),this.model=new Pl;const n=new ai;this.data=new yc(this.model,n),this.editing=new ic(this.model,n),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new xc([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 Ll(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],o=t.get("extraPlugins")||[],i=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(o),n,i)}destroy(){let t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((t=>this.once("ready",t)))),t.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(...t){try{return this.commands.execute(...t)}catch(t){l.a.rethrowUnexpectedError(t,this)}}focus(){this.editing.view.focus()}}Xt(Ol,qt);class Rl{constructor(t){this.editor=t,this._components=new Map}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(Fl(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new l.a("componentfactory-item-missing",this,{name:t});return this._components.get(Fl(t)).callback(this.editor.locale)}has(t){return this._components.has(Fl(t))}}function Fl(t){return String(t).toLowerCase()}class Vl{constructor(t){this.editor=t,this.componentFactory=new Rl(t),this.focusTracker=new Ks,this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",(()=>this.update()))}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){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}}Xt(Vl,h);var jl={setData(t){this.data.set(t)},getData(t){return this.data.get(t)}};var Jl={updateSourceElement(){if(!this.sourceElement)throw new l.a("editor-missing-sourceelement",this);var t,e;t=this.sourceElement,e=this.data.get(),t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}};class Hl extends fo{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new lo({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if("string"!=typeof t)throw new l.a("pendingactions-add-invalid-message",this);const e=Object.create(qt);return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}var Ul='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',ql='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',Gl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>';const Wl=Ul,Kl=ql,Yl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',Ql='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',Xl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',Zl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',$l='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',td='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',ed='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',nd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',od='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',id='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',rd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',sd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',ad='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>',cd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>',ld='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',dd='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',ud='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',hd='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',kd=Gl,pd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',gd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>';class md{constructor(){const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return this.total=t.size,new Promise(((n,o)=>{e.onload=()=>{const t=e.result;this._data=t,n(t)},e.onerror=()=>{o("error")},e.onabort=()=>{o("aborted")},this._reader.readAsDataURL(t)}))}abort(){this._reader.abort()}}Xt(md,qt);class bd extends Zt{static get pluginName(){return"FileRepository"}static get requires(){return[Hl]}init(){this.loaders=new lo,this.loaders.on("add",(()=>this._updatePendingAction())),this.loaders.on("remove",(()=>this._updatePendingAction())),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0))}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return Object(l.b)("filerepository-no-upload-adapter"),null;const e=new fd(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then((t=>{this._loadersMap.set(t,e)})).catch((()=>{})),e.on("change:uploaded",(()=>{let t=0;for(const e of this.loaders)t+=e.uploaded;this.uploaded=t})),e.on("change:uploadTotal",(()=>{let t=0;for(const e of this.loaders)e.uploadTotal&&(t+=e.uploadTotal);this.uploadTotal=t})),e}destroyLoader(t){const e=t instanceof fd?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach(((t,n)=>{t===e&&this._loadersMap.delete(n)}))}_updatePendingAction(){const t=this.editor.plugins.get(Hl);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=t=>`${e("Upload in progress")} ${parseInt(t)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}Xt(bd,qt);class fd{constructor(t,e){this.id=s(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new md,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((t=>this._filePromiseWrapper?t:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new l.a("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((t=>this._reader.read(t))).then((t=>{if("reading"!==this.status)throw this.status;return this.status="idle",t})).catch((t=>{if("aborted"===t)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:t}))}upload(){if("idle"!=this.status)throw new l.a("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((t=>(this.uploadResponse=t,this.status="idle",t))).catch((t=>{if("aborted"===this.status)throw"aborted";throw this.status="error",t}))}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((()=>{})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise(((n,o)=>{e.rejecter=o,e.isFulfilled=!1,t.then((t=>{e.isFulfilled=!0,n(t)})).catch((t=>{e.isFulfilled=!0,o(t)}))})),e}}Xt(fd,qt);class Ad extends lo{constructor(t=[]){super(t,{idProperty:"viewUid"}),this.on("add",((t,e,n)=>{this._renderViewIntoCollectionParent(e,n)})),this.on("remove",((t,e)=>{e.element&&this._parentElement&&e.element.remove()})),this._parentElement=null}destroy(){this.map((t=>t.destroy()))}setParent(t){this._parentElement=t;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...t){if(!t.length||!t.every((t=>"string"==typeof t)))throw new l.a("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const o of t)n.delegate(o).to(e);this.on("add",((n,o)=>{for(const n of t)o.delegate(n).to(e)})),this.on("remove",((n,o)=>{for(const n of t)o.stopDelegating(n,e)}))}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}}class Cd{constructor(t){Object.assign(this,Sd(Bd(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new l.a("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const n of e.children)Ld(n)?yield n:Od(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,o)=>new _d({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:o}),if:(n,o,i)=>new vd({observable:t,emitter:e,attribute:n,valueIfTrue:o,callback:i})}}static extend(t,e){if(t._isRendered)throw new l.a("template-extend-render",[this,t]);Nd(t,Sd(Bd(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new l.a("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),yd(this.text)?this._bindToObservable({schema:this.text,updater:Ed(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){let e,n,o,i;if(!this.attributes)return;const r=t.node,s=t.revertData;for(e in this.attributes)if(o=r.getAttribute(e),n=this.attributes[e],s&&(s.attributes[e]=o),i=C(n[0])&&n[0].ns?n[0].ns:null,yd(n)){const a=i?n[0].value:n;s&&Fd(e)&&a.unshift(o),this._bindToObservable({schema:a,updater:Id(r,e,i),data:t})}else"style"==e&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],t):(s&&o&&Fd(e)&&n.unshift(o),n=n.map((t=>t&&t.value||t)).reduce(((t,e)=>t.concat(e)),[]).reduce(Md,""),Pd(n)||r.setAttributeNS(i,e,n))}_renderStyleAttribute(t,e){const n=e.node;for(const o in t){const i=t[o];yd(i)?this._bindToObservable({schema:[i],updater:Dd(n,o),data:e}):n.style[o]=i}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,o=t.isApplying;let i=0;for(const r of this.children)if(Rd(r)){if(!o){r.setParent(e);for(const t of r)n.appendChild(t.element)}}else if(Ld(r))o||(r.isRendered||r.render(),n.appendChild(r.element));else if(Er(r))n.appendChild(r);else if(o){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),r._renderNode({node:n.childNodes[i++],isApplying:!0,revertData:e})}else n.appendChild(r.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map((n=>{const[o,i]=e.split("@");return n.activateDomEventListener(o,i,t)}));t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const o=n.revertData;xd(t,e,n);const i=t.filter((t=>!Pd(t))).filter((t=>t.observable)).map((o=>o.activateAttributeListener(t,e,n)));o&&o.bindings.push(i)}_revertTemplateFromNode(t,e){for(const t of e.bindings)for(const e of t)e();if(e.text)t.textContent=e.text;else{for(const n in e.attributes){const o=e.attributes[n];null===o?t.removeAttribute(n):t.setAttribute(n,o)}for(let n=0;n<e.children.length;++n)this._revertTemplateFromNode(t.childNodes[n],e.children[n])}}}Xt(Cd,h);class wd{constructor(t){Object.assign(this,t)}getValue(t){const e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}activateAttributeListener(t,e,n){const o=()=>xd(t,e,n);return this.emitter.listenTo(this.observable,"change:"+this.attribute,o),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,o)}}}class _d extends wd{activateDomEventListener(t,e,n){const o=(t,n)=>{e&&!n.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,t,o),()=>{this.emitter.stopListening(n.node,t,o)}}}class vd extends wd{getValue(t){return!Pd(super.getValue(t))&&(this.valueIfTrue||!0)}}function yd(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(yd):t instanceof wd)}function xd(t,e,{node:n}){let o=function(t,e){return t.map((t=>t instanceof wd?t.getValue(e):t))}(t,n);o=1==t.length&&t[0]instanceof vd?o[0]:o.reduce(Md,""),Pd(o)?e.remove():e.set(o)}function Ed(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}function Id(t,e,n){return{set(o){t.setAttributeNS(n,e,o)},remove(){t.removeAttributeNS(n,e)}}}function Dd(t,e){return{set(n){t.style[e]=n},remove(){t.style[e]=null}}}function Bd(t){return oo(t,(t=>{if(t&&(t instanceof wd||Od(t)||Ld(t)||Rd(t)))return t}))}function Sd(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=ho(t.text)}(t),t.on&&(t.eventListeners=function(t){for(const e in t)Td(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(const e in t)t[e].value&&(t[e].value=ho(t[e].value)),Td(t,e)}(t.attributes);const e=[];if(t.children)if(Rd(t.children))e.push(t.children);else for(const n of t.children)Od(n)||Ld(n)||Er(n)?e.push(n):e.push(new Cd(n));t.children=e}return t}function Td(t,e){t[e]=ho(t[e])}function Md(t,e){return Pd(e)?t:Pd(t)?e:`${t} ${e}`}function zd(t,e){for(const n in e)t[n]?t[n].push(...e[n]):t[n]=e[n]}function Nd(t,e){if(e.attributes&&(t.attributes||(t.attributes={}),zd(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),zd(t.eventListeners,e.eventListeners)),e.text&&t.text.push(...e.text),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new l.a("ui-template-extend-children-mismatch",t);let n=0;for(const o of e.children)Nd(t.children[n++],o)}}function Pd(t){return!t&&0!==t}function Ld(t){return t instanceof Ud}function Od(t){return t instanceof Cd}function Rd(t){return t instanceof Ad}function Fd(t){return"class"==t||"style"==t}var Vd=n(1),jd=n.n(Vd),Jd=n(12),Hd={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Jd.a,Hd),Jd.a.locals;class Ud{constructor(t){this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new lo,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((e,n)=>{n.locale=t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Cd.bind(this,this)}createCollection(t){const e=new Ad(t);return this._viewCollections.add(e),e}registerChild(t){co(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){co(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new Cd(t)}extendTemplate(t){Cd.extend(this.template,t)}render(){if(this.isRendered)throw new l.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((t=>t.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}Xt(Ud,Jr),Xt(Ud,qt);var qd=n(13),Gd={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(qd.a,Gd),qd.a.locals;class Wd extends Ud{constructor(){super();const t=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:t.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const t=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");for(e&&(this.viewBox=e),this.element.innerHTML="";t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((t=>{t.style.fill=this.fillColor}))}}var Kd=n(14),Yd={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Kd.a,Yd),Kd.a.locals;class Qd extends Ud{constructor(t){super(t),this.set("text",""),this.set("position","s");const e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",e.to("position",(t=>"ck-tooltip_"+t)),e.if("text","ck-hidden",(t=>!t.trim()))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:e.to("text")}]}]})}}var Xd=n(15),Zd={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Xd.a,Zd),Xd.a.locals;class $d extends Ud{constructor(t){super(t);const e=this.bindTemplate,n=s();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(n),this.iconView=new Wd,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",e.to("class"),e.if("isEnabled","ck-disabled",(t=>!t)),e.if("isVisible","ck-hidden",(t=>!t)),e.to("isOn",(t=>t?"ck-on":"ck-off")),e.if("withText","ck-button_with-text"),e.if("withKeystroke","ck-button_with-keystroke")],type:e.to("type",(t=>t||"button")),tabindex:e.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${n}`,"aria-disabled":e.if("isEnabled",!0,(t=>!t)),"aria-pressed":e.to("isOn",(t=>!!this.isToggleable&&String(t)))},children:this.children,on:{mousedown:e.to((t=>{t.preventDefault()})),click:e.to((t=>{this.isEnabled?this.fire("execute"):t.preventDefault()}))}})}render(){super.render(),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)}focus(){this.element.focus()}_createTooltipView(){const t=new Qd;return t.bind("text").to(this,"_tooltipString"),t.bind("position").to(this,"tooltipPosition"),t}_createLabelView(t){const e=new Ud,n=this.bindTemplate;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:`ck-editor__aria-label_${t}`},children:[{text:this.bindTemplate.to("label")}]}),e}_createKeystrokeView(){const t=new Ud;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(t=>qi(t)))}]}),t}_getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=qi(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}class tu extends Ud{constructor(t){super(t),this.buttonView=new $d(t),this._fileInputView=new eu(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",(()=>{this._fileInputView.open()}))}focus(){this.buttonView.focus()}}class eu extends Ud{constructor(t){super(t),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}const nu="ckCsrfToken",ou="abcdefghijklmnopqrstuvwxyz0123456789";function iu(){let t=function(t){t=t.toLowerCase();const e=document.cookie.split(";");for(const n of e){const e=n.split("=");if(decodeURIComponent(e[0].trim().toLowerCase())===t)return decodeURIComponent(e[1])}return null}(nu);var e,n;return t&&40==t.length||(t=function(t){let e="";const n=new Uint8Array(t);window.crypto.getRandomValues(n);for(let t=0;t<n.length;t++){const o=ou.charAt(n[t]%ou.length);e+=Math.random()>.5?o.toUpperCase():o}return e}(40),e=nu,n=t,document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+";path=/"),t}class ru{constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then((t=>new Promise(((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const o=this.xhr,i=this.loader,r=(0,this.t)("Cannot upload file:")+` ${n.name}.`;o.addEventListener("error",(()=>e(r))),o.addEventListener("abort",(()=>e())),o.addEventListener("load",(()=>{const n=o.response;if(!n||!n.uploaded)return e(n&&n.error&&n.error.message?n.error.message:r);t({default:n.url})})),o.upload&&o.upload.addEventListener("progress",(t=>{t.lengthComputable&&(i.uploadTotal=t.total,i.uploaded=t.loaded)}))}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",iu()),this.xhr.send(e)}}const su=["left","right","center","justify"];function au(t){return su.includes(t)}function cu(t,e){return"rtl"==e.contentLanguageDirection?"right"===t:"left"===t}function lu(t){const e=t.map((t=>{let e;return e="string"==typeof t?{name:t}:t,e})).filter((t=>{const e=!!su.includes(t.name);return e||Object(l.b)("alignment-config-name-not-recognized",{option:t}),e})),n=e.filter((t=>!!t.className)).length;if(n&&n<e.length)throw new l.a("alignment-config-classnames-are-missing",{configuredOptions:t});return e.forEach(((e,n,o)=>{const i=o.slice(n+1);if(i.some((t=>t.name==e.name)))throw new l.a("alignment-config-name-already-defined",{option:e,configuredOptions:t});if(e.className){if(i.some((t=>t.className==e.className)))throw new l.a("alignment-config-classname-already-defined",{option:e,configuredOptions:t})}})),e}const du="alignment";class uu extends te{refresh(){const t=this.editor.locale,e=Ws(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!e&&this._canBeAligned(e),this.isEnabled&&e.hasAttribute("alignment")?this.value=e.getAttribute("alignment"):this.value="rtl"===t.contentLanguageDirection?"right":"left"}execute(t={}){const e=this.editor,n=e.locale,o=e.model,i=o.document,r=t.value;o.change((t=>{const e=Array.from(i.selection.getSelectedBlocks()).filter((t=>this._canBeAligned(t))),o=e[0].getAttribute("alignment");cu(r,n)||o===r||!r?function(t,e){for(const n of t)e.removeAttribute(du,n)}(e,t):function(t,e,n){for(const o of t)e.setAttribute(du,n,o)}(e,t,r)}))}_canBeAligned(t){return this.editor.model.schema.checkAttribute(t,du)}}class hu extends Zt{static get pluginName(){return"AlignmentEditing"}constructor(t){super(t),t.config.define("alignment",{options:[...su.map((t=>({name:t})))]})}init(){const t=this.editor,e=t.locale,n=t.model.schema,o=lu(t.config.get("alignment.options")).filter((t=>au(t.name)&&!cu(t.name,e))),i=o.some((t=>!!t.className));n.extend("$block",{allowAttributes:"alignment"}),t.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),i?t.conversion.attributeToAttribute(function(t){const e={model:{key:"alignment",values:t.map((t=>t.name))},view:{}};for(const n of t)e.view[n.name]={key:"class",value:n.className};return e}(o)):t.conversion.for("downcast").attributeToAttribute(function(t){const e={model:{key:"alignment",values:t.map((t=>t.name))},view:{}};for(const{name:n}of t)e.view[n]={key:"style",value:{"text-align":n}};return e}(o));const r=function(t){const e=[];for(const{name:n}of t)e.push({view:{key:"style",value:{"text-align":n}},model:{key:"alignment",value:n}});return e}(o);for(const e of r)t.conversion.for("upcast").attributeToAttribute(e);const s=function(t){const e=[];for(const{name:n}of t)e.push({view:{key:"align",value:n},model:{key:"alignment",value:n}});return e}(o);for(const e of s)t.conversion.for("upcast").attributeToAttribute(e);t.commands.add("alignment",new uu(t))}}function ku({emitter:t,activator:e,callback:n,contextElements:o}){t.listenTo(document,"mousedown",((t,i)=>{if(!e())return;const r="function"==typeof i.composedPath?i.composedPath():[];for(const t of o)if(t.contains(i.target)||r.includes(t))return;n()}))}function pu(t){t.set("_isCssTransitionsDisabled",!1),t.disableCssTransitions=()=>{t._isCssTransitionsDisabled=!0},t.enableCssTransitions=()=>{t._isCssTransitionsDisabled=!1},t.extendTemplate({attributes:{class:[t.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function gu({view:t}){t.listenTo(t.element,"submit",((e,n)=>{n.preventDefault(),t.fire("submit")}),{useCapture:!0})}class mu extends Ad{constructor(t,e=[]){super(e),this.locale=t}attachToDom(){this._bodyCollectionContainer=new Cd({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=Os(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}var bu=n(16),fu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(bu.a,fu),bu.a.locals;class Au extends $d{constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new Ud;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}function Cu(t,e){const n=t.t,o={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 e.map((t=>{const e=o[t.label];return e&&e!=t.label&&(t.label=e),t}))}function wu(t){return t.map(_u).filter((t=>!!t))}function _u(t){return"string"==typeof t?{model:t,label:t,hasBorder:!1,view:{name:"span",styles:{color:t}}}:{model:t.color,label:t.label||t.color,hasBorder:void 0!==t.hasBorder&&t.hasBorder,view:{name:"span",styles:{color:`${t.color}`}}}}class vu extends $d{constructor(t){super(t);const e=this.bindTemplate;this.set("color"),this.set("hasBorder"),this.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',this.extendTemplate({attributes:{style:{backgroundColor:e.to("color")},class:["ck","ck-color-grid__tile",e.if("hasBorder","ck-color-table__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}class yu{constructor(t){if(Object.assign(this,t),t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];"string"==typeof n&&(n=[n]);for(const o of n)t.keystrokeHandler.set(o,((t,n)=>{this[e](),n()}))}}get first(){return this.focusables.find(xu)||null}get last(){return this.focusables.filter(xu).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((e,n)=>{const o=e.element===this.focusTracker.focusedElement;return o&&(t=n),o})),t)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(t){t&&t.focus()}_getFocusableItem(t){const e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];let o=(e+n+t)%n;do{const e=this.focusables.get(o);if(xu(e))return e;o=(o+n+t)%n}while(o!==e);return null}}function xu(t){return!(!t.focus||"none"==Tr.window.getComputedStyle(t.element).display)}var Eu=n(17),Iu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Eu.a,Iu),Eu.a.locals;class Du extends Ud{constructor(t,e){super(t);const n=e&&e.colorDefinitions||[],o={};e&&e.columns&&(o.gridTemplateColumns=`repeat( ${e.columns}, 1fr)`),this.set("selectedColor"),this.items=this.createCollection(),this.focusTracker=new Ks,this.keystrokes=new Ys,this._focusCycler=new yu({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),this.items.on("add",((t,e)=>{e.isOn=e.color===this.selectedColor})),n.forEach((t=>{const e=new vu;e.set({color:t.color,label:t.label,tooltip:!0,hasBorder:t.options.hasBorder}),e.on("execute",(()=>{this.fire("execute",{value:t.color,hasBorder:t.options.hasBorder,label:t.label})})),this.items.add(e)})),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:o}}),this.on("change:selectedColor",((t,e,n)=>{for(const t of this.items)t.isOn=t.color===n}))}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element)}}var Bu='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';class Su extends $d{constructor(t){super(t),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new Wd;return t.content=Bu,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}var Tu=n(18),Mu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Tu.a,Mu),Tu.a.locals;class zu extends Ud{constructor(t){super(t);const e=this.bindTemplate;this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new Ys,this.focusTracker=new Ks,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",e.if("isVisible","ck-hidden",(t=>!t)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),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",((t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())})),this.keystrokes.set("arrowleft",((t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())}))}focus(){this.actionView.focus()}_createActionView(){const t=new $d;return t.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),t.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),t.delegate("execute").to(this),t}_createArrowView(){const t=new $d,e=t.bindTemplate;return t.icon=Bu,t.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":e.to("isOn",(t=>String(t)))}}),t.bind("isEnabled").to(this),t.delegate("execute").to(this,"open"),t}}class Nu extends Ud{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",(t=>`ck-dropdown__panel_${t}`)),e.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:e.to((t=>t.preventDefault()))}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}var Pu=n(19),Lu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Pu.a,Lu),Pu.a.locals;function Ou({element:t,target:e,positions:n,limiter:o,fitInViewport:i}){z(e)&&(e=e()),z(o)&&(o=o());const r=function(t){return t&&t.parentNode?t.offsetParent===Tr.document.body?null:t.offsetParent:null}(t),s=new js(t),a=new js(e);let c,l;if(o||i){const t=function(t,e){const{elementRect:n,viewportRect:o}=e,i=n.getArea(),r=function(t,{targetRect:e,elementRect:n,limiterRect:o,viewportRect:i}){const r=[],s=n.getArea();for(const a of t){const t=Ru(a,e,n);if(!t)continue;const[c,l]=t;let d=0,u=0;if(o)if(i){const t=o.getIntersection(i);t&&(d=t.getIntersectionArea(l))}else d=o.getIntersectionArea(l);i&&(u=i.getIntersectionArea(l));const h={positionName:c,positionRect:l,limiterIntersectArea:d,viewportIntersectArea:u};if(d===s)return[h];r.push(h)}return r}(t,e);if(o){const t=Fu(r.filter((({viewportIntersectArea:t})=>t===i)),i);if(t)return t}return Fu(r,i)}(n,{targetRect:a,elementRect:s,limiterRect:o&&new js(o).getVisible(),viewportRect:i&&new js(Tr.window)});[l,c]=t||Ru(n[0],a,s)}else[l,c]=Ru(n[0],a,s);let d=Vu(c);return r&&(d=function({left:t,top:e},n){const o=Vu(new js(n)),i=Fs(n);return t-=o.left,e-=o.top,t+=n.scrollLeft,e+=n.scrollTop,t-=i.left,e-=i.top,{left:t,top:e}}(d,r)),{left:d.left,top:d.top,name:l}}function Ru(t,e,n){const o=t(e,n);if(!o)return null;const{left:i,top:r,name:s}=o;return[s,n.clone().moveTo(i,r)]}function Fu(t,e){let n,o,i=0;for(const{positionName:r,positionRect:s,limiterIntersectArea:a,viewportIntersectArea:c}of t){if(a===e)return[r,s];const t=c**2+a**2;t>i&&(i=t,n=s,o=r)}return n?[o,n]:null}function Vu({left:t,top:e}){const{scrollX:n,scrollY:o}=Tr.window;return{left:t+n,top:e+o}}class ju extends Ud{constructor(t,e,n){super(t);const o=this.bindTemplate;this.buttonView=e,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new Ys,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",o.to("class"),o.if("isEnabled","ck-disabled",(t=>!t))],id:o.to("id"),"aria-describedby":o.to("ariaDescribedById")},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(()=>{this.isOpen&&("auto"===this.panelPosition?this.panelView.position=ju._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)})),this.keystrokes.listenTo(this.element);const t=(t,e)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,e())};this.keystrokes.set("arrowdown",((t,e)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,e())})),this.keystrokes.set("arrowright",((t,e)=>{this.isOpen&&e()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:t,north:e,southEast:n,southWest:o,northEast:i,northWest:r,southMiddleEast:s,southMiddleWest:a,northMiddleEast:c,northMiddleWest:l}=ju.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[n,o,s,a,t,i,r,c,l,e]:[o,n,a,s,t,r,i,l,c,e]}}ju.defaultPanelPositions={south:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/2,name:"s"}),southEast:t=>({top:t.bottom,left:t.left,name:"se"}),southWest:(t,e)=>({top:t.bottom,left:t.left-e.width+t.width,name:"sw"}),southMiddleEast:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/4,name:"sme"}),southMiddleWest:(t,e)=>({top:t.bottom,left:t.left-3*(e.width-t.width)/4,name:"smw"}),north:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/2,name:"n"}),northEast:(t,e)=>({top:t.top-e.height,left:t.left,name:"ne"}),northWest:(t,e)=>({top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}),northMiddleEast:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/4,name:"nme"}),northMiddleWest:(t,e)=>({top:t.top-e.height,left:t.left-3*(e.width-t.width)/4,name:"nmw"})},ju._getOptimalPosition=Ou;class Ju extends Ud{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Hu extends Ud{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function Uu(t){return Array.isArray(t)?{items:t,removeItems:[]}:t?Object.assign({items:[],removeItems:[]},t):{items:[],removeItems:[]}}var qu=n(20),Gu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(qu.a,Gu),qu.a.locals;class Wu extends Ud{constructor(t,e){super(t);const n=this.bindTemplate,o=this.t;this.options=e||{},this.set("ariaLabel",o("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ks,this.keystrokes=new Ys,this.set("class"),this.set("isCompact",!1),this.itemsView=new Ku(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection(),this._focusCycler=new yu({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}});const i=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var r;this.options.shouldGroupWhenFull&&this.options.isFloating&&i.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:i,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")}},children:this.children,on:{mousedown:(r=this,r.bindTemplate.to((t=>{t.target===r.element&&t.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new Qu(this):new Yu(this)}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e){const n=Uu(t),o=n.items.filter(((t,o,i)=>"|"===t||-1===n.removeItems.indexOf(t)&&("-"===t?!this.options.shouldGroupWhenFull||(Object(l.b)("toolbarview-line-break-ignored-when-grouping-items",i),!1):!!e.has(t)||(Object(l.b)("toolbarview-item-unavailable",{name:t}),!1)))),i=this._cleanSeparators(o).map((t=>"|"===t?new Ju:"-"===t?new Hu:e.create(t)));this.items.addMany(i)}_cleanSeparators(t){const e=t=>"-"!==t&&"|"!==t,n=t.length,o=t.findIndex(e),i=n-t.slice().reverse().findIndex(e);return t.slice(o,i).filter(((t,n,o)=>{if(e(t))return!0;return!(n>0&&o[n-1]===t)}))}}class Ku extends Ud{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Yu{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((t=>t)),t.focusables.bindTo(t.items).using((t=>t)),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class Qu{constructor(t){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((t=>t)),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",((t,e)=>{const n=e.index;for(const t of e.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(t):this.ungroupedItems.remove(t);for(let t=n;t<n+e.added.length;t++){const o=e.added[t-n];t>this.ungroupedItems.length?this.groupedItems.add(o,t-this.ungroupedItems.length):this.ungroupedItems.add(o,t)}this._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);const t=this.groupedItems.length;let e;for(;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")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new js(t.lastChild),o=new js(t);if(!this.cachedPadding){const n=Tr.window.getComputedStyle(t),o="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(n[o])}return"ltr"===e?n.right>o.right-this.cachedPadding:n.left<o.left+this.cachedPadding}_enableGroupingOnResize(){let t;this.resizeObserver=new Us(this.viewElement,(e=>{t&&t===e.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),t=e.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(t){t.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Ju),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){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))}_createGroupedItemsDropdown(){const t=this.viewLocale,e=t.t,n=sh(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",ah(n,[]),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:gd}),n.toolbarView.items.bindTo(this.groupedItems).using((t=>t)),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((t=>{this.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var Xu=n(21),Zu={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Xu.a,Zu),Xu.a.locals;class $u extends Ud{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Ks,this.keystrokes=new Ys,this._focusCycler=new yu({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class th extends Ud{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}class eh extends Ud{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var nh=n(22),oh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0},ih=(jd()(nh.a,oh),nh.a.locals,n(23)),rh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(ih.a,rh),ih.a.locals;function sh(t,e=Su){const n=new e(t),o=new Nu(t),i=new ju(t,n,o);return n.bind("isEnabled").to(i),n instanceof Su?n.bind("isOn").to(i,"isOpen"):n.arrowView.bind("isOn").to(i,"isOpen"),function(t){(function(t){t.on("render",(()=>{ku({emitter:t,activator:()=>t.isOpen,callback:()=>{t.isOpen=!1},contextElements:[t.element]})}))})(t),function(t){t.on("execute",(e=>{e.source instanceof Au||(t.isOpen=!1)}))}(t),function(t){t.keystrokes.set("arrowdown",((e,n)=>{t.isOpen&&(t.panelView.focus(),n())})),t.keystrokes.set("arrowup",((e,n)=>{t.isOpen&&(t.panelView.focusLast(),n())}))}(t)}(i),i}function ah(t,e){const n=t.locale,o=n.t,i=t.toolbarView=new Wu(n);i.set("ariaLabel",o("Dropdown toolbar")),t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.map((t=>i.items.add(t))),t.panelView.children.add(i),i.items.delegate("execute").to(t)}function ch(t,e){const n=t.locale,o=t.listView=new $u(n);o.items.bindTo(e).using((({type:t,model:e})=>{if("separator"===t)return new eh(n);if("button"===t||"switchbutton"===t){const o=new th(n);let i;return i="button"===t?new $d(n):new Au(n),i.bind(...Object.keys(e)).to(e),i.delegate("execute").to(o),o.children.add(i),o}})),t.panelView.children.add(o),o.items.delegate("execute").to(t)}var lh=n(24),dh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(lh.a,dh),lh.a.locals;class uh extends Ud{constructor(t){super(t),this.body=new mu(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var hh=n(25),kh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(hh.a,kh),hh.a.locals;class ph extends Ud{constructor(t){super(t),this.set("text"),this.set("for"),this.id=`ck-editor__label_${s()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}class gh extends uh{constructor(t){super(t),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const t=this.t,e=new ph;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class mh extends Ud{constructor(t,e,n){super(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const t=this._editingView;function e(e){t.change((n=>{const o=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",o),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",o)}))}t.isRenderingInProgress?function n(o){t.once("change:isRenderingInProgress",((t,i,r)=>{r?n(o):e(o)}))}(this):e(this)}}class bh extends mh{constructor(t,e,n){super(t,e,n),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const t=this._editingView,e=this.t;t.change((n=>{const o=t.document.getRoot(this.name);n.setAttribute("aria-label",e("Rich Text Editor, %0",this.name),o)}))}}var fh=n(26),Ah={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(fh.a,Ah),fh.a.locals;class Ch extends Ud{constructor(t,e={}){super(t);const n=this.bindTemplate;this.set("label",e.label||""),this.set("class",e.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",n.to("class")]},children:this.children});const o=new Ud(t);o.setTemplate({tag:"span",attributes:{class:["ck","ck-form__header__label"]},children:[{text:n.to("label")}]}),this.children.add(o)}}var wh=n(27),_h={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(wh.a,_h),wh.a.locals;class vh extends Ud{constructor(t){super(t),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById"),this.focusTracker=new Ks,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},on:{input:e.to("input"),change:e.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((t,e,n)=>{this._setDomElementValue(n),this._updateIsEmpty()}))}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(t){this.element.value=t||0===t?t:""}}var yh=n(28),xh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(yh.a,xh),yh.a.locals;class Eh extends Ud{constructor(t,e){super(t);const n=`ck-labeled-field-view-${s()}`,o=`ck-labeled-field-view-status-${s()}`;this.fieldView=e(this,n,o),this.set("label"),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.set("placeholder"),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(o),this.bind("_statusText").to(this,"errorText",this,"infoText",((t,e)=>t||e));const i=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",i.to("class"),i.if("isEnabled","ck-disabled",(t=>!t)),i.if("isEmpty","ck-labeled-field-view_empty"),i.if("isFocused","ck-labeled-field-view_focused"),i.if("placeholder","ck-labeled-field-view_placeholder"),i.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[this.fieldView,this.labelView]},this.statusView]})}_createLabelView(t){const e=new ph(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new Ud(this.locale),n=this.bindTemplate;return e.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",(t=>!t))],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(){this.fieldView.focus()}}function Ih(t,e,n){const o=new vh(t.locale);return o.set({id:e,ariaDescribedById:n}),o.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),o.bind("hasError").to(t,"errorText",(t=>!!t)),o.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(o),o}function Dh(t,e,n){const o=sh(t.locale);return o.set({id:e,ariaDescribedById:n}),o.bind("isEnabled").to(t),o}class Bh extends fo{static get pluginName(){return"Notification"}init(){this.on("show:warning",((t,e)=>{window.alert(e.message)}),{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=`show:${t.type}`+(t.namespace?`:${t.namespace}`:"");this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class Sh{constructor(t,e){e&&Rt(this,e),t&&this.set(t)}}Xt(Sh,qt);var Th=n(29),Mh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Th.a,Mh),Th.a.locals;const zh=Gs("px"),Nh=Tr.document.body;class Ph extends Ud{constructor(t){super(t);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",(t=>`ck-balloon-panel_${t}`)),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",zh),left:e.to("left",zh)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){this.show();const e=Ph.defaultPositions,n=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthMiddleWest,e.southArrowNorthMiddleEast,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthMiddleWest,e.northArrowSouthMiddleEast,e.northArrowSouthWest,e.northArrowSouthEast],limiter:Nh,fitInViewport:!0},t),o=Ph._getOptimalPosition(n),i=parseInt(o.left),r=parseInt(o.top),s=o.name;Object.assign(this,{top:r,left:i,position:s})}pin(t){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(t):this._stopPinning()},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){this.attachTo(t);const e=Lh(t.target),n=t.limiter?Lh(t.limiter):Nh;this.listenTo(Tr.document,"scroll",((o,i)=>{const r=i.target,s=e&&r.contains(e),a=n&&r.contains(n);!s&&!a&&e&&n||this.attachTo(t)}),{useCapture:!0}),this.listenTo(Tr.window,"resize",(()=>{this.attachTo(t)}))}_stopPinning(){this.stopListening(Tr.document,"scroll"),this.stopListening(Tr.window,"resize")}}function Lh(t){return io(t)?t:Rs(t)?t.commonAncestorContainer:"function"==typeof t?Lh(t()):null}function Oh(t,e){return t.top-e.height-Ph.arrowVerticalOffset}function Rh(t){return t.bottom+Ph.arrowVerticalOffset}Ph.arrowHorizontalOffset=25,Ph.arrowVerticalOffset=10,Ph._getOptimalPosition=Ou,Ph.defaultPositions={northWestArrowSouthWest:(t,e)=>({top:Oh(t,e),left:t.left-Ph.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouthMiddleWest:(t,e)=>({top:Oh(t,e),left:t.left-.25*e.width-Ph.arrowHorizontalOffset,name:"arrow_smw"}),northWestArrowSouth:(t,e)=>({top:Oh(t,e),left:t.left-e.width/2,name:"arrow_s"}),northWestArrowSouthMiddleEast:(t,e)=>({top:Oh(t,e),left:t.left-.75*e.width+Ph.arrowHorizontalOffset,name:"arrow_sme"}),northWestArrowSouthEast:(t,e)=>({top:Oh(t,e),left:t.left-e.width+Ph.arrowHorizontalOffset,name:"arrow_se"}),northArrowSouthWest:(t,e)=>({top:Oh(t,e),left:t.left+t.width/2-Ph.arrowHorizontalOffset,name:"arrow_sw"}),northArrowSouthMiddleWest:(t,e)=>({top:Oh(t,e),left:t.left+t.width/2-.25*e.width-Ph.arrowHorizontalOffset,name:"arrow_smw"}),northArrowSouth:(t,e)=>({top:Oh(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s"}),northArrowSouthMiddleEast:(t,e)=>({top:Oh(t,e),left:t.left+t.width/2-.75*e.width+Ph.arrowHorizontalOffset,name:"arrow_sme"}),northArrowSouthEast:(t,e)=>({top:Oh(t,e),left:t.left+t.width/2-e.width+Ph.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouthWest:(t,e)=>({top:Oh(t,e),left:t.right-Ph.arrowHorizontalOffset,name:"arrow_sw"}),northEastArrowSouthMiddleWest:(t,e)=>({top:Oh(t,e),left:t.right-.25*e.width-Ph.arrowHorizontalOffset,name:"arrow_smw"}),northEastArrowSouth:(t,e)=>({top:Oh(t,e),left:t.right-e.width/2,name:"arrow_s"}),northEastArrowSouthMiddleEast:(t,e)=>({top:Oh(t,e),left:t.right-.75*e.width+Ph.arrowHorizontalOffset,name:"arrow_sme"}),northEastArrowSouthEast:(t,e)=>({top:Oh(t,e),left:t.right-e.width+Ph.arrowHorizontalOffset,name:"arrow_se"}),southWestArrowNorthWest:(t,e)=>({top:Rh(t),left:t.left-Ph.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorthMiddleWest:(t,e)=>({top:Rh(t),left:t.left-.25*e.width-Ph.arrowHorizontalOffset,name:"arrow_nmw"}),southWestArrowNorth:(t,e)=>({top:Rh(t),left:t.left-e.width/2,name:"arrow_n"}),southWestArrowNorthMiddleEast:(t,e)=>({top:Rh(t),left:t.left-.75*e.width+Ph.arrowHorizontalOffset,name:"arrow_nme"}),southWestArrowNorthEast:(t,e)=>({top:Rh(t),left:t.left-e.width+Ph.arrowHorizontalOffset,name:"arrow_ne"}),southArrowNorthWest:(t,e)=>({top:Rh(t),left:t.left+t.width/2-Ph.arrowHorizontalOffset,name:"arrow_nw"}),southArrowNorthMiddleWest:(t,e)=>({top:Rh(t),left:t.left+t.width/2-.25*e.width-Ph.arrowHorizontalOffset,name:"arrow_nmw"}),southArrowNorth:(t,e)=>({top:Rh(t),left:t.left+t.width/2-e.width/2,name:"arrow_n"}),southArrowNorthMiddleEast:(t,e)=>({top:Rh(t),left:t.left+t.width/2-.75*e.width+Ph.arrowHorizontalOffset,name:"arrow_nme"}),southArrowNorthEast:(t,e)=>({top:Rh(t),left:t.left+t.width/2-e.width+Ph.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorthWest:(t,e)=>({top:Rh(t),left:t.right-Ph.arrowHorizontalOffset,name:"arrow_nw"}),southEastArrowNorthMiddleWest:(t,e)=>({top:Rh(t),left:t.right-.25*e.width-Ph.arrowHorizontalOffset,name:"arrow_nmw"}),southEastArrowNorth:(t,e)=>({top:Rh(t),left:t.right-e.width/2,name:"arrow_n"}),southEastArrowNorthMiddleEast:(t,e)=>({top:Rh(t),left:t.right-.75*e.width+Ph.arrowHorizontalOffset,name:"arrow_nme"}),southEastArrowNorthEast:(t,e)=>({top:Rh(t),left:t.right-e.width+Ph.arrowHorizontalOffset,name:"arrow_ne"})};var Fh=n(30),Vh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0},jh=(jd()(Fh.a,Vh),Fh.a.locals,n(31)),Jh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(jh.a,Jh),jh.a.locals;const Hh=Gs("px");class Uh extends Zt{static get pluginName(){return"ContextualBalloon"}constructor(t){super(t),this.positionLimiter=()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},this.set("visibleView",null),this.view=new Ph(t.locale),t.ui.view.body.add(this.view),t.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this.hasView(t.view))throw new l.a("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new l.a("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new l.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find((e=>e[1]===t))[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new qh(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>1)),t.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((t,n)=>{if(n<2)return"";const o=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[o,n])})),t.buttonNextView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),t.buttonPrevView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),t}_createFakePanelsView(){const t=new Gh(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>=2?Math.min(t-1,2):0)),t.listenTo(this.view,"change:top",(()=>t.updatePosition())),t.listenTo(this.view,"change:left",(()=>t.updatePosition())),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:o=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),o&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&!t.limiter&&(t=Object.assign({},t,{limiter:this.positionLimiter})),t}}class qh extends Ud{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Ks,this.buttonPrevView=this._createButtonView(e("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),this.buttonNextView=this._createButtonView(e("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",(t=>t?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new $d(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class Gh extends Ud{constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",(t=>t?"":"ck-hidden"))],style:{top:n.to("top",Hh),left:n.to("left",Hh),width:n.to("width",Hh),height:n.to("height",Hh)}},children:this.content}),this.on("change:numberOfPanels",((t,e,n,o)=>{n>o?this._addPanels(n-o):this._removePanels(o-n),this.updatePosition()}))}_addPanels(t){for(;t--;){const t=new Ud;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}_removePanels(t){for(;t--;){const t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:o}=new js(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:o})}}}var Wh=n(32),Kh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Wh.a,Kh),Wh.a.locals;const Yh=Gs("px");class Qh extends Ud{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Cd({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",(t=>t?"block":"none")),height:e.to("isSticky",(t=>t?Yh(this._panelRect.height):null))}}}).render(),this._contentPanel=new Cd({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",(t=>t?Yh(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:e.to("_hasViewportTopOffset",(t=>t?Yh(this.viewportTopOffset):null)),bottom:e.to("_isStickyToTheLimiter",(t=>t?Yh(this.limiterBottomOffset):null)),marginLeft:e.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(Tr.window,"scroll",(()=>{this._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(()=>{this._checkIfShouldBeSticky()}))}_checkIfShouldBeSticky(){const t=this._panelRect=this._contentPanel.getBoundingClientRect();let e;this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<e.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=e.bottom<t.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:Yh(-Tr.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}Gs("px");var Xh=n(33),Zh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Xh.a,Zh),Xh.a.locals;Gs("px");Gs("px");const $h=new Map([["left",ed],["right",od],["center",nd],["justify",id]]);class tk extends Zt{get localizedOptionTitles(){const t=this.editor.t;return{left:t("Align left"),right:t("Align right"),center:t("Align center"),justify:t("Justify")}}static get pluginName(){return"AlignmentUI"}init(){const t=this.editor,e=t.ui.componentFactory,n=t.t,o=lu(t.config.get("alignment.options"));o.map((t=>t.name)).filter(au).forEach((t=>this._addButton(t))),e.add("alignment",(t=>{const i=sh(t),r=o.map((t=>e.create(`alignment:${t.name}`)));ah(i,r),i.buttonView.set({label:n("Text alignment"),tooltip:!0}),i.toolbarView.isVertical=!0,i.toolbarView.ariaLabel=n("Text alignment toolbar"),i.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const s="rtl"===t.contentLanguageDirection?$h.get("right"):$h.get("left");return i.buttonView.bind("icon").toMany(r,"isOn",((...t)=>{const e=t.findIndex((t=>t));return e<0?s:r[e].icon})),i.bind("isEnabled").toMany(r,"isEnabled",((...t)=>t.some((t=>t)))),i}))}_addButton(t){const e=this.editor;e.ui.componentFactory.add(`alignment:${t}`,(n=>{const o=e.commands.get("alignment"),i=new $d(n);return i.set({label:this.localizedOptionTitles[t],icon:$h.get(t),tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o),i.bind("isOn").to(o,"value",(e=>e===t)),this.listenTo(i,"execute",(()=>{e.execute("alignment",{value:t}),e.editing.view.focus()})),i}))}}var ek=n(34),nk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(ek.a,nk),ek.a.locals;const ok=new WeakMap;function ik(t){const{view:e,element:n,text:o,isDirectHost:i=!0,keepOnFocus:r=!1}=t,s=e.document;ok.has(s)||(ok.set(s,new Map),s.registerPostFixer((t=>sk(s,t)))),ok.get(s).set(n,{text:o,isDirectHost:i,keepOnFocus:r,hostElement:i?n:null}),e.change((t=>sk(s,t)))}function rk(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}function sk(t,e){const n=ok.get(t),o=[];let i=!1;for(const[t,r]of n)r.isDirectHost&&(o.push(t),ak(e,t,r)&&(i=!0));for(const[t,r]of n){if(r.isDirectHost)continue;const n=ck(t);n&&(o.includes(n)||(r.hostElement=n,ak(e,t,r)&&(i=!0)))}return i}function ak(t,e,n){const{text:o,isDirectHost:i,hostElement:r}=n;let s=!1;r.getAttribute("data-placeholder")!==o&&(t.setAttribute("data-placeholder",o,r),s=!0);return(i||1==e.childCount)&&function(t,e){if(!t.isAttached())return!1;if(Array.from(t.getChildren()).some((t=>!t.is("uiElement"))))return!1;if(e)return!0;const n=t.document;if(!n.isFocused)return!0;const o=n.selection.anchor;return o&&o.parent!==t}(r,n.keepOnFocus)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,r)&&(s=!0):rk(t,r)&&(s=!0),s}function ck(t){if(t.childCount){const e=t.getChild(0);if(e.is("element")&&!e.is("uiElement"))return e}return null}const lk=new Map;function dk(t,e,n){let o=lk.get(t);o||(o=new Map,lk.set(t,o)),o.set(e,n)}function uk(t){return[t]}function hk(t,e,n={}){const o=function(t,e){const n=lk.get(t);return n&&n.has(e)?n.get(e):uk}(t.constructor,e.constructor);try{return o(t=t.clone(),e,n)}catch(t){throw t}}function kk(t,e,n){t=t.slice(),e=e.slice();const o=new pk(n.document,n.useRelations,n.forceWeakRemove);o.setOriginalOperations(t),o.setOriginalOperations(e);const i=o.originalOperations;if(0==t.length||0==e.length)return{operationsA:t,operationsB:e,originalOperations:i};const r=new WeakMap;for(const e of t)r.set(e,0);const s={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length};let a=0;for(;a<t.length;){const n=t[a],i=r.get(n);if(i==e.length){a++;continue}const s=e[i],c=hk(n,s,o.getContext(n,s,!0)),l=hk(s,n,o.getContext(s,n,!1));o.updateRelation(n,s),o.setOriginalOperations(c,n),o.setOriginalOperations(l,s);for(const t of c)r.set(t,i+l.length);t.splice(a,1,...c),e.splice(i,1,...l)}if(n.padWithNoOps){const n=t.length-s.originalOperationsACount,o=e.length-s.originalOperationsBCount;mk(t,o-n),mk(e,n-o)}return gk(t,s.nextBaseVersionB),gk(e,s.nextBaseVersionA),{operationsA:t,operationsB:e,originalOperations:i}}class pk{constructor(t,e,n=!1){this.originalOperations=new Map,this._history=t.history,this._useRelations=e,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(t,e=null){const n=e?this.originalOperations.get(e):null;for(const e of t)this.originalOperations.set(e,n||e)}updateRelation(t,e){switch(t.constructor){case jc:switch(e.constructor){case Gc:t.targetPosition.isEqual(e.sourcePosition)||e.movedRange.containsPosition(t.targetPosition)?this._setRelation(t,e,"insertAtSource"):t.targetPosition.isEqual(e.deletionPosition)?this._setRelation(t,e,"insertBetween"):t.targetPosition.isAfter(e.sourcePosition)&&this._setRelation(t,e,"moveTargetAfter");break;case jc:t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter")}break;case Wc:switch(e.constructor){case Gc:t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");break;case jc:if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{const n=Aa._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.splitPosition)){const o=n.end.offset-t.splitPosition.offset,i=t.splitPosition.offset-n.start.offset;this._setRelation(t,e,{howMany:o,offset:i})}}}break;case Gc:switch(e.constructor){case Gc:t.targetPosition.isEqual(e.sourcePosition)||this._setRelation(t,e,"mergeTargetNotMoved"),t.sourcePosition.isEqual(e.targetPosition)&&this._setRelation(t,e,"mergeSourceNotMoved"),t.sourcePosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeSameElement");break;case Wc:t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource")}break;case Hc:{const n=t.newRange;if(!n)return;switch(e.constructor){case jc:{const o=Aa._createFromPositionAndShift(e.sourcePosition,e.howMany),i=o.containsPosition(n.start)||o.start.isEqual(n.start),r=o.containsPosition(n.end)||o.end.isEqual(n.end);!i&&!r||o.containsRange(n)||this._setRelation(t,e,{side:i?"left":"right",path:i?n.start.path.slice():n.end.path.slice()});break}case Gc:{const o=n.start.isEqual(e.targetPosition),i=n.start.isEqual(e.deletionPosition),r=n.end.isEqual(e.deletionPosition),s=n.end.isEqual(e.sourcePosition);(o||i||r||s)&&this._setRelation(t,e,{wasInLeftElement:o,wasStartBeforeMergedElement:i,wasEndBeforeMergedElement:r,wasInRightElement:s});break}}break}}}getContext(t,e,n){return{aIsStrong:n,aWasUndone:this._wasUndone(t),bWasUndone:this._wasUndone(e),abRelation:this._useRelations?this._getRelation(t,e):null,baRelation:this._useRelations?this._getRelation(e,t):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(t){const e=this.originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e)}_getRelation(t,e){const n=this.originalOperations.get(e),o=this._history.getUndoneOperation(n);if(!o)return null;const i=this.originalOperations.get(t),r=this._relations.get(i);return r&&r.get(o)||null}_setRelation(t,e,n){const o=this.originalOperations.get(t),i=this.originalOperations.get(e);let r=this._relations.get(o);r||(r=new Map,this._relations.set(o,r)),r.set(i,n)}}function gk(t,e){for(const n of t)n.baseVersion=e++}function mk(t,e){for(let n=0;n<e;n++)t.push(new kl(0))}function bk(t,e,n){const o=t.nodes.getNode(0).getAttribute(e);if(o==n)return null;const i=new Aa(t.position,t.position.getShiftedBy(t.howMany));return new Fc(i,e,o,n,0)}function fk(t,e){return null===t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany)}function Ak(t,e){const n=[];for(let o=0;o<t.length;o++){const i=t[o],r=new jc(i.start,i.end.offset-i.start.offset,e,0);n.push(r);for(let e=o+1;e<t.length;e++)t[e]=t[e]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];e=e._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return n}dk(Fc,Fc,((t,e,n)=>{if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){const o=t.range.getDifference(e.range).map((e=>new Fc(e,t.key,t.oldValue,t.newValue,0))),i=t.range.getIntersection(e.range);return i&&n.aIsStrong&&o.push(new Fc(i,e.key,e.newValue,t.newValue,0)),0==o.length?[new kl(0)]:o}return[t]})),dk(Fc,Jc,((t,e)=>{if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){const n=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map((e=>new Fc(e,t.key,t.oldValue,t.newValue,t.baseVersion)));if(e.shouldReceiveAttributes){const o=bk(e,t.key,t.oldValue);o&&n.unshift(o)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]})),dk(Fc,Gc,((t,e)=>{const n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(Aa._createFromPositionAndShift(e.graveyardPosition,1));const o=t.range._getTransformedByMergeOperation(e);return o.isCollapsed||n.push(o),n.map((e=>new Fc(e,t.key,t.oldValue,t.newValue,t.baseVersion)))})),dk(Fc,jc,((t,e)=>function(t,e){const n=Aa._createFromPositionAndShift(e.sourcePosition,e.howMany);let o=null,i=[];n.containsRange(t,!0)?o=t:t.start.hasSameParentAs(n.start)?(i=t.getDifference(n),o=t.getIntersection(n)):i=[t];const r=[];for(let t of i){t=t._getTransformedByDeletion(e.sourcePosition,e.howMany);const n=e.getMovedRangeStart(),o=t.start.hasSameParentAs(n);t=t._getTransformedByInsertion(n,e.howMany,o),r.push(...t)}o&&r.push(o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]);return r}(t.range,e).map((e=>new Fc(e,t.key,t.oldValue,t.newValue,t.baseVersion))))),dk(Fc,Wc,((t,e)=>{if(t.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.range.end.offset++,[t];if(t.range.start.hasSameParentAs(e.splitPosition)&&t.range.containsPosition(e.splitPosition)){const n=t.clone();return n.range=new Aa(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,n]}return t.range=t.range._getTransformedBySplitOperation(e),[t]})),dk(Jc,Fc,((t,e)=>{const n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){const o=bk(t,e.key,e.newValue);o&&n.push(o)}return n})),dk(Jc,Jc,((t,e,n)=>(t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t]))),dk(Jc,jc,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),dk(Jc,Wc,((t,e)=>(t.position=t.position._getTransformedBySplitOperation(e),[t]))),dk(Jc,Gc,((t,e)=>(t.position=t.position._getTransformedByMergeOperation(e),[t]))),dk(Hc,Jc,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t]))),dk(Hc,Hc,((t,e,n)=>{if(t.name==e.name){if(!n.aIsStrong)return[new kl(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]})),dk(Hc,Gc,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t]))),dk(Hc,jc,((t,e,n)=>{if(t.oldRange&&(t.oldRange=Aa._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){if(n.abRelation){const o=Aa._createFromRanges(t.newRange._getTransformedByMoveOperation(e));if("left"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.start))return t.newRange.start.path=n.abRelation.path,t.newRange.end=o.end,[t];if("right"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.end))return t.newRange.start=o.start,t.newRange.end.path=n.abRelation.path,[t]}t.newRange=Aa._createFromRanges(t.newRange._getTransformedByMoveOperation(e))}return[t]})),dk(Hc,Wc,((t,e,n)=>{if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){const o=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=ga._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement&&(t.newRange.start=ga._createAt(e.moveTargetPosition)),t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=ga._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=ga._createAt(e.insertionPosition):t.newRange.end=o.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]})),dk(Gc,Jc,((t,e)=>(t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t]))),dk(Gc,Gc,((t,e,n)=>{if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){const n=e.graveyardPosition.path.slice();return n.push(0),t.sourcePosition=new ga(e.graveyardPosition.root,n),t.howMany=0,[t]}return[new kl(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const o="$graveyard"==t.targetPosition.root.rootName,i="$graveyard"==e.targetPosition.root.rootName,r=o&&!i;if(i&&!o||!r&&n.aIsStrong){const n=e.targetPosition._getTransformedByMergeOperation(e),o=t.targetPosition._getTransformedByMergeOperation(e);return[new jc(n,t.howMany,o,0)]}return[new kl(0)]}return t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMergeOperation(e),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),t.graveyardPosition.isEqual(e.graveyardPosition)&&n.aIsStrong||(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),dk(Gc,jc,((t,e,n)=>{const o=Aa._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&!n.forceWeakRemove&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&o.containsPosition(t.sourcePosition)?[new kl(0)]:(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t])})),dk(Gc,Wc,((t,e,n)=>{if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){const o=0!=e.howMany,i=e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition);if(o||i||"mergeTargetNotMoved"==n.abRelation)return t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),[t]}if(t.sourcePosition.isEqual(e.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return t.howMany=0,t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];if("mergeSameElement"==n.abRelation||t.sourcePosition.offset>0)return t.sourcePosition=e.moveTargetPosition.clone(),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]}return t.sourcePosition.hasSameParentAs(e.splitPosition)&&(t.howMany=e.splitPosition.offset),t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]})),dk(jc,Jc,((t,e)=>{const n=Aa._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByInsertOperation(e,!1)[0];return t.sourcePosition=n.start,t.howMany=n.end.offset-n.start.offset,t.targetPosition.isEqual(e.position)||(t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e)),[t]})),dk(jc,jc,((t,e,n)=>{const o=Aa._createFromPositionAndShift(t.sourcePosition,t.howMany),i=Aa._createFromPositionAndShift(e.sourcePosition,e.howMany);let r,s=n.aIsStrong,a=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?a=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(a=!1),r=t.targetPosition.isEqual(e.targetPosition)&&a?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),fk(t,e)&&fk(e,t))return[e.getReversed()];if(o.containsPosition(e.targetPosition)&&o.containsRange(i,!0))return o.start=o.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),o.end=o.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Ak([o],r);if(i.containsPosition(t.targetPosition)&&i.containsRange(o,!0))return o.start=o.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),o.end=o.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),Ak([o],r);const c=Ao(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return o.start=o.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),o.end=o.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Ak([o],r);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(s=!1):s=!0;const l=[],d=o.getDifference(i);for(const t of d){t.start=t.start._getTransformedByDeletion(e.sourcePosition,e.howMany),t.end=t.end._getTransformedByDeletion(e.sourcePosition,e.howMany);const n="same"==Ao(t.start.getParentPath(),e.getMovedRangeStart().getParentPath()),o=t._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,n);l.push(...o)}const u=o.getIntersection(i);return null!==u&&s&&(u.start=u.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),u.end=u.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===l.length?l.push(u):1==l.length?i.start.isBefore(o.start)||i.start.isEqual(o.start)?l.unshift(u):l.push(u):l.splice(1,0,u)),0===l.length?[new kl(t.baseVersion)]:Ak(l,r)})),dk(jc,Wc,((t,e,n)=>{let o=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(o=t.targetPosition._getTransformedBySplitOperation(e));const i=Aa._createFromPositionAndShift(t.sourcePosition,t.howMany);if(i.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=o,[t];if(i.start.hasSameParentAs(e.splitPosition)&&i.containsPosition(e.splitPosition)){let t=new Aa(e.splitPosition,i.end);t=t._getTransformedBySplitOperation(e);return Ak([new Aa(i.start,e.splitPosition),t],o)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(o=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(o=t.targetPosition);const r=[i._getTransformedBySplitOperation(e)];if(e.graveyardPosition){const o=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);t.howMany>1&&o&&!n.aWasUndone&&r.push(Aa._createFromPositionAndShift(e.insertionPosition,1))}return Ak(r,o)})),dk(jc,Gc,((t,e,n)=>{const o=Aa._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.sourcePosition))if("remove"!=t.type||n.forceWeakRemove){if(1==t.howMany)return n.bWasUndone?(t.sourcePosition=e.graveyardPosition.clone(),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]):[new kl(0)]}else if(!n.aWasUndone){const n=[];let o=e.graveyardPosition.clone(),i=e.targetPosition._getTransformedByMergeOperation(e);t.howMany>1&&(n.push(new jc(t.sourcePosition,t.howMany-1,t.targetPosition,0)),o=o._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1),i=i._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1));const r=e.deletionPosition._getCombined(t.sourcePosition,t.targetPosition),s=new jc(o,1,r,0),a=s.getMovedRangeStart().path.slice();a.push(0);const c=new ga(s.targetPosition.root,a);i=i._getTransformedByMove(o,r,1);const l=new jc(i,e.howMany,c,0);return n.push(s),n.push(l),n}const i=Aa._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=i.start,t.howMany=i.end.offset-i.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]})),dk(Uc,Jc,((t,e)=>(t.position=t.position._getTransformedByInsertOperation(e),[t]))),dk(Uc,Gc,((t,e)=>t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t]))),dk(Uc,jc,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),dk(Uc,Uc,((t,e,n)=>{if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new kl(0)];t.oldName=e.newName}return[t]})),dk(Uc,Wc,((t,e)=>{if("same"==Ao(t.position.path,e.splitPosition.getParentPath())&&!e.graveyardPosition){const e=new Uc(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,e]}return t.position=t.position._getTransformedBySplitOperation(e),[t]})),dk(qc,qc,((t,e,n)=>{if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new kl(0)];t.oldValue=e.newValue}return[t]})),dk(Wc,Jc,((t,e)=>(t.splitPosition.hasSameParentAs(e.position)&&t.splitPosition.offset<e.position.offset&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByInsertOperation(e),t.insertionPosition=t.insertionPosition._getTransformedByInsertOperation(e),[t]))),dk(Wc,Gc,((t,e,n)=>{if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){const n=e.graveyardPosition.path.slice();n.push(0);const o=new ga(e.graveyardPosition.root,n),i=Wc.getInsertionPosition(new ga(e.graveyardPosition.root,n)),r=new Wc(o,0,i,null,0);return t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Wc.getInsertionPosition(t.splitPosition),t.graveyardPosition=r.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[r,t]}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Wc.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),dk(Wc,jc,((t,e,n)=>{const o=Aa._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){const i=o.start.isEqual(t.graveyardPosition)||o.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&i){const n=t.splitPosition._getTransformedByMoveOperation(e),o=t.graveyardPosition._getTransformedByMoveOperation(e),i=o.path.slice();i.push(0);const r=new ga(o.root,i);return[new jc(n,t.howMany,r,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}const i=t.splitPosition.isEqual(e.targetPosition);if(i&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=Wc.getInsertionPosition(t.splitPosition),[t];if(i&&n.abRelation&&n.abRelation.howMany){const{howMany:e,offset:o}=n.abRelation;return t.howMany+=e,t.splitPosition=t.splitPosition.getShiftedBy(o),[t]}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&o.containsPosition(t.splitPosition)){const n=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=n,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany),t.splitPosition=e.sourcePosition.clone(),t.insertionPosition=Wc.getInsertionPosition(t.splitPosition),[t]}return e.sourcePosition.isEqual(e.targetPosition)||(t.splitPosition.hasSameParentAs(e.sourcePosition)&&t.splitPosition.offset<=e.sourcePosition.offset&&(t.howMany-=e.howMany),t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany)),t.splitPosition.stickiness="toNone",t.splitPosition=t.splitPosition._getTransformedByMoveOperation(e),t.splitPosition.stickiness="toNext",t.graveyardPosition?t.insertionPosition=t.insertionPosition._getTransformedByMoveOperation(e):t.insertionPosition=Wc.getInsertionPosition(t.splitPosition),[t]})),dk(Wc,Wc,((t,e,n)=>{if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new kl(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new kl(0)];if("splitBefore"==n.abRelation)return t.howMany=0,t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e),[t]}if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition)){const o="$graveyard"==t.splitPosition.root.rootName,i="$graveyard"==e.splitPosition.root.rootName,r=o&&!i;if(i&&!o||!r&&n.aIsStrong){const n=[];return e.howMany&&n.push(new jc(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&n.push(new jc(t.splitPosition,t.howMany,t.moveTargetPosition,0)),n}return[new kl(0)]}if(t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e)),t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.abRelation)return t.howMany++,[t];if(e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.baRelation){const n=e.insertionPosition.path.slice();n.push(0);const o=new ga(e.insertionPosition.root,n);return[t,new jc(t.insertionPosition,1,o,0)]}return t.splitPosition.hasSameParentAs(e.splitPosition)&&t.splitPosition.offset<e.splitPosition.offset&&(t.howMany-=e.howMany),t.splitPosition=t.splitPosition._getTransformedBySplitOperation(e),t.insertionPosition=Wc.getInsertionPosition(t.splitPosition),[t]}));class Ck extends gs{constructor(t){super(t),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}class wk extends gs{constructor(t){super(t),this.domEventType=["mousedown","mouseup"]}onDomEvent(t){this.fire(t.type,t)}}class _k{constructor(t){this.document=t}createDocumentFragment(t){return new $i(this.document,t)}createElement(t,e,n){return new di(this.document,t,e,n)}createText(t){return new _o(this.document,t)}clone(t,e=!1){return t._clone(e)}appendChild(t,e){return e._appendChild(t)}insertChild(t,e,n){return n._insertChild(t,e)}removeChildren(t,e,n){return n._removeChildren(t,e)}remove(t){const e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}replace(t,e){const n=t.parent;if(n){const o=n.getChildIndex(t);return this.removeChildren(o,1,n),this.insertChild(o,e,n),!0}return!1}unwrapElement(t){const e=t.parent;if(e){const n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}rename(t,e){const n=new di(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){de(t)&&void 0===n&&(n=e),n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}createPositionAt(t,e){return fi._createAt(t,e)}createPositionAfter(t){return fi._createAfter(t)}createPositionBefore(t){return fi._createBefore(t)}createRange(t,e){return new Ai(t,e)}createRangeOn(t){return Ai._createOn(t)}createRangeIn(t){return Ai._createIn(t)}createSelection(t,e,n){return new _i(t,e,n)}}const vk=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,yk=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,xk=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Ek=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,Ik=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Dk=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 Bk(t){return t.startsWith("#")?vk.test(t):t.startsWith("rgb")?yk.test(t)||xk.test(t):t.startsWith("hsl")?Ek.test(t)||Ik.test(t):Dk.has(t.toLowerCase())}const Sk=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Tk(t){return Sk.includes(t)}const Mk=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function zk(t){return Mk.test(t)}const Nk=/^[+-]?[0-9]*([.][0-9]+)?%$/;function Pk(t){return Nk.test(t)}const Lk=["repeat-x","repeat-y","repeat","space","round","no-repeat"];const Ok=["center","top","bottom","left","right"];function Rk(t){return Ok.includes(t)}const Fk=["fixed","scroll","local"];function Vk(t){return Fk.includes(t)}const jk=/^url\(/;function Jk(t){return jk.test(t)}function Hk(t=""){if(""===t)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const e=Wk(t),n=e[0],o=e[2]||n,i=e[1]||n;return{top:n,bottom:o,right:i,left:e[3]||i}}function Uk(t){return e=>{const{top:n,right:o,bottom:i,left:r}=e,s=[];return[n,o,r,i].every((t=>!!t))?s.push([t,qk(e)]):(n&&s.push([t+"-top",n]),o&&s.push([t+"-right",o]),i&&s.push([t+"-bottom",i]),r&&s.push([t+"-left",r])),s}}function qk({top:t,right:e,bottom:n,left:o}){const i=[];return o!==e?i.push(t,e,n,o):n!==t?i.push(t,e,n):e!==t?i.push(t,e):i.push(t),i.join(" ")}function Gk(t){return e=>({path:t,value:Hk(e)})}function Wk(t){return t.replace(/, /g,",").split(" ").map((t=>t.replace(/,/g,", ")))}function Kk(t){t.setNormalizer("background",Yk),t.setNormalizer("background-color",(t=>({path:"background.color",value:t}))),t.setReducer("background",(t=>{const e=[];return e.push(["background-color",t.color]),e}))}function Yk(t){const e={},n=Wk(t);for(const t of n)o=t,Lk.includes(o)?(e.repeat=e.repeat||[],e.repeat.push(t)):Rk(t)?(e.position=e.position||[],e.position.push(t)):Vk(t)?e.attachment=t:Bk(t)?e.color=t:Jk(t)&&(e.image=t);var o;return{path:"background",value:e}}function Qk(t){t.setNormalizer("border",Xk),t.setNormalizer("border-top",Zk("top")),t.setNormalizer("border-right",Zk("right")),t.setNormalizer("border-bottom",Zk("bottom")),t.setNormalizer("border-left",Zk("left")),t.setNormalizer("border-color",$k("color")),t.setNormalizer("border-width",$k("width")),t.setNormalizer("border-style",$k("style")),t.setNormalizer("border-top-color",ep("color","top")),t.setNormalizer("border-top-style",ep("style","top")),t.setNormalizer("border-top-width",ep("width","top")),t.setNormalizer("border-right-color",ep("color","right")),t.setNormalizer("border-right-style",ep("style","right")),t.setNormalizer("border-right-width",ep("width","right")),t.setNormalizer("border-bottom-color",ep("color","bottom")),t.setNormalizer("border-bottom-style",ep("style","bottom")),t.setNormalizer("border-bottom-width",ep("width","bottom")),t.setNormalizer("border-left-color",ep("color","left")),t.setNormalizer("border-left-style",ep("style","left")),t.setNormalizer("border-left-width",ep("width","left")),t.setExtractor("border-top",np("top")),t.setExtractor("border-right",np("right")),t.setExtractor("border-bottom",np("bottom")),t.setExtractor("border-left",np("left")),t.setExtractor("border-top-color","border.color.top"),t.setExtractor("border-right-color","border.color.right"),t.setExtractor("border-bottom-color","border.color.bottom"),t.setExtractor("border-left-color","border.color.left"),t.setExtractor("border-top-width","border.width.top"),t.setExtractor("border-right-width","border.width.right"),t.setExtractor("border-bottom-width","border.width.bottom"),t.setExtractor("border-left-width","border.width.left"),t.setExtractor("border-top-style","border.style.top"),t.setExtractor("border-right-style","border.style.right"),t.setExtractor("border-bottom-style","border.style.bottom"),t.setExtractor("border-left-style","border.style.left"),t.setReducer("border-color",Uk("border-color")),t.setReducer("border-style",Uk("border-style")),t.setReducer("border-width",Uk("border-width")),t.setReducer("border-top",sp("top")),t.setReducer("border-right",sp("right")),t.setReducer("border-bottom",sp("bottom")),t.setReducer("border-left",sp("left")),t.setReducer("border",rp),t.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),t.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),t.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),t.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),t.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),t.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function Xk(t){const{color:e,style:n,width:o}=ip(t);return{path:"border",value:{color:Hk(e),style:Hk(n),width:Hk(o)}}}function Zk(t){return e=>{const{color:n,style:o,width:i}=ip(e),r={};return void 0!==n&&(r.color={[t]:n}),void 0!==o&&(r.style={[t]:o}),void 0!==i&&(r.width={[t]:i}),{path:"border",value:r}}}function $k(t){return e=>({path:"border",value:tp(e,t)})}function tp(t,e){return{[e]:Hk(t)}}function ep(t,e){return n=>({path:"border",value:{[t]:{[e]:n}}})}function np(t){return(e,n)=>{if(n.border)return op(n.border,t)}}function op(t,e){const n={};return t.width&&t.width[e]&&(n.width=t.width[e]),t.style&&t.style[e]&&(n.style=t.style[e]),t.color&&t.color[e]&&(n.color=t.color[e]),n}function ip(t){const e={},n=Wk(t);for(const t of n)zk(t)||/thin|medium|thick/.test(t)?e.width=t:Tk(t)?e.style=t:e.color=t;return e}function rp(t){const e=[];return e.push(...ap(op(t,"top"),"top")),e.push(...ap(op(t,"right"),"right")),e.push(...ap(op(t,"bottom"),"bottom")),e.push(...ap(op(t,"left"),"left")),e}function sp(t){return e=>ap(e,t)}function ap(t,e){const n=[];return t&&void 0!==t.width&&n.push(t.width),t&&void 0!==t.style&&n.push(t.style),t&&void 0!==t.color&&n.push(t.color),n.length?[[`border-${e}`,n.join(" ")]]:[]}function cp(t){t.setNormalizer("margin",Gk("margin")),t.setNormalizer("margin-top",(t=>({path:"margin.top",value:t}))),t.setNormalizer("margin-right",(t=>({path:"margin.right",value:t}))),t.setNormalizer("margin-bottom",(t=>({path:"margin.bottom",value:t}))),t.setNormalizer("margin-left",(t=>({path:"margin.left",value:t}))),t.setReducer("margin",Uk("margin")),t.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function lp(t){t.setNormalizer("padding",Gk("padding")),t.setNormalizer("padding-top",(t=>({path:"padding.top",value:t}))),t.setNormalizer("padding-right",(t=>({path:"padding.right",value:t}))),t.setNormalizer("padding-bottom",(t=>({path:"padding.bottom",value:t}))),t.setNormalizer("padding-left",(t=>({path:"padding.left",value:t}))),t.setReducer("padding",Uk("padding")),t.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}function dp(t,e,n,o){let i,r=null;"function"==typeof o?i=o:(r=t.commands.get(o),i=()=>{t.execute(o)}),t.model.document.on("change:data",((s,a)=>{if(r&&!r.isEnabled||!e.isEnabled)return;const c=Ws(t.model.document.selection.getRanges());if(!c.isCollapsed)return;if("transparent"==a.type)return;const l=Array.from(t.model.document.differ.getChanges()),d=l[0];if(1!=l.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;const u=d.position.parent;if(u.is("element","codeBlock"))return;if(u.is("element","listItem")&&"function"!=typeof o&&!["numberedList","bulletedList","todoList"].includes(o))return;if(r&&!0===r.value)return;const h=u.getChild(0),k=t.model.createRangeOn(h);if(!k.containsRange(c)&&!c.end.isEqual(k.end))return;const p=n.exec(h.data.substr(0,c.end.offset));p&&t.model.enqueueChange((e=>{const n=e.createPositionAt(u,0),o=e.createPositionAt(u,p[0].length),r=new Ma(n,o);if(!1!==i({match:p})){e.remove(r);const n=t.model.document.selection.getFirstRange(),o=e.createRangeIn(u);!u.isEmpty||o.isEqual(n)||o.containsRange(n,!0)||e.remove(u)}r.detach()}))}))}function up(t,e,n,o){let i,r;n instanceof RegExp?i=n:r=n,r=r||(t=>{let e;const n=[],o=[];for(;null!==(e=i.exec(t))&&!(e&&e.length<4);){let{index:t,1:i,2:r,3:s}=e;const a=i+r+s;t+=e[0].length-a.length;const c=[t,t+i.length],l=[t+i.length+r.length,t+i.length+r.length+s.length];n.push(c),n.push(l),o.push([t+i.length,t+i.length+r.length])}return{remove:n,format:o}}),t.model.document.on("change:data",((n,i)=>{if("transparent"==i.type||!e.isEnabled)return;const s=t.model,a=s.document.selection;if(!a.isCollapsed)return;const c=Array.from(s.document.differ.getChanges()),l=c[0];if(1!=c.length||"insert"!==l.type||"$text"!=l.name||1!=l.length)return;const d=a.focus,u=d.parent,{text:h,range:k}=function(t,e){let n=t.start;return{text:Array.from(t.getItems()).reduce(((t,o)=>!o.is("$text")&&!o.is("$textProxy")||o.getAttribute("code")?(n=e.createPositionAfter(o),""):t+o.data),""),range:e.createRange(n,t.end)}}(s.createRange(s.createPositionAt(u,0),d),s),p=r(h),g=hp(k.start,p.format,s),m=hp(k.start,p.remove,s);g.length&&m.length&&s.enqueueChange((t=>{if(!1!==o(t,g))for(const e of m.reverse())t.remove(e)}))}))}function hp(t,e,n){return e.filter((t=>void 0!==t[0]&&void 0!==t[1])).map((e=>n.createRange(t.getShiftedBy(e[0]),t.getShiftedBy(e[1]))))}function kp(t,e){return(n,o)=>{if(!t.commands.get(e).isEnabled)return!1;const i=t.model.schema.getValidRanges(o,e);for(const t of i)n.setAttribute(e,!0,t);n.removeSelectionAttribute(e)}}class pp extends te{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,o=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(n.isCollapsed)o?t.setSelectionAttribute(this.attributeKey,!0):t.removeSelectionAttribute(this.attributeKey);else{const i=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of i)o?t.setAttribute(this.attributeKey,o,e):t.removeAttribute(this.attributeKey,e)}}))}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const t of n.getRanges())for(const n of t.getItems())if(e.checkAttribute(n,this.attributeKey))return n.hasAttribute(this.attributeKey);return!1}}const gp="bold";class mp extends Zt{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:gp}),t.model.schema.setAttributeProperties(gp,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:gp,view:"strong",upcastAlso:["b",t=>{const e=t.getStyle("font-weight");return e?"bold"==e||Number(e)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),t.commands.add(gp,new pp(t,gp)),t.keystrokes.set("CTRL+B",gp)}}const bp="bold";class fp extends Zt{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(bp,(n=>{const o=t.commands.get(bp),i=new $d(n);return i.set({label:e("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(bp),t.editing.view.focus()})),i}))}}const Ap="italic";class Cp extends Zt{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Ap}),t.model.schema.setAttributeProperties(Ap,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Ap,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Ap,new pp(t,Ap)),t.keystrokes.set("CTRL+I",Ap)}}const wp="italic";class _p extends Zt{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(wp,(n=>{const o=t.commands.get(wp),i=new $d(n);return i.set({label:e("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(wp),t.editing.view.focus()})),i}))}}const vp="strikethrough";class yp extends Zt{static get pluginName(){return"StrikethroughEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:vp}),t.model.schema.setAttributeProperties(vp,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:vp,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(vp,new pp(t,vp)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough")}}const xp="strikethrough";class Ep extends Zt{static get pluginName(){return"StrikethroughUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(xp,(n=>{const o=t.commands.get(xp),i=new $d(n);return i.set({label:e("Strikethrough"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6zM6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>',keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(xp),t.editing.view.focus()})),i}))}}const Ip="underline";class Dp extends Zt{static get pluginName(){return"UnderlineEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Ip}),t.model.schema.setAttributeProperties(Ip,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Ip,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(Ip,new pp(t,Ip)),t.keystrokes.set("CTRL+U","underline")}}const Bp="underline";class Sp extends Zt{static get pluginName(){return"UnderlineUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(Bp,(n=>{const o=t.commands.get(Bp),i=new $d(n);return i.set({label:e("Underline"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(Bp),t.editing.view.focus()})),i}))}}function*Tp(t,e){for(const n of e)n&&t.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}class Mp extends te{execute(){const t=this.editor.model,e=t.document;t.change((n=>{!function(t,e,n,o){const i=n.isCollapsed,r=n.getFirstRange(),s=r.start.parent,a=r.end.parent;if(o.isLimit(s)||o.isLimit(a))return void(i||s!=a||t.deleteContent(n));if(i){const t=Tp(e.model.schema,n.getAttributes());zp(e,r.start),e.setSelectionAttribute(t)}else{const o=!(r.start.isAtStart&&r.end.isAtEnd),i=s==a;t.deleteContent(n,{leaveUnmerged:o}),o&&(i?zp(e,n.focus):e.setSelection(a,0))}}(this.editor.model,n,e.selection,t.schema),this.fire("afterExecute",{writer:n})}))}}function zp(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}class Np extends qr{constructor(t){super(t);const e=this.document;e.on("keydown",((t,n)=>{if(this.isEnabled&&n.keyCode==ji.enter){const o=new yi(e,"enter",e.selection.getFirstRange());e.fire(o,new ps(e,n.domEvent,{isSoft:n.shiftKey})),o.stop.called&&t.stop()}}))}observe(){}}class Pp extends Zt{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(Np),t.commands.add("enter",new Mp(t)),this.listenTo(n,"enter",((n,o)=>{o.preventDefault(),o.isSoft||(t.execute("enter"),e.scrollToTheSelection())}),{priority:"low"})}}class Lp extends te{execute(){const t=this.editor.model,e=t.document;t.change((n=>{!function(t,e,n){const o=n.isCollapsed,i=n.getFirstRange(),r=i.start.parent,s=i.end.parent,a=r==s;if(o){const o=Tp(t.schema,n.getAttributes());Op(t,e,i.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(o)}else{const o=!(i.start.isAtStart&&i.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:o}),a?Op(t,e,n.focus):o&&e.setSelection(s,0)}}(t,n,e.selection),this.fire("afterExecute",{writer:n})}))}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=function(t,e){if(e.rangeCount>1)return!1;const n=e.anchor;if(!n||!t.checkChild(n,"softBreak"))return!1;const o=e.getFirstRange(),i=o.start.parent,r=o.end.parent;if((Rp(i,t)||Rp(r,t))&&i!==r)return!1;return!0}(t.schema,e.selection)}}function Op(t,e,n){const o=e.createElement("softBreak");t.insertContent(o,n),e.setSelection(o,"after")}function Rp(t,e){return!t.is("rootElement")&&(e.isLimit(t)||Rp(t.parent,e))}class Fp extends Zt{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,o=t.editing.view,i=o.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(t,{writer:e})=>e.createEmptyElement("br")}),o.addObserver(Np),t.commands.add("shiftEnter",new Lp(t)),this.listenTo(i,"enter",((e,n)=>{n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),o.scrollToTheSelection())}),{priority:"low"})}}class Vp{constructor(t,e=20){this.model=t,this.size=0,this.limit=e,this.isLocked=!1,this._changeCallback=(t,e)=>{"transparent"!=e.type&&e!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._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)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(t){this.size+=t,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){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)}_reset(t){this.isLocked&&!t||(this._batch=null,this.size=0)}}class jp extends te{constructor(t,e){super(t),this._buffer=new Vp(t.model,e),this._batches=new WeakSet}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,o=t.text||"",i=o.length,r=t.range?e.createSelection(t.range):n.selection,s=t.resultRange;e.enqueueChange(this._buffer.batch,(t=>{this._buffer.lock(),this._batches.add(this._buffer.batch),e.deleteContent(r),o&&e.insertContent(t.createText(o,n.selection.getAttributes()),r),s?t.setSelection(s):r.is("documentSelection")||t.setSelection(r),this._buffer.unlock(),this._buffer.input(i)}))}}const Jp=[Hi("arrowUp"),Hi("arrowRight"),Hi("arrowDown"),Hi("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];for(let t=112;t<=135;t++)Jp.push(t);function Hp(t){return!(!t.ctrlKey&&!t.metaKey)||Jp.includes(t.keyCode)}function Up(t){if(t.newChildren.length-t.oldChildren.length!=1)return;const e=function(t,e){const n=[];let o,i=0;return t.forEach((t=>{"equal"==t?(r(),i++):"insert"==t?(s("insert")?o.values.push(e[i]):(r(),o={type:"insert",index:i,values:[e[i]]}),i++):s("delete")?o.howMany++:(r(),o={type:"delete",index:i,howMany:1})})),r(),n;function r(){o&&(n.push(o),o=null)}function s(t){return o&&o.type==t}}(vr(t.oldChildren,t.newChildren,qp),t.newChildren);if(e.length>1)return;const n=e[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}function qp(t,e){return t&&t.is("$text")&&e&&e.is("$text")?t.data===e.data:t===e}class Gp{constructor(t){this.editor=t,this.editing=this.editor.editing}handle(t,e){if(function(t){if(0==t.length)return!1;for(const e of t)if("children"===e.type&&!Up(e))return!0;return!1}(t))this._handleContainerChildrenMutations(t,e);else for(const n of t)this._handleTextMutation(n,e),this._handleTextNodeInsertion(n)}_handleContainerChildrenMutations(t,e){const n=function(t){const e=t.map((t=>t.node)).reduce(((t,e)=>t.getCommonAncestor(e,{includeSelf:!0})));if(!e)return;return e.getAncestors({includeSelf:!0,parentFirst:!0}).find((t=>t.is("containerElement")||t.is("rootElement")))}(t);if(!n)return;const o=this.editor.editing.view.domConverter.mapViewToDom(n),i=new Or(this.editor.editing.view.document),r=this.editor.data.toModel(i.domToView(o)).getChild(0),s=this.editor.editing.mapper.toModelElement(n);if(!s)return;const a=Array.from(r.getChildren()),c=Array.from(s.getChildren()),l=a[a.length-1],d=c[c.length-1],u=l&&l.is("element","softBreak"),h=d&&!d.is("element","softBreak");u&&h&&a.pop();const k=this.editor.model.schema;if(!Wp(a,k)||!Wp(c,k))return;const p=a.map((t=>t.is("$text")?t.data:"@")).join("").replace(/\u00A0/g," "),g=c.map((t=>t.is("$text")?t.data:"@")).join("").replace(/\u00A0/g," ");if(g===p)return;const m=vr(g,p),{firstChangeAt:b,insertions:f,deletions:A}=Kp(m);let C=null;e&&(C=this.editing.mapper.toModelRange(e.getFirstRange()));const w=p.substr(b,f),_=this.editor.model.createRange(this.editor.model.createPositionAt(s,b),this.editor.model.createPositionAt(s,b+A));this.editor.execute("input",{text:w,range:_,resultRange:C})}_handleTextMutation(t,e){if("text"!=t.type)return;const n=t.newText.replace(/\u00A0/g," "),o=t.oldText.replace(/\u00A0/g," ");if(o===n)return;const i=vr(o,n),{firstChangeAt:r,insertions:s,deletions:a}=Kp(i);let c=null;e&&(c=this.editing.mapper.toModelRange(e.getFirstRange()));const l=this.editing.view.createPositionAt(t.node,r),d=this.editing.mapper.toModelPosition(l),u=this.editor.model.createRange(d,d.getShiftedBy(a)),h=n.substr(r,s);this.editor.execute("input",{text:h,range:u,resultRange:c})}_handleTextNodeInsertion(t){if("children"!=t.type)return;const e=Up(t),n=this.editing.view.createPositionAt(t.node,e.index),o=this.editing.mapper.toModelPosition(n),i=e.values[0].data;this.editor.execute("input",{text:i.replace(/\u00A0/g," "),range:this.editor.model.createRange(o)})}}function Wp(t,e){return t.every((t=>e.isInline(t)))}function Kp(t){let e=null,n=null;for(let o=0;o<t.length;o++){"equal"!=t[o]&&(e=null===e?o:e,n=o)}let o=0,i=0;for(let r=e;r<=n;r++)"insert"!=t[r]&&o++,"delete"!=t[r]&&i++;return{insertions:i,deletions:o,firstChangeAt:e}}class Yp extends Zt{static get pluginName(){return"Input"}init(){const t=this.editor,e=new jp(t,t.config.get("typing.undoStep")||20);t.commands.add("input",e),function(t){let e=null;const n=t.model,o=t.editing.view,i=t.commands.get("input");function r(t){const r=n.document,a=o.document.isComposing,c=e&&e.isEqual(r.selection);e=null,i.isEnabled&&(Hp(t)||r.selection.isCollapsed||a&&229===t.keyCode||!a&&229===t.keyCode&&c||s())}function s(){const t=i.buffer;t.lock();const e=t.batch;i._batches.add(e),n.enqueueChange(e,(()=>{n.deleteContent(n.document.selection)})),t.unlock()}Ri.isAndroid?o.document.on("beforeinput",((t,e)=>r(e)),{priority:"lowest"}):o.document.on("keydown",((t,e)=>r(e)),{priority:"lowest"}),o.document.on("compositionstart",(function(){const t=n.document,e=1!==t.selection.rangeCount||t.selection.getFirstRange().isFlat;t.selection.isCollapsed||e||s()}),{priority:"lowest"}),o.document.on("compositionend",(()=>{e=n.createSelection(n.document.selection)}),{priority:"lowest"})}(t),function(t){t.editing.view.document.on("mutations",((e,n,o)=>{new Gp(t).handle(n,o)}))}(t)}isInput(t){return this.editor.commands.get("input")._batches.has(t)}}class Qp extends te{constructor(t,e){super(t),this.direction=e,this._buffer=new Vp(t.model,t.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,(o=>{this._buffer.lock();const i=o.createSelection(t.selection||n.selection),r=t.sequence||1,s=i.isCollapsed;if(i.isCollapsed&&e.modifySelection(i,{direction:this.direction,unit:t.unit}),this._shouldEntireContentBeReplacedWithParagraph(r))return void this._replaceEntireContentWithParagraph(o);if(this._shouldReplaceFirstBlockWithParagraph(i,r))return void this.editor.execute("paragraph",{selection:i});if(i.isCollapsed)return;let a=0;i.getFirstRange().getMinimalFlatRanges().forEach((t=>{a+=wi(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),e.deleteContent(i,{doNotResetEntireContent:s,direction:this.direction}),this._buffer.input(a),o.setSelection(i),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,o=e.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(o)))return!1;if(!e.schema.checkChild(o,"paragraph"))return!1;const i=o.getChild(0);return!i||"paragraph"!==i.name}_replaceEntireContentWithParagraph(t){const e=this.editor.model,n=e.document.selection,o=e.schema.getLimitElement(n),i=t.createElement("paragraph");t.remove(t.createRangeIn(o)),t.insert(i,o),t.setSelection(i,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction)return!1;if(!t.isCollapsed)return!1;const o=t.getFirstPosition(),i=n.schema.getLimitElement(o),r=i.getChild(0);return o.parent==r&&(!!t.containsEntireContent(r)&&(!!n.schema.checkChild(i,"paragraph")&&"paragraph"!=r.name))}}class Xp extends qr{constructor(t){super(t);const e=t.document;let n=0;function o(t,n,o){const i=new yi(e,"delete",e.selection.getFirstRange());e.fire(i,new ps(e,n,o)),i.stop.called&&t.stop()}e.on("keyup",((t,e)=>{e.keyCode!=ji.delete&&e.keyCode!=ji.backspace||(n=0)})),e.on("keydown",((t,e)=>{const i={};if(e.keyCode==ji.delete)i.direction="forward",i.unit="character";else{if(e.keyCode!=ji.backspace)return;i.direction="backward",i.unit="codePoint"}const r=Ri.isMac?e.altKey:e.ctrlKey;i.unit=r?"word":i.unit,i.sequence=++n,o(t,e.domEvent,i)})),Ri.isAndroid&&e.on("beforeinput",((e,n)=>{if("deleteContentBackward"!=n.domEvent.inputType)return;const i={unit:"codepoint",direction:"backward",sequence:1},r=n.domTarget.ownerDocument.defaultView.getSelection();r.anchorNode==r.focusNode&&r.anchorOffset+1!=r.focusOffset&&(i.selectionToRemove=t.domConverter.domSelectionToView(r)),o(e,n.domEvent,i)}))}observe(){}}class Zp extends Zt{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(Xp);const o=new Qp(t,"forward");if(t.commands.add("deleteForward",o),t.commands.add("forwardDelete",o),t.commands.add("delete",new Qp(t,"backward")),this.listenTo(n,"delete",((n,o)=>{const i={unit:o.unit,sequence:o.sequence};if(o.selectionToRemove){const e=t.model.createSelection(),n=[];for(const e of o.selectionToRemove.getRanges())n.push(t.editing.mapper.toModelRange(e));e.setTo(n),i.selection=e}t.execute("forward"==o.direction?"deleteForward":"delete",i),o.preventDefault(),e.scrollToTheSelection()}),{priority:"low"}),Ri.isAndroid){let t=null;this.listenTo(n,"delete",((e,n)=>{const o=n.domTarget.ownerDocument.defaultView.getSelection();t={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",((e,n)=>{if(t){const e=n.domTarget.ownerDocument.defaultView.getSelection();e.collapse(t.anchorNode,t.anchorOffset),e.extend(t.focusNode,t.focusOffset),t=null}}))}}}class $p extends Zt{static get requires(){return[Yp,Zp]}static get pluginName(){return"Typing"}}function tg(t,e){let n=t.start;return{text:Array.from(t.getItems()).reduce(((t,o)=>o.is("$text")||o.is("$textProxy")?t+o.data:(n=e.createPositionAfter(o),"")),""),range:e.createRange(n,t.end)}}class eg{constructor(t,e){this.model=t,this.testCallback=e,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))})),this._startListening()}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",((e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))})),this.listenTo(t,"change:data",((t,e)=>{"transparent"!=e.type&&this._evaluateTextBeforeSelection("data",{batch:e})}))}_evaluateTextBeforeSelection(t,e={}){const n=this.model,o=n.document.selection,i=n.createRange(n.createPositionAt(o.focus.parent,0),o.focus),{text:r,range:s}=tg(i,n),a=this.testCallback(r);if(!a&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!a,a){const n=Object.assign(e,{text:r,range:s});"object"==typeof a&&Object.assign(n,a),this.fire(`matched:${t}`,n)}}}Xt(eg,qt);class ng extends Zt{static get pluginName(){return"TwoStepCaretMovement"}constructor(t){super(t),this.attributes=new Set,this._overrideUid=null}init(){const t=this.editor,e=t.model,n=t.editing.view,o=t.locale,i=e.document.selection;this.listenTo(n.document,"arrowKey",((t,e)=>{if(!i.isCollapsed)return;if(e.shiftKey||e.altKey||e.ctrlKey)return;const n=e.keyCode==ji.arrowright,r=e.keyCode==ji.arrowleft;if(!n&&!r)return;const s=o.contentLanguageDirection;let a=!1;a="ltr"===s&&n||"rtl"===s&&r?this._handleForwardMovement(e):this._handleBackwardMovement(e),!0===a&&t.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(i,"change:range",((t,e)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!e.directChange&&sg(i.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model.document.selection,o=n.getFirstPosition();return!this._isGravityOverridden&&((!o.isAtStart||!og(n,e))&&(sg(o,e)?(rg(t),this._overrideGravity(),!0):void 0))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,o=n.document.selection,i=o.getFirstPosition();return this._isGravityOverridden?(rg(t),this._restoreGravity(),ig(n,e,i),!0):i.isAtStart?!!og(o,e)&&(rg(t),ig(n,e,i),!0):function(t,e){return sg(t.getShiftedBy(-1),e)}(i,e)?i.isAtEnd&&!og(o,e)&&sg(i,e)?(rg(t),ig(n,e,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((t=>t.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function og(t,e){for(const n of e)if(t.hasAttribute(n))return!0;return!1}function ig(t,e,n){const o=n.nodeBefore;t.change((t=>{o?t.setSelectionAttribute(o.getAttributes()):t.removeSelectionAttribute(e)}))}function rg(t){t.preventDefault()}function sg(t,e){const{nodeBefore:n,nodeAfter:o}=t;for(const t of e){const e=n?n.getAttribute(t):void 0;if((o?o.getAttribute(t):void 0)!==e)return!0}return!1}var ag=/[\\^$.*+?()[\]{}|]/g,cg=RegExp(ag.source);var lg=function(t){return(t=Vo(t))&&cg.test(t)?t.replace(ag,"\\$&"):t};const dg={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:"1/2",to:"½"},oneThird:{from:"1/3",to:"⅓"},twoThirds:{from:"2/3",to:"⅔"},oneForth:{from:"1/4",to:"¼"},threeQuarters:{from:"3/4",to:"¾"},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:mg('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:mg("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:mg("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:mg('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:mg('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:mg("'"),to:[null,"‚",null,"’"]}},ug={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},hg=["symbols","mathematical","typography","quotes"];function kg(t){return"string"==typeof t?new RegExp(`(${lg(t)})$`):t}function pg(t){return"string"==typeof t?()=>[t]:t instanceof Array?()=>t:t}function gg(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes()}function mg(t){return new RegExp(`(^|\\s)(${t})([^${t}]*)(${t})$`)}function bg(t,e,n,o){return o.createRange(fg(t,e,n,!0,o),fg(t,e,n,!1,o))}function fg(t,e,n,o,i){let r=t.textNode||(o?t.nodeBefore:t.nodeAfter),s=null;for(;r&&r.getAttribute(e)==n;)s=r,r=o?r.previousSibling:r.nextSibling;return s?i.createPositionAt(s,o?"before":"after"):t}function Ag(t,e,n,o){const i=t.editing.view,r=new Set;i.document.registerPostFixer((i=>{const s=t.model.document.selection;let a=!1;if(s.hasAttribute(e)){const c=bg(s.getFirstPosition(),e,s.getAttribute(e),t.model),l=t.editing.mapper.toViewRange(c);for(const t of l.getItems())t.is("element",n)&&!t.hasClass(o)&&(i.addClass(o,t),r.add(t),a=!0)}return a})),t.conversion.for("editingDowncast").add((t=>{function e(){i.change((t=>{for(const e of r.values())t.removeClass(o,e),r.delete(e)}))}t.on("insert",e,{priority:"highest"}),t.on("remove",e,{priority:"highest"}),t.on("attribute",e,{priority:"highest"}),t.on("selection",e,{priority:"highest"})}))}class Cg extends te{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,o=e.document.selection,i=Array.from(o.getSelectedBlocks()),r=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(r){const e=i.filter((t=>wg(t)||vg(n,t)));this._applyQuote(t,e)}else this._removeQuote(t,i.filter(wg))}))}_getValue(){const t=Ws(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!wg(t))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Ws(t.getSelectedBlocks());return!!n&&vg(e,n)}_removeQuote(t,e){_g(t,e).reverse().forEach((e=>{if(e.start.isAtStart&&e.end.isAtEnd)return void t.unwrap(e.start.parent);if(e.start.isAtStart){const n=t.createPositionBefore(e.start.parent);return void t.move(e,n)}e.end.isAtEnd||t.split(e.end);const n=t.createPositionAfter(e.end.parent);t.move(e,n)}))}_applyQuote(t,e){const n=[];_g(t,e).reverse().forEach((e=>{let o=wg(e.start);o||(o=t.createElement("blockQuote"),t.wrap(e,o)),n.push(o)})),n.reverse().reduce(((e,n)=>e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n))}}function wg(t){return"blockQuote"==t.parent.name?t.parent:null}function _g(t,e){let n,o=0;const i=[];for(;o<e.length;){const r=e[o],s=e[o+1];n||(n=t.createPositionBefore(r)),s&&r.nextSibling==s||(i.push(t.createRange(n,t.createPositionAfter(r))),n=null),o++}return i}function vg(t,e){const n=t.checkChild(e.parent,"blockQuote"),o=t.checkChild(["$root","blockQuote"],e);return n&&o}class yg extends Zt{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[Pp,Zp]}init(){const t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new Cg(t)),e.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer((n=>{const o=t.model.document.differ.getChanges();for(const t of o)if("insert"==t.type){const o=t.position.nodeAfter;if(!o)continue;if(o.is("element","blockQuote")&&o.isEmpty)return n.remove(o),!0;if(o.is("element","blockQuote")&&!e.checkChild(t.position,o))return n.unwrap(o),!0;if(o.is("element")){const t=n.createRangeIn(o);for(const o of t.getItems())if(o.is("element","blockQuote")&&!e.checkChild(n.createPositionBefore(o),o))return n.unwrap(o),!0}}else if("remove"==t.type){const e=t.position.parent;if(e.is("element","blockQuote")&&e.isEmpty)return n.remove(e),!0}return!1}));const n=this.editor.editing.view.document,o=t.model.document.selection,i=t.commands.get("blockQuote");this.listenTo(n,"enter",((e,n)=>{if(!o.isCollapsed||!i.value)return;o.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"}),this.listenTo(n,"delete",((e,n)=>{if("backward"!=n.direction||!o.isCollapsed||!i.value)return;const r=o.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"})}}var xg=n(35),Eg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(xg.a,Eg),xg.a.locals;class Ig extends Zt{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",(n=>{const o=t.commands.get("blockQuote"),i=new $d(n);return i.set({label:e("Block quote"),icon:pd,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute("blockQuote"),t.editing.view.focus()})),i}))}}class Dg extends Zt{static get pluginName(){return"CKFinderUI"}init(){const t=this.editor,e=t.ui.componentFactory,n=t.t;e.add("ckfinder",(e=>{const o=t.commands.get("ckfinder"),i=new $d(e);return i.set({label:n("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),i.bind("isEnabled").to(o),i.on("execute",(()=>{t.execute("ckfinder"),t.editing.view.focus()})),i}))}}class Bg extends te{constructor(t){super(t),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",(()=>this.refresh()),{priority:"low"})}refresh(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}execute(){const t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new l.a("ckfinder-unknown-openermethod",t);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const o=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=e=>{o&&o(e),e.on("files:choose",(n=>{const o=n.data.files.toArray(),i=o.filter((t=>!t.isImage())),r=o.filter((t=>t.isImage()));for(const e of i)t.execute("link",e.getUrl());const s=[];for(const t of r){const n=t.getUrl();s.push(n||e.request("file:getProxyUrl",{file:t}))}s.length&&Sg(t,s)})),e.on("file:choose:resizedImage",(e=>{const n=e.data.resizedUrl;if(n)Sg(t,[n]);else{const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("Could not obtain resized image URL."),{title:n("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[e](n)}}function Sg(t,e){if(t.commands.get("insertImage").isEnabled)t.execute("insertImage",{source:e});else{const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class Tg extends Zt{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Bh,"ImageEditing","LinkEditing"]}init(){const t=this.editor;t.commands.add("ckfinder",new Bg(t))}}class Mg extends Vl{constructor(t,e){super(t),this.view=e,this._toolbarConfig=Uu(t.config.get("toolbar")),this._elementReplacer=new Ps}get element(){return this.view.element}init(t){const e=this.editor,n=this.view,o=e.editing.view,i=n.editable,r=o.document.getRoot();i.name=r.rootName,n.render();const s=i.element;this.setEditableElement(i.name,s),this.focusTracker.add(s),n.editable.bind("isFocused").to(this.focusTracker),o.attachDomRoot(s),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy(),super.destroy()}_initToolbar(){const t=this.editor,e=this.view,n=t.editing.view;e.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),e.stickyPanel.limiterElement=e.element,this._toolbarConfig.viewportTopOffset&&(e.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),e.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),function({origin:t,originKeystrokeHandler:e,originFocusTracker:n,toolbar:o,beforeFocus:i,afterBlur:r}){n.add(o.element),e.set("Alt+F10",((t,e)=>{n.isFocused&&!o.focusTracker.isFocused&&(i&&i(),o.focus(),e())})),o.keystrokes.set("Esc",((e,n)=>{o.focusTracker.isFocused&&(t.focus(),r&&r(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:t.keystrokes,toolbar:e.toolbar})}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),o=t.sourceElement,i=t.config.get("placeholder")||o&&"textarea"===o.tagName.toLowerCase()&&o.getAttribute("placeholder");i&&ik({view:e,element:n,text:i,isDirectHost:!1,keepOnFocus:!0})}}var zg=n(36),Ng={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(zg.a,Ng),zg.a.locals;class Pg extends gh{constructor(t,e,n={}){super(t),this.stickyPanel=new Qh(t),this.toolbar=new Wu(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new bh(t,e)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Lg extends Ol{constructor(t,e){super(e),io(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),o=new Pg(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new Mg(this,o),function(t){if(!z(t.updateSourceElement))throw new l.a("attachtoform-missing-elementapi-interface",t);const e=t.sourceElement;if(e&&"textarea"===e.tagName.toLowerCase()&&e.form){let n;const o=e.form,i=()=>t.updateSourceElement();z(o.submit)&&(n=o.submit,o.submit=()=>{i(),n.apply(o)}),o.addEventListener("submit",i),t.on("destroy",(()=>{o.removeEventListener("submit",i),n&&(o.submit=n)}))}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise((n=>{const o=new this(t,e);n(o.initPlugins().then((()=>o.ui.init(io(t)?t:null))).then((()=>{if(!io(t)&&e.initialData)throw new l.a("editor-create-initial-data",null);const n=void 0!==e.initialData?e.initialData:function(t){return io(t)?(e=t,e instanceof HTMLTextAreaElement?e.value:e.innerHTML):t;var e}(t);return o.data.init(n)})).then((()=>o.fire("ready"))).then((()=>o)))}))}}Xt(Lg,jl),Xt(Lg,Jl);class Og{constructor(t){this.files=function(t){const e=t.files?Array.from(t.files):[],n=t.items?Array.from(t.items):[];if(e.length)return e;return n.filter((t=>"file"===t.kind)).map((t=>t.getAsFile()))}(t),this._native=t}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}set effectAllowed(t){this._native.effectAllowed=t}get effectAllowed(){return this._native.effectAllowed}set dropEffect(t){this._native.dropEffect=t}get dropEffect(){return this._native.dropEffect}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}class Rg extends gs{constructor(t){super(t);const e=this.document;function n(t){return(n,o)=>{o.preventDefault();const r=o.dropRange?[o.dropRange]:null,s=new i(e,t);e.fire(s,{dataTransfer:o.dataTransfer,method:n.name,targetRanges:r,target:o.target}),s.stop.called&&o.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"dragover",n("dragging"),{priority:"low"})}onDomEvent(t){const e={dataTransfer:new Og(t.clipboardData?t.clipboardData:t.dataTransfer)};"drop"!=t.type&&"dragover"!=t.type||(e.dropRange=function(t,e){const n=e.target.ownerDocument,o=e.clientX,i=e.clientY;let r;n.caretRangeFromPoint&&n.caretRangeFromPoint(o,i)?r=n.caretRangeFromPoint(o,i):e.rangeParent&&(r=n.createRange(),r.setStart(e.rangeParent,e.rangeOffset),r.collapse(!0));if(r)return t.domConverter.domRangeToView(r);return null}(this.view,t)),this.fire(t.type,t,e)}}const Fg=["figcaption","li"];function Vg(t){let e="";if(t.is("$text")||t.is("$textProxy"))e=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))e=t.getAttribute("alt");else if(t.is("element","br"))e="\n";else{let n=null;for(const o of t.getChildren()){const t=Vg(o);n&&(n.is("containerElement")||o.is("containerElement"))&&(Fg.includes(n.name)||Fg.includes(o.name)?e+="\n":e+="\n\n"),e+=t,n=o}}return e}class jg extends Zt{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Rg),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,o=n.document;this.listenTo(o,"clipboardInput",(e=>{t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(o,"clipboardInput",((t,e)=>{const o=e.dataTransfer;let r=e.content||"";var s;r||(o.getData("text/html")?r=function(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((t,e)=>1==e.length?" ":e))}(o.getData("text/html")):o.getData("text/plain")&&(((s=(s=o.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||s.includes("<br>"))&&(s=`<p>${s}</p>`),r=s),r=this.editor.data.htmlProcessor.toView(r));const a=new i(this,"inputTransformation");this.fire(a,{content:r,dataTransfer:o,targetRanges:e.targetRanges,method:e.method}),a.stop.called&&t.stop(),n.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((t,n)=>{if(n.content.isEmpty)return;const o=this.editor.data.toModel(n.content,"$clipboardHolder");0!=o.childCount&&(t.stop(),e.change((()=>{this.fire("contentInsertion",{content:o,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((t,n)=>{n.resultRange=e.insertContent(n.content)}),{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document;function o(o,i){const r=i.dataTransfer;i.preventDefault();const s=t.data.toView(t.model.getSelectedContent(e.selection));n.fire("clipboardOutput",{dataTransfer:r,content:s,method:o.name})}this.listenTo(n,"copy",o,{priority:"low"}),this.listenTo(n,"cut",((e,n)=>{t.isReadOnly?n.preventDefault():o(e,n)}),{priority:"low"}),this.listenTo(n,"clipboardOutput",((n,o)=>{o.content.isEmpty||(o.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(o.content)),o.dataTransfer.setData("text/plain",Vg(o.content))),"cut"==o.method&&t.model.deleteContent(e.selection)}),{priority:"low"})}}class Jg{constructor(){this._stack=[]}add(t,e){const n=this._stack,o=n[0];this._insertDescriptor(t);const i=n[0];o===i||Hg(o,i)||this.fire("change:top",{oldDescriptor:o,newDescriptor:i,writer:e})}remove(t,e){const n=this._stack,o=n[0];this._removeDescriptor(t);const i=n[0];o===i||Hg(o,i)||this.fire("change:top",{oldDescriptor:o,newDescriptor:i,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t.id));if(Hg(t,e[n]))return;n>-1&&e.splice(n,1);let o=0;for(;e[o]&&Ug(e[o],t);)o++;e.splice(o,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t));n>-1&&e.splice(n,1)}}function Hg(t,e){return t&&e&&t.priority==e.priority&&qg(t.classes)==qg(e.classes)}function Ug(t,e){return t.priority>e.priority||!(t.priority<e.priority)&&qg(t.classes)>qg(e.classes)}function qg(t){return Array.isArray(t)?t.sort().join(","):t}Xt(Jg,h);var Gg='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>';const Wg="ck-widget_selected";function Kg(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function Yg(t,e,n={}){if(!t.is("containerElement"))throw new l.a("widget-to-widget-wrong-element-type",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass("ck-widget",t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=im,n.label&&function(t,e,n){n.setCustomProperty("widgetLabel",e,t)}(t,n.label,e),n.hasSelectionHandle&&function(t,e){const n=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(t){const e=this.toDomElement(t),n=new Wd;return n.set("content",Gg),n.render(),e.appendChild(n.element),e}));e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t)}(t,e),Zg(t,e,Qg,Xg),t}function Qg(t,e,n){if(e.classes&&n.addClass(ho(e.classes),t),e.attributes)for(const o in e.attributes)n.setAttribute(o,e.attributes[o],t)}function Xg(t,e,n){if(e.classes&&n.removeClass(ho(e.classes),t),e.attributes)for(const o in e.attributes)n.removeAttribute(o,t)}function Zg(t,e,n,o){const i=new Jg;i.on("change:top",((e,i)=>{i.oldDescriptor&&o(t,i.oldDescriptor,i.writer),i.newDescriptor&&n(t,i.newDescriptor,i.writer)})),e.setCustomProperty("addHighlight",((t,e,n)=>i.add(e,n)),t),e.setCustomProperty("removeHighlight",((t,e,n)=>i.remove(e,n)),t)}function $g(t){const e=t.getCustomProperty("widgetLabel");return e?"function"==typeof e?e():e:""}function tm(t,e){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",((n,o,i)=>{e.setAttribute("contenteditable",i?"false":"true",t)})),t.on("change:isFocused",((n,o,i)=>{i?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)})),t}function em(t,e){const n=t.getSelectedElement();if(n){const o=am(t);if(o)return e.createPositionAt(n,o);if(e.schema.isBlock(n))return e.createPositionAfter(n)}const o=t.getSelectedBlocks().next().value;if(o){if(o.isEmpty)return e.createPositionAt(o,0);const n=e.createPositionAfter(o);return t.focus.isTouching(n)?n:e.createPositionBefore(o)}return t.focus}function nm(t,e){const n=t.getSelectedElement();return!!n&&e.isObject(n)}function om(t,e){const n=new js(Tr.window),o=n.getIntersection(t),i=e.height+Ph.arrowVerticalOffset;if(t.top-i>n.top||t.bottom+i<n.bottom)return null;const r=o||t,s=r.left+r.width/2-e.width/2;return{top:Math.max(t.top,0)+Ph.arrowVerticalOffset,left:s,name:"arrow_n"}}function im(){return null}const rm="widget-type-around";function sm(t,e,n){return t&&Kg(t)&&!n.isInline(e)}function am(t){return t.getAttribute(rm)}var cm=n(37),lm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(cm.a,lm),cm.a.locals;const dm=["before","after"],um=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,hm="ck-widget__type-around_disabled";class km extends Zt{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Pp,Zp]}constructor(t){super(t),this._currentFakeCaretModelElement=null}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",((n,o,i)=>{e.change((t=>{for(const n of e.document.roots)i?t.removeClass(hm,n):t.addClass(hm,n)})),i||t.model.change((t=>{t.removeSelectionAttribute(rm)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,o=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(t,e)}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(t,e,n,o){this.listenTo(t,e,((...t)=>{this.isEnabled&&n(...t)}),o)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=am(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,o={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",((t,n,i)=>{const r=i.mapper.toViewElement(n.item);sm(r,n.item,e)&&function(t,e,n){const o=t.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(t){const n=this.toDomElement(t);return function(t,e){for(const n of dm){const o=new Cd({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${n}`],title:e[n]},children:[t.ownerDocument.importNode(um,!0)]});t.appendChild(o.render())}}(n,e),function(t){const e=new Cd({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render())}(n),n}));t.insert(t.createPositionAt(n,"end"),o)}(i.writer,o,r)}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,o=e.schema,i=t.editing.view;function r(t){return`ck-widget_type-around_show-fake-caret_${t}`}this._listenToIfEnabled(i.document,"arrowKey",((t,e)=>{this._handleArrowKeyPress(t,e)}),{context:[Kg,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",((e,n)=>{n.directChange&&t.model.change((t=>{t.removeSelectionAttribute(rm)}))})),this._listenToIfEnabled(e.document,"change:data",(()=>{const e=n.getSelectedElement();if(e){if(sm(t.editing.mapper.toViewElement(e),e,o))return}t.model.change((t=>{t.removeSelectionAttribute(rm)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",((t,e,n)=>{const i=n.writer;if(this._currentFakeCaretModelElement){const t=n.mapper.toViewElement(this._currentFakeCaretModelElement);t&&(i.removeClass(dm.map(r),t),this._currentFakeCaretModelElement=null)}const s=e.selection.getSelectedElement();if(!s)return;const a=n.mapper.toViewElement(s);if(!sm(a,s,o))return;const c=am(e.selection);c&&(i.addClass(r(c),a),this._currentFakeCaretModelElement=s)})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",((e,n,o)=>{o||t.model.change((t=>{t.removeSelectionAttribute(rm)}))}))}_handleArrowKeyPress(t,e){const n=this.editor,o=n.model,i=o.document.selection,r=o.schema,s=n.editing.view,a=Wi(e.keyCode,n.locale.contentLanguageDirection),c=s.document.selection.getSelectedElement();let l;sm(c,n.editing.mapper.toModelElement(c),r)?l=this._handleArrowKeyPressOnSelectedWidget(a):i.isCollapsed&&(l=this._handleArrowKeyPressWhenSelectionNextToAWidget(a)),l&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=am(e.document.selection);return e.change((e=>{if(!n)return e.setSelectionAttribute(rm,t?"after":"before"),!0;if(!(n===(t?"after":"before")))return e.removeSelectionAttribute(rm),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,o=n.schema,i=e.plugins.get("Widget"),r=i._getObjectElementNextToSelection(t);return!!sm(e.editing.mapper.toViewElement(r),r,o)&&(n.change((e=>{i._setSelectionOverElement(r),e.setSelectionAttribute(rm,t?"before":"after")})),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",((n,o)=>{const i=o.domTarget.closest(".ck-widget__type-around__button");if(!i)return;const r=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(i),s=function(t,e){const n=t.closest(".ck-widget");return e.mapDomToView(n)}(i,e.domConverter),a=t.editing.mapper.toModelElement(s);this._insertParagraph(a,r),o.preventDefault(),n.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",((n,o)=>{if("atTarget"!=n.eventPhase)return;const i=e.getSelectedElement(),r=t.editing.mapper.toViewElement(i),s=t.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:sm(r,i,s)&&(this._insertParagraph(i,o.isSoft?"before":"after"),a=!0),a&&(o.preventDefault(),n.stop())}),{context:Kg})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view,e=[ji.enter,ji.delete,ji.backspace];this._listenToIfEnabled(t.document,"keydown",((t,n)=>{e.includes(n.keyCode)||Hp(n)||this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,e=t.editing.view,n=t.model,o=n.schema;this._listenToIfEnabled(e.document,"delete",((e,i)=>{if("atTarget"!=e.eventPhase)return;const r=am(n.document.selection);if(!r)return;const s=i.direction,a=n.document.selection.getSelectedElement(),c="forward"==s;if("before"===r===c)t.execute("delete",{selection:n.createSelection(a,"on")});else{const e=o.getNearestSelectionRange(n.createPositionAt(a,r),s);if(e)if(e.isCollapsed){const i=n.createSelection(e.start);if(n.modifySelection(i,{direction:s}),i.focus.isEqual(e.start)){const t=function(t,e){let n=e;for(const o of e.getAncestors({parentFirst:!0})){if(o.childCount>1||t.isLimit(o))break;n=o}return n}(o,e.start.parent);n.deleteContent(n.createSelection(t,"on"),{doNotAutoparagraph:!0})}else n.change((n=>{n.setSelection(e),t.execute(c?"deleteForward":"delete")}))}else n.change((n=>{n.setSelection(e),t.execute(c?"deleteForward":"delete")}))}i.preventDefault(),e.stop()}),{context:Kg})}_enableInsertContentIntegration(){const t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",((t,[o,i])=>{if(i&&!i.is("documentSelection"))return;const r=am(n);return r?(t.stop(),e.change((t=>{const i=n.getSelectedElement(),s=e.createPositionAt(i,r),a=t.createSelection(s),c=e.insertContent(o,a);return t.setSelection(a),c}))):void 0}),{priority:"high"})}}var pm=n(38),gm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(pm.a,gm),pm.a.locals;function mm(t){const e=t.model;return(n,o)=>{const i=o.keyCode==ji.arrowup,r=o.keyCode==ji.arrowdown,s=o.shiftKey,a=e.document.selection;if(!i&&!r)return;const c=r;if(s&&function(t,e){return!t.isCollapsed&&t.isBackward==e}(a,c))return;const l=function(t,e,n){const o=t.model;if(n){const t=e.isCollapsed?e.focus:e.getLastPosition(),n=bm(o,t,"forward");if(!n)return null;const i=o.createRange(t,n),r=fm(o.schema,i,"backward");return r&&t.isBefore(r)?o.createRange(t,r):null}{const t=e.isCollapsed?e.focus:e.getFirstPosition(),n=bm(o,t,"backward");if(!n)return null;const i=o.createRange(n,t),r=fm(o.schema,i,"forward");return r&&t.isAfter(r)?o.createRange(r,t):null}}(t,a,c);l&&!l.isCollapsed&&function(t,e,n){const o=t.model,i=t.view.domConverter;if(n){const t=o.createSelection(e.start);o.modifySelection(t),t.focus.isAtEnd||e.start.isEqual(t.focus)||(e=o.createRange(t.focus,e.end))}const r=t.mapper.toViewRange(e),s=i.viewRangeToDom(r),a=js.getDomRangeRects(s);let c;for(const t of a)if(void 0!==c){if(Math.round(t.top)>=c)return!1;c=Math.max(c,Math.round(t.bottom))}else c=Math.round(t.bottom);return!0}(t,l,c)&&(e.change((t=>{const n=c?l.end:l.start;if(s){const o=e.createSelection(a.anchor);o.setFocus(n),t.setSelection(o)}else t.setSelection(n)})),n.stop(),o.preventDefault(),o.stopPropagation())}}function bm(t,e,n){const o=t.schema,i=t.createRangeIn(e.root),r="forward"==n?"elementStart":"elementEnd";for(const{previousPosition:t,item:s,type:a}of i.getWalker({startPosition:e,direction:n})){if(o.isLimit(s)&&!o.isInline(s))return t;if(a==r&&o.isBlock(s))return null}return null}function fm(t,e,n){const o="backward"==n?e.end:e.start;if(t.checkChild(o,"$text"))return o;for(const{nextPosition:o}of e.getWalker({direction:n}))if(t.checkChild(o,"$text"))return o}class Am extends Zt{static get pluginName(){return"Widget"}static get requires(){return[km,Zp]}init(){const t=this.editor.editing.view,e=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",((t,e,n)=>{this._clearPreviouslySelectedWidgets(n.writer);const o=n.writer,i=o.document.selection,r=i.getSelectedElement();let s=null;for(const t of i.getRanges())for(const e of t){const t=e.item;Kg(t)&&!Cm(t,s)&&(o.addClass(Wg,t),this._previouslySelected.add(t),s=t,t==r&&o.setSelection(i.getRanges(),{fake:!0,label:$g(r)}))}}),{priority:"low"}),t.addObserver(wk),this.listenTo(e,"mousedown",((...t)=>this._onMousedown(...t))),this.listenTo(e,"arrowKey",((...t)=>{this._handleSelectionChangeOnArrowKeyPress(...t)}),{context:[Kg,"$text"]}),this.listenTo(e,"arrowKey",((...t)=>{this._preventDefaultOnArrowKeyPress(...t)}),{context:"$root"}),this.listenTo(e,"arrowKey",mm(this.editor.editing),{context:"$text"}),this.listenTo(e,"delete",((t,e)=>{this._handleDelete("forward"==e.direction)&&(e.preventDefault(),t.stop())}),{context:"$root"})}_onMousedown(t,e){const n=this.editor,o=n.editing.view,i=o.document;let r=e.target;if(function(t){for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(Kg(t))return!1;t=t.parent}return!1}(r)){if((Ri.isSafari||Ri.isGecko)&&e.domEvent.detail>=3){const t=n.editing.mapper,o=r.is("attributeElement")?r.findAncestor((t=>!t.is("attributeElement"))):r,i=t.toModelElement(o);e.preventDefault(),this.editor.model.change((t=>{t.setSelection(i,"in")}))}return}if(!Kg(r)&&(r=r.findAncestor(Kg),!r))return;Ri.isAndroid&&e.preventDefault(),i.isFocused||o.focus();const s=n.editing.mapper.toModelElement(r);this._setSelectionOverElement(s)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,o=this.editor.model,i=o.schema,r=o.document.selection,s=r.getSelectedElement(),a=Wi(n,this.editor.locale.contentLanguageDirection);if(s&&i.isObject(s)){const n=a?r.getLastPosition():r.getFirstPosition(),s=i.getNearestSelectionRange(n,a?"forward":"backward");return void(s&&(o.change((t=>{t.setSelection(s)})),e.preventDefault(),t.stop()))}if(!r.isCollapsed)return;const c=this._getObjectElementNextToSelection(a);c&&i.isObject(c)&&(this._setSelectionOverElement(c),e.preventDefault(),t.stop())}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,o=n.schema,i=n.document.selection.getSelectedElement();i&&o.isObject(i)&&(e.preventDefault(),t.stop())}_handleDelete(t){if(this.editor.isReadOnly)return;const e=this.editor.model.document.selection;if(!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change((t=>{let o=e.anchor.parent;for(;o.isEmpty;){const e=o;o=e.parent,t.remove(e)}this._setSelectionOverElement(n)})),!0):void 0}_setSelectionOverElement(t){this.editor.model.change((e=>{e.setSelection(e.createRangeOn(t))}))}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,o=e.document.selection,i=e.createSelection(o);e.modifySelection(i,{direction:t?"forward":"backward"});const r=t?i.focus.nodeBefore:i.focus.nodeAfter;return r&&n.isObject(r)?r:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(Wg,e);this._previouslySelected.clear()}}function Cm(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}var wm=function(t,e,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return C(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Bs(t,e,{leading:o,maxWait:e,trailing:i})},_m=n(39),vm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(_m.a,vm),_m.a.locals;class ym extends Zt{static get pluginName(){return"DragDrop"}static get requires(){return[jg,Am]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=wm((t=>this._updateDropMarker(t)),40),this._removeDropMarkerDelayed=Im((()=>this._removeDropMarker()),40),this._clearDraggableAttributesDelayed=Im((()=>this._clearDraggableAttributes()),40),e.addObserver(Rg),e.addObserver(wk),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((t,e,n)=>{n||this._finalizeDragging(!1)})),Ri.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=e.document,o=t.editing.view,i=o.document;this.listenTo(i,"dragstart",((o,r)=>{const a=n.selection;if(r.target&&r.target.is("editableElement"))return void r.preventDefault();const c=r.target?Dm(r.target):null;if(c){const n=t.editing.mapper.toModelElement(c);this._draggedRange=Ma.fromRange(e.createRangeOn(n))}else if(!i.selection.isCollapsed){const t=i.selection.getSelectedElement();t&&Kg(t)||(this._draggedRange=Ma.fromRange(a.getFirstRange()))}if(!this._draggedRange)return void r.preventDefault();this._draggingUid=s(),r.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",r.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const l=e.createSelection(this._draggedRange.toRange()),d=t.data.toView(e.getSelectedContent(l));i.fire("clipboardOutput",{dataTransfer:r.dataTransfer,content:d,method:o.name}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(i,"dragend",((t,e)=>{this._finalizeDragging(!e.dataTransfer.isCanceled&&"move"==e.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(i,"dragenter",(()=>{this.isEnabled&&o.focus()})),this.listenTo(i,"dragleave",(()=>{this._removeDropMarkerDelayed()})),this.listenTo(i,"dragging",((e,n)=>{if(!this.isEnabled)return void(n.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const o=xm(t,n.targetRanges,n.target);this._draggedRange||(n.dataTransfer.dropEffect="copy"),Ri.isGecko||("copy"==n.dataTransfer.effectAllowed?n.dataTransfer.dropEffect="copy":["all","copyMove"].includes(n.dataTransfer.effectAllowed)&&(n.dataTransfer.dropEffect="move")),o&&this._updateDropMarkerThrottled(o)}),{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"clipboardInput",((e,n)=>{if("drop"!=n.method)return;const o=xm(t,n.targetRanges,n.target);if(this._removeDropMarker(),!o)return this._finalizeDragging(!1),void e.stop();this._draggedRange&&this._draggingUid!=n.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==Em(n.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(o,!0))return this._finalizeDragging(!1),void e.stop();n.targetRanges=[t.editing.mapper.toViewRange(o)]}),{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(jg);t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n=e.targetRanges.map((t=>this.editor.editing.mapper.toModelRange(t)));this.editor.model.change((t=>t.setSelection(n)))}),{priority:"high"}),t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n="move"==Em(e.dataTransfer),o=!e.resultRange||!e.resultRange.isCollapsed;this._finalizeDragging(o&&n)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",((o,i)=>{if(Ri.isAndroid||!i)return;this._clearDraggableAttributesDelayed.cancel();let r=Dm(i.target);if(Ri.isBlink&&!t.isReadOnly&&!r&&!n.selection.isCollapsed){const t=n.selection.getSelectedElement();t&&Kg(t)||(r=n.selection.editableElement)}r&&(e.change((t=>{t.setAttribute("draggable","true",r)})),this._draggableElement=t.editing.mapper.toModelElement(r))})),this.listenTo(n,"mouseup",(()=>{Ri.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change((e=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_setupDropMarker(){const t=this.editor;t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return n.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(t){const e=this.toDomElement(t);return e.innerHTML="&NoBreak;<span></span>&NoBreak;",e}))}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change((e=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||e.updateMarker("drop-target",{range:t}):e.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})}))}_removeDropMarker(){const t=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),t.markers.has("drop-target")&&t.change((t=>{t.removeMarker("drop-target")}))}_finalizeDragging(t){const e=this.editor.model;this._removeDropMarker(),this._clearDraggableAttributes(),this._draggingUid="",this._draggedRange&&(t&&this.isEnabled&&e.deleteContent(e.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function xm(t,e,n){const o=t.model,i=t.editing.mapper;let r=null;const s=e?e[0].start:null;if(n.is("uiElement")&&(n=n.parent),r=function(t,e){const n=t.model,o=t.editing.mapper;if(Kg(e))return n.createRangeOn(o.toModelElement(e));if(!e.is("editableElement")){const t=e.findAncestor((t=>Kg(t)||t.is("editableElement")));if(Kg(t))return n.createRangeOn(o.toModelElement(t))}return null}(t,n),r)return r;const a=function(t,e){const n=t.editing.mapper,o=t.editing.view,i=n.toModelElement(e);if(i)return i;const r=o.createPositionBefore(e),s=n.findMappedViewAncestor(r);return n.toModelElement(s)}(t,n),c=s?i.toModelPosition(s):null;return c?(r=function(t,e,n){const o=t.model;if(!o.schema.checkChild(n,"$block"))return null;const i=o.createPositionAt(n,0),r=e.path.slice(0,i.path.length),s=o.createPositionFromPath(e.root,r).nodeAfter;if(s&&o.schema.isObject(s))return o.createRangeOn(s);return null}(t,c,a),r||(r=o.schema.getNearestSelectionRange(c,Ri.isGecko?"forward":"backward"),r||function(t,e){const n=t.model;for(;e;){if(n.schema.isObject(e))return n.createRangeOn(e);e=e.parent}}(t,c.parent))):function(t,e){const n=t.model,o=n.schema,i=n.createPositionAt(e,0);return o.getNearestSelectionRange(i,"forward")}(t,a)}function Em(t){return Ri.isGecko?t.dropEffect:["all","copyMove"].includes(t.effectAllowed)?"move":"copy"}function Im(t,e){let n;function o(...i){o.cancel(),n=setTimeout((()=>t(...i)),e)}return o.cancel=()=>{clearTimeout(n)},o}function Dm(t){if(t.is("editableElement"))return null;if(t.hasClass("ck-widget__selection-handle"))return t.findAncestor(Kg);if(Kg(t))return t;const e=t.findAncestor((t=>Kg(t)||t.is("editableElement")));return Kg(e)?e:null}class Bm extends Zt{static get pluginName(){return"PastePlainText"}static get requires(){return[jg]}init(){const t=this.editor,e=t.model,n=t.editing.view,o=n.document,i=e.document.selection;let r=!1;n.addObserver(Rg),this.listenTo(o,"keydown",((t,e)=>{r=e.shiftKey})),t.plugins.get(jg).on("contentInsertion",((t,n)=>{(r||function(t,e){if(t.childCount>1)return!1;const n=t.getChild(0);if(e.isObject(n))return!1;return 0==[...n.getAttributeKeys()].length}(n.content,e.schema))&&e.change((t=>{const o=Array.from(i.getAttributes()).filter((([t])=>e.schema.getAttributeProperties(t).isFormatting));i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0}),o.push(...i.getAttributes());const r=t.createRangeIn(n.content);for(const e of r.getItems())e.is("$textProxy")&&t.setAttributes(o,e)}))}))}}class Sm extends Zt{static get pluginName(){return"Clipboard"}static get requires(){return[jg,ym,Bm]}}class Tm extends te{execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!Mm(t.schema,n))do{if(n=n.parent,!n)return}while(!Mm(t.schema,n));t.change((t=>{t.setSelection(n,"in")}))}}function Mm(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"))}const zm=Ui("Ctrl+A");class Nm extends Zt{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new Tm(t)),this.listenTo(e,"keydown",((e,n)=>{Hi(n)===zm&&(t.execute("selectAll"),n.preventDefault())}))}}class Pm extends Zt{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",(e=>{const n=t.commands.get("selectAll"),o=new $d(e),i=e.t;return o.set({label:i("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),o.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(o,"execute",(()=>{t.execute("selectAll"),t.editing.view.focus()})),o}))}}class Lm extends Zt{static get requires(){return[Nm,Pm]}static get pluginName(){return"SelectAll"}}class Om extends te{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(t.data,"set",(()=>this.clearStack()))}refresh(){this.isEnabled=this._stack.length>0}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const o=this.editor.model,i=o.document,r=[],s=t.map((t=>t.getTransformedByOperations(n))),a=s.flat();for(const t of s){const e=t.filter((t=>t.root!=i.graveyard)).filter((t=>!Fm(t,a)));e.length&&(Rm(e),r.push(e[0]))}r.length&&o.change((t=>{t.setSelection(r,{backward:e})}))}_undo(t,e){const n=this.editor.model,o=n.document;this._createdBatches.add(e);const i=t.operations.slice().filter((t=>t.isDocumentOperation));i.reverse();for(const t of i){const i=t.baseVersion+1,r=Array.from(o.history.getOperations(i)),s=kk([t.getReversed()],r,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const i of s)e.addOperation(i),n.applyOperation(i),o.history.setOperationAsUndone(t,i)}}}function Rm(t){t.sort(((t,e)=>t.start.isBefore(e.start)?-1:1));for(let e=1;e<t.length;e++){const n=t[e-1].getJoined(t[e],!0);n&&(e--,t.splice(e,2,n))}}function Fm(t,e){return e.some((e=>e!==t&&e.containsRange(t,!0)))}class Vm extends Om{execute(t=null){const e=t?this._stack.findIndex((e=>e.batch==t)):this._stack.length-1,n=this._stack.splice(e,1)[0],o=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(o,(()=>{this._undo(n.batch,o);const t=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,t),this.fire("revert",n.batch,o)})),this.refresh()}}class jm extends Om{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(e,(()=>{const n=t.batch.operations[t.batch.operations.length-1].baseVersion+1,o=this.editor.model.document.history.getOperations(n);this._restoreSelection(t.selection.ranges,t.selection.isBackward,o),this._undo(t.batch,e)})),this.refresh()}}class Jm extends Zt{static get pluginName(){return"UndoEditing"}constructor(t){super(t),this._batchRegistry=new WeakSet}init(){const t=this.editor;this._undoCommand=new Vm(t),this._redoCommand=new jm(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",((t,e)=>{const n=e[0];if(!n.isDocumentOperation)return;const o=n.batch,i=this._redoCommand._createdBatches.has(o),r=this._undoCommand._createdBatches.has(o);this._batchRegistry.has(o)||"transparent"==o.type&&!i&&!r||(i?this._undoCommand.addBatch(o):r||(this._undoCommand.addBatch(o),this._redoCommand.clearStack()),this._batchRegistry.add(o))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((t,e,n)=>{this._redoCommand.addBatch(n)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}var Hm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',Um='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';class qm extends Zt{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,o="ltr"==e.uiLanguageDirection?Hm:Um,i="ltr"==e.uiLanguageDirection?Um:Hm;this._addButton("undo",n("Undo"),"CTRL+Z",o),this._addButton("redo",n("Redo"),"CTRL+Y",i)}_addButton(t,e,n,o){const i=this.editor;i.ui.componentFactory.add(t,(r=>{const s=i.commands.get(t),a=new $d(r);return a.set({label:e,icon:o,keystroke:n,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",(()=>{i.execute(t),i.editing.view.focus()})),a}))}}class Gm extends Zt{static get requires(){return[Jm,qm]}static get pluginName(){return"Undo"}}class Wm extends te{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=e.selection.getAttribute(this.attributeKey),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,o=t.value;e.change((t=>{if(n.isCollapsed)o?t.setSelectionAttribute(this.attributeKey,o):t.removeSelectionAttribute(this.attributeKey);else{const i=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of i)o?t.setAttribute(this.attributeKey,o,e):t.removeAttribute(this.attributeKey,e)}}))}}class Km extends lo{constructor(t){super(t),this.set("isEmpty",!0),this.on("change",(()=>{this.set("isEmpty",0===this.length)}))}add(t,e){this.find((e=>e.color===t.color))||super.add(t,e)}hasColor(t){return!!this.find((e=>e.color===t))}}Xt(Km,qt);var Ym=n(40),Qm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Ym.a,Qm),Ym.a.locals;class Xm extends Ud{constructor(t,{colors:e,columns:n,removeButtonLabel:o,documentColorsLabel:i,documentColorsCount:r}){super(t),this.items=this.createCollection(),this.colorDefinitions=e,this.focusTracker=new Ks,this.keystrokes=new Ys,this.set("selectedColor"),this.removeButtonLabel=o,this.columns=n,this.documentColors=new Km,this.documentColorsCount=r,this._focusCycler=new yu({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this._documentColorsLabel=i,this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:this.items}),this.items.add(this._removeColorButton())}updateDocumentColors(t,e){const n=t.document,o=this.documentColorsCount;this.documentColors.clear();for(const i of n.getRootNames()){const r=n.getRoot(i),s=t.createRangeIn(r);for(const t of s.getItems())if(t.is("$textProxy")&&t.hasAttribute(e)&&(this._addColorToDocumentColors(t.getAttribute(e)),this.documentColors.length>=o))return}}updateSelectedColors(){const t=this.documentColorsGrid,e=this.staticColorsGrid,n=this.selectedColor;e.selectedColor=n,t&&(t.selectedColor=n)}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}appendGrids(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount)){const t=Cd.bind(this.documentColors,this.documentColors),e=new ph(this.locale);e.text=this._documentColorsLabel,e.extendTemplate({attributes:{class:["ck","ck-color-grid__label",t.if("isEmpty","ck-hidden")]}}),this.items.add(e),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_removeColorButton(){const t=new $d;return t.set({withText:!0,icon:Yl,tooltip:!0,label:this.removeButtonLabel}),t.class="ck-color-table__remove-color",t.on("execute",(()=>{this.fire("execute",{value:null})})),t}_createStaticColorsGrid(){const t=new Du(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return t.delegate("execute").to(this),t}_createDocumentColorsGrid(){const t=Cd.bind(this.documentColors,this.documentColors),e=new Du(this.locale,{columns:this.columns});return e.delegate("execute").to(this),e.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),e.items.bindTo(this.documentColors).using((t=>{const e=new vu;return e.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&e.set({label:t.label,tooltip:!0}),e.on("execute",(()=>{this.fire("execute",{value:t.color})})),e})),this.documentColors.on("change:isEmpty",((t,n,o)=>{o&&(e.selectedColor=null)})),e}_addColorToDocumentColors(t){const e=this.colorDefinitions.find((e=>e.color===t));e?this.documentColors.add(Object.assign({},e)):this.documentColors.add({color:t,label:t,options:{hasBorder:!1}})}}const Zm="fontSize",$m="fontFamily",tb="fontColor",eb="fontBackgroundColor";function nb(t,e){const n={model:{key:t,values:[]},view:{},upcastAlso:{}};for(const t of e)n.model.values.push(t.model),n.view[t.model]=t.view,t.upcastAlso&&(n.upcastAlso[t.model]=t.upcastAlso);return n}function ob(t){return e=>e.getStyle(t).replace(/\s/g,"")}function ib(t){return(e,{writer:n})=>n.createAttributeElement("span",{style:`${t}:${e}`},{priority:7})}class rb extends Wm{constructor(t){super(t,$m)}}function sb(t){return t.map(ab).filter((t=>!!t))}function ab(t){return"object"==typeof t?t:"default"===t?{title:"Default",model:void 0}:"string"==typeof t?function(t){const e=t.replace(/"|'/g,"").split(","),n=e[0],o=e.map(cb).join(", ");return{title:n,model:o,view:{name:"span",styles:{"font-family":o},priority:7}}}(t):void 0}function cb(t){return(t=t.trim()).indexOf(" ")>0&&(t=`'${t}'`),t}class lb extends Zt{static get pluginName(){return"FontFamilyEditing"}constructor(t){super(t),t.config.define($m,{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})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:$m}),t.model.schema.setAttributeProperties($m,{isFormatting:!0,copyOnEnter:!0});const e=sb(t.config.get("fontFamily.options")).filter((t=>t.model)),n=nb($m,e);t.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(n),t.commands.add($m,new rb(t))}_prepareAnyValueConverters(){const t=this.editor;t.conversion.for("downcast").attributeToElement({model:$m,view:(t,{writer:e})=>e.createAttributeElement("span",{style:"font-family:"+t},{priority:7})}),t.conversion.for("upcast").elementToAttribute({model:{key:$m,value:t=>t.getStyle("font-family")},view:{name:"span",styles:{"font-family":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{face:/.*/}},model:{key:$m,value:t=>t.getAttribute("face")}})}}class db extends Zt{static get pluginName(){return"FontFamilyUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),o=t.commands.get($m);t.ui.componentFactory.add($m,(i=>{const r=sh(i);return ch(r,function(t,e){const n=new lo;for(const o of t){const t={type:"button",model:new Sh({commandName:$m,commandParam:o.model,label:o.title,withText:!0})};t.model.bind("isOn").to(e,"value",(t=>t===o.model||!(!t||!o.model)&&t.split(",")[0].replace(/'/g,"").toLowerCase()===o.model.toLowerCase())),o.view&&o.view.styles&&t.model.set("labelStyle",`font-family: ${o.view.styles["font-family"]}`),n.add(t)}return n}(n,o)),r.buttonView.set({label:e("Font Family"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>',tooltip:!0}),r.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),r.bind("isEnabled").to(o),this.listenTo(r,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),r}))}_getLocalizedOptions(){const t=this.editor,e=t.t;return sb(t.config.get($m).options).map((t=>("Default"===t.title&&(t.title=e("Default")),t)))}}class ub extends Zt{static get requires(){return[lb,db]}static get pluginName(){return"FontFamily"}}class hb extends Wm{constructor(t){super(t,Zm)}}function kb(t){return t.map((t=>function(t){if(e=t,"object"==typeof e&&e.title&&e.model&&e.view)return gb(t);var e;const n=function(t){return pb[t]||pb[t.model]}(t);if(n)return gb(n);if("default"===t)return{model:void 0,title:"Default"};if(function(t){let e;if("object"==typeof t){if(!t.model)throw new l.a("font-size-invalid-definition",null,t);e=parseFloat(t.model)}else e=parseFloat(t);return isNaN(e)}(t))return;return function(t){"number"!=typeof t&&"string"!=typeof t||(t={title:String(t),model:`${parseFloat(t)}px`});return t.view={name:"span",styles:{"font-size":t.model}},gb(t)}(t)}(t))).filter((t=>!!t))}const pb={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 gb(t){return t.view.priority||(t.view.priority=7),t}const mb=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];class bb extends Zt{static get pluginName(){return"FontSizeEditing"}constructor(t){super(t),t.config.define(Zm,{options:["tiny","small","default","big","huge"],supportAllValues:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Zm}),t.model.schema.setAttributeProperties(Zm,{isFormatting:!0,copyOnEnter:!0});const e=t.config.get("fontSize.supportAllValues"),n=kb(this.editor.config.get("fontSize.options")).filter((t=>t.model)),o=nb(Zm,n);e?(this._prepareAnyValueConverters(o),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(o),t.commands.add(Zm,new hb(t))}_prepareAnyValueConverters(t){const e=this.editor,n=t.model.values.filter((t=>!zk(String(t))&&!Pk(String(t))));if(n.length)throw new l.a("font-size-invalid-use-of-named-presets",null,{presets:n});e.conversion.for("downcast").attributeToElement({model:Zm,view:(t,{writer:e})=>{if(t)return e.createAttributeElement("span",{style:"font-size:"+t},{priority:7})}}),e.conversion.for("upcast").elementToAttribute({model:{key:Zm,value:t=>t.getStyle("font-size")},view:{name:"span",styles:{"font-size":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:Zm,value:t=>{const e=t.getAttribute("size"),n="-"===e[0]||"+"===e[0];let o=parseInt(e,10);n&&(o=3+o);const i=mb.length-1,r=Math.min(Math.max(o,0),i);return mb[r]}}})}}var fb=n(41),Ab={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(fb.a,Ab),fb.a.locals;class Cb extends Zt{static get pluginName(){return"FontSizeUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),o=t.commands.get(Zm);t.ui.componentFactory.add(Zm,(i=>{const r=sh(i);return ch(r,function(t,e){const n=new lo;for(const o of t){const t={type:"button",model:new Sh({commandName:Zm,commandParam:o.model,label:o.title,class:"ck-fontsize-option",withText:!0})};o.view&&o.view.styles&&t.model.set("labelStyle",`font-size:${o.view.styles["font-size"]}`),o.view&&o.view.classes&&t.model.set("class",`${t.model.class} ${o.view.classes}`),t.model.bind("isOn").to(e,"value",(t=>t===o.model)),n.add(t)}return n}(n,o)),r.buttonView.set({label:e("Font Size"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),r.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),r.bind("isEnabled").to(o),this.listenTo(r,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),r}))}_getLocalizedOptions(){const t=this.editor,e=t.t,n={Default:e("Default"),Tiny:e("Tiny"),Small:e("Small"),Big:e("Big"),Huge:e("Huge")};return kb(t.config.get(Zm).options).map((t=>{const e=n[t.title];return e&&e!=t.title&&(t=Object.assign({},t,{title:e})),t}))}}class wb extends Zt{static get requires(){return[bb,Cb]}static get pluginName(){return"FontSize"}}class _b extends Wm{constructor(t){super(t,tb)}}class vb extends Zt{static get pluginName(){return"FontColorEditing"}constructor(t){super(t),t.config.define(tb,{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}),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:tb,value:ob("color")}}),t.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:tb,value:t=>t.getAttribute("color")}}),t.conversion.for("downcast").attributeToElement({model:tb,view:ib("color")}),t.commands.add(tb,new _b(t)),t.model.schema.extend("$text",{allowAttributes:tb}),t.model.schema.setAttributeProperties(tb,{isFormatting:!0,copyOnEnter:!0})}}class yb extends Zt{constructor(t,{commandName:e,icon:n,componentName:o,dropdownLabel:i}){super(t),this.commandName=e,this.componentName=o,this.icon=n,this.dropdownLabel=i,this.columns=t.config.get(`${this.componentName}.columns`),this.colorTableView=void 0}init(){const t=this.editor,e=t.locale,n=e.t,o=t.commands.get(this.commandName),i=Cu(e,wu(t.config.get(this.componentName).colors)),r=t.config.get(`${this.componentName}.documentColors`);t.ui.componentFactory.add(this.componentName,(e=>{const s=sh(e);return this.colorTableView=function({dropdownView:t,colors:e,columns:n,removeButtonLabel:o,documentColorsLabel:i,documentColorsCount:r}){const s=t.locale,a=new Xm(s,{colors:e,columns:n,removeButtonLabel:o,documentColorsLabel:i,documentColorsCount:r});return t.colorTableView=a,t.panelView.children.add(a),a.delegate("execute").to(t,"execute"),a}({dropdownView:s,colors:i.map((t=>({label:t.label,color:t.model,options:{hasBorder:t.hasBorder}}))),columns:this.columns,removeButtonLabel:n("Remove color"),documentColorsLabel:0!==r?n("Document colors"):void 0,documentColorsCount:void 0===r?this.columns:r}),this.colorTableView.bind("selectedColor").to(o,"value"),s.buttonView.set({label:this.dropdownLabel,icon:this.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(o),s.on("execute",((e,n)=>{t.execute(this.commandName,n),t.editing.view.focus()})),s.on("change:isOpen",((e,n,o)=>{s.colorTableView.appendGrids(),o&&(0!==r&&this.colorTableView.updateDocumentColors(t.model,this.componentName),this.colorTableView.updateSelectedColors())})),s}))}}class xb extends yb{constructor(t){const e=t.locale.t;super(t,{commandName:tb,componentName:tb,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3 10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:e("Font Color")})}static get pluginName(){return"FontColorUI"}}class Eb extends Zt{static get requires(){return[vb,xb]}static get pluginName(){return"FontColor"}}class Ib extends Wm{constructor(t){super(t,eb)}}class Db extends Zt{static get pluginName(){return"FontBackgroundColorEditing"}constructor(t){super(t),t.config.define(eb,{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}),t.data.addStyleProcessorRules(Kk),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:eb,value:ob("background-color")}}),t.conversion.for("downcast").attributeToElement({model:eb,view:ib("background-color")}),t.commands.add(eb,new Ib(t)),t.model.schema.extend("$text",{allowAttributes:eb}),t.model.schema.setAttributeProperties(eb,{isFormatting:!0,copyOnEnter:!0})}}class Bb extends yb{constructor(t){const e=t.locale.t;super(t,{commandName:eb,componentName:eb,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8.38 9.262H7.62L10 5.506l2.38 5.756zm.532 1.285L14.34 16h1.426L10.804 4H9.196L4.234 16H5.66l1.428-3.453h5.824z"/></svg>',dropdownLabel:e("Font Background Color")})}static get pluginName(){return"FontBackgroundColorUI"}}class Sb extends Zt{static get requires(){return[Db,Bb]}static get pluginName(){return"FontBackgroundColor"}}class Tb extends te{refresh(){const t=this.editor.model,e=Ws(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Mb(e,t.schema)}execute(t={}){const e=this.editor.model,n=e.document;e.change((o=>{const i=(t.selection||n.selection).getSelectedBlocks();for(const t of i)!t.is("element","paragraph")&&Mb(t,e.schema)&&o.rename(t,"paragraph")}))}}function Mb(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}class zb extends te{execute(t){const e=this.editor.model;let n=t.position;e.change((t=>{const o=t.createElement("paragraph");if(!e.schema.checkChild(n.parent,o)){const i=e.schema.findAllowedParent(n,o);if(!i)return;n=t.split(n,i).position}e.insertContent(o,n),t.setSelection(o,"in")}))}}class Nb extends Zt{static get pluginName(){return"Paragraph"}init(){const t=this.editor,e=t.model;t.commands.add("paragraph",new Tb(t)),t.commands.add("insertParagraph",new zb(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(t,{writer:e})=>Nb.paragraphLikeElements.has(t.name)?t.isEmpty?null:e.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}Nb.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class Pb extends te{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Ws(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((e=>Lb(t,e,this.editor.model.schema)))}execute(t){const e=this.editor.model,n=e.document,o=t.value;e.change((t=>{const i=Array.from(n.selection.getSelectedBlocks()).filter((t=>Lb(t,o,e.schema)));for(const e of i)e.is("element",o)||t.rename(e,o)}))}}function Lb(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}const Ob="paragraph";class Rb extends Zt{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Nb]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const o of e)o.model!==Ob&&(t.model.schema.register(o.model,{allowIn:"$root",inheritAllFrom:"$block"}),t.conversion.elementToElement(o),n.push(o.model));this._addClassToAllHeading(t),t.commands.add("heading",new Pb(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",((e,o)=>{const i=t.model.document.selection.getFirstPosition().parent;n.some((t=>i.is("element",t.model)))&&!i.is("element",Ob)&&0===i.childCount&&o.writer.rename(i,Ob)}))}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:a.get("low")+1})}_addClassToAllHeading(t){t.conversion.for("downcast").add((t=>{t.on("insert:heading1",((t,e,n)=>{n.writer.addClass("radEdH1",n.mapper.toViewElement(e.item))}),{priority:"low"})})),t.conversion.for("downcast").add((t=>{t.on("insert:heading2",((t,e,n)=>{n.writer.addClass("radEdH2",n.mapper.toViewElement(e.item))}),{priority:"low"})})),t.conversion.for("downcast").add((t=>{t.on("insert:heading3",((t,e,n)=>{n.writer.addClass("radEdH3",n.mapper.toViewElement(e.item))}),{priority:"low"})}))}}var Fb=n(42),Vb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Fb.a,Vb),Fb.a.locals;class jb extends Zt{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=function(t){const e=t.t,n={Paragraph:e("Paragraph"),"Heading 1":e("Heading %0","1"),"Heading 2":e("Heading %0","2"),"Heading 3":e("Heading %0","3"),"Heading 4":e("Heading %0","4"),"Heading 5":e("Heading %0","5"),"Heading 6":e("Heading %0","6")};return t.config.get("heading.options").map((t=>{const e=n[t.title];return e&&e!=t.title&&(t.title=e),t}))}(t),o=e("Choose heading"),i=e("Heading");t.ui.componentFactory.add("heading",(e=>{const r={},s=new lo,a=t.commands.get("heading"),c=t.commands.get("paragraph"),l=[a];for(const t of n){const e={type:"button",model:new Sh({label:t.title,class:t.class,withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(c,"value"),e.model.set("commandName","paragraph"),l.push(c)):(e.model.bind("isOn").to(a,"value",(e=>e===t.model)),e.model.set({commandName:"heading",commandValue:t.model})),s.add(e),r[t.model]=t.title}const d=sh(e);return ch(d,s),d.buttonView.set({isOn:!1,withText:!0,tooltip:i}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(l,"isEnabled",((...t)=>t.some((t=>t)))),d.buttonView.bind("label").to(a,"value",c,"value",((t,e)=>{const n=t||e&&"paragraph";return r[n]?r[n]:o})),this.listenTo(d,"execute",(e=>{t.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),t.editing.view.focus()})),d}))}}class Jb extends Zt{static get requires(){return[Uh]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",(e=>{(function(t){const e=t.getSelectedElement();return!(!e||!Kg(e))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:o,balloonClassName:i="ck-toolbar-container"}){if(!n.length)return void Object(l.b)("widget-toolbar-no-items",{toolbarId:t});const r=this.editor,s=r.t,a=new Wu(r.locale);if(a.ariaLabel=e||s("Widget toolbar"),this._toolbarDefinitions.has(t))throw new l.a("widget-toolbar-duplicated",this,{toolbarId:t});a.fillFromConfig(n,r.ui.componentFactory),this._toolbarDefinitions.set(t,{view:a,getRelatedElement:o,balloonClassName:i})}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const o of this._toolbarDefinitions.values()){const i=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&i)if(this.editor.ui.focusTracker.isFocused){const r=i.getAncestors().length;r>t&&(t=r,e=i,n=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?Hb(this.editor,e):this._isToolbarInBalloon(t)||(this._balloon.add({view:t.view,position:Ub(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const t of this._toolbarDefinitions.values())if(this._isToolbarVisible(t)){const e=t.getRelatedElement(this.editor.editing.view.document.selection);Hb(this.editor,e)}})))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Hb(t,e){const n=t.plugins.get("ContextualBalloon"),o=Ub(t,e);n.updatePosition(o)}function Ub(t,e){const n=t.editing.view,o=Ph.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,om]}}class qb{constructor(t){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}begin(t,e,n){const o=new js(e);this.activeHandlePosition=function(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const n of e)if(t.classList.contains(Gb(n)))return n}(t),this._referenceCoordinates=function(t,e){const n=new js(t),o=e.split("-"),i={x:"right"==o[1]?n.right:n.left,y:"bottom"==o[0]?n.bottom:n.top};return i.x+=t.ownerDocument.defaultView.scrollX,i.y+=t.ownerDocument.defaultView.scrollY,i}(e,function(t){const e=t.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return`${n[e[0]]}-${n[e[1]]}`}(this.activeHandlePosition)),this.originalWidth=o.width,this.originalHeight=o.height,this.aspectRatio=o.width/o.height;const i=n.style.width;i&&i.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(i):this.originalWidthPercents=function(t,e){const n=t.parentElement,o=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return e.width/o*100}(n,o)}update(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}function Gb(t){return`ck-widget__resizer__handle-${t}`}Xt(qb,qt);class Wb{constructor(t){this._options=t,this._domResizerWrapper=null,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(t=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),t.stop())}),{priority:"high"}),this.on("change:isEnabled",(()=>{this.isEnabled&&this.redraw()}))}attach(){const t=this,e=this._options.viewElement;this._options.editor.editing.view.change((n=>{const o=n.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(e){const n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),t._domResizerWrapper=n,t.on("change:isEnabled",((t,e,o)=>{n.style.display=o?"":"none"})),n.style.display=t.isEnabled?"":"none",n}));n.insert(n.createPositionAt(e,"end"),o),n.addClass("ck-widget_with-resizer",e),this._viewResizerWrapper=o}))}begin(t){this.state=new qb(this._options),this._sizeUI.bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(t,this._getHandleHost(),this._getResizeHost())}updateSize(t){const e=this._proposeNewSize(t);this._options.editor.editing.view.change((t=>{const n=this._options.unit||"%",o=("%"===n?e.widthPercents:e.width)+n;t.setStyle("width",o,this._options.viewElement)}));const n=this._getHandleHost(),o=new js(n);e.handleHostWidth=Math.round(o.width),e.handleHostHeight=Math.round(o.height);const i=new js(n);e.width=Math.round(i.width),e.height=Math.round(i.height),this.redraw(o),this.state.update(e)}commit(){const t=this._options.unit||"%",e=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(e)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(t){const e=this._domResizerWrapper;if(!((n=e)&&n.ownerDocument&&n.ownerDocument.contains(n)))return;var n;const o=e.parentElement,i=this._getHandleHost(),r=this._viewResizerWrapper,s=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];let a;if(o.isSameNode(i)){const e=t||new js(i);a=[e.width+"px",e.height+"px",void 0,void 0]}else a=[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];"same"!==Ao(s,a)&&this._options.editor.editing.view.change((t=>{t.setStyle({width:a[0],height:a[1],left:a[2],top:a[3]},r)}))}containsHandle(t){return this._domResizerWrapper.contains(t)}static isResizeHandle(t){return t.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeUI.dismiss(),this._sizeUI.isVisible=!1;this._options.editor.editing.view.change((t=>{t.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(t){const e=this.state,n={x:(o=t).pageX,y:o.pageY};var o;const i=!this._options.isCentered||this._options.isCentered(this),r={x:e._referenceCoordinates.x-(n.x+e.originalWidth),y:n.y-e.originalHeight-e._referenceCoordinates.y};i&&e.activeHandlePosition.endsWith("-right")&&(r.x=n.x-(e._referenceCoordinates.x+e.originalWidth)),i&&(r.x*=2);const s={width:Math.abs(e.originalWidth+r.x),height:Math.abs(e.originalHeight+r.y)};s.dominant=s.width/e.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];const a={width:s.width,height:s.height};return"width"==s.dominant?a.height=a.width/e.aspectRatio:a.width=a.height*e.aspectRatio,{width:Math.round(a.width),height:Math.round(a.height),widthPercents:Math.min(Math.round(e.originalWidthPercents/e.originalWidth*a.width*100)/100,100)}}_getResizeHost(){const t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t)}_getHandleHost(){const t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t)}_appendHandles(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const o of e)t.appendChild(new Cd({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(n=o,`ck-widget__resizer__handle-${n}`)}}).render());var n}_appendSizeUI(t){const e=new Kb;e.render(),this._sizeUI=e,t.appendChild(e.element)}}Xt(Wb,qt);class Kb extends Ud{constructor(){super();const t=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",t.to("activeHandlePosition",(t=>t?`ck-orientation-${t}`:""))],style:{display:t.if("isVisible","none",(t=>!t))}},children:[{text:t.to("label")}]})}bindToState(t,e){this.bind("isVisible").to(e,"proposedWidth",e,"proposedHeight",((t,e)=>null!==t&&null!==e)),this.bind("label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",((e,n,o)=>"px"===t.unit?`${e}×${n}`:`${o}%`)),this.bind("activeHandlePosition").to(e)}dismiss(){this.unbind(),this.isVisible=!1}}var Yb=n(43),Qb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Yb.a,Qb),Yb.a.locals;class Xb extends Zt{static get pluginName(){return"WidgetResize"}init(){this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map;const t=Tr.window.document;this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0}),this.editor.editing.view.addObserver(wk),this._observer=Object.create(Jr),this.listenTo(this.editor.editing.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this));const e=()=>{this.visibleResizer&&this.visibleResizer.redraw()},n=wm(e,200);this.on("change:visibleResizer",e),this.editor.ui.on("update",n),this._observer.listenTo(Tr.window,"resize",n);const o=this.editor.editing.view.document.selection;o.on("change",(()=>{const t=o.getSelectedElement();this.visibleResizer=this.getResizerByViewElement(t)||null}))}destroy(){this._observer.stopListening();for(const t of this._resizers.values())t.destroy()}attachTo(t){const e=new Wb(t),n=this.editor.plugins;if(e.attach(),n.has("WidgetToolbarRepository")){const t=n.get("WidgetToolbarRepository");e.on("begin",(()=>{t.forceDisabled("resize")}),{priority:"lowest"}),e.on("cancel",(()=>{t.clearForceDisabled("resize")}),{priority:"highest"}),e.on("commit",(()=>{t.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(t.viewElement,e);const o=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(o)==e&&(this.visibleResizer=e),e}getResizerByViewElement(t){return this._resizers.get(t)}_getResizerByHandle(t){for(const e of this._resizers.values())if(e.containsHandle(t))return e}_mouseDownListener(t,e){const n=e.domTarget;Wb.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),t.stop(),e.preventDefault()))}_mouseMoveListener(t,e){this._activeResizer&&this._activeResizer.updateSize(e)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}Xt(Xb,qt);class Zb extends qr{observe(t){this.listenTo(t,"load",((t,e)=>{const n=e.target;this.checkShouldIgnoreEventFromTarget(n)||"IMG"==n.tagName&&this._fireEvents(e)}),{useCapture:!0})}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}function $b(t){return!!t.getCustomProperty("image")&&Kg(t)}function tf(t){const e=t.getSelectedElement();return e&&$b(e)?e:null}function ef(t){return!!t&&t.is("element","image")}function nf(t,e={},n=null){t.change((o=>{const i=o.createElement("image",e),r=n||em(t.document.selection,t);t.insertContent(i,r),i.parent&&o.setSelection(i,"on")}))}function of(t){const e=t.schema,n=t.document.selection;return function(t,e,n){const o=function(t,e){const n=em(t,e).parent;if(n.isEmpty&&!n.is("element","$root"))return n.parent;return n}(t,n);return e.checkChild(o,"image")}(n,e,t)&&!nm(n,e)&&function(t){return[...t.focus.getAncestors()].every((t=>!t.is("element","image")))}(n)}function rf(t){const e=[];for(const n of t.getChildren())e.push(n),n.is("element")&&e.push(...n.getChildren());return e.find((t=>t.is("element","img")))}function sf(t){return n=>{n.on(`attribute:${t}:image`,e)};function e(t,e,n){if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=rf(n.mapper.toViewElement(e.item));o.setAttribute(e.attributeKey,e.attributeNewValue||"",i)}}class af extends te{refresh(){this.isEnabled=of(this.editor.model)}execute(t){const e=this.editor.model;for(const n of ho(t.source))nf(e,{src:n})}}class cf extends Zt{static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,o=t.conversion;t.editing.view.addObserver(Zb),e.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),o.for("dataDowncast").elementToElement({model:"image",view:(t,{writer:e})=>lf(e)}),o.for("editingDowncast").elementToElement({model:"image",view:(t,{writer:e})=>function(t,e,n){return e.setCustomProperty("image",!0,t),Yg(t,e,{label:function(){const e=rf(t).getAttribute("alt");return e?`${e} ${n}`:n}})}(lf(e),e,n("image widget"))}),o.for("downcast").add(sf("src")).add(sf("alt")).add(function(){return e=>{e.on("attribute:srcset:image",t)};function t(t,e,n){if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=rf(n.mapper.toViewElement(e.item));if(null===e.attributeNewValue){const t=e.attributeOldValue;t.data&&(o.removeAttribute("srcset",i),o.removeAttribute("sizes",i),t.width&&o.removeAttribute("width",i))}else{const t=e.attributeNewValue;t.data&&(o.setAttribute("srcset",t.data,i),o.setAttribute("sizes","100vw",i),t.width&&o.setAttribute("width",t.width,i))}}}()),o.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:(t,{writer:e})=>e.createElement("image",{src:t.getAttribute("src")})}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:t=>{const e={data:t.getAttribute("srcset")};return t.hasAttribute("width")&&(e.width=t.getAttribute("width")),e}}}).add(function(){return e=>{e.on("element:figure",t)};function t(t,e,n){if(!n.consumable.test(e.viewItem,{name:!0,classes:"image"}))return;const o=rf(e.viewItem);if(!o||!o.hasAttribute("src")||!n.consumable.test(o,{name:!0}))return;const i=Ws(n.convertItem(o,e.modelCursor).modelRange.getItems());i&&(n.convertChildren(e.viewItem,i),n.updateConversionResult(i,e))}}());const i=new af(t);t.commands.add("insertImage",i),t.commands.add("imageInsert",i)}}function lf(t){const e=t.createEmptyElement("img"),n=t.createContainerElement("figure",{class:"image"});return t.insert(t.createPositionAt(n,0),e),n}class df extends te{refresh(){const t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=ef(t),ef(t)&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}execute(t){const e=this.editor.model,n=e.document.selection.getSelectedElement();e.change((e=>{e.setAttribute("alt",t.newValue,n)}))}}class uf extends Zt{static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new df(this.editor))}}var hf=n(44),kf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0},pf=(jd()(hf.a,kf),hf.a.locals,n(45)),gf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(pf.a,gf),pf.a.locals;class mf extends Ud{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Ks,this.keystrokes=new Ys,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),Kl,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),Wl,"ck-button-cancel","cancel"),this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]}),pu(this)}render(){super.render(),this.keystrokes.listenTo(this.element),gu({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)}))}_createButton(t,e,n,o){const i=new $d(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}_createLabeledInputView(){const t=this.locale.t,e=new Eh(this.locale,Ih);return e.label=t("Text alternative"),e}}function bf(t){const e=t.editing.view,n=Ph.defaultPositions;return{target:e.domConverter.viewToDom(e.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}class ff extends Zt{static get requires(){return[Uh]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",(n=>{const o=t.commands.get("imageTextAlternative"),i=new $d(n);return i.set({label:e("Change image text alternative"),icon:Ql,tooltip:!0}),i.bind("isEnabled").to(o,"isEnabled"),this.listenTo(i,"execute",(()=>{this._showForm()})),i}))}_createForm(){const t=this.editor,e=t.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new mf(t.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((t,e)=>{this._hideForm(!0),e()})),this.listenTo(t.ui,"update",(()=>{tf(e.selection)?this._isVisible&&function(t){const e=t.plugins.get("ContextualBalloon");if(tf(t.editing.view.document.selection)){const n=bf(t);e.updatePosition(n)}}(t):this._hideForm(!0)})),ku({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:bf(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class Af extends Zt{static get requires(){return[uf,ff]}static get pluginName(){return"ImageTextAlternative"}}var Cf=n(46),wf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Cf.a,wf),Cf.a.locals;function _f(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}function vf(t){const e=t.parent;return"figcaption"==t.name&&e&&"figure"==e.name&&e.hasClass("image")?{name:!0}:null}class yf extends Zt{static get pluginName(){return"ImageCaptionEditing"}init(){const t=this.editor,e=t.editing.view,n=t.model.schema,o=t.data,i=t.editing,r=t.t;n.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),t.model.document.registerPostFixer((t=>this._insertMissingModelCaptionElement(t))),t.conversion.for("upcast").elementToElement({view:vf,model:"caption"});o.downcastDispatcher.on("insert:caption",xf((t=>t.createContainerElement("figcaption")),!1));const s=function(t,e){return n=>{const o=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,o),ik({view:t,element:o,text:e}),tm(o,n)}}(e,r("Enter image caption"));i.downcastDispatcher.on("insert:caption",xf(s)),i.downcastDispatcher.on("insert",this._fixCaptionVisibility((t=>t.item)),{priority:"high"}),i.downcastDispatcher.on("remove",this._fixCaptionVisibility((t=>t.position.parent)),{priority:"high"}),e.document.registerPostFixer((t=>this._updateCaptionVisibility(t)))}_updateCaptionVisibility(t){const e=this.editor.editing.mapper,n=this._lastSelectedCaption;let o;const i=this.editor.model.document.selection,r=i.getSelectedElement();if(r&&r.is("element","image")){const t=_f(r);o=e.toViewElement(t)}const s=Ef(i.getFirstPosition().parent);if(s&&(o=e.toViewElement(s)),o&&!this.editor.isReadOnly)return n?(n===o||(If(n,t),this._lastSelectedCaption=o),Df(o,t)):(this._lastSelectedCaption=o,Df(o,t));if(n){const e=If(n,t);return this._lastSelectedCaption=null,e}return!1}_fixCaptionVisibility(t){return(e,n,o)=>{const i=Ef(t(n)),r=this.editor.editing.mapper,s=o.writer;if(i){const t=r.toViewElement(i);t&&(i.childCount?s.removeClass("ck-hidden",t):s.addClass("ck-hidden",t))}}}_insertMissingModelCaptionElement(t){const e=this.editor.model,n=e.document.differ.getChanges(),o=[];for(const t of n)if("insert"==t.type&&"$text"!=t.name){const n=t.position.nodeAfter;if(n.is("element","image")&&!_f(n)&&o.push(n),!n.is("element","image")&&n.childCount)for(const t of e.createRangeIn(n).getItems())t.is("element","image")&&!_f(t)&&o.push(t)}for(const e of o)t.appendElement("caption",e);return!!o.length}}function xf(t,e=!0){return(n,o,i)=>{const r=o.item;if((r.childCount||e)&&ef(r.parent)){if(!i.consumable.consume(o.item,"insert"))return;const e=i.mapper.toViewElement(o.range.start.parent),n=t(i.writer),s=i.writer;r.childCount||s.addClass("ck-hidden",n),function(t,e,n,o){const i=o.writer.createPositionAt(n,"end");o.writer.insert(i,t),o.mapper.bindElements(e,t)}(n,o.item,e,i)}}}function Ef(t){const e=t.getAncestors({includeSelf:!0}).find((t=>"caption"==t.name));return e&&e.parent&&"image"==e.parent.name?e:null}function If(t,e){return!t.childCount&&!t.hasClass("ck-hidden")&&(e.addClass("ck-hidden",t),!0)}function Df(t,e){return!!t.hasClass("ck-hidden")&&(e.removeClass("ck-hidden",t),!0)}var Bf=n(47),Sf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Bf.a,Sf),Bf.a.locals;class Tf extends te{refresh(){const t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=ef(t),t&&t.hasAttribute("width")?this.value={width:t.getAttribute("width"),height:null}:this.value=null}execute(t){const e=this.editor.model,n=e.document.selection.getSelectedElement();this.value={width:t.width,height:null},n&&e.change((e=>{e.setAttribute("width",t.width,n)}))}}class Mf extends Zt{static get pluginName(){return"ImageResizeEditing"}constructor(t){super(t),t.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const t=this.editor,e=new Tf(t);this._registerSchema(),this._registerConverters(),t.commands.add("resizeImage",e),t.commands.add("imageResize",e)}_registerSchema(){this.editor.model.schema.extend("image",{allowAttributes:"width"}),this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0})}_registerConverters(){const t=this.editor;t.conversion.for("downcast").add((t=>t.on("attribute:width:image",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewElement(e.item);null!==e.attributeNewValue?(o.setStyle("width",e.attributeNewValue,i),o.addClass("image_resized",i)):(o.removeStyle("width",i),o.removeClass("image_resized",i))})))),t.conversion.for("upcast").attributeToAttribute({view:{name:"figure",styles:{width:/.+/}},model:{key:"width",value:t=>t.getStyle("width")}})}}const zf={small:ud,medium:hd,large:dd,original:ld};class Nf extends Zt{static get requires(){return[Mf]}static get pluginName(){return"ImageResizeButtons"}constructor(t){super(t),this._resizeUnit=t.config.get("image.resizeUnit")}init(){const t=this.editor,e=t.config.get("image.resizeOptions"),n=t.commands.get("resizeImage");this.bind("isEnabled").to(n);for(const t of e)this._registerImageResizeButton(t);this._registerImageResizeDropdown(e)}_registerImageResizeButton(t){const e=this.editor,{name:n,value:o,icon:i}=t,r=o?o+this._resizeUnit:null;e.ui.componentFactory.add(n,(n=>{const o=new $d(n),s=e.commands.get("resizeImage"),a=this._getOptionLabelValue(t,!0);if(!zf[i])throw new l.a("imageresizebuttons-missing-icon",e,t);return o.set({label:a,icon:zf[i],tooltip:a,isToggleable:!0}),o.bind("isEnabled").to(this),o.bind("isOn").to(s,"value",Pf(r)),this.listenTo(o,"execute",(()=>{e.execute("resizeImage",{width:r})})),o}))}_registerImageResizeDropdown(t){const e=this.editor,n=e.t,o=t.find((t=>!t.value)),i=i=>{const r=e.commands.get("resizeImage"),s=sh(i,Su),a=s.buttonView;return a.set({tooltip:n("Resize image"),commandValue:o.value,icon:zf.medium,isToggleable:!0,label:this._getOptionLabelValue(o),withText:!0,class:"ck-resize-image-button"}),a.bind("label").to(r,"value",(t=>t&&t.width?t.width:this._getOptionLabelValue(o))),s.bind("isOn").to(r),s.bind("isEnabled").to(this),ch(s,this._getResizeDropdownListItemDefinitions(t,r)),s.listView.ariaLabel=n("Image resize list"),this.listenTo(s,"execute",(t=>{e.execute(t.source.commandName,{width:t.source.commandValue}),e.editing.view.focus()})),s};e.ui.componentFactory.add("resizeImage",i),e.ui.componentFactory.add("imageResize",i)}_getOptionLabelValue(t,e){const n=this.editor.t;return t.label?t.label:e?t.value?n("Resize image to %0",t.value+this._resizeUnit):n("Resize image to the original size"):t.value?t.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(t,e){const n=new lo;return t.map((t=>{const o=t.value?t.value+this._resizeUnit:null,i={type:"button",model:new Sh({commandName:"resizeImage",commandValue:o,label:this._getOptionLabelValue(t),withText:!0,icon:null})};i.model.bind("isOn").to(e,"value",Pf(o)),n.add(i)})),n}}function Pf(t){return e=>null===t&&e===t||e&&e.width===t}class Lf extends Zt{static get requires(){return[Xb]}static get pluginName(){return"ImageResizeHandles"}init(){const t=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(t),this._setupResizerCreator()}_setupResizerCreator(){const t=this.editor,e=t.editing.view;e.addObserver(Zb),this.listenTo(e.document,"imageLoaded",((n,o)=>{if(!o.target.matches("figure.image.ck-widget > img, figure.image.ck-widget > a > img"))return;const i=t.editing.view.domConverter.domToView(o.target).findAncestor("figure");let r=this.editor.plugins.get(Xb).getResizerByViewElement(i);if(r)return void r.redraw();const s=t.editing.mapper.toModelElement(i);r=t.plugins.get(Xb).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:s,viewElement:i,editor:t,getHandleHost:t=>t.querySelector("img"),getResizeHost:t=>t,isCentered(){const t=s.getAttribute("imageStyle");return!t||"full"==t||"alignCenter"==t},onCommit(e){t.execute("resizeImage",{width:e})}}),r.on("updateSize",(()=>{i.hasClass("image_resized")||e.change((t=>{t.addClass("image_resized",i)}))})),r.bind("isEnabled").to(this)}))}}var Of=n(48),Rf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Of.a,Rf),Of.a.locals;class Ff extends te{constructor(t,e){super(t),this.defaultStyle=!1,this.styles=e.reduce(((t,e)=>(t[e.name]=e,e.isDefault&&(this.defaultStyle=e.name),t)),{})}refresh(){const t=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=ef(t),t)if(t.hasAttribute("imageStyle")){const e=t.getAttribute("imageStyle");this.value=!!this.styles[e]&&e}else this.value=this.defaultStyle;else this.value=!1}execute(t){const e=t.value,n=this.editor.model,o=n.document.selection.getSelectedElement();n.change((t=>{this.styles[e].isDefault?t.removeAttribute("imageStyle",o):t.setAttribute("imageStyle",e,o)}))}}function Vf(t,e){for(const n of e)if(n.name===t)return n}const jf={full:{name:"full",title:"Full size image",icon:cd,isDefault:!0},side:{name:"side",title:"Side image",icon:ad,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:rd,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:sd,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:ad,className:"image-style-align-right"}},Jf={full:cd,left:rd,right:ad,center:sd};function Hf(t=[]){return t.map(Uf)}function Uf(t){if("string"==typeof t){const e=t;jf[e]?t=Object.assign({},jf[e]):(Object(l.b)("image-style-not-found",{name:e}),t={name:e})}else if(jf[t.name]){const e=jf[t.name],n=Object.assign({},t);for(const o in e)Object.prototype.hasOwnProperty.call(t,o)||(n[o]=e[o]);t=n}return"string"==typeof t.icon&&Jf[t.icon]&&(t.icon=Jf[t.icon]),t}class qf extends Zt{static get pluginName(){return"ImageStyleEditing"}init(){const t=this.editor,e=t.model.schema,n=t.data,o=t.editing;t.config.define("image.styles",["full","side"]);const i=Hf(t.config.get("image.styles"));e.extend("image",{allowAttributes:"imageStyle"});const r=function(t){return(e,n,o)=>{if(!o.consumable.consume(n.item,e.name))return;const i=Vf(n.attributeNewValue,t),r=Vf(n.attributeOldValue,t),s=o.mapper.toViewElement(n.item),a=o.writer;r&&a.removeClass(r.className,s),i&&a.addClass(i.className,s)}}(i);o.downcastDispatcher.on("attribute:imageStyle:image",r),n.downcastDispatcher.on("attribute:imageStyle:image",r),n.upcastDispatcher.on("element:figure",function(t){const e=t.filter((t=>!t.isDefault));return(t,n,o)=>{if(!n.modelRange)return;const i=n.viewItem,r=Ws(n.modelRange.getItems());if(!r||o.schema.checkAttribute(r,"imageStyle"))for(const t of e)o.consumable.consume(i,{classes:t.className})&&o.writer.setAttribute("imageStyle",t.name,r)}}(i),{priority:"low"}),t.commands.add("imageStyle",new Ff(t,i))}}var Gf=n(49),Wf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Gf.a,Wf),Gf.a.locals;class Kf extends Zt{static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=function(t,e){for(const n of t)e[n.title]&&(n.title=e[n.title]);return t}(Hf(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles);for(const e of t)this._createButton(e)}_createButton(t){const e=this.editor,n=`imageStyle:${t.name}`;e.ui.componentFactory.add(n,(n=>{const o=e.commands.get("imageStyle"),i=new $d(n);return i.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o,"isEnabled"),i.bind("isOn").to(o,"value",(e=>e===t.name)),this.listenTo(i,"execute",(()=>{e.execute("imageStyle",{value:t.name}),e.editing.view.focus()})),i}))}}function Yf(t){const e=t.map((t=>t.replace("+","\\+")));return new RegExp(`^image\\/(${e.join("|")})$`)}function Qf(t){return new Promise(((e,n)=>{const o=t.getAttribute("src");fetch(o).then((t=>t.blob())).then((t=>{const n=Xf(t,o),i=n.replace("image/",""),r=new File([t],`image.${i}`,{type:n});e(r)})).catch((t=>t&&"TypeError"===t.name?function(t){return function(t){return new Promise(((e,n)=>{const o=Tr.document.createElement("img");o.addEventListener("load",(()=>{const t=Tr.document.createElement("canvas");t.width=o.width,t.height=o.height;t.getContext("2d").drawImage(o,0,0),t.toBlob((t=>t?e(t):n()))})),o.addEventListener("error",(()=>n())),o.src=t}))}(t).then((e=>{const n=Xf(e,t),o=n.replace("image/","");return new File([e],`image.${o}`,{type:n})}))}(o).then(e).catch(n):n(t)))}))}function Xf(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class Zf extends Zt{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=n=>{const o=new tu(n),i=t.commands.get("uploadImage"),r=t.config.get("image.upload.types"),s=Yf(r);return o.set({acceptedType:r.map((t=>`image/${t}`)).join(","),allowMultipleFiles:!0}),o.buttonView.set({label:e("Insert image"),icon:Xl,tooltip:!0}),o.buttonView.bind("isEnabled").to(i),o.on("done",((e,n)=>{const o=Array.from(n).filter((t=>s.test(t.type)));o.length&&t.execute("uploadImage",{file:o})})),o};t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n)}}var $f=n(50),tA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0},eA=(jd()($f.a,tA),$f.a.locals,n(51)),nA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0},oA=(jd()(eA.a,nA),eA.a.locals,n(52)),iA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(oA.a,iA),oA.a.locals;class rA extends Zt{static get pluginName(){return"ImageUploadProgress"}constructor(t){super(t),this.placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>')}init(){this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",((...t)=>this.uploadStatusChange(...t)))}uploadStatusChange(t,e,n){const o=this.editor,i=e.item,r=i.getAttribute("uploadId");if(!n.consumable.consume(e.item,t.name))return;const s=o.plugins.get(bd),a=r?e.attributeNewValue:null,c=this.placeholder,l=o.editing.mapper.toViewElement(i),d=n.writer;if("reading"==a)return sA(l,d),void aA(c,l,d);if("uploading"==a){const t=s.loaders.get(r);return sA(l,d),void(t?(cA(l,d),function(t,e,n,o){const i=function(t){const e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e}(e);e.insert(e.createPositionAt(t,"end"),i),n.on("change:uploadedPercent",((t,e,n)=>{o.change((t=>{t.setStyle("width",n+"%",i)}))}))}(l,d,t,o.editing.view),function(t,e,n){if(n.data){const o=rf(t);e.setAttribute("src",n.data,o)}}(l,d,t)):aA(c,l,d))}"complete"==a&&s.loaders.get(r)&&function(t,e,n){const o=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),o),setTimeout((()=>{n.change((t=>t.remove(t.createRangeOn(o))))}),3e3)}(l,d,o.editing.view),function(t,e){dA(t,e,"progressBar")}(l,d),cA(l,d),function(t,e){e.removeClass("ck-appear",t)}(l,d)}}function sA(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function aA(t,e,n){e.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",e);const o=rf(e);o.getAttribute("src")!==t&&n.setAttribute("src",t,o),lA(e,"placeholder")||n.insert(n.createPositionAfter(o),function(t){const e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(n))}function cA(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),dA(t,e,"placeholder")}function lA(t,e){for(const n of t.getChildren())if(n.getCustomProperty(e))return n}function dA(t,e,n){const o=lA(t,n);o&&e.remove(e.createRangeOn(o))}class uA extends te{refresh(){const t=this.editor.model.document.selection.getSelectedElement(),e=t&&"image"===t.name||!1;this.isEnabled=of(this.editor.model)||e}execute(t){const e=this.editor,n=e.model,o=e.plugins.get(bd);for(const e of ho(t.file))hA(n,o,e)}}function hA(t,e,n){const o=e.createLoader(n);o&&nf(t,{uploadId:o.id})}class kA extends Zt{static get requires(){return[bd,Bh,jg]}static get pluginName(){return"ImageUploadEditing"}constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}})}init(){const t=this.editor,e=t.model.document,n=t.model.schema,o=t.conversion,i=t.plugins.get(bd),r=Yf(t.config.get("image.upload.types"));n.extend("image",{allowAttributes:["uploadId","uploadStatus"]});const s=new uA(t);t.commands.add("uploadImage",s),t.commands.add("imageUpload",s),o.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,n)=>{if(o=n.dataTransfer,Array.from(o.types).includes("text/html")&&""!==o.getData("text/html"))return;var o;const i=Array.from(n.dataTransfer.files).filter((t=>!!t&&r.test(t.type)));i.length&&(e.stop(),t.model.change((e=>{n.targetRanges&&e.setSelection(n.targetRanges.map((e=>t.editing.mapper.toModelRange(e)))),t.model.enqueueChange("default",(()=>{t.execute("uploadImage",{file:i})}))})))})),this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",((e,n)=>{const o=Array.from(t.editing.view.createRangeIn(n.content)).filter((t=>{return!(!(e=t.item).is("element","img")||!e.getAttribute("src"))&&(e.getAttribute("src").match(/^data:image\/\w+;base64,/g)||e.getAttribute("src").match(/^blob:/g))&&!t.item.getAttribute("uploadProcessed");var e})).map((t=>({promise:Qf(t.item),imageElement:t.item})));if(!o.length)return;const r=new _k(t.editing.view.document);for(const t of o){r.setAttribute("uploadProcessed",!0,t.imageElement);const e=i.createLoader(t.promise);e&&(r.setAttribute("src","",t.imageElement),r.setAttribute("uploadId",e.id,t.imageElement))}})),t.editing.view.document.on("dragover",((t,e)=>{e.preventDefault()})),e.on("change",(()=>{const n=e.differ.getChanges({includeChangesInGraveyard:!0});for(const e of n)if("insert"==e.type&&"$text"!=e.name){const n=e.position.nodeAfter,o="$graveyard"==e.position.root.rootName;for(const e of pA(t,n)){const t=e.getAttribute("uploadId");if(!t)continue;const n=i.loaders.get(t);n&&(o?n.abort():"idle"==n.status&&this._readAndUpload(n,e))}}})),this.on("uploadComplete",((t,{imageElement:e,data:n})=>{const o=n.urls?n.urls:n;this.editor.model.change((t=>{t.setAttribute("src",o.default,e),this._parseAndSetSrcsetAttributeOnImage(o,e,t)}))}),{priority:"low"})}_readAndUpload(t,e){const n=this.editor,o=n.model,i=n.locale.t,r=n.plugins.get(bd),s=n.plugins.get(Bh);return o.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","reading",e)})),t.read().then((()=>{const i=t.upload();if(Ri.isSafari){const t=rf(n.editing.mapper.toViewElement(e));n.editing.view.once("render",(()=>{if(!t.parent)return;const e=n.editing.view.domConverter.mapViewToDom(t.parent);if(!e)return;const o=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=o}))}return o.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","uploading",e)})),i})).then((t=>{o.enqueueChange("transparent",(n=>{n.setAttribute("uploadStatus","complete",e),this.fire("uploadComplete",{data:t,imageElement:e})})),a()})).catch((n=>{if("error"!==t.status&&"aborted"!==t.status)throw n;"error"==t.status&&n&&s.showWarning(n,{title:i("Upload failed"),namespace:"upload"}),a(),o.enqueueChange("transparent",(t=>{t.remove(e)}))}));function a(){o.enqueueChange("transparent",(t=>{t.removeAttribute("uploadId",e),t.removeAttribute("uploadStatus",e)})),r.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let o=0;const i=Object.keys(t).filter((t=>{const e=parseInt(t,10);if(!isNaN(e))return o=Math.max(o,e),!0})).map((e=>`${t[e]} ${e}w`)).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:o},e)}}function pA(t,e){return Array.from(t.model.createRangeOn(e)).filter((t=>t.item.is("element","image"))).map((t=>t.item))}class gA extends te{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,o=Array.from(n.selection.getSelectedBlocks()).filter((t=>bA(t,e.schema))),i=void 0!==t.forceValue?!t.forceValue:this.value;e.change((t=>{if(i){let e=o[o.length-1].nextSibling,n=Number.POSITIVE_INFINITY,i=[];for(;e&&"listItem"==e.name&&0!==e.getAttribute("listIndent");){const t=e.getAttribute("listIndent");t<n&&(n=t);const o=t-n;i.push({element:e,listIndent:o}),e=e.nextSibling}i=i.reverse();for(const e of i)t.setAttribute("listIndent",e.listIndent,e.element)}if(!i){let t=Number.POSITIVE_INFINITY;for(const e of o)e.is("element","listItem")&&e.getAttribute("listIndent")<t&&(t=e.getAttribute("listIndent"));t=0===t?1:t,mA(o,!0,t),mA(o,!1,t)}for(const e of o.reverse())i&&"listItem"==e.name?t.rename(e,"paragraph"):i||"listItem"==e.name?i||"listItem"!=e.name||e.getAttribute("listType")==this.type||t.setAttribute("listType",this.type,e):(t.setAttributes({listType:this.type,listIndent:0},e),t.rename(e,"listItem"));this.fire("_executeCleanup",o)}))}_getValue(){const t=Ws(this.editor.model.document.selection.getSelectedBlocks());return!!t&&t.is("element","listItem")&&t.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Ws(t.getSelectedBlocks());return!!n&&bA(n,e)}}function mA(t,e,n){const o=e?t[0]:t[t.length-1];if(o.is("element","listItem")){let i=o[e?"previousSibling":"nextSibling"],r=o.getAttribute("listIndent");for(;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=n;)r>i.getAttribute("listIndent")&&(r=i.getAttribute("listIndent")),i.getAttribute("listIndent")==r&&t[e?"unshift":"push"](i),i=i[e?"previousSibling":"nextSibling"]}}function bA(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}class fA extends te{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks());t.change((t=>{const e=n[n.length-1];let o=e.nextSibling;for(;o&&"listItem"==o.name&&o.getAttribute("listIndent")>e.getAttribute("listIndent");)n.push(o),o=o.nextSibling;this._indentBy<0&&(n=n.reverse());for(const e of n){const n=e.getAttribute("listIndent")+this._indentBy;n<0?t.rename(e,"paragraph"):t.setAttribute("listIndent",n,e)}this.fire("_executeCleanup",n)}))}_checkEnabled(){const t=Ws(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let o=t.previousSibling;for(;o&&o.is("element","listItem")&&o.getAttribute("listIndent")>=e;){if(o.getAttribute("listIndent")==e)return o.getAttribute("listType")==n;o=o.previousSibling}return!1}return!0}}function AA(t,e){const n=e.mapper,o=e.writer,i="numbered"==t.getAttribute("listType")?"ol":"ul",r=function(t){const e=t.createContainerElement("li");return e.getFillerOffset=xA,e}(o),s=o.createContainerElement(i,null);return o.insert(o.createPositionAt(s,0),r),n.bindElements(t,r),r}function CA(t,e,n,o){const i=e.parent,r=n.mapper,s=n.writer;let a=r.toViewPosition(o.createPositionBefore(t));const c=vA(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),l=t.previousSibling;if(c&&c.getAttribute("listIndent")==t.getAttribute("listIndent")){const t=r.toViewElement(c);a=s.breakContainer(s.createPositionAfter(t))}else if(l&&"listItem"==l.name){a=r.toViewPosition(o.createPositionAt(l,"end"));const t=r.findMappedViewAncestor(a),e=function(t){for(const e of t.getChildren())if("ul"==e.name||"ol"==e.name)return e;return null}(t);a=e?s.createPositionBefore(e):s.createPositionAt(t,"end")}else a=r.toViewPosition(o.createPositionBefore(t));if(a=_A(a),s.insert(a,i),l&&"listItem"==l.name){const t=r.toViewElement(l),n=s.createRange(s.createPositionAt(t,0),a).getWalker({ignoreElementEnd:!0});for(const t of n)if(t.item.is("element","li")){const o=s.breakContainer(s.createPositionBefore(t.item)),i=t.item.parent,r=s.createPositionAt(e,"end");wA(s,r.nodeBefore,r.nodeAfter),s.move(s.createRangeOn(i),r),n.position=o}}else{const n=i.nextSibling;if(n&&(n.is("element","ul")||n.is("element","ol"))){let o=null;for(const e of n.getChildren()){const n=r.toModelElement(e);if(!(n&&n.getAttribute("listIndent")>t.getAttribute("listIndent")))break;o=e}o&&(s.breakContainer(s.createPositionAfter(o)),s.move(s.createRangeOn(o.parent),s.createPositionAt(e,"end")))}}wA(s,i,i.nextSibling),wA(s,i.previousSibling,i)}function wA(t,e,n){return!e||!n||"ul"!=e.name&&"ol"!=e.name||e.name!=n.name||e.getAttribute("class")!==n.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e))}function _A(t){return t.getLastMatchingPosition((t=>t.item.is("uiElement")))}function vA(t,e){const n=!!e.sameIndent,o=!!e.smallerIndent,i=e.listIndent;let r=t;for(;r&&"listItem"==r.name;){const t=r.getAttribute("listIndent");if(n&&i==t||o&&i>t)return r;r="forward"===e.direction?r.nextSibling:r.previousSibling}return null}function yA(t,e,n,o){t.ui.componentFactory.add(e,(i=>{const r=t.commands.get(e),s=new $d(i);return s.set({label:n,icon:o,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),s}))}function xA(){const t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:ki.call(this)}function EA(t){return(e,n,o)=>{const i=o.consumable;if(!i.test(n.item,"insert")||!i.test(n.item,"attribute:listType")||!i.test(n.item,"attribute:listIndent"))return;i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");const r=n.item;CA(r,AA(r,o),o,t)}}function IA(t,e,n){if(!n.consumable.consume(e.item,"attribute:listType"))return;const o=n.mapper.toViewElement(e.item),i=n.writer;i.breakContainer(i.createPositionBefore(o)),i.breakContainer(i.createPositionAfter(o));const r=o.parent,s="numbered"==e.attributeNewValue?"ol":"ul";i.rename(s,r)}function DA(t,e,n){const o=n.mapper.toViewElement(e.item).parent,i=n.writer;wA(i,o,o.nextSibling),wA(i,o.previousSibling,o);for(const t of e.item.getChildren())n.consumable.consume(t,"insert")}function BA(t,e,n){if("listItem"!=e.item.name){let t=n.mapper.toViewPosition(e.range.start);const o=n.writer,i=[];for(;("ul"==t.parent.name||"ol"==t.parent.name)&&(t=o.breakContainer(t),"li"==t.parent.name);){const e=t,n=o.createPositionAt(t.parent,"end");if(!e.isEqual(n)){const t=o.remove(o.createRange(e,n));i.push(t)}t=o.createPositionAfter(t.parent)}if(i.length>0){for(let e=0;e<i.length;e++){const n=t.nodeBefore;if(t=o.insert(t,i[e]).end,e>0){const e=wA(o,n,n.nextSibling);e&&e.parent==n&&t.offset--}}wA(o,t.nodeBefore,t.nodeAfter)}}}function SA(t,e,n){const o=n.mapper.toViewPosition(e.position),i=o.nodeBefore,r=o.nodeAfter;wA(n.writer,i,r)}function TA(t,e,n){if(n.consumable.consume(e.viewItem,{name:!0})){const t=n.writer,o=t.createElement("listItem"),i=function(t){let e=0,n=t.parent;for(;n;){if(n.is("element","li"))e++;else{const t=n.previousSibling;t&&t.is("element","li")&&e++}n=n.parent}return e}(e.viewItem);t.setAttribute("listIndent",i,o);const r=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(t.setAttribute("listType",r,o),!n.safeInsert(o,e.modelCursor))return;const s=function(t,e,n){const{writer:o,schema:i}=n;let r=o.createPositionAfter(t);for(const s of e)if("ul"==s.name||"ol"==s.name)r=n.convertItem(s,r).modelCursor;else{const e=n.convertItem(s,o.createPositionAt(t,"end")),a=e.modelRange.start.nodeAfter;a&&a.is("element")&&!i.checkChild(t,a.name)&&(t=e.modelCursor.parent.is("element","listItem")?e.modelCursor.parent:LA(e.modelCursor),r=o.createPositionAfter(t))}return r}(o,e.viewItem.getChildren(),n);e.modelRange=t.createRange(e.modelCursor,s),n.updateConversionResult(o,e)}}function MA(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){const t=Array.from(e.viewItem.getChildren());for(const e of t){!(e.is("element","li")||RA(e))&&e._remove()}}}function zA(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;const t=[...e.viewItem.getChildren()];let n=!1,o=!0;for(const e of t)n&&!RA(e)&&e._remove(),e.is("$text")?(o&&(e._data=e.data.trimStart()),e.nextSibling&&!RA(e.nextSibling)||(e._data=e.data.trimEnd())):RA(e)&&(n=!0),o=!1}}function NA(t){return(e,n)=>{if(n.isPhantom)return;const o=n.modelPosition.nodeBefore;if(o&&o.is("element","listItem")){const e=n.mapper.toViewElement(o),i=e.getAncestors().find(RA),r=t.createPositionAt(e,0).getWalker();for(const t of r){if("elementStart"==t.type&&t.item.is("element","li")){n.viewPosition=t.previousPosition;break}if("elementEnd"==t.type&&t.item==i){n.viewPosition=t.nextPosition;break}}}}}function PA(t,[e,n]){let o,i=e.is("documentFragment")?e.getChild(0):e;if(o=n?this.createSelection(n):this.document.selection,i&&i.is("element","listItem")){const t=o.getFirstPosition();let e=null;if(t.parent.is("element","listItem")?e=t.parent:t.nodeBefore&&t.nodeBefore.is("element","listItem")&&(e=t.nodeBefore),e){const t=e.getAttribute("listIndent");if(t>0)for(;i&&i.is("element","listItem");)i._setAttribute("listIndent",i.getAttribute("listIndent")+t),i=i.nextSibling}}}function LA(t){const e=new ka({startPosition:t});let n;do{n=e.next()}while(!n.value.item.is("element","listItem"));return n.value.item}function OA(t,e,n,o,i,r){const s=vA(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t,foo:"b"}),a=i.mapper,c=i.writer,l=s?s.getAttribute("listIndent"):null;let d;if(s)if(l==t){const t=a.toViewElement(s).parent;d=c.createPositionAfter(t)}else{const t=r.createPositionAt(s,"end");d=a.toViewPosition(t)}else d=n;d=_A(d);for(const t of[...o.getChildren()])RA(t)&&(d=c.move(c.createRangeOn(t),d).end,wA(c,t,t.nextSibling),wA(c,t.previousSibling,t))}function RA(t){return t.is("element","ol")||t.is("element","ul")}class FA extends Zt{static get pluginName(){return"ListEditing"}static get requires(){return[Pp,Zp]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;var o;t.model.document.registerPostFixer((e=>function(t,e){const n=t.document.differ.getChanges(),o=new Map;let i=!1;for(const o of n)if("insert"==o.type&&"listItem"==o.name)r(o.position);else if("insert"==o.type&&"listItem"!=o.name){if("$text"!=o.name){const n=o.position.nodeAfter;n.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",n),i=!0),n.hasAttribute("listType")&&(e.removeAttribute("listType",n),i=!0),n.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",n),i=!0);for(const e of Array.from(t.createRangeIn(n)).filter((t=>t.item.is("element","listItem"))))r(e.previousPosition)}r(o.position.getShiftedBy(o.length))}else"remove"==o.type&&"listItem"==o.name?r(o.position):("attribute"==o.type&&"listIndent"==o.attributeKey||"attribute"==o.type&&"listType"==o.attributeKey)&&r(o.range.start);for(const t of o.values())s(t),a(t);return i;function r(t){const e=t.nodeBefore;if(e&&e.is("element","listItem")){let t=e;if(o.has(t))return;for(let e=t.previousSibling;e&&e.is("element","listItem");e=t.previousSibling)if(t=e,o.has(t))return;o.set(e,t)}else{const e=t.nodeAfter;e&&e.is("element","listItem")&&o.set(e,e)}}function s(t){let n=0,o=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(r>n){let s;null===o?(o=r-n,s=n):(o>r&&(o=r),s=r-o),e.setAttribute("listIndent",s,t),i=!0}else o=null,n=t.getAttribute("listIndent")+1;t=t.nextSibling}}function a(t){let n=[],o=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(o&&o.getAttribute("listIndent")>r&&(n=n.slice(0,r+1)),0!=r)if(n[r]){const o=n[r];t.getAttribute("listType")!=o&&(e.setAttribute("listType",o,t),i=!0)}else n[r]=t.getAttribute("listType");o=t,t=t.nextSibling}}}(t.model,e))),n.mapper.registerViewToModelLength("li",VA),e.mapper.registerViewToModelLength("li",VA),n.mapper.on("modelToViewPosition",NA(n.view)),n.mapper.on("viewToModelPosition",(o=t.model,(t,e)=>{const n=e.viewPosition,i=n.parent,r=e.mapper;if("ul"==i.name||"ol"==i.name){if(n.isAtEnd){const t=r.toModelElement(n.nodeBefore),i=r.getModelLength(n.nodeBefore);e.modelPosition=o.createPositionBefore(t).getShiftedBy(i)}else{const t=r.toModelElement(n.nodeAfter);e.modelPosition=o.createPositionBefore(t)}t.stop()}else if("li"==i.name&&n.nodeBefore&&("ul"==n.nodeBefore.name||"ol"==n.nodeBefore.name)){const s=r.toModelElement(i);let a=1,c=n.nodeBefore;for(;c&&RA(c);)a+=r.getModelLength(c),c=c.previousSibling;e.modelPosition=o.createPositionBefore(s).getShiftedBy(a),t.stop()}})),e.mapper.on("modelToViewPosition",NA(n.view)),t.conversion.for("editingDowncast").add((e=>{e.on("insert",BA,{priority:"high"}),e.on("insert:listItem",EA(t.model)),e.on("attribute:listType:listItem",IA,{priority:"high"}),e.on("attribute:listType:listItem",DA,{priority:"low"}),e.on("attribute:listIndent:listItem",function(t){return(e,n,o)=>{if(!o.consumable.consume(n.item,"attribute:listIndent"))return;const i=o.mapper.toViewElement(n.item),r=o.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));const s=i.parent,a=s.previousSibling,c=r.createRangeOn(s);r.remove(c),a&&a.nextSibling&&wA(r,a,a.nextSibling),OA(n.attributeOldValue+1,n.range.start,c.start,i,o,t),CA(n.item,i,o,t);for(const t of n.item.getChildren())o.consumable.consume(t,"insert")}}(t.model)),e.on("remove:listItem",function(t){return(e,n,o)=>{const i=o.mapper.toViewPosition(n.position).getLastMatchingPosition((t=>!t.item.is("element","li"))).nodeAfter,r=o.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));const s=i.parent,a=s.previousSibling,c=r.createRangeOn(s),l=r.remove(c);a&&a.nextSibling&&wA(r,a,a.nextSibling),OA(o.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,c.start,i,o,t);for(const t of r.createRangeIn(l).getItems())o.mapper.unbindViewElement(t);e.stop()}}(t.model)),e.on("remove",SA,{priority:"low"})})),t.conversion.for("dataDowncast").add((e=>{e.on("insert",BA,{priority:"high"}),e.on("insert:listItem",EA(t.model))})),t.conversion.for("upcast").add((t=>{t.on("element:ul",MA,{priority:"high"}),t.on("element:ol",MA,{priority:"high"}),t.on("element:li",zA,{priority:"high"}),t.on("element:li",TA)})),t.model.on("insertContent",PA,{priority:"high"}),t.commands.add("numberedList",new gA(t,"numbered")),t.commands.add("bulletedList",new gA(t,"bulleted")),t.commands.add("indentList",new fA(t,"forward")),t.commands.add("outdentList",new fA(t,"backward"));const i=n.view.document;this.listenTo(i,"enter",((t,e)=>{const n=this.editor.model.document,o=n.selection.getLastPosition().parent;n.selection.isCollapsed&&"listItem"==o.name&&o.isEmpty&&(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(i,"delete",((t,e)=>{if("backward"!==e.direction)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const o=n.getFirstPosition();if(!o.isAtStart)return;const i=o.parent;if("listItem"!==i.name)return;i.previousSibling&&"listItem"===i.previousSibling.name||(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"});const r=t=>(e,n)=>{this.editor.commands.get(t).isEnabled&&(this.editor.execute(t),n())};t.keystrokes.set("Tab",r("indentList")),t.keystrokes.set("Shift+Tab",r("outdentList"))}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function VA(t){let e=1;for(const n of t.getChildren())if("ul"==n.name||"ol"==n.name)for(const t of n.getChildren())e+=VA(t);return e}class jA extends Zt{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;yA(this.editor,"numberedList",t("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),yA(this.editor,"bulletedList",t("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}function JA(t,e){if(!t.childCount)return;const n=new _k(t.document),o=function(t,e){const n=e.createRangeIn(t),o=new xo({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];for(const t of n)if("elementStart"===t.type&&o.match(t.item)){const e=qA(t.item);i.push({element:t.item,id:e.id,order:e.order,indent:e.indent})}return i}(t,n);if(!o.length)return;let i=null,r=1;o.forEach(((t,s)=>{const a=function(t,e){if(!t)return!0;if(t.id!==e.id)return e.indent-t.indent!=1;const n=e.element.previousSibling;if(!n)return!0;return o=n,!(o.is("element","ol")||o.is("element","ul"));var o}(o[s-1],t),c=a?null:o[s-1],l=(u=t,(d=c)?u.indent-d.indent:u.indent-1);var d,u;if(a&&(i=null,r=1),!i||0!==l){const o=function(t,e){const n=new RegExp(`@list l${t.id}:level${t.indent}\\s*({[^}]*)`,"gi"),o=/mso-level-number-format:([^;]{0,100});/gi,i=n.exec(e);let r="decimal",s="ol";if(i&&i[1]){const e=o.exec(i[1]);if(e&&e[1]&&(r=e[1].trim(),s="bullet"!==r&&"image"!==r?"ol":"ul"),"bullet"===r){const e=function(t){const e=function(t){if(t.getChild(0).is("$text"))return null;const e=t.getChild(0).getChild(0);if(e.is("$text"))return e;return e.getChild(0)}(t);if(!e)return null;const n=e._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(t.element);e&&(r=e)}}return{type:s,style:HA(r)}}(t,e);if(i){if(t.indent>r){const t=i.getChild(i.childCount-1),e=t.getChild(t.childCount-1);i=UA(o,e,n),r+=1}else if(t.indent<r){const e=r-t.indent;i=function(t,e){const n=t.getAncestors({parentFirst:!0});let o=null,i=0;for(const t of n)if("ul"!==t.name&&"ol"!==t.name||i++,i===e){o=t;break}return o}(i,e),r=parseInt(t.indent)}}else i=UA(o,t.element,n);t.indent<=r&&(i.is("element",o.type)||(i=n.rename(o.type,i)))}const h=function(t,e){return function(t,e){const n=new xo({name:"span",styles:{"mso-list":"Ignore"}}),o=e.createRangeIn(t);for(const t of o)"elementStart"===t.type&&n.match(t.item)&&e.remove(t.item)}(t,e),e.rename("li",t)}(t.element,n);n.appendChild(h,i)}))}function HA(t){switch(t){case"arabic-leading-zero":return"decimal-leading-zero";case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return t;default:return null}}function UA(t,e,n){const o=e.parent,i=n.createElement(t.type),r=o.getChildIndex(e)+1;return n.insertChild(r,i,o),t.style&&n.setStyle("list-style-type",t.style,i),i}function qA(t){const e={},n=t.getStyle("mso-list");if(n){const t=n.match(/(^|\s{1,100})l(\d+)/i),o=n.match(/\s{0,100}lfo(\d+)/i),i=n.match(/\s{0,100}level(\d+)/i);t&&o&&i&&(e.id=t[2],e.order=o[1],e.indent=i[1])}return e}const GA=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class WA{constructor(t){this.document=t}isActive(t){return GA.test(t)}execute(t){const e=new _k(this.document);!function(t,e){for(const n of t.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const o=t.getChildIndex(n);e.remove(n),e.insertChild(o,n.getChildren(),t)}}(t.content,e),function(t,e){for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","li")){const n=t.getChild(0);n&&n.is("element","p")&&e.unwrapElement(n)}}}(t.content,e)}}function KA(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((t,e)=>1===e.length?" ":Array(e.length+1).join("  ").substr(0,e.length)))}function YA(t,e){const n=new DOMParser,o=function(t){return KA(KA(t)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(t){const e="</body>",n="</html>",o=t.indexOf(e);if(o<0)return t;const i=t.indexOf(n,o+e.length);return t.substring(0,o+e.length)+(i>=0?t.substring(i):"")}(t=t.replace(/<!--\[if gte vml 1]>/g,""))),i=n.parseFromString(o,"text/html");!function(t){t.querySelectorAll("span[style*=spacerun]").forEach((t=>{const e=t.innerText.length||0;t.innerHTML=Array(e+1).join("  ").substr(0,e)}))}(i);const r=i.body.innerHTML,s=function(t,e){const n=new Ti(e),o=new Or(n,{blockFillerMode:"nbsp"}),i=t.createDocumentFragment(),r=t.body.childNodes;for(;r.length>0;)i.appendChild(r[0]);return o.domToView(i)}(i,e),a=function(t){const e=[],n=[],o=Array.from(t.getElementsByTagName("style"));for(const t of o)t.sheet&&t.sheet.cssRules&&t.sheet.cssRules.length&&(e.push(t.sheet),n.push(t.innerHTML));return{styles:e,stylesString:n.join(" ")}}(i);return{body:s,bodyString:r,styles:a.styles,stylesString:a.stylesString}}function QA(t,e){if(!t.childCount)return;const n=new _k;!function(t,e,n){const o=n.createRangeIn(e),i=new xo({name:"img"}),r=[];for(const e of o)if(i.match(e.item)){const n=e.item,o=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];o.length&&o.every((e=>t.indexOf(e)>-1))?r.push(n):n.getAttribute("src")||r.push(n)}for(const t of r)n.remove(t)}(function(t,e){const n=e.createRangeIn(t),o=new xo({name:/v:(.+)/}),i=[];for(const t of n){const e=t.item,n=e.previousSibling&&e.previousSibling.name||null;o.match(e)&&e.getAttribute("o:gfxdata")&&"v:shapetype"!==n&&i.push(t.item.getAttribute("id"))}return i}(t,n),t,n),function(t,e){const n=e.createRangeIn(t),o=new xo({name:/v:(.+)/}),i=[];for(const t of n)o.match(t.item)&&i.push(t.item);for(const t of i)e.remove(t)}(t,n);const o=function(t,e){const n=e.createRangeIn(t),o=new xo({name:"img"}),i=[];for(const t of n)o.match(t.item)&&t.item.getAttribute("src").startsWith("file://")&&i.push(t.item);return i}(t,n);o.length&&function(t,e,n){if(t.length===e.length)for(let o=0;o<t.length;o++){const i=`data:${e[o].type};base64,${XA(e[o].hex)}`;n.setAttribute("src",i,t[o])}}(o,function(t){if(!t)return[];const e=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+e.source+"))([\\da-fA-F\\s]+)\\}","g"),o=t.match(n),i=[];if(o)for(const t of o){let n=!1;t.includes("\\pngblip")?n="image/png":t.includes("\\jpegblip")&&(n="image/jpeg"),n&&i.push({hex:t.replace(e,"").replace(/[^\da-fA-F]/g,""),type:n})}return i}(e),n)}function XA(t){return btoa(t.match(/\w{2}/g).map((t=>String.fromCharCode(parseInt(t,16)))).join(""))}const ZA=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,$A=/xmlns:o="urn:schemas-microsoft-com/i;class tC{constructor(t){this.document=t}isActive(t){return ZA.test(t)||$A.test(t)}execute(t){const{body:e,stylesString:n}=YA(t.dataTransfer.getData("text/html"),this.document.stylesProcessor);JA(e,n),QA(e,t.dataTransfer.getData("text/rtf")),t.content=e}}function eC(t,e,n,o,i=1){e>i?o.setAttribute(t,e,n):o.removeAttribute(t,n)}function nC(t,e,n={}){const o=t.createElement("tableCell",n);return t.insertElement("paragraph",o),t.insert(o,e),o}function oC(t,e){const n=e.parent.parent,o=parseInt(n.getAttribute("headingColumns")||0),{column:i}=t.getCellLocation(e);return!!o&&i<o}function iC(){return t=>{t.on("element:table",((t,e,n)=>{const o=e.viewItem;if(!n.consumable.test(o,{name:!0}))return;const{rows:i,headingRows:r,headingColumns:s}=function(t){const e={headingRows:0,headingColumns:0},n=[],o=[];let i;for(const r of Array.from(t.getChildren()))if("tbody"===r.name||"thead"===r.name||"tfoot"===r.name){"thead"!==r.name||i||(i=r);const t=Array.from(r.getChildren()).filter((t=>t.is("element","tr")));for(const r of t)if("thead"===r.parent.name&&r.parent===i)e.headingRows++,n.push(r);else{o.push(r);const t=sC(r);t>e.headingColumns&&(e.headingColumns=t)}}return e.rows=[...n,...o],e}(o),a={};s&&(a.headingColumns=s),r&&(a.headingRows=r);const c=n.writer.createElement("table",a);if(n.safeInsert(c,e.modelCursor)){if(n.consumable.consume(o,{name:!0}),i.forEach((t=>n.convertItem(t,n.writer.createPositionAt(c,"end")))),c.isEmpty){const t=n.writer.createElement("tableRow");n.writer.insert(t,n.writer.createPositionAt(c,"end")),nC(n.writer,n.writer.createPositionAt(t,"end"))}n.updateConversionResult(c,e)}}))}}function rC(t){return e=>{e.on(`element:${t}`,((t,e,n)=>{if(e.modelRange&&e.viewItem.isEmpty){const t=e.modelRange.start.nodeAfter,o=n.writer.createPositionAt(t,0);n.writer.insertElement("paragraph",o)}}),{priority:"low"})}}function sC(t){let e=0,n=0;const o=Array.from(t.getChildren()).filter((t=>"th"===t.name||"td"===t.name));for(;n<o.length&&"th"===o[n].name;){const t=o[n];e+=parseInt(t.getAttribute("colspan")||1),n++}return e}class aC{constructor(t,e={}){this._table=t,this._startRow=void 0!==e.row?e.row:e.startRow||0,this._endRow=void 0!==e.row?e.row:e.endRow,this._startColumn=void 0!==e.column?e.column:e.startColumn||0,this._endColumn=void 0!==e.column?e.column:e.endColumn,this._includeAllSlots=!!e.includeAllSlots,this._skipRows=new Set,this._row=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){const t=this._table.getChild(this._row);if(!t||this._isOverEndRow())return{done:!0};if(this._isOverEndColumn())return this._advanceToNextRow();let e=null;const n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(e=this._formatOutValue(n.cell,n.row,n.column));else{const n=t.getChild(this._cellIndex);if(!n)return this._advanceToNextRow();const o=parseInt(n.getAttribute("colspan")||1),i=parseInt(n.getAttribute("rowspan")||1);(o>1||i>1)&&this._recordSpans(n,i,o),this._shouldSkipSlot()||(e=this._formatOutValue(n)),this._nextCellAtColumn=this._column+o}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(t,e=this._row,n=this._column){return{done:!1,value:new cC(this,t,e,n)}}_shouldSkipSlot(){const t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,o=void 0!==this._endColumn&&this._column>this._endColumn;return t||e||n||o}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const o={cell:t,row:this._row,column:this._column};for(let t=this._row;t<this._row+e;t++)for(let e=this._column;e<this._column+n;e++)t==this._row&&e==this._column||this._markSpannedCell(t,e,o)}_markSpannedCell(t,e,n){this._spannedCells.has(t)||this._spannedCells.set(t,new Map);this._spannedCells.get(t).set(e,n)}}class cC{constructor(t,e,n,o){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=o,this._cellIndex=t._cellIndex,this._table=t._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||1)}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||1)}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function lC(t={}){return e=>e.on("insert:table",((e,n,o)=>{const i=n.item;if(!o.consumable.consume(i,"insert"))return;o.consumable.consume(i,"attribute:headingRows:table"),o.consumable.consume(i,"attribute:headingColumns:table");const r=t&&t.asWidget,s=i.getAttribute("width")||"100%",a=i.getAttribute("height")||"auto",c=""===(i.getAttribute("border-top")||i.getAttribute("border-bottom")||i.getAttribute("border-left")||i.getAttribute("border-right")||"")?"border: 1px solid rgb(0, 0, 0)":null,l=o.writer.createContainerElement("figure",{class:"table",style:`width: ${s}; height: fit-content;`}),d=o.writer.createContainerElement("table",{style:` height: ${a}; ${c}`});let u;var h,k;o.writer.insert(o.writer.createPositionAt(l,0),d),r&&(h=l,(k=o.writer).setCustomProperty("table",!0,h),u=Yg(h,k,{hasSelectionHandle:!0}));const p=new aC(i),g={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},m=new Map;for(const e of p){const{row:n,cell:r}=e,s=i.getChild(n),a=m.get(n)||pC(d,s,n,g,o);m.set(n,a),o.consumable.consume(r,"insert");kC(e,g,o.writer.createPositionAt(a,"end"),o,t)}for(const t of i.getChildren()){const e=t.index;m.has(e)||m.set(e,pC(d,t,e,g,o))}const b=o.mapper.toViewPosition(n.range.start);o.mapper.bindElements(i,r?u:l),o.writer.insert(b,r?u:l)}))}function dC(t,e){const{writer:n}=e;if(t.parent.is("element","tableCell"))return uC(t)?n.createContainerElement("span",{style:"display:inline-block"}):n.createContainerElement("p")}function uC(t){return 1===t.parent.childCount&&!fC(t)}function hC(t,e,n){const{cell:o}=t,i=gC(t,e),r=n.mapper.toViewElement(o);r&&r.name!==i&&function(t,e,n){const o=n.writer,i=n.mapper.toViewElement(t),r=tm(o.createEditableElement(e,i.getAttributes()),o);Zg(r,o,((t,e,n)=>n.addClass(ho(e.classes),t)),((t,e,n)=>n.removeClass(ho(e.classes),t))),o.insert(o.createPositionAfter(i),r),o.move(o.createRangeIn(i),o.createPositionAt(r,0)),o.remove(o.createRangeOn(i)),n.mapper.unbindViewElement(i),n.mapper.bindElements(t,r)}(o,i,n)}function kC(t,e,n,o,i){const r=i&&i.asWidget,s=gC(t,e),a=r?tm(o.writer.createEditableElement(s),o.writer):o.writer.createContainerElement(s,{style:"border: 1px solid"});r&&Zg(a,o.writer,((t,e,n)=>n.addClass(ho(e.classes),t)),((t,e,n)=>n.removeClass(ho(e.classes),t)));const c=t.cell,l=c.getChild(0),d=1===c.childCount&&"paragraph"===l.name;if(o.writer.insert(n,a),o.mapper.bindElements(c,a),!r&&d&&!fC(l)){const t=c.getChild(0);o.consumable.consume(t,"insert"),o.mapper.bindElements(t,a)}}function pC(t,e,n,o,i){i.consumable.consume(e,"insert");const r=e.isEmpty?i.writer.createEmptyElement("tr"):i.writer.createContainerElement("tr");i.mapper.bindElements(e,r);const s=o.headingRows,a=function(t,e,n){const o=mC(t,e);return o||function(t,e,n){const o=n.writer.createContainerElement(t),i=n.writer.createPositionAt(e,"tbody"==t?"end":0);return n.writer.insert(i,o),o}(t,e,n)}(function(t,e){return t<e.headingRows?"thead":"tbody"}(n,o),t,i),c=s>0&&n>=s?n-s:n,l=i.writer.createPositionAt(a,c);return i.writer.insert(l,r),r}function gC(t,e){const{row:n,column:o}=t,{headingColumns:i,headingRows:r}=e;if(r&&r>n)return"th";return i&&i>o?"th":"td"}function mC(t,e){for(const n of e.getChildren())if(n.name==t)return n}function bC(t,e,n){const o=mC(t,e);o&&0===o.childCount&&n.writer.remove(n.writer.createRangeOn(o))}function fC(t){return!![...t.getAttributeKeys()].length}class AC extends te{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=function(t,e){const n=t.getFirstPosition().parent,o=n===n.root?n:n.parent;return e.checkChild(o,"table")}(e,n)&&!nm(e,n)}execute(t={}){const e=this.editor.model,n=e.document.selection,o=this.editor.plugins.get("TableUtils"),i=em(n,e);e.change((n=>{const r=o.createTable(n,t);e.insertContent(r,i),n.setSelection(n.createPositionAt(r.getNodeByPath([0,0,0]),0))}))}}function CC(t){const e=[];for(const n of EC(t.getRanges())){const t=n.getContainedElement();t&&t.is("element","tableCell")&&e.push(t)}return e}function wC(t){const e=[];for(const n of t.getRanges()){const t=n.start.findAncestor("tableCell");t&&e.push(t)}return e}function _C(t){const e=CC(t);return e.length?e:wC(t)}function vC(t){return IC(t.map((t=>t.parent.index)))}function yC(t){const e=t[0].findAncestor("table");return IC([...new aC(e)].filter((e=>t.includes(e.cell))).map((t=>t.column)))}function xC(t,e){if(t.length<2||!function(t){const e=t[0].findAncestor("table"),n=vC(t),o=parseInt(e.getAttribute("headingRows")||0);if(!BC(n,o))return!1;const i=parseInt(e.getAttribute("headingColumns")||0);return BC(yC(t),i)}(t))return!1;const n=new Set,o=new Set;let i=0;for(const r of t){const{row:t,column:s}=e.getCellLocation(r),a=parseInt(r.getAttribute("rowspan")||1),c=parseInt(r.getAttribute("colspan")||1);n.add(t),o.add(s),a>1&&n.add(t+a-1),c>1&&o.add(s+c-1),i+=a*c}return function(t,e){const n=Array.from(t.values()),o=Array.from(e.values()),i=Math.max(...n),r=Math.min(...n),s=Math.max(...o),a=Math.min(...o);return(i-r+1)*(s-a+1)}(n,o)==i}function EC(t){return Array.from(t).sort(DC)}function IC(t){const e=t.sort(((t,e)=>t-e));return{first:e[0],last:e[e.length-1]}}function DC(t,e){const n=t.start,o=e.start;return n.isBefore(o)?-1:1}function BC({first:t,last:e},n){return t<n===e<n}class SC extends te{constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!t}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),o="above"===this.order,i=_C(e),r=vC(i),s=o?r.first:r.last,a=i[0].findAncestor("table");n.insertRows(a,{at:o?s:s+1,copyStructureFromAbove:!o})}}class TC extends te{constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!t}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),o="left"===this.order,i=_C(e),r=yC(i),s=o?r.first:r.last,a=i[0].findAncestor("table");n.insertColumns(a,{columns:1,at:o?s:s+1})}}class MC extends te{constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const t=_C(this.editor.model.document.selection);this.isEnabled=1===t.length}execute(){const t=_C(this.editor.model.document.selection)[0],e="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");e?n.splitCellHorizontally(t,2):n.splitCellVertically(t,2)}}function zC(t,e,n){const{startRow:o,startColumn:i,endRow:r,endColumn:s}=e,a=n.createElement("table"),c=r-o+1;for(let t=0;t<c;t++)n.insertElement("tableRow",a,"end");const l=[...new aC(t,{startRow:o,endRow:r,startColumn:i,endColumn:s,includeAllSlots:!0})];for(const{row:t,column:e,cell:c,isAnchor:d,cellAnchorRow:u,cellAnchorColumn:h}of l){const l=t-o,k=a.getChild(l);if(d){const o=n.cloneElement(c);n.append(o,k),RC(o,t,e,r,s,n)}else(u<o||h<i)&&nC(n,n.createPositionAt(k,"end"))}return function(t,e,n,o,i){const r=parseInt(e.getAttribute("headingRows")||0);if(r>0){eC("headingRows",r-n,t,i,0)}const s=parseInt(e.getAttribute("headingColumns")||0);if(s>0){eC("headingColumns",s-o,t,i,0)}}(a,t,o,i,n),a}function NC(t,e,n=0){const o=[],i=new aC(t,{startRow:n,endRow:e-1});for(const t of i){const{row:n,cellHeight:i}=t,r=n+i-1;n<e&&e<=r&&o.push(t)}return o}function PC(t,e,n){const o=t.parent,i=o.parent,r=o.index,s=e-r,a={},c=parseInt(t.getAttribute("rowspan"))-s;c>1&&(a.rowspan=c);const l=parseInt(t.getAttribute("colspan")||1);l>1&&(a.colspan=l);const d=r+s,u=[...new aC(i,{startRow:r,endRow:d,includeAllSlots:!0})];let h,k=null;for(const e of u){const{row:o,column:i,cell:r}=e;r===t&&void 0===h&&(h=i),void 0!==h&&h===i&&o===d&&(k=nC(n,e.getPositionBefore(),a))}return eC("rowspan",s,t,n),k}function LC(t,e){const n=[],o=new aC(t);for(const t of o){const{column:o,cellWidth:i}=t,r=o+i-1;o<e&&e<=r&&n.push(t)}return n}function OC(t,e,n,o){const i=n-e,r={},s=parseInt(t.getAttribute("colspan"))-i;s>1&&(r.colspan=s);const a=parseInt(t.getAttribute("rowspan")||1);a>1&&(r.rowspan=a);const c=nC(o,o.createPositionAfter(t),r);return eC("colspan",i,t,o),c}function RC(t,e,n,o,i,r){const s=parseInt(t.getAttribute("colspan")||1),a=parseInt(t.getAttribute("rowspan")||1);if(n+s-1>i){eC("colspan",i-n+1,t,r,1)}if(e+a-1>o){eC("rowspan",o-e+1,t,r,1)}}function FC(t,e){const n=e.getColumns(t),o=new Array(n).fill(0);for(const{column:e}of new aC(t))o[e]++;const i=o.reduce(((t,e,n)=>e?t:[...t,n]),[]);if(i.length>0){const n=i[i.length-1];return e.removeColumns(t,{at:n}),!0}return!1}function VC(t,e){const n=[];for(let e=0;e<t.childCount;e++){t.getChild(e).isEmpty&&n.push(e)}if(n.length>0){const o=n[n.length-1];return e.removeRows(t,{at:o}),!0}return!1}function jC(t,e){FC(t,e)||VC(t,e)}function JC(t,e){const n=Array.from(new aC(t,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(n.every((({cellHeight:t})=>1===t)))return e.lastRow;const o=n[0].cellHeight-1;return e.lastRow+o}function HC(t,e){const n=Array.from(new aC(t,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(n.every((({cellWidth:t})=>1===t)))return e.lastColumn;const o=n[0].cellWidth-1;return e.lastColumn+o}class UC extends te{constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}execute(){const t=this.editor.model,e=wC(t.document.selection)[0],n=this.value,o=this.direction;t.change((t=>{const i="right"==o||"down"==o,r=i?e:n,s=i?n:e,a=s.parent;!function(t,e,n){qC(t)||(qC(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end")));n.remove(t)}(s,r,t);const c=this.isHorizontal?"colspan":"rowspan",l=parseInt(e.getAttribute(c)||1),d=parseInt(n.getAttribute(c)||1);t.setAttribute(c,l+d,r),t.setSelection(t.createRangeIn(r));const u=this.editor.plugins.get("TableUtils");jC(a.findAncestor("table"),u)}))}_getMergeableCell(){const t=wC(this.editor.model.document.selection)[0];if(!t)return;const e=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(t,e,n){const o=t.parent.parent,i="right"==e?t.nextSibling:t.previousSibling,r=(o.getAttribute("headingColumns")||0)>0;if(!i)return;const s="right"==e?t:i,a="right"==e?i:t,{column:c}=n.getCellLocation(s),{column:l}=n.getCellLocation(a),d=parseInt(s.getAttribute("colspan")||1),u=oC(n,s),h=oC(n,a);if(r&&u!=h)return;return c+d===l?i:void 0}(t,this.direction,e):function(t,e){const n=t.parent,o=n.parent,i=o.getChildIndex(n);if("down"==e&&i===o.childCount-1||"up"==e&&0===i)return;const r=parseInt(t.getAttribute("rowspan")||1),s=o.getAttribute("headingRows")||0,a="down"==e&&i+r===s,c="up"==e&&i===s;if(s&&(a||c))return;const l=parseInt(t.getAttribute("rowspan")||1),d="down"==e?i+l:i,u=[...new aC(o,{endRow:d})],h=u.find((e=>e.cell===t)).column,k=u.find((({row:t,cellHeight:n,column:o})=>o===h&&("down"==e?t===d:d===t+n)));return k&&k.cell}(t,this.direction);if(!n)return;const o=this.isHorizontal?"rowspan":"colspan",i=parseInt(t.getAttribute(o)||1);return parseInt(n.getAttribute(o)||1)===i?n:void 0}}function qC(t){return 1==t.childCount&&t.getChild(0).is("element","paragraph")&&t.getChild(0).isEmpty}class GC extends te{refresh(){const t=_C(this.editor.model.document.selection),e=t[0];if(e){const n=e.findAncestor("table"),o=this.editor.plugins.get("TableUtils").getRows(n)-1,i=vC(t),r=0===i.first&&i.last===o;this.isEnabled=!r}else this.isEnabled=!1}execute(){const t=this.editor.model,e=_C(t.document.selection),n=vC(e),o=e[0],i=o.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getCellLocation(o).column;t.change((t=>{const e=n.last-n.first+1;this.editor.plugins.get("TableUtils").removeRows(i,{at:n.first,rows:e});const o=function(t,e,n){const o=t.getChild(e)||t.getChild(t.childCount-1);let i=o.getChild(0),r=0;for(const t of o.getChildren()){if(r>n)return i;i=t,r+=parseInt(t.getAttribute("colspan")||1)}return i}(i,n.first,r);t.setSelection(t.createPositionAt(o,0))}))}}class WC extends te{refresh(){const t=_C(this.editor.model.document.selection),e=t[0];if(e){const n=e.findAncestor("table"),o=this.editor.plugins.get("TableUtils").getColumns(n),{first:i,last:r}=yC(t);this.isEnabled=r-i<o-1}else this.isEnabled=!1}execute(){const[t,e]=function(t){const e=_C(t),n=e[0],o=e.pop(),i=[n,o];return n.isBefore(o)?i:i.reverse()}(this.editor.model.document.selection),n=t.parent.parent,o=[...new aC(n)],i={first:o.find((e=>e.cell===t)).column,last:o.find((t=>t.cell===e)).column},r=function(t,e,n,o){return parseInt(n.getAttribute("colspan")||1)>1?n:e.previousSibling||n.nextSibling?n.nextSibling||e.previousSibling:o.first?t.reverse().find((({column:t})=>t<o.first)).cell:t.reverse().find((({column:t})=>t>o.last)).cell}(o,t,e,i);this.editor.model.change((t=>{const e=i.last-i.first+1;this.editor.plugins.get("TableUtils").removeColumns(n,{at:i.first,columns:e}),t.setSelection(t.createPositionAt(r,0))}))}}class KC extends te{refresh(){const t=_C(this.editor.model.document.selection),e=t.length>0;this.isEnabled=e,this.value=e&&t.every((t=>this._isInHeading(t,t.parent.parent)))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.model,n=_C(e.document.selection),o=n[0].findAncestor("table"),{first:i,last:r}=vC(n),s=this.value?i:r+1,a=o.getAttribute("headingRows")||0;e.change((t=>{if(s){const e=NC(o,s,s>a?a:0);for(const{cell:n}of e)PC(n,s,t)}eC("headingRows",s,o,t,0)}))}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||0);return!!n&&t.parent.index<n}}class YC extends te{refresh(){const t=_C(this.editor.model.document.selection),e=this.editor.plugins.get("TableUtils"),n=t.length>0;this.isEnabled=n,this.value=n&&t.every((t=>oC(e,t)))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.model,n=_C(e.document.selection),o=n[0].findAncestor("table"),{first:i,last:r}=yC(n),s=this.value?i:r+1;e.change((t=>{if(s){const e=LC(o,s);for(const{cell:n,column:o}of e)OC(n,o,s,t)}eC("headingColumns",s,o,t,0)}))}}class QC extends Zt{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,o=n.getChildIndex(e),i=new aC(n,{row:o});for(const{cell:e,row:n,column:o}of i)if(e===t)return{row:n,column:o}}createTable(t,e){const n=t.createElement("table");return XC(t,n,0,parseInt(e.rows)||2,parseInt(e.columns)||2),e.headingRows&&eC("headingRows",e.headingRows,n,t,0),e.headingColumns&&eC("headingColumns",e.headingColumns,n,t,0),n}insertRows(t,e={}){const n=this.editor.model,o=e.at||0,i=e.rows||1,r=void 0!==e.copyStructureFromAbove,s=e.copyStructureFromAbove?o-1:o,a=this.getRows(t),c=this.getColumns(t);n.change((e=>{const n=t.getAttribute("headingRows")||0;if(n>o&&eC("headingRows",n+i,t,e,0),!r&&(0===o||o===a))return void XC(e,t,o,i,c);const l=r?Math.max(o,s):o,d=new aC(t,{endRow:l}),u=new Array(c).fill(1);for(const{row:t,column:n,cellHeight:a,cellWidth:c,cell:l}of d){const d=t+a-1,h=t<=s&&s<=d;t<o&&o<=d?(e.setAttribute("rowspan",a+i,l),u[n]=-c):r&&h&&(u[n]=c)}for(let n=0;n<i;n++){const n=e.createElement("tableRow");e.insert(n,t,o);for(let t=0;t<u.length;t++){const o=u[t],i=e.createPositionAt(n,"end");o>0&&nC(e,i,o>1?{colspan:o}:null),t+=Math.abs(o)-1}}}))}insertColumns(t,e={}){const n=this.editor.model,o=e.at||0,i=e.columns||1;n.change((e=>{const n=t.getAttribute("headingColumns");o<n&&e.setAttribute("headingColumns",n+i,t);const r=this.getColumns(t);if(0===o||r===o){for(const n of t.getChildren())ZC(i,e,e.createPositionAt(n,o?"end":0));return}const s=new aC(t,{column:o,includeAllSlots:!0});for(const t of s){const{row:n,cell:r,cellAnchorColumn:a,cellAnchorRow:c,cellWidth:l,cellHeight:d}=t;if(a<o){e.setAttribute("colspan",l+i,r);const t=c+d-1;for(let e=n;e<=t;e++)s.skipRow(e)}else ZC(i,e,t.getPositionBefore())}}))}removeRows(t,e){const n=this.editor.model,o=e.rows||1,i=e.at,r=i+o-1;n.change((e=>{const{cellsToMove:n,cellsToTrim:o}=function(t,e,n){const o=new Map,i=[];for(const{row:r,column:s,cellHeight:a,cell:c}of new aC(t,{endRow:n})){const t=r+a-1;if(r>=e&&r<=n&&t>n){const t=a-(n-r+1);o.set(s,{cell:c,rowspan:t})}if(r<e&&t>=e){let o;o=t>=n?n-e+1:t-e+1,i.push({cell:c,rowspan:a-o})}}return{cellsToMove:o,cellsToTrim:i}}(t,i,r);if(n.size){!function(t,e,n,o){const i=[...new aC(t,{includeAllSlots:!0,row:e})],r=t.getChild(e);let s;for(const{column:t,cell:e,isAnchor:a}of i)if(n.has(t)){const{cell:e,rowspan:i}=n.get(t),a=s?o.createPositionAfter(s):o.createPositionAt(r,0);o.move(o.createRangeOn(e),a),eC("rowspan",i,e,o),s=e}else a&&(s=e)}(t,r+1,n,e)}for(let n=r;n>=i;n--)e.remove(t.getChild(n));for(const{rowspan:t,cell:n}of o)eC("rowspan",t,n,e);!function(t,e,n,o){const i=t.getAttribute("headingRows")||0;if(e<i){eC("headingRows",n<i?i-(n-e+1):e,t,o,0)}}(t,i,r,e),FC(t,this)||VC(t,this)}))}removeColumns(t,e){const n=this.editor.model,o=e.at,i=e.columns||1,r=e.at+i-1;n.change((e=>{!function(t,e,n){const o=t.getAttribute("headingColumns")||0;if(o&&e.first<o){const i=Math.min(o-1,e.last)-e.first+1;n.setAttribute("headingColumns",o-i,t)}}(t,{first:o,last:r},e);for(let n=r;n>=o;n--)for(const{cell:o,column:i,cellWidth:r}of[...new aC(t)])i<=n&&r>1&&i+r>n?eC("colspan",r-1,o,e):i===n&&e.remove(o);VC(t,this)||FC(t,this)}))}splitCellVertically(t,e=2){const n=this.editor.model,o=t.parent.parent,i=parseInt(t.getAttribute("rowspan")||1),r=parseInt(t.getAttribute("colspan")||1);n.change((n=>{if(r>1){const{newCellsSpan:o,updatedSpan:s}=$C(r,e);eC("colspan",s,t,n);const a={};o>1&&(a.colspan=o),i>1&&(a.rowspan=i);ZC(r>e?e-1:r-1,n,n.createPositionAfter(t),a)}if(r<e){const s=e-r,a=[...new aC(o)],{column:c}=a.find((({cell:e})=>e===t)),l=a.filter((({cell:e,cellWidth:n,column:o})=>e!==t&&o===c||o<c&&o+n>c));for(const{cell:t,cellWidth:e}of l)n.setAttribute("colspan",e+s,t);const d={};i>1&&(d.rowspan=i),ZC(s,n,n.createPositionAfter(t),d);const u=o.getAttribute("headingColumns")||0;u>c&&eC("headingColumns",u+s,o,n)}}))}splitCellHorizontally(t,e=2){const n=this.editor.model,o=t.parent,i=o.parent,r=i.getChildIndex(o),s=parseInt(t.getAttribute("rowspan")||1),a=parseInt(t.getAttribute("colspan")||1);n.change((n=>{if(s>1){const o=[...new aC(i,{startRow:r,endRow:r+s-1,includeAllSlots:!0})],{newCellsSpan:c,updatedSpan:l}=$C(s,e);eC("rowspan",l,t,n);const{column:d}=o.find((({cell:e})=>e===t)),u={};c>1&&(u.rowspan=c),a>1&&(u.colspan=a);for(const t of o){const{column:e,row:o}=t,i=e===d,s=(o+r+l)%c==0;o>=r+l&&i&&s&&ZC(1,n,t.getPositionBefore(),u)}}if(s<e){const o=e-s,c=[...new aC(i,{startRow:0,endRow:r})];for(const{cell:e,cellHeight:i,row:s}of c)if(e!==t&&s+i>r){const t=i+o;n.setAttribute("rowspan",t,e)}const l={};a>1&&(l.colspan=a),XC(n,i,r+1,o,1,l);const d=i.getAttribute("headingRows")||0;d>r&&eC("headingRows",d+o,i,n)}}))}getColumns(t){return[...t.getChild(0).getChildren()].reduce(((t,e)=>t+parseInt(e.getAttribute("colspan")||1)),0)}getRows(t){return t.childCount}}function XC(t,e,n,o,i,r={}){for(let s=0;s<o;s++){const o=t.createElement("tableRow");t.insert(o,e,n),ZC(i,t,t.createPositionAt(o,"end"),r)}}function ZC(t,e,n,o={}){for(let i=0;i<t;i++)nC(e,n,o)}function $C(t,e){if(t<e)return{newCellsSpan:1,updatedSpan:1};const n=Math.floor(t/e);return{newCellsSpan:n,updatedSpan:t-n*e+n}}class tw extends te{refresh(){const t=CC(this.editor.model.document.selection);this.isEnabled=xC(t,this.editor.plugins.get(QC))}execute(){const t=this.editor.model,e=this.editor.plugins.get(QC);t.change((n=>{const o=CC(t.document.selection),i=o.shift(),{mergeWidth:r,mergeHeight:s}=function(t,e,n){let o=0,i=0;for(const t of e){const{row:e,column:r}=n.getCellLocation(t);o=ow(t,r,o,"colspan"),i=ow(t,e,i,"rowspan")}const{row:r,column:s}=n.getCellLocation(t);return{mergeWidth:o-s,mergeHeight:i-r}}(i,o,e);eC("colspan",r,i,n),eC("rowspan",s,i,n);for(const t of o)ew(t,i,n);jC(i.findAncestor("table"),e),n.setSelection(i,"in")}))}}function ew(t,e,n){nw(t)||(nw(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}function nw(t){return 1==t.childCount&&t.getChild(0).is("element","paragraph")&&t.getChild(0).isEmpty}function ow(t,e,n,o){const i=parseInt(t.getAttribute(o)||1);return Math.max(n,e+i)}class iw extends te{refresh(){const t=_C(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.model,e=_C(t.document.selection),n=vC(e),o=e[0].findAncestor("table"),i=[];for(let e=n.first;e<=n.last;e++)for(const n of o.getChild(e).getChildren())i.push(t.createRangeOn(n));t.change((t=>{t.setSelection(i)}))}}class rw extends te{refresh(){const t=_C(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.model,e=_C(t.document.selection),n=e[0],o=e.pop(),i=n.findAncestor("table"),r=this.editor.plugins.get("TableUtils"),s=r.getCellLocation(n),a=r.getCellLocation(o),c=Math.min(s.column,a.column),l=Math.max(s.column,a.column),d=[];for(const e of new aC(i,{startColumn:c,endColumn:l}))d.push(t.createRangeOn(e.cell));t.change((t=>{t.setSelection(d)}))}}function sw(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let o=!1;const i=new Set;for(const e of n){let n;"table"==e.name&&"insert"==e.type&&(n=e.position.nodeAfter),"tableRow"!=e.name&&"tableCell"!=e.name||(n=e.position.findAncestor("table")),lw(e)&&(n=e.range.start.findAncestor("table")),n&&!i.has(n)&&(o=aw(n,t)||o,o=cw(n,t)||o,i.add(n))}return o}(e,t)))}function aw(t,e){let n=!1;const o=function(t){const e=parseInt(t.getAttribute("headingRows")||0),n=t.childCount,o=[];for(const{row:i,cell:r,cellHeight:s}of new aC(t)){if(s<2)continue;const t=i<e?e:n;if(i+s>t){const e=t-i;o.push({cell:r,rowspan:e})}}return o}(t);if(o.length){n=!0;for(const t of o)eC("rowspan",t.rowspan,t.cell,e,1)}return n}function cw(t,e){let n=!1;const o=function(t){const e=new Array(t.childCount).fill(0);for(const{row:n}of new aC(t,{includeAllSlots:!0}))e[n]++;return e}(t),i=[];for(const[t,e]of o.entries())e||i.push(t);if(i.length){n=!0;for(const n of i.reverse())e.remove(t.getChild(n)),o.splice(n,1)}const r=o[0];if(!o.every((t=>t===r))){const i=o.reduce(((t,e)=>e>t?e:t),0);for(const[r,s]of o.entries()){const o=i-s;if(o){for(let n=0;n<o;n++)nC(e,e.createPositionAt(t.getChild(r),"end"));n=!0}}}return n}function lw(t){const e="attribute"===t.type,n=t.attributeKey;return e&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function dw(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let o=!1;for(const e of n)"insert"==e.type&&"table"==e.name&&(o=uw(e.position.nodeAfter,t)||o),"insert"==e.type&&"tableRow"==e.name&&(o=hw(e.position.nodeAfter,t)||o),"insert"==e.type&&"tableCell"==e.name&&(o=kw(e.position.nodeAfter,t)||o),pw(e)&&(o=kw(e.position.parent,t)||o);return o}(e,t)))}function uw(t,e){let n=!1;for(const o of t.getChildren())n=hw(o,e)||n;return n}function hw(t,e){let n=!1;for(const o of t.getChildren())n=kw(o,e)||n;return n}function kw(t,e){if(0==t.childCount)return e.insertElement("paragraph",t),!0;const n=Array.from(t.getChildren()).filter((t=>t.is("$text")));for(const t of n)e.wrap(e.createRangeOn(t),"paragraph");return!!n.length}function pw(t){return!(!t.position||!t.position.parent.is("element","tableCell"))&&("insert"==t.type&&"$text"==t.name||"remove"==t.type)}function gw(t,e){t.document.registerPostFixer((()=>function(t,e){const n=new Set;for(const e of t.getChanges()){const t="attribute"==e.type?e.range.start.parent:e.position.parent;t.is("element","tableCell")&&n.add(t)}for(const o of n.values())for(const n of[...o.getChildren()].filter((t=>mw(t,e))))t.refreshItem(n);return!1}(t.document.differ,e)))}function mw(t,e){if(!t.is("element","paragraph"))return!1;const n=e.toViewElement(t);return!!n&&uC(t)!==n.is("element","span")}function bw(t){t.document.registerPostFixer((()=>function(t){const e=t.document.differ,n=new Set;for(const t of e.getChanges()){if("attribute"!=t.type)continue;const e=t.range.start.nodeAfter;e&&e.is("element","table")&&"headingRows"==t.attributeKey&&n.add(e)}if(n.size){for(const t of n.values())e.refreshItem(t);return!0}return!1}(t)))}var fw=n(53),Aw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(fw.a,Aw),fw.a.locals;class Cw extends Zt{static get pluginName(){return"TableEditing"}init(){const t=this.editor,e=t.model,n=e.schema,o=t.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.extend("$block",{allowIn:"tableCell"}),o.for("upcast").add(iC()),o.for("editingDowncast").add(lC({asWidget:!0})),o.for("dataDowncast").add(lC()),o.for("upcast").elementToElement({model:"tableRow",view:"tr"}),o.for("upcast").add((t=>{t.on("element:tr",((t,e)=>{e.viewItem.isEmpty&&0==e.modelCursor.index&&t.stop()}),{priority:"high"})})),o.for("editingDowncast").add((t=>t.on("insert:tableRow",((t,e,n)=>{const o=e.item;if(!n.consumable.consume(o,"insert"))return;const i=o.parent,r=function(t){for(const e of t.getChildren())if("table"===e.name)return e}(n.mapper.toViewElement(i)),s=i.getChildIndex(o),a=new aC(i,{row:s}),c={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},l=new Map;for(const t of a){const e=l.get(s)||pC(r,o,s,c,n);l.set(s,e),n.consumable.consume(t.cell,"insert"),kC(t,c,n.writer.createPositionAt(e,"end"),n,{asWidget:!0})}})))),o.for("editingDowncast").add((t=>t.on("remove:tableRow",((t,e,n)=>{t.stop();const o=n.writer,i=n.mapper,r=i.toViewPosition(e.position).getLastMatchingPosition((t=>!t.item.is("element","tr"))).nodeAfter,s=r.parent.parent,a=o.createRangeOn(r),c=o.remove(a);for(const t of o.createRangeIn(c).getItems())i.unbindViewElement(t);bC("thead",s,n),bC("tbody",s,n)}),{priority:"higher"}))),o.for("upcast").elementToElement({model:"tableCell",view:"td"}),o.for("upcast").elementToElement({model:"tableCell",view:"th"}),o.for("upcast").add(rC("td")),o.for("upcast").add(rC("th")),o.for("editingDowncast").add((t=>t.on("insert:tableCell",((t,e,n)=>{const o=e.item;if(!n.consumable.consume(o,"insert"))return;const i=o.parent,r=i.parent,s=r.getChildIndex(i),a=new aC(r,{row:s}),c={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0};for(const t of a)if(t.cell===o){const e=n.mapper.toViewElement(i);return void kC(t,c,n.writer.createPositionAt(e,i.getChildIndex(o)),n,{asWidget:!0})}})))),t.conversion.for("editingDowncast").elementToElement({model:"paragraph",view:dC,converterPriority:"high"}),o.attributeToAttribute({model:"colspan",view:"colspan"}),o.attributeToAttribute({model:"rowspan",view:"rowspan"}),o.for("editingDowncast").add((t=>t.on("attribute:headingColumns:table",((t,e,n)=>{const o=e.item;if(!n.consumable.consume(e.item,t.name))return;const i={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},r=e.attributeOldValue,s=e.attributeNewValue,a=(r>s?r:s)-1;for(const t of new aC(o,{endColumn:a}))hC(t,i,n)})))),t.commands.add("insertTable",new AC(t)),t.commands.add("insertTableRowAbove",new SC(t,{order:"above"})),t.commands.add("insertTableRowBelow",new SC(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new TC(t,{order:"left"})),t.commands.add("insertTableColumnRight",new TC(t,{order:"right"})),t.commands.add("removeTableRow",new GC(t)),t.commands.add("removeTableColumn",new WC(t)),t.commands.add("splitTableCellVertically",new MC(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new MC(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new tw(t)),t.commands.add("mergeTableCellRight",new UC(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new UC(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new UC(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new UC(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new YC(t)),t.commands.add("setTableRowHeader",new KC(t)),t.commands.add("selectTableRow",new iw(t)),t.commands.add("selectTableColumn",new rw(t)),bw(e),sw(e),gw(e,t.editing.mapper),dw(e)}static get requires(){return[QC]}}var ww=n(54),_w={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(ww.a,_w),ww.a.locals;class vw extends Ud{constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((t,e)=>`${e} × ${t}`)),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:e.to("label")}]}],on:{mousedown:e.to((t=>{t.preventDefault()})),click:e.to((()=>{this.fire("execute")}))}}),this.on("boxover",((t,e)=>{const{row:n,column:o}=e.target.dataset;this.set({rows:parseInt(n),columns:parseInt(o)})})),this.on("change:columns",(()=>{this._highlightGridBoxes()})),this.on("change:rows",(()=>{this._highlightGridBoxes()}))}focus(){}focusLast(){}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map(((n,o)=>{const i=Math.floor(o/10)<t&&o%10<e;n.set("isOn",i)}))}_createGridCollection(){const t=[];for(let e=0;e<100;e++){const n=Math.floor(e/10),o=e%10;t.push(new yw(this.locale,n+1,o+1))}return this.createCollection(t)}}class yw extends Ud{constructor(t,e,n){super(t);const o=this.bindTemplate;this.set("isOn",!1),this.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",o.if("isOn","ck-on")],"data-row":e,"data-column":n}})}}class xw extends Zt{static get pluginName(){return"TableUI"}init(){const t=this.editor,e=this.editor.t,n="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",(n=>{const o=t.commands.get("insertTable"),i=sh(n);let r;return i.bind("isEnabled").to(o),i.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:e("Insert table"),tooltip:!0}),i.on("change:isOpen",(()=>{r||(r=new vw(n),i.panelView.children.add(r),r.delegate("execute").to(i),i.buttonView.on("open",(()=>{r.rows=0,r.columns=0})),i.on("execute",(()=>{t.execute("insertTable",{rows:r.rows,columns:r.columns}),t.editing.view.focus()})))})),i})),t.ui.componentFactory.add("tableColumn",(t=>{const o=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return this._prepareDropdown(e("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',o,t)})),t.ui.componentFactory.add("tableRow",(t=>{const n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return this._prepareDropdown(e("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',n,t)})),t.ui.componentFactory.add("mergeTableCells",(t=>{const o=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(e("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',o,t)}))}_prepareDropdown(t,e,n,o){const i=this.editor,r=sh(o),s=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:t,icon:e,tooltip:!0}),r.bind("isEnabled").toMany(s,"isEnabled",((...t)=>t.some((t=>t)))),this.listenTo(r,"execute",(t=>{i.execute(t.source.commandName),i.editing.view.focus()})),r}_prepareMergeSplitButtonDropdown(t,e,n,o){const i=this.editor,r=sh(o,zu);return this._fillDropdownWithListOptions(r,n),r.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),this.listenTo(r.buttonView,"execute",(()=>{i.execute("mergeTableCells"),i.editing.view.focus()})),this.listenTo(r,"execute",(t=>{i.execute(t.source.commandName),i.editing.view.focus()})),r}_fillDropdownWithListOptions(t,e){const n=this.editor,o=[],i=new lo;for(const t of e)Ew(t,n,o,i);return ch(t,i,n.ui.componentFactory),o}}function Ew(t,e,n,o){const i=t.model=new Sh(t.model),{commandName:r,bindIsOn:s}=t.model;if("button"===t.type||"switchbutton"===t.type){const t=e.commands.get(r);n.push(t),i.set({commandName:r}),i.bind("isEnabled").to(t),s&&i.bind("isOn").to(t,"value")}i.set({withText:!0}),o.add(t)}var Iw=n(55),Dw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Iw.a,Dw),Iw.a.locals;class Bw extends Zt{static get pluginName(){return"TableSelection"}static get requires(){return[QC]}init(){const t=this.editor.model;this.listenTo(t,"deleteContent",((t,e)=>this._handleDeleteContent(t,e)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const t=CC(this.editor.model.document.selection);return 0==t.length?null:t}getSelectionAsFragment(){const t=this.getSelectedTableCells();return t?this.editor.model.change((e=>{const n=e.createDocumentFragment(),o=this.editor.plugins.get("TableUtils"),{first:i,last:r}=yC(t),{first:s,last:a}=vC(t),c=t[0].findAncestor("table");let l=a,d=r;if(xC(t,o)){const t={firstColumn:i,lastColumn:r,firstRow:s,lastRow:a};l=JC(c,t),d=HC(c,t)}const u=zC(c,{startRow:s,startColumn:i,endRow:l,endColumn:d},e);return e.insert(u,n,0),n})):null}setCellSelection(t,e){const n=this._getCellsToSelect(t,e);this.editor.model.change((t=>{t.setSelection(n.cells.map((e=>t.createRangeOn(e))),{backward:n.backward})}))}getFocusCell(){const t=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}getAnchorCell(){const t=Ws(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add((n=>n.on("selection",((n,o,i)=>{const r=i.writer;!function(t){for(const n of e)t.removeClass("ck-editor__editable_selected",n);e.clear()}(r);const s=this.getSelectedTableCells();if(!s){var a=t.model;if(a){var c=a.document.selection.getSelectedElement();c&&"table"==c.name&&t.commands.get("alignment")&&(t.commands.get("alignment").isEnabled=!1)}return}for(const t of s){const n=i.mapper.toViewElement(t);r.addClass("ck-editor__editable_selected",n),e.add(n)}const l=i.mapper.toViewElement(s[s.length-1]);r.setSelection(l,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const t=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const e=this.getSelectedTableCells();if(!e)return;t.model.change((n=>{const o=n.createPositionAt(e[0],0),i=t.model.schema.getNearestSelectionRange(o);n.setSelection(i)}))}}))}_handleDeleteContent(t,e){const[n,o]=e,i=this.editor.model,r=!o||"backward"==o.direction,s=CC(n);s.length&&(t.stop(),i.change((t=>{const e=s[r?s.length-1:0];i.change((t=>{for(const e of s)i.deleteContent(t.createSelection(e,"in"))}));const o=i.schema.getNearestSelectionRange(t.createPositionAt(e,0));n.is("documentSelection")?t.setSelection(o):n.setTo(o)})))}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),o=n.getCellLocation(t),i=n.getCellLocation(e),r=Math.min(o.row,i.row),s=Math.max(o.row,i.row),a=Math.min(o.column,i.column),c=Math.max(o.column,i.column),l=new Array(s-r+1).fill(null).map((()=>[])),d={startRow:r,endRow:s,startColumn:a,endColumn:c};for(const{row:e,cell:n}of new aC(t.findAncestor("table"),d))l[e-r].push(n);const u=i.row<o.row,h=i.column<o.column;return u&&l.reverse(),h&&l.forEach((t=>t.reverse())),{cells:l.flat(),backward:u||h}}}class Sw extends Zt{static get pluginName(){return"TableClipboard"}static get requires(){return[Bw,QC]}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",((t,e)=>this._onCopyCut(t,e))),this.listenTo(e,"cut",((t,e)=>this._onCopyCut(t,e))),this.listenTo(t.model,"insertContent",((t,e)=>this._onInsertContent(t,...e)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(t,e){const n=this.editor.plugins.get(Bw);if(!n.getSelectedTableCells())return;if("cut"==t.name&&this.editor.isReadOnly)return;e.preventDefault(),t.stop();const o=this.editor.data,i=this.editor.editing.view.document,r=o.toView(n.getSelectionAsFragment());i.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:r,method:t.name})}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const o=this.editor.model,i=this.editor.plugins.get(QC);let r=function(t,e){if(!t.is("documentFragment")&&!t.is("element"))return null;if(t.is("element","table"))return t;if(1==t.childCount&&t.getChild(0).is("element","table"))return t.getChild(0);const n=e.createRangeIn(t);for(const t of n.getItems())if(t.is("element","table")){const o=e.createRange(n.start,e.createPositionBefore(t));if(e.hasContent(o,{ignoreWhitespaces:!0}))return null;const i=e.createRange(e.createPositionAfter(t),n.end);return e.hasContent(i,{ignoreWhitespaces:!0})?null:t}return null}(e,o);if(!r)return;const s=_C(o.document.selection);s.length?(t.stop(),o.change((t=>{const e={width:i.getColumns(r),height:i.getRows(r)},n=function(t,e,n,o){const i=t[0].findAncestor("table"),r=yC(t),s=vC(t),a={firstColumn:r.first,lastColumn:r.last,firstRow:s.first,lastRow:s.last},c=1===t.length;c&&(a.lastRow+=e.height-1,a.lastColumn+=e.width-1,function(t,e,n,o){const i=o.getColumns(t),r=o.getRows(t);n>i&&o.insertColumns(t,{at:i,columns:n-i});e>r&&o.insertRows(t,{at:r,rows:e-r})}(i,a.lastRow+1,a.lastColumn+1,o));c||!xC(t,o)?function(t,e,n){const{firstRow:o,lastRow:i,firstColumn:r,lastColumn:s}=e,a={first:o,last:i},c={first:r,last:s};Mw(t,r,a,n),Mw(t,s+1,a,n),Tw(t,o,c,n),Tw(t,i+1,c,n,o)}(i,a,n):(a.lastRow=JC(i,a),a.lastColumn=HC(i,a));return a}(s,e,t,i),o=n.lastRow-n.firstRow+1,a=n.lastColumn-n.firstColumn+1,c={startRow:0,startColumn:0,endRow:Math.min(o,e.height)-1,endColumn:Math.min(a,e.width)-1};r=zC(r,c,t);const l=s[0].findAncestor("table"),d=this._replaceSelectedCellsWithPasted(r,e,l,n,t);if(this.editor.plugins.get("TableSelection").isEnabled){const e=EC(d.map((e=>t.createRangeOn(e))));t.setSelection(e)}else t.setSelection(d[0],0)}))):jC(r,i)}_replaceSelectedCellsWithPasted(t,e,n,o,i){const{width:r,height:s}=e,a=function(t,e,n){const o=new Array(n).fill(null).map((()=>new Array(e).fill(null)));for(const{column:e,row:n,cell:i}of new aC(t))o[n][e]=i;return o}(t,r,s),c=[...new aC(n,{startRow:o.firstRow,endRow:o.lastRow,startColumn:o.firstColumn,endColumn:o.lastColumn,includeAllSlots:!0})],l=[];let d;for(const t of c){const{row:e,column:n}=t;n===o.firstColumn&&(d=t.getPositionBefore());const c=e-o.firstRow,u=n-o.firstColumn,h=a[c%s][u%r],k=h?i.cloneElement(h):null,p=this._replaceTableSlotCell(t,k,d,i);p&&(RC(p,e,n,o.lastRow,o.lastColumn,i),l.push(p),d=i.createPositionAfter(p))}const u=parseInt(n.getAttribute("headingRows")||0),h=parseInt(n.getAttribute("headingColumns")||0),k=o.firstRow<u&&u<=o.lastRow,p=o.firstColumn<h&&h<=o.lastColumn;if(k){const t=Tw(n,u,{first:o.firstColumn,last:o.lastColumn},i,o.firstRow);l.push(...t)}if(p){const t=Mw(n,h,{first:o.firstRow,last:o.lastRow},i);l.push(...t)}return l}_replaceTableSlotCell(t,e,n,o){const{cell:i,isAnchor:r}=t;return r&&o.remove(i),e?(o.insert(e,n),e):null}}function Tw(t,e,n,o,i=0){if(e<1)return;return NC(t,e,i).filter((({column:t,cellWidth:e})=>zw(t,e,n))).map((({cell:t})=>PC(t,e,o)))}function Mw(t,e,n,o){if(e<1)return;return LC(t,e).filter((({row:t,cellHeight:e})=>zw(t,e,n))).map((({cell:t,column:n})=>OC(t,n,e,o)))}function zw(t,e,n){const o=t+e-1,{first:i,last:r}=n;return t>=i&&t<=r||t<i&&o>=i}class Nw extends Zt{static get pluginName(){return"TableKeyboard"}static get requires(){return[Bw]}init(){const t=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",((...t)=>this._handleTabOnSelectedTable(...t)),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(t,"arrowKey",((...t)=>this._onArrowKey(...t)),{context:"table"})}_handleTabOnSelectedTable(t,e){const n=this.editor,o=n.model.document.selection.getSelectedElement();o&&o.is("element","table")&&(e(),n.model.change((t=>{t.setSelection(t.createRangeIn(o.getChild(0).getChild(0)))})))}_getTabHandler(t){const e=this.editor;return(n,o)=>{let i=wC(e.model.document.selection)[0];if(i||(i=this.editor.plugins.get("TableSelection").getFocusCell()),!i)return;o();const r=i.parent,s=r.parent,a=s.getChildIndex(r),c=r.getChildIndex(i),l=0===c;if(!t&&l&&0===a)return void e.model.change((t=>{t.setSelection(t.createRangeOn(s))}));const d=c===r.childCount-1,u=a===s.childCount-1;if(t&&u&&d&&(e.execute("insertTableRowBelow"),a===s.childCount-1))return void e.model.change((t=>{t.setSelection(t.createRangeOn(s))}));let h;if(t&&d){const t=s.getChild(a+1);h=t.getChild(0)}else if(!t&&l){const t=s.getChild(a-1);h=t.getChild(t.childCount-1)}else h=r.getChild(c+(t?1:-1));e.model.change((t=>{t.setSelection(t.createRangeIn(h))}))}}_onArrowKey(t,e){const n=this.editor,o=Gi(e.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(o,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.model.document.selection,o=["right","down"].includes(t),i=CC(n);if(i.length){let n;return n=e?this.editor.plugins.get("TableSelection").getFocusCell():o?i[i.length-1]:i[0],this._navigateFromCellInDirection(n,t,e),!0}const r=n.focus.findAncestor("tableCell");return!!r&&(!(e&&!n.isCollapsed&&n.isBackward==o)&&(!!this._isSelectionAtCellEdge(n,r,o)&&(this._navigateFromCellInDirection(r,t,e),!0)))}_isSelectionAtCellEdge(t,e,n){const o=this.editor.model,i=this.editor.model.schema,r=n?t.getLastPosition():t.getFirstPosition();if(!i.getLimitElement(r).is("element","tableCell")){return o.createPositionAt(e,n?"end":0).isTouching(r)}const s=o.createSelection(r);return o.modifySelection(s,{direction:n?"forward":"backward"}),r.isEqual(s.focus)}_navigateFromCellInDirection(t,e,n=!1){const o=this.editor.model,i=t.findAncestor("table"),r=[...new aC(i,{includeAllSlots:!0})],{row:s,column:a}=r[r.length-1],c=r.find((({cell:e})=>e==t));let{row:l,column:d}=c;switch(e){case"left":d--;break;case"up":l--;break;case"right":d+=c.cellWidth;break;case"down":l+=c.cellHeight}if(l<0||l>s||d<0&&l<=0||d>a&&l>=s)return void o.change((t=>{t.setSelection(t.createRangeOn(i))}));d<0?(d=n?0:a,l--):d>a&&(d=n?a:0,l++);const u=r.find((t=>t.row==l&&t.column==d)).cell,h=["right","down"].includes(e),k=this.editor.plugins.get("TableSelection");if(n&&k.isEnabled){const e=k.getAnchorCell()||t;k.setCellSelection(e,u)}else{const t=o.createPositionAt(u,h?0:"end");o.change((e=>{e.setSelection(t)}))}}}class Pw extends gs{constructor(t){super(t),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class Lw extends Zt{static get pluginName(){return"TableMouse"}static get requires(){return[Bw]}init(){this.editor.editing.view.addObserver(Pw),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor;let e=!1;const n=t.plugins.get(Bw);this.listenTo(t.editing.view.document,"mousedown",((o,i)=>{if(!this.isEnabled||!n.isEnabled)return;if(!i.domEvent.shiftKey)return;const r=n.getAnchorCell()||wC(t.model.document.selection)[0];if(!r)return;const s=this._getModelTableCellFromDomEvent(i);s&&Ow(r,s)&&(e=!0,n.setCellSelection(r,s),i.preventDefault())})),this.listenTo(t.editing.view.document,"mouseup",(()=>{e=!1})),this.listenTo(t.editing.view.document,"selectionChange",(t=>{e&&t.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const t=this.editor;let e,n,o=!1,i=!1;const r=t.plugins.get(Bw);this.listenTo(t.editing.view.document,"mousedown",((t,n)=>{this.isEnabled&&r.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(n)))})),this.listenTo(t.editing.view.document,"mousemove",((t,s)=>{if(!s.domEvent.buttons)return;if(!e)return;const a=this._getModelTableCellFromDomEvent(s);a&&Ow(e,a)&&(n=a,o||n==e||(o=!0)),o&&(i=!0,r.setCellSelection(e,n),s.preventDefault())})),this.listenTo(t.editing.view.document,"mouseup",(()=>{o=!1,i=!1,e=null,n=null})),this.listenTo(t.editing.view.document,"selectionChange",(t=>{i&&t.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(t){const e=t.target,n=this.editor.editing.view.createPositionAt(e,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function Ow(t,e){return t.parent.parent==e.parent.parent}var Rw=n(56),Fw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Rw.a,Fw),Rw.a.locals;function Vw(t,e,n,o){t.for("upcast").attributeToAttribute({view:{styles:{[o]:/[\s\S]+/}},model:{name:e,key:n,value:t=>t.getNormalizedStyle(o)}})}function jw(t,e){t.for("upcast").add((t=>t.on("element:"+e,((t,e,n)=>{if(!e.modelRange)return;const o=["border-top","border-right","border-bottom","border-left"].filter((t=>e.viewItem.hasStyle(t)));if(!o.length)return;const i={styles:o};if(!n.consumable.test(e.viewItem,i))return;const r=[...e.modelRange.getItems({shallow:!0})].pop();n.consumable.consume(e.viewItem,i),n.writer.setAttribute("borderStyle",e.viewItem.getNormalizedStyle("border-style"),r),n.writer.setAttribute("borderColor",e.viewItem.getNormalizedStyle("border-color"),r),n.writer.setAttribute("borderWidth",e.viewItem.getNormalizedStyle("border-width"),r)}))))}function Jw(t,e,n,o){t.for("downcast").attributeToAttribute({model:{name:e,key:n},view:t=>({key:"style",value:{[o]:t}})})}function Hw(t,e,n){t.for("downcast").add((t=>t.on(`attribute:${e}:table`,((t,e,o)=>{const{item:i,attributeNewValue:r}=e,{mapper:s,writer:a}=o;if(!o.consumable.consume(e.item,t.name))return;const c=[...s.toViewElement(i).getChildren()].find((t=>t.is("element","table")));r?a.setStyle(n,r,c):a.removeStyle(n,c)}))))}class Uw extends te{constructor(t,e){super(t),this.attributeName=e}refresh(){const t=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!t,this.value=this._getValue(t)}execute(t={}){const e=this.editor.model,n=e.document.selection,{value:o,batch:i}=t,r=n.getFirstPosition().findAncestor("table"),s=this._getValueToSet(o);e.enqueueChange(i||"default",(t=>{s?t.setAttribute(this.attributeName,s,r):t.removeAttribute(this.attributeName,r)}))}_getValue(t){if(t)return t.getAttribute(this.attributeName)}_getValueToSet(t){return t}}class qw extends Uw{constructor(t){super(t,"backgroundColor")}}function Gw(t){if(!t||!C(t))return t;const{top:e,right:n,bottom:o,left:i}=t;return e==n&&n==o&&o==i?e:void 0}function Ww(t,e){const n=parseFloat(t);return Number.isNaN(n)||String(n)!==String(t)?t:`${n}${e}`}class Kw extends Uw{constructor(t){super(t,"borderColor")}_getValue(t){if(t)return Gw(t.getAttribute(this.attributeName))}}class Yw extends Uw{constructor(t){super(t,"borderStyle")}_getValue(t){if(t)return Gw(t.getAttribute(this.attributeName))}}class Qw extends Uw{constructor(t){super(t,"borderWidth")}_getValue(t){if(t)return Gw(t.getAttribute(this.attributeName))}_getValueToSet(t){return Ww(t,"px")}}class Xw extends Uw{constructor(t){super(t,"width")}_getValueToSet(t){return Ww(t,"px")}}class Zw extends Uw{constructor(t){super(t,"height")}_getValueToSet(t){return Ww(t,"px")}}class $w extends Uw{constructor(t){super(t,"alignment")}}const t_=/^(left|right)$/;class e_ extends Zt{static get pluginName(){return"TablePropertiesEditing"}static get requires(){return[Cw]}init(){const t=this.editor,e=t.model.schema,n=t.conversion;t.data.addStyleProcessorRules(Qk),function(t,e){t.extend("table",{allowAttributes:["borderWidth","borderColor","borderStyle","height"]}),jw(e,"table"),Hw(e,"borderColor","border-color"),Hw(e,"borderStyle","border-style"),Hw(e,"borderWidth","border-width"),Hw(e,"height","height")}(e,n),t.commands.add("tableBorderColor",new Kw(t)),t.commands.add("tableBorderStyle",new Yw(t)),t.commands.add("tableBorderWidth",new Qw(t)),function(t,e){t.extend("table",{allowAttributes:["alignment"]}),e.attributeToAttribute({model:{name:"table",key:"alignment",values:["left","right"]},view:{left:{key:"style",value:{float:"left"}},right:{key:"style",value:{float:"right"}}},converterPriority:"high"}),e.for("upcast").attributeToAttribute({view:{attributes:{align:t_}},model:{name:"table",key:"alignment",value:t=>t.getAttribute("align")}})}(e,n),t.commands.add("tableAlignment",new $w(t)),n_(e,n,"width","width"),t.commands.add("tableWidth",new Xw(t)),n_(e,n,"height","height"),t.commands.add("tableHeight",new Zw(t)),t.data.addStyleProcessorRules(Kk),function(t,e,n,o){t.extend("table",{allowAttributes:[n]}),Vw(e,"table",n,o),Hw(e,n,o)}(e,n,"backgroundColor","background-color"),t.commands.add("tableBackgroundColor",new qw(t))}}function n_(t,e,n,o){t.extend("table",{allowAttributes:[n]}),Vw(e,"table",n,o),Jw(e,"table",n,o)}var o_=n(57),i_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(o_.a,i_),o_.a.locals;class r_ extends Ud{constructor(t,e){super(t);const n=this.bindTemplate;this.set("value",""),this.set("id"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("isFocused",!1),this.set("isEmpty",!0),this.set("ariaDescribedById"),this.options=e,this._dropdownView=this._createDropdownView(t),this._inputView=this._createInputTextView(t),this._stillTyping=!1,this.setTemplate({tag:"div",attributes:{class:["ck","ck-input-color",n.if("hasError","ck-error")],id:n.to("id"),"aria-invalid":n.if("hasError",!0),"aria-describedby":n.to("ariaDescribedById")},children:[this._dropdownView,this._inputView]}),this.on("change:value",((t,e,n)=>this._setInputValue(n)))}focus(){this._inputView.focus()}_createDropdownView(){const t=this.locale,e=t.t,n=this.bindTemplate,o=this._createColorGrid(t),i=sh(t),r=new Ud,s=this._createRemoveColorButton(t);return r.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:n.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",n.if("value","ck-hidden",(t=>""!=t))]}}]}),i.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),i.buttonView.children.add(r),i.buttonView.tooltip=e("Color picker"),i.panelPosition="rtl"===t.uiLanguageDirection?"se":"sw",i.panelView.children.add(s),i.panelView.children.add(o),i.bind("isEnabled").to(this,"isReadOnly",(t=>!t)),i}_createInputTextView(){const t=this.locale,e=new vh(t);return e.extendTemplate({on:{blur:e.bindTemplate.to("blur")}}),e.value=this.value,e.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(e),e.on("input",(()=>{const t=e.element.value,n=this.options.colorDefinitions.find((e=>t===e.label));this._stillTyping=!0,this.value=n&&n.color||t})),e.on("blur",(()=>{this._stillTyping=!1,this._setInputValue(e.element.value)})),e.delegate("input").to(this),e}_createRemoveColorButton(){const t=this.locale,e=t.t,n=new $d(t);return n.class="ck-input-color__remove-color",n.withText=!0,n.icon=Yl,n.label=e("Remove color"),n.on("execute",(()=>{this.value="",this._dropdownView.isOpen=!1,this.fire("input")})),n}_createColorGrid(t){const e=new Du(t,{colorDefinitions:this.options.colorDefinitions,columns:this.options.columns});return e.on("execute",((t,e)=>{this.value=e.value,this._dropdownView.isOpen=!1,this.fire("input")})),e.bind("selectedColor").to(this,"value"),e}_setInputValue(t){if(!this._stillTyping){const e=s_(t),n=this.options.colorDefinitions.find((t=>e===s_(t.color)));this._inputView.value=n?n.label:t||""}}}function s_(t){return t.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}const a_=t=>""===t;function c_(t){return{none:t("None"),solid:t("Solid"),dotted:t("Dotted"),dashed:t("Dashed"),double:t("Double"),groove:t("Groove"),ridge:t("Ridge"),inset:t("Inset"),outset:t("Outset")}}function l_(t){return t('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function d_(t){return t('The value is invalid. Try "10px" or "2em" or simply "2".')}function u_(t){return t=t.trim(),a_(t)||Bk(t)}function h_(t){return t=t.trim(),a_(t)||f_(t)||zk(t)||Pk(t)}function k_(t){return t=t.trim(),a_(t)||f_(t)||zk(t)}function p_(t){const e=new lo,n=c_(t.t);for(const o in n){const i={type:"button",model:new Sh({_borderStyleValue:"none"===o?"":o,label:n[o],withText:!0})};"none"===o?i.model.bind("isOn").to(t,"borderStyle",(t=>!t)):i.model.bind("isOn").to(t,"borderStyle",(t=>t===o)),e.add(i)}return e}function g_({view:t,icons:e,toolbar:n,labels:o,propertyName:i,nameToValue:r}){for(const s in o){const a=new $d(t.locale);a.set({label:o[s],icon:e[s],tooltip:o[s]}),a.bind("isOn").to(t,i,(t=>t===r(s))),a.on("execute",(()=>{t[i]=r(s)})),n.items.add(a)}}const m_=[{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"}];function b_(t){return(e,n,o)=>{const i=new r_(e.locale,{colorDefinitions:(r=t.colorConfig,r.map((t=>({color:t.model,label:t.label,options:{hasBorder:t.hasBorder}})))),columns:t.columns});var r;return i.set({id:n,ariaDescribedById:o}),i.bind("isReadOnly").to(e,"isEnabled",(t=>!t)),i.bind("hasError").to(e,"errorText",(t=>!!t)),i.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused").to(i),i}}function f_(t){const e=parseFloat(t);return!Number.isNaN(e)&&t===String(e)}var A_=n(58),C_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(A_.a,C_),A_.a.locals;class w_ extends Ud{constructor(t,e={}){super(t);const n=this.bindTemplate;this.set("class",e.class||null),this.children=this.createCollection(),e.children&&e.children.forEach((t=>this.children.add(t))),this.set("_role",null),this.set("_ariaLabelledBy",null),e.labelView&&this.set({_role:"group",_ariaLabelledBy:e.labelView.id}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",n.to("class")],role:n.to("_role"),"aria-labelledby":n.to("_ariaLabelledBy")},children:this.children})}}var __=n(59),v_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0},y_=(jd()(__.a,v_),__.a.locals,n(60)),x_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0},E_=(jd()(y_.a,x_),y_.a.locals,n(61)),I_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(E_.a,I_),E_.a.locals;const D_={left:rd,center:sd,right:ad};class B_ extends Ud{constructor(t,e){super(t),this.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),this.options=e;const{borderStyleDropdown:n,borderWidthInput:o,borderColorInput:i,borderRowLabel:r}=this._createBorderFields(),{backgroundRowLabel:s,backgroundInput:a}=this._createBackgroundFields(),{widthInput:c,operatorLabel:l,heightInput:d,dimensionsLabel:u}=this._createDimensionFields(),{alignmentToolbar:h,alignmentLabel:k}=this._createAlignmentFields();this.focusTracker=new Ks,this.keystrokes=new Ys,this.children=this.createCollection(),this.borderStyleDropdown=n,this.borderWidthInput=o,this.borderColorInput=i,this.backgroundInput=a,this.widthInput=c,this.heightInput=d,this.alignmentToolbar=h;const{saveButtonView:p,cancelButtonView:g}=this._createActionButtons();this.saveButtonView=p,this.cancelButtonView=g,this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Ch(t,{label:this.t("Table properties")})),this.children.add(new w_(t,{labelView:r,children:[r,n,i,o],class:"ck-table-form__border-row"})),this.children.add(new w_(t,{labelView:s,children:[s,a],class:"ck-table-form__background-row"})),this.children.add(new w_(t,{children:[new w_(t,{labelView:u,children:[u,c,l,d],class:"ck-table-form__dimensions-row"}),new w_(t,{labelView:k,children:[k,h],class:"ck-table-properties-form__alignment-row"})]})),this.children.add(new w_(t,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),gu({view:this}),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const t=b_({colorConfig:this.options.borderColors,columns:5}),e=this.locale,n=this.t,o=new ph(e);o.text=n("Border");const i=c_(this.t),r=new Eh(e,Dh);r.set({label:n("Style"),class:"ck-table-form__border-style"}),r.fieldView.buttonView.set({isOn:!1,withText:!0,tooltip:n("Style")}),r.fieldView.buttonView.bind("label").to(this,"borderStyle",(t=>i[t||"none"])),r.fieldView.on("execute",(t=>{this.borderStyle=t.source._borderStyleValue})),r.bind("isEmpty").to(this,"borderStyle",(t=>!t)),ch(r.fieldView,p_(this));const s=new Eh(e,Ih);s.set({label:n("Width"),class:"ck-table-form__border-width"}),s.fieldView.bind("value").to(this,"borderWidth"),s.bind("isEnabled").to(this,"borderStyle",S_),s.fieldView.on("input",(()=>{this.borderWidth=s.fieldView.element.value}));const a=new Eh(e,t);return a.set({label:n("Color"),class:"ck-table-form__border-color"}),a.fieldView.bind("value").to(this,"borderColor"),a.bind("isEnabled").to(this,"borderStyle",S_),a.fieldView.on("input",(()=>{this.borderColor=a.fieldView.value})),this.on("change:borderStyle",((t,e,n)=>{S_(n)||(this.borderColor="",this.borderWidth="")})),{borderRowLabel:o,borderStyleDropdown:r,borderColorInput:a,borderWidthInput:s}}_createBackgroundFields(){const t=this.locale,e=this.t,n=new ph(t);n.text=e("Background");const o=b_({colorConfig:this.options.backgroundColors,columns:5}),i=new Eh(t,o);return i.set({label:e("Color"),class:"ck-table-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",(()=>{this.backgroundColor=i.fieldView.value})),{backgroundRowLabel:n,backgroundInput:i}}_createDimensionFields(){const t=this.locale,e=this.t,n=new ph(t);n.text=e("Dimensions");const o=new Eh(t,Ih);o.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),o.fieldView.bind("value").to(this,"width"),o.fieldView.on("input",(()=>{this.width=o.fieldView.element.value}));const i=new Ud(t);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const r=new Eh(t,Ih);return r.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",(()=>{this.height=r.fieldView.element.value})),{dimensionsLabel:n,widthInput:o,operatorLabel:i,heightInput:r}}_createAlignmentFields(){const t=this.locale,e=this.t,n=new ph(t);n.text=e("Alignment");const o=new Wu(t);return o.set({isCompact:!0,ariaLabel:e("Table alignment toolbar")}),g_({view:this,icons:D_,toolbar:o,labels:this._alignmentLabels,propertyName:"alignment",nameToValue:t=>"center"===t?"":t}),{alignmentLabel:n,alignmentToolbar:o}}_createActionButtons(){const t=this.locale,e=this.t,n=new $d(t),o=new $d(t),i=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return n.set({label:e("Save"),icon:Kl,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(i,"errorText",((...t)=>t.every((t=>!t)))),o.set({label:e("Cancel"),icon:Wl,class:"ck-button-cancel",type:"cancel",withText:!0}),o.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:o}}get _alignmentLabels(){const t=this.locale,e=this.t,n=e("Align table to the left"),o=e("Center table"),i=e("Align table to the right");return"rtl"===t.uiLanguageDirection?{right:i,center:o,left:n}:{left:n,center:o,right:i}}}function S_(t){return!!t}function T_(t){const e=t.getSelectedElement();return e&&z_(e)?e:null}function M_(t){const e=function(t,e){let n=e.parent;for(;n;){if(n.name===t)return n;n=n.parent}}("table",t.getFirstPosition());return e&&z_(e.parent)?e.parent:null}function z_(t){return!!t.getCustomProperty("table")&&Kg(t)}const N_=Ph.defaultPositions,P_=[N_.northArrowSouth,N_.northArrowSouthWest,N_.northArrowSouthEast,N_.southArrowNorth,N_.southArrowNorthWest,N_.southArrowNorthEast],L_=[...P_,om];function O_(t,e){const n=t.plugins.get("ContextualBalloon");if(M_(t.editing.view.document.selection)){let o;o="cell"===e?F_(t):R_(t),n.updatePosition(o)}}function R_(t){const e=t.model.document.selection.getFirstPosition().findAncestor("table"),n=t.editing.mapper.toViewElement(e);return{target:t.editing.view.domConverter.viewToDom(n),positions:L_}}function F_(t){const e=t.editing.mapper,n=t.editing.view.domConverter,o=t.model.document.selection;if(o.rangeCount>1)return{target:()=>function(t,e){const n=e.editing.mapper,o=e.editing.view.domConverter,i=Array.from(t).map((t=>{const e=V_(t.start),i=n.toViewElement(e);return new js(o.viewToDom(i))}));return js.getBoundingRect(i)}(o.getRanges(),t),positions:P_};const i=V_(o.getFirstPosition()),r=e.toViewElement(i);return{target:n.viewToDom(r),positions:P_}}function V_(t){return t.nodeAfter&&t.nodeAfter.is("element","tableCell")?t.nodeAfter:t.findAncestor("tableCell")}const j_={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};class J_ extends Zt{static get requires(){return[Uh]}static get pluginName(){return"TablePropertiesUI"}constructor(t){super(t),t.config.define("table.tableProperties",{borderColors:m_,backgroundColors:m_})}init(){const t=this.editor,e=t.t;this._balloon=t.plugins.get(Uh),this.view=this._createPropertiesView(),this._undoStepBatch=null,t.ui.componentFactory.add("tableProperties",(n=>{const o=new $d(n);o.set({label:e("Table properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',tooltip:!0}),this.listenTo(o,"execute",(()=>this._showView()));const i=Object.values(j_).map((e=>t.commands.get(e)));return o.bind("isEnabled").toMany(i,"isEnabled",((...t)=>t.some((t=>t)))),o}))}destroy(){super.destroy(),this.view.destroy()}_createPropertiesView(){const t=this.editor,e=t.config.get("table.tableProperties"),n=wu(e.borderColors),o=Cu(t.locale,n),i=wu(e.backgroundColors),r=Cu(t.locale,i),s=new B_(t.locale,{borderColors:o,backgroundColors:r}),a=t.t;s.render(),this.listenTo(s,"submit",(()=>{this._hideView()})),this.listenTo(s,"cancel",(()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()})),s.keystrokes.set("Esc",((t,e)=>{this._hideView(),e()})),ku({emitter:s,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const c=l_(a),l=d_(a);return s.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle")),s.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:s.borderColorInput,commandName:"tableBorderColor",errorText:c,validator:u_})),s.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:s.borderWidthInput,commandName:"tableBorderWidth",errorText:l,validator:k_})),s.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:s.backgroundInput,commandName:"tableBackgroundColor",errorText:c,validator:u_})),s.on("change:width",this._getValidatedPropertyChangeCallback({viewField:s.widthInput,commandName:"tableWidth",errorText:l,validator:h_})),s.on("change:height",this._getValidatedPropertyChangeCallback({viewField:s.heightInput,commandName:"tableHeight",errorText:l,validator:h_})),s.on("change:alignment",this._getPropertyChangeCallback("tableAlignment")),s}_fillViewFormFromCommandValues(){const t=this.editor.commands;Object.entries(j_).map((([e,n])=>[e,t.get(n).value||""])).forEach((([t,e])=>this.view.set(t,e)))}_showView(){const t=this.editor;this.listenTo(t.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:R_(t)}),this._undoStepBatch=t.model.createBatch(),this.view.focus()}_hideView(){const t=this.editor;this.stopListening(t.ui,"update"),this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const t=this.editor;M_(t.editing.view.document.selection)?this._isViewVisible&&O_(t,"table"):this._hideView()}get _isViewVisible(){return this._balloon.visibleView===this.view}get _isViewInBalloon(){return this._balloon.hasView(this.view)}_getPropertyChangeCallback(t){return(e,n,o)=>{this.editor.execute(t,{value:o,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback({commandName:t,viewField:e,validator:n,errorText:o}){const i=Bs((()=>{e.errorText=o}),500);return(o,r,s)=>{i.cancel(),n(s)?(this.editor.execute(t,{value:s,batch:this._undoStepBatch}),e.errorText=null):i()}}}var H_=n(62),U_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(H_.a,U_),H_.a.locals;const q_={left:ed,center:nd,right:od,justify:id,top:td,middle:$l,bottom:Zl};class G_ extends Ud{constructor(t,e){super(t),this.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),this.options=e;const{borderStyleDropdown:n,borderWidthInput:o,borderColorInput:i,borderRowLabel:r}=this._createBorderFields(),{backgroundRowLabel:s,backgroundInput:a}=this._createBackgroundFields(),{widthInput:c,operatorLabel:l,heightInput:d,dimensionsLabel:u}=this._createDimensionFields(),{horizontalAlignmentToolbar:h,verticalAlignmentToolbar:k,alignmentLabel:p}=this._createAlignmentFields();this.focusTracker=new Ks,this.keystrokes=new Ys,this.children=this.createCollection(),this.borderStyleDropdown=n,this.borderWidthInput=o,this.borderColorInput=i,this.backgroundInput=a,this.paddingInput=this._createPaddingField(),this.widthInput=c,this.heightInput=d,this.horizontalAlignmentToolbar=h,this.verticalAlignmentToolbar=k;const{saveButtonView:g,cancelButtonView:m}=this._createActionButtons();this.saveButtonView=g,this.cancelButtonView=m,this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new Ch(t,{label:this.t("Cell properties")})),this.children.add(new w_(t,{labelView:r,children:[r,n,i,o],class:"ck-table-form__border-row"})),this.children.add(new w_(t,{labelView:s,children:[s,a],class:"ck-table-form__background-row"})),this.children.add(new w_(t,{children:[new w_(t,{labelView:u,children:[u,c,l,d],class:"ck-table-form__dimensions-row"}),new w_(t,{children:[this.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),this.children.add(new w_(t,{labelView:p,children:[p,h,k],class:"ck-table-cell-properties-form__alignment-row"})),this.children.add(new w_(t,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),gu({view:this}),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const t=b_({colorConfig:this.options.borderColors,columns:5}),e=this.locale,n=this.t,o=new ph(e);o.text=n("Border");const i=c_(n),r=new Eh(e,Dh);r.set({label:n("Style"),class:"ck-table-form__border-style"}),r.fieldView.buttonView.set({isOn:!1,withText:!0,tooltip:n("Style")}),r.fieldView.buttonView.bind("label").to(this,"borderStyle",(t=>i[t||"none"])),r.fieldView.on("execute",(t=>{this.borderStyle=t.source._borderStyleValue})),r.bind("isEmpty").to(this,"borderStyle",(t=>!t)),ch(r.fieldView,p_(this));const s=new Eh(e,Ih);s.set({label:n("Width"),class:"ck-table-form__border-width"}),s.fieldView.bind("value").to(this,"borderWidth"),s.bind("isEnabled").to(this,"borderStyle",W_),s.fieldView.on("input",(()=>{this.borderWidth=s.fieldView.element.value}));const a=new Eh(e,t);return a.set({label:n("Color"),class:"ck-table-form__border-color"}),a.fieldView.bind("value").to(this,"borderColor"),a.bind("isEnabled").to(this,"borderStyle",W_),a.fieldView.on("input",(()=>{this.borderColor=a.fieldView.value})),this.on("change:borderStyle",((t,e,n)=>{W_(n)||(this.borderColor="",this.borderWidth="")})),{borderRowLabel:o,borderStyleDropdown:r,borderColorInput:a,borderWidthInput:s}}_createBackgroundFields(){const t=this.locale,e=this.t,n=new ph(t);n.text=e("Background");const o=b_({colorConfig:this.options.backgroundColors,columns:5}),i=new Eh(t,o);return i.set({label:e("Color"),class:"ck-table-cell-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",(()=>{this.backgroundColor=i.fieldView.value})),{backgroundRowLabel:n,backgroundInput:i}}_createDimensionFields(){const t=this.locale,e=this.t,n=new ph(t);n.text=e("Dimensions");const o=new Eh(t,Ih);o.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),o.fieldView.bind("value").to(this,"width"),o.fieldView.on("input",(()=>{this.width=o.fieldView.element.value}));const i=new Ud(t);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const r=new Eh(t,Ih);return r.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",(()=>{this.height=r.fieldView.element.value})),{dimensionsLabel:n,widthInput:o,operatorLabel:i,heightInput:r}}_createPaddingField(){const t=this.locale,e=this.t,n=new Eh(t,Ih);return n.set({label:e("Padding"),class:"ck-table-cell-properties-form__padding"}),n.fieldView.bind("value").to(this,"padding"),n.fieldView.on("input",(()=>{this.padding=n.fieldView.element.value})),n}_createAlignmentFields(){const t=this.locale,e=this.t,n=new ph(t);n.text=e("Table cell text alignment");const o=new Wu(t),i="rtl"===this.locale.contentLanguageDirection;o.set({isCompact:!0,ariaLabel:e("Horizontal text alignment toolbar")}),g_({view:this,icons:q_,toolbar:o,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:t=>t===(i?"right":"left")?"":t});const r=new Wu(t);return r.set({isCompact:!0,ariaLabel:e("Vertical text alignment toolbar")}),g_({view:this,icons:q_,toolbar:r,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",nameToValue:t=>"middle"===t?"":t}),{horizontalAlignmentToolbar:o,verticalAlignmentToolbar:r,alignmentLabel:n}}_createActionButtons(){const t=this.locale,e=this.t,n=new $d(t),o=new $d(t),i=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return n.set({label:e("Save"),icon:Kl,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(i,"errorText",((...t)=>t.every((t=>!t)))),o.set({label:e("Cancel"),icon:Wl,class:"ck-button-cancel",type:"cancel",withText:!0}),o.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:o}}get _horizontalAlignmentLabels(){const t=this.locale,e=this.t,n=e("Align cell text to the left"),o=e("Align cell text to the center"),i=e("Align cell text to the right"),r=e("Justify cell text");return"rtl"===t.uiLanguageDirection?{right:i,center:o,left:n,justify:r}:{left:n,center:o,right:i,justify:r}}get _verticalAlignmentLabels(){const t=this.t;return{top:t("Align cell text to the top"),middle:t("Align cell text to the middle"),bottom:t("Align cell text to the bottom")}}}function W_(t){return!!t}const K_={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",width:"tableCellWidth",height:"tableCellHeight",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};class Y_ extends Zt{static get requires(){return[Uh]}static get pluginName(){return"TableCellPropertiesUI"}constructor(t){super(t),t.config.define("table.tableCellProperties",{borderColors:m_,backgroundColors:m_})}init(){const t=this.editor,e=t.t;this._balloon=t.plugins.get(Uh),this.view=this._createPropertiesView(),this._undoStepBatch=null,t.ui.componentFactory.add("tableCellProperties",(n=>{const o=new $d(n);o.set({label:e("Cell properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',tooltip:!0}),this.listenTo(o,"execute",(()=>this._showView()));const i=Object.values(K_).map((e=>t.commands.get(e)));return o.bind("isEnabled").toMany(i,"isEnabled",((...t)=>t.some((t=>t)))),o}))}destroy(){super.destroy(),this.view.destroy()}_createPropertiesView(){const t=this.editor,e=t.editing.view.document,n=t.config.get("table.tableCellProperties"),o=wu(n.borderColors),i=Cu(t.locale,o),r=wu(n.backgroundColors),s=Cu(t.locale,r),a=new G_(t.locale,{borderColors:i,backgroundColors:s}),c=t.t;a.render(),this.listenTo(a,"submit",(()=>{this._hideView()})),this.listenTo(a,"cancel",(()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()})),a.keystrokes.set("Esc",((t,e)=>{this._hideView(),e()})),this.listenTo(t.ui,"update",(()=>{M_(e.selection)?this._isViewVisible&&O_(t,"cell"):this._hideView()})),ku({emitter:a,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const l=l_(c),d=d_(c);return a.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle")),a.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:a.borderColorInput,commandName:"tableCellBorderColor",errorText:l,validator:u_})),a.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:a.borderWidthInput,commandName:"tableCellBorderWidth",errorText:d,validator:k_})),a.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:a.paddingInput,commandName:"tableCellPadding",errorText:d,validator:h_})),a.on("change:width",this._getValidatedPropertyChangeCallback({viewField:a.widthInput,commandName:"tableCellWidth",errorText:d,validator:h_})),a.on("change:height",this._getValidatedPropertyChangeCallback({viewField:a.heightInput,commandName:"tableCellHeight",errorText:d,validator:h_})),a.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:a.backgroundInput,commandName:"tableCellBackgroundColor",errorText:l,validator:u_})),a.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment")),a.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment")),a}_fillViewFormFromCommandValues(){const t=this.editor.commands;Object.entries(K_).map((([e,n])=>[e,t.get(n).value||""])).forEach((([t,e])=>this.view.set(t,e)))}_showView(){const t=this.editor;this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:F_(t)}),this._undoStepBatch=t.model.createBatch(),this.view.focus()}_hideView(){if(!this._isViewInBalloon)return;const t=this.editor;this.stopListening(t.ui,"update"),this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}get _isViewVisible(){return this._balloon.visibleView===this.view}get _isViewInBalloon(){return this._balloon.hasView(this.view)}_getPropertyChangeCallback(t){return(e,n,o)=>{this.editor.execute(t,{value:o,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback({commandName:t,viewField:e,validator:n,errorText:o}){const i=Bs((()=>{e.errorText=o}),500);return(o,r,s)=>{i.cancel(),n(s)?(this.editor.execute(t,{value:s,batch:this._undoStepBatch}),e.errorText=null):i()}}}class Q_ extends te{constructor(t,e){super(t),this.attributeName=e}refresh(){const t=_C(this.editor.model.document.selection);this.isEnabled=!!t.length,this.value=this._getSingleValue(t)}execute(t={}){const{value:e,batch:n}=t,o=this.editor.model,i=_C(o.document.selection),r=this._getValueToSet(e);o.enqueueChange(n||"default",(t=>{r?i.forEach((e=>t.setAttribute(this.attributeName,r,e))):i.forEach((e=>t.removeAttribute(this.attributeName,e)))}))}_getAttribute(t){if(t)return t.getAttribute(this.attributeName)}_getValueToSet(t){return t}_getSingleValue(t){const e=this._getAttribute(t[0]);return t.every((t=>this._getAttribute(t)===e))?e:void 0}}class X_ extends Q_{constructor(t){super(t,"padding")}_getAttribute(t){if(t)return Gw(t.getAttribute(this.attributeName))}_getValueToSet(t){return Ww(t,"px")}}class Z_ extends Q_{constructor(t){super(t,"width")}_getValueToSet(t){return Ww(t,"px")}}class $_ extends Q_{constructor(t){super(t,"height")}_getValueToSet(t){return Ww(t,"px")}}class tv extends Q_{constructor(t){super(t,"backgroundColor")}}class ev extends Q_{constructor(t){super(t,"verticalAlignment")}}class nv extends Q_{constructor(t){super(t,"horizontalAlignment")}}class ov extends Q_{constructor(t){super(t,"borderStyle")}_getAttribute(t){if(t)return Gw(t.getAttribute(this.attributeName))}}class iv extends Q_{constructor(t){super(t,"borderColor")}_getAttribute(t){if(t)return Gw(t.getAttribute(this.attributeName))}}class rv extends Q_{constructor(t){super(t,"borderWidth")}_getAttribute(t){if(t)return Gw(t.getAttribute(this.attributeName))}_getValueToSet(t){return Ww(t,"px")}}const sv=/^(top|bottom)$/;class av extends Zt{static get pluginName(){return"TableCellPropertiesEditing"}static get requires(){return[Cw]}init(){const t=this.editor,e=t.model.schema,n=t.conversion,o=t.locale;t.data.addStyleProcessorRules(Qk),function(t,e){t.extend("tableCell",{allowAttributes:["borderWidth","borderColor","borderStyle"]}),jw(e,"td"),jw(e,"th"),Jw(e,"tableCell","borderStyle","border-style"),Jw(e,"tableCell","borderColor","border-color"),Jw(e,"tableCell","borderWidth","border-width")}(e,n),t.commands.add("tableCellBorderStyle",new ov(t)),t.commands.add("tableCellBorderColor",new iv(t)),t.commands.add("tableCellBorderWidth",new rv(t)),function(t,e,n){t.extend("tableCell",{allowAttributes:["horizontalAlignment"]});const o=["rtl"==n.contentLanguageDirection?"left":"right","center","justify"];e.attributeToAttribute({model:{name:"tableCell",key:"horizontalAlignment",values:o},view:o.reduce(((t,e)=>({...t,[e]:{key:"style",value:{"text-align":e}}})),{})})}(e,n,o),t.commands.add("tableCellHorizontalAlignment",new nv(t)),cv(e,n,"width","width"),t.commands.add("tableCellWidth",new Z_(t)),cv(e,n,"height","height"),t.commands.add("tableCellHeight",new $_(t)),t.data.addStyleProcessorRules(lp),cv(e,n,"padding","padding"),t.commands.add("tableCellPadding",new X_(t)),t.data.addStyleProcessorRules(Kk),cv(e,n,"backgroundColor","background-color"),t.commands.add("tableCellBackgroundColor",new tv(t)),function(t,e){t.extend("tableCell",{allowAttributes:["verticalAlignment"]}),e.attributeToAttribute({model:{name:"tableCell",key:"verticalAlignment",values:["top","bottom"]},view:{top:{key:"style",value:{"vertical-align":"top"}},bottom:{key:"style",value:{"vertical-align":"bottom"}}}}),e.for("upcast").attributeToAttribute({view:{attributes:{valign:sv}},model:{name:"tableCell",key:"verticalAlignment",value:t=>t.getAttribute("valign")}})}(e,n),t.commands.add("tableCellVerticalAlignment",new ev(t))}}function cv(t,e,n,o){t.extend("tableCell",{allowAttributes:[n]}),Vw(e,"tableCell",n,o),Jw(e,"tableCell",n,o)}function lv(t){if(t.is("$text")||t.is("$textProxy"))return t.data;let e="",n=null;for(const o of t.getChildren()){const t=lv(o);n&&n.is("element")&&(e+="\n"),e+=t,n=o}return e}class dv{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach((t=>this._definitions.add(t))):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:anchorId",((t,e,n)=>{if(!n.consumable.test(e.item,"attribute:anchorId"))return;const o=n.writer,i=o.document.selection;for(const t of this._definitions){const r=o.createAttributeElement("a",t.attributes,{priority:5});o.setCustomProperty("anchor",!0,r),t.callback(e.attributeNewValue)?e.item.is("selection")?o.wrap(i.getFirstRange(),r):o.wrap(n.mapper.toViewRange(e.range),r):o.unwrap(n.mapper.toViewRange(e.range),r)}}),{priority:"high"})}}getDispatcherForAnchoredImage(){return t=>{t.on("attribute:anchorId:image",((t,e,n)=>{const o=n.mapper.toViewElement(e.item),i=Array.from(o.getChildren()).find((t=>"a"===t.name));for(const t of this._definitions){const o=yo(t.attributes);if(t.callback(e.attributeNewValue))for(const[t,e]of o)"class"===t?n.writer.addClass(e,i):n.writer.setAttribute(t,e,i);else for(const[t,e]of o)"class"===t?n.writer.removeClass(e,i):n.writer.removeAttribute(t,i)}}))}}}var uv=function(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:qo(t,e,n)},hv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var kv=function(t){return hv.test(t)};var pv=function(t){return t.split("")},gv="[\\ud800-\\udfff]",mv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",bv="\\ud83c[\\udffb-\\udfff]",fv="[^\\ud800-\\udfff]",Av="(?:\\ud83c[\\udde6-\\uddff]){2}",Cv="[\\ud800-\\udbff][\\udc00-\\udfff]",wv="(?:"+mv+"|"+bv+")"+"?",_v="[\\ufe0e\\ufe0f]?",vv=_v+wv+("(?:\\u200d(?:"+[fv,Av,Cv].join("|")+")"+_v+wv+")*"),yv="(?:"+[fv+mv+"?",mv,Av,Cv,gv].join("|")+")",xv=RegExp(bv+"(?="+bv+")|"+yv+vv,"g");var Ev=function(t){return t.match(xv)||[]};var Iv=function(t){return kv(t)?Ev(t):pv(t)};var Dv=function(t){return function(e){e=Vo(e);var n=kv(e)?Iv(e):void 0,o=n?n[0]:e.charAt(0),i=n?uv(n,1).join(""):e.slice(1);return o[t]()+i}}("toUpperCase");const Bv=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Sv=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Tv=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Mv=/^((\w+:(\/{2,})?)|(\W))/i,zv="Ctrl+M";function Nv(t,{writer:e}){const n=e.createAttributeElement("a",{id:t,name:t},{priority:5});return e.addClass("ck-anchor",n),e.setCustomProperty("anchor",!0,n),n}function Pv(t){return function(t){return t.replace(Bv,"").match(Sv)}(t=String(t))?t:"#"}function Lv(t,e){return!!t&&(t.is("element","image")&&e.checkAttribute("image","anchorId"))}function Ov(t,e){const n=(o=t,Tv.test(o)?"mailto:":e);var o;const i=!!n&&!Mv.test(t);return t&&i?n+t:t}class Rv extends te{constructor(t){super(t),this.manualDecorators=new lo,this.automaticDecorators=new dv}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document,n=Ws(e.selection.getSelectedBlocks());Lv(n,t.schema)?(this.value=n.getAttribute("anchorId"),this.isEnabled=t.schema.checkAttribute(n,"anchorId")):(this.value=e.selection.getAttribute("anchorId"),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"anchorId"));for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}execute(t,e={},n){const o=this.editor.model,i=o.document.selection,r=[],s=[];for(const t in e)e[t]?r.push(t):s.push(t);o.change((e=>{if(i.isCollapsed){const c=i.getFirstPosition();if(i.hasAttribute("anchorId")){const n=bg(c,"anchorId",i.getAttribute("anchorId"),o);e.setAttribute("anchorId",t,n),r.forEach((t=>{e.setAttribute(t,!0,n)})),s.forEach((t=>{e.removeAttribute(t,n)})),e.setSelection(e.createPositionAfter(n.end.nodeBefore))}else if(""!==t){const s=yo(i.getAttributes());s.set("anchorId",t),r.forEach((t=>{s.set(t,!0)}));var a=null;a=n?e.createText(" ",s):e.createText(t,s);const{end:l}=o.insertContent(a,c);e.setSelection(l)}["anchorId",...r,...s].forEach((t=>{e.removeSelectionAttribute(t)}))}else{const n=o.schema.getValidRanges(i.getRanges(),"anchorId"),a=[];for(const t of i.getSelectedBlocks())o.schema.checkAttribute(t,"anchorId")&&a.push(e.createRangeOn(t));const c=a.slice();for(const t of n)this._isRangeToUpdate(t,a)&&c.push(t);for(const n of c)e.setAttribute("anchorId",t,n),r.forEach((t=>{e.setAttribute(t,!0,n)})),s.forEach((t=>{e.removeAttribute(t,n)}))}}))}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document,o=Ws(n.selection.getSelectedBlocks());return Lv(o,e.schema)?o.getAttribute(t):n.selection.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}}class Fv extends te{refresh(){const t=this.editor.model,e=t.document,n=Ws(e.selection.getSelectedBlocks());Lv(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"anchorId"):this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"anchorId")}execute(){const t=this.editor,e=this.editor.model,n=e.document.selection,o=t.commands.get("anchor");e.change((t=>{const i=n.isCollapsed?[bg(n.getFirstPosition(),"anchorId",n.getAttribute("anchorId"),e)]:e.schema.getValidRanges(n.getRanges(),"anchorId");for(const e of i)if(t.removeAttribute("anchorId",e),o)for(const n of o.manualDecorators)t.removeAttribute(n.id,e)}))}}class Vv{constructor({id:t,label:e,attributes:n,defaultValue:o}){this.id=t,this.set("value"),this.defaultValue=o,this.label=e,this.attributes=n}}Xt(Vv,qt);var jv=n(63),Jv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(jv.a,Jv),jv.a.locals;const Hv="automatic",Uv=/^(https?:)?\/\//;class qv extends Zt{static get pluginName(){return"AnchorEditing"}static get requires(){return[ng,Yp,Sm]}constructor(t){super(t),t.config.define("anchor",{addTargetToExternalAnchors:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"anchorId"}),t.conversion.for("dataDowncast").attributeToElement({model:"anchorId",view:Nv}),t.conversion.for("editingDowncast").attributeToElement({model:"anchorId",view:(t,e)=>Nv(Pv(t),e)}),t.conversion.for("upcast").elementToElement({view:{name:"a"},model:(e,{writer:n})=>{const o={},i=e.getAttribute("id")?e.getAttribute("id"):e.getAttribute("name");if(e.parent.childCount>1&&e.isEmpty&&void 0!==e.parent.getChild(1).data){const r=e.parent.getChild(1).data;o.id=i,o.name=i,o.anchorId=r;const{start:s}=t.model.insertContent(n.createText(r,o),0);return n.setSelection(s)}}}).elementToAttribute({view:{name:"a",attributes:{id:!0}},model:{key:"anchorId",value:t=>t.getAttribute("id")?t.getAttribute("id"):t.getAttribute("name")}}),t.commands.add("anchor",new Rv(t)),t.commands.add("unanchor",new Fv(t));const e=function(t,e){const n={};return e.forEach((t=>(t.label&&n[t.label]&&(t.label=n[t.label]),t))),e}(t.t,function(t){const e=[];if(t)for(const[n,o]of Object.entries(t)){const t=Object.assign({},o,{id:`anchor${Dv(n)}`});e.push(t)}return e}(t.config.get("anchor.decorators")));this._enableAutomaticDecorators(e.filter((t=>t.mode===Hv))),this._enableManualDecorators(e.filter((t=>"manual"===t.mode)));t.plugins.get(ng).registerAttribute("anchorId"),Ag(t,"anchorId","a","ck-anchor_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterAnchor(),this._enableTypingOverAnchor(),this._handleDeleteContentAfterAnchor()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("anchor").automaticDecorators;e.config.get("anchor.addTargetToExternalAnchors")&&n.add({id:"anchorIsExternal",mode:Hv,callback:t=>Uv.test(t),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("anchor").manualDecorators;t.forEach((t=>{e.model.schema.extend("$text",{allowAttributes:t.id}),n.add(new Vv(t)),e.conversion.for("downcast").attributeToElement({model:t.id,view:(e,{writer:o})=>{if(e){const e=n.get(t.id).attributes,i=o.createAttributeElement("a",e,{priority:5});return o.setCustomProperty("anchor",!0,i),i}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(t.id).attributes},model:{key:t.id}})}))}_enableInsertContentSelectionAttributesFixer(){const t=this.editor,e=t.model,n=e.document.selection,o=t.commands.get("anchor");this.listenTo(e,"insertContent",(()=>{const t=n.anchor.nodeBefore,i=n.anchor.nodeAfter;n.hasAttribute("anchorId")&&t&&t.hasAttribute("anchorId")&&(i&&i.hasAttribute("anchorId")||e.change((t=>{Gv(t,o.manualDecorators)})))}),{priority:"low"})}_enableClickingAfterAnchor(){const t=this.editor,e=t.commands.get("anchor");t.editing.view.addObserver(wk);let n=!1;this.listenTo(t.editing.view.document,"mousedown",(()=>{n=!0})),this.listenTo(t.editing.view.document,"selectionChange",(()=>{if(!n)return;n=!1;const o=t.model.document.selection;if(!o.isCollapsed)return;if(!o.hasAttribute("anchorId"))return;const i=o.getFirstPosition(),r=bg(i,"anchorId",o.getAttribute("anchorId"),t.model);(i.isTouching(r.start)||i.isTouching(r.end))&&t.model.change((t=>{Gv(t,e.manualDecorators)}))}))}_enableTypingOverAnchor(){const t=this.editor,e=t.editing.view;let n,o;this.listenTo(e.document,"delete",(()=>{o=!0}),{priority:"high"}),this.listenTo(t.model,"deleteContent",(()=>{const e=t.model.document.selection;e.isCollapsed||(o?o=!1:Wv(t)&&function(t){const e=t.document.selection,n=e.getFirstPosition(),o=e.getLastPosition(),i=n.nodeAfter;if(!i)return!1;if(!i.is("$text"))return!1;if(!i.hasAttribute("anchorId"))return!1;const r=o.textNode||o.nodeBefore;if(i===r)return!0;return bg(n,"anchorId",i.getAttribute("anchorId"),t).containsRange(t.createRange(n,o),!0)}(t.model)&&(n=e.getAttributes()))}),{priority:"high"}),this.listenTo(t.model,"insertContent",((e,[i])=>{o=!1,Wv(t)&&n&&(t.model.change((t=>{for(const[e,o]of n)t.setAttribute(e,o,i)})),n=null)}),{priority:"high"})}_handleDeleteContentAfterAnchor(){const t=this.editor,e=t.model,n=e.document.selection,o=t.editing.view,i=t.commands.get("anchor");let r=!1,s=!1;this.listenTo(o.document,"delete",((t,e)=>{s=e.domEvent.keyCode===ji.backspace}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{r=!1;const t=n.getFirstPosition(),o=n.getAttribute("anchorId");if(!o)return;const i=bg(t,"anchorId",o,e);r=i.containsPosition(t)||i.end.isEqual(t)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{s&&(s=!1,r||t.model.enqueueChange((t=>{Gv(t,i.manualDecorators)})))}),{priority:"low"})}}function Gv(t,e){t.removeSelectionAttribute("anchorId");for(const n of e)t.removeSelectionAttribute(n.id)}function Wv(t){return t.plugins.get("Input").isInput(t.model.change((t=>t.batch)))}var Kv=n(64),Yv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Kv.a,Yv),Kv.a.locals;class Qv extends Ud{constructor(t,e){super(t);const n=t.t;this.focusTracker=new Ks,this.keystrokes=new Ys,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),ql,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Ul,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const o=["ck","ck-anchor-form","ck-responsive-form"];e.manualDecorators.length&&o.push("ck-anchor-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:this.children}),pu(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((t,e)=>(t[e.name]=e.isOn,t)),{})}render(){super.render(),gu({view:this});[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new Eh(this.locale,Ih);return e.label=t("Anchor name"),e}_createButton(t,e,n,o){const i=new $d(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const o=new Au(this.locale);o.set({name:n.id,label:n.label,withText:!0}),o.bind("isOn").toMany([n,t],"value",((t,e)=>void 0===e&&void 0===t?n.defaultValue:t)),o.on("execute",(()=>{n.set("value",!o.isOn)})),e.add(o)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const t=new Ud;t.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((t=>({tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(t)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var Xv=n(65),Zv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Xv.a,Zv),Xv.a.locals;class $v extends Ud{constructor(t){super(t);const e=t.t;this.focusTracker=new Ks,this.keystrokes=new Ys,this.unanchorButtonView=this._createButton(e("Unanchor"),'<?xml version="1.0" standalone="no"?>\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"\n "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">\n<svg version="1.0"\n xmlns="http://www.w3.org/2000/svg" width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000" preserveAspectRatio="xMidYMid meet">\n <metadata>\nCreated by potrace 1.16, written by Peter Selinger 2001-2019\n </metadata>\n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none">\n <path d="M4255 5006 c-204 -208 -399 -316 -686 -380 -261 -58 -568 -60 -1104\n-7 -170 17 -404 36 -519 43 -593 32 -1000 -83 -1307 -370 l-72 -68 21 -64 c12\n-36 175 -616 363 -1290 188 -674 343 -1227 344 -1228 2 -2 44 31 94 75 201\n175 418 276 711 330 79 15 149 18 410 17 267 0 354 -4 575 -27 143 -15 318\n-32 390 -37 192 -16 529 -14 666 4 349 47 616 174 843 400 95 95 124 139 132\n198 11 83 7 88 -133 163 -250 133 -497 302 -731 501 -62 53 -115 106 -118 119\n-3 12 17 114 45 226 97 396 173 780 227 1157 19 134 34 268 32 296 -3 51 -3\n51 -38 53 -32 1 -44 -7 -145 -111z"/>\n <path d="M152 4245 c-97 -30 -151 -104 -152 -204 0 -42 126 -506 541 -1990\n297 -1065 548 -1951 556 -1969 26 -54 77 -82 149 -82 159 0 274 80 274 191 0\n35 -1083 3917 -1105 3959 -21 41 -81 87 -131 99 -54 14 -78 13 -132 -4z"/>\n <path d="M3845 1352 c-16 -11 -47 -38 -67 -60 -33 -36 -38 -49 -38 -89 l0 -47\n212 -213 212 -213 -212 -213 -212 -213 0 -47 c0 -42 5 -53 42 -93 51 -55 85\n-74 134 -74 36 0 50 12 251 212 l213 212 213 -212 c201 -200 215 -212 251\n-212 49 0 83 19 134 74 37 40 42 51 42 93 l0 47 -212 213 -212 213 212 213\n212 213 0 47 c0 42 -5 53 -42 93 -51 55 -85 74 -134 74 -36 0 -50 -12 -251\n-212 l-213 -212 -213 212 c-205 204 -214 212 -253 212 -21 0 -52 -8 -69 -18z"/>\n </g>\n</svg>',"unanchor"),this.editButtonView=this._createButton(e("Edit anchor"),Gl,"edit"),this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-anchor-actions","ck-responsive-form"],tabindex:"-1"},children:[this.editButtonView,this.unanchorButtonView]})}render(){super.render();[this.editButtonView,this.unanchorButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const o=new $d(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.delegate("execute").to(this,n),o}}const ty="anchor-ui";class ey extends Zt{static get requires(){return[Uh]}static get pluginName(){return"AnchorUI"}init(){const t=this.editor;t.editing.view.addObserver(Ck),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=t.plugins.get(Uh),this._createToolbarAnchorButton(),this._enableUserBalloonInteractions(),t.conversion.for("editingDowncast").markerToHighlight({model:ty,view:{classes:["ck-fake-anchor-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:ty,view:{name:"span",classes:["ck-fake-anchor-selection","ck-fake-anchor-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const t=this.editor,e=new $v(t.locale),n=t.commands.get("anchor"),o=t.commands.get("unanchor");return e.bind("id").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unanchorButtonView.bind("isEnabled").to(o),this.listenTo(e,"edit",(()=>{this._addFormView()})),this.listenTo(e,"unanchor",(()=>{t.execute("unanchor"),this._hideUI()})),e.keystrokes.set("Esc",((t,e)=>{this._hideUI(),e()})),e.keystrokes.set(zv,((t,e)=>{this._addFormView(),e()})),e}_createFormView(){const t=this.editor,e=t.commands.get("anchor"),n=t.config.get("anchor.defaultProtocol"),o=new Qv(t.locale,e);return o.urlInputView.fieldView.bind("value").to(e,"value"),o.urlInputView.bind("isReadOnly").to(e,"isEnabled",(t=>!t)),o.saveButtonView.bind("isEnabled").to(e),this.listenTo(o,"submit",(()=>{const{value:e}=o.urlInputView.fieldView.element,i=Ov(e,n);t.model.document.selection.anchor.nodeAfter?t.execute("anchor",i,o.getDecoratorSwitchesState(),!1):t.execute("anchor",i,o.getDecoratorSwitchesState(),!0),this._closeFormView()})),this.listenTo(o,"cancel",(()=>{this._closeFormView()})),o.keystrokes.set("Esc",((t,e)=>{this._closeFormView(),e()})),o}_createToolbarAnchorButton(){const t=this.editor,e=t.commands.get("anchor"),n=t.t;t.keystrokes.set(zv,((t,n)=>{n(),e.isEnabled&&this._showUI(!0)})),t.ui.componentFactory.add("anchor",(t=>{const o=new $d(t);return o.isEnabled=!0,o.label=n("Anchor"),o.icon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12.36 6l.08.39.32 1.61H18v6h-3.36l-.08-.39-.32-1.61H7V6h5.36M14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6L14 4z"/></svg>\n',o.keystroke=zv,o.tooltip=!0,o.isToggleable=!0,o.bind("isEnabled").to(e,"isEnabled"),o.bind("isOn").to(e,"value",(t=>!!t)),this.listenTo(o,"execute",(()=>this._showUI(!0))),o}))}_enableUserBalloonInteractions(){const t=this.editor.editing.view.document;this.listenTo(t,"click",(()=>{this._getSelectedAnchorElement()&&this._showUI()})),this.editor.keystrokes.set("Tab",((t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((t,e)=>{this._isUIVisible&&(this._hideUI(),e())})),ku({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const t=this.editor.commands.get("anchor");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=t.value||""}_closeFormView(){const t=this.editor.commands.get("anchor");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this._getSelectedAnchorElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedAnchorElement(),o=r();const i=()=>{const t=this._getSelectedAnchorElement(),e=r();n&&!t||!n&&e!==o?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=t,o=e};function r(){return e.selection.focus.getAncestors().reverse().find((t=>t.is("element")))}this.listenTo(t.ui,"update",i),this.listenTo(this._balloon,"change:visibleView",i)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=this.editor.model,n=t.document;let o=null;if(e.markers.has(ty)){const e=Array.from(this.editor.editing.mapper.markerNameToElements(ty)),n=t.createRange(t.createPositionBefore(e[0]),t.createPositionAfter(e[e.length-1]));o=t.domConverter.viewRangeToDom(n)}else{const e=this._getSelectedAnchorElement(),i=n.selection.getFirstRange();o=e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(i)}return{target:o}}_getSelectedAnchorElement(){const t=this.editor.editing.view,e=t.document.selection;if(e.isCollapsed)return ny(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),o=ny(n.start),i=ny(n.end);return o&&o==i&&t.createRangeIn(o).getTrimmed().isEqual(n)?o:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change((e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(ty))e.updateMarker(ty,{range:n});else if(n.start.isAtEnd){const o=oy(n,t.document.selection.focus,e);e.addMarker(ty,{usingOperation:!1,affectsData:!1,range:o})}else e.addMarker(ty,{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(ty)&&t.change((t=>{t.removeMarker(ty)}))}}function ny(t){return t.getAncestors().find((t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("anchor");var e}))}function oy(t,e,n){const o=[t.start.path[0]+1,0],i=n.createPositionFromPath(t.start.root,o,"toNext"),r=n.createRange(i,t.end);return r.start.path[0]>t.end.path[0]?n.createRange(e):i.isAtStart&&i.isAtEnd?oy(r,e,n):r}const iy=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");class ry extends Zt{static get pluginName(){return"AutoAnchor"}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableShiftEnterHandling()}_enableTypingHandling(){const t=this.editor,e=new eg(t.model,(t=>{if(!function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t))return;const e=sy(t.substr(0,t.length-1));return e?{url:e}:void 0})),n=t.plugins.get("Input");e.on("matched:data",((e,o)=>{const{batch:i,range:r,url:s}=o;if(!n.isInput(i))return;const a=r.end.getShiftedBy(-1),c=a.getShiftedBy(-s.length),l=t.model.createRange(c,a);this._applyAutoAnchor(s,l)})),e.bind("isEnabled").to(this)}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition(),n=e.createRange(e.createPositionAt(t.parent,0),t.getShiftedBy(-1));this._checkAndApplyAutoAnchorOnRange(n)}))}_checkAndApplyAutoAnchorOnRange(t){const e=this.editor.model,{text:n,range:o}=tg(t,e),i=sy(n);if(i){const t=e.createRange(o.end.getShiftedBy(-i.length),o.end);this._applyAutoAnchor(i,t)}}_applyAutoAnchor(t,e){const n=this.editor.model;this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"anchorId")}(e,n)&&n.enqueueChange((n=>{const o=this.editor.config.get("anchor.defaultProtocol"),i=Ov(t,o);n.setAttribute("anchorId",i,e)}))}}function sy(t){const e=iy.exec(t);return e?e[2]:null}var ay='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>';const cy="QMSCK_LINK_PLUGIN_RESP",ly="QMSCK_TOOLTIP_PLUGIN_RESP";function dy(t){window.postMessage({eventName:"QMSCK_LINK_PLUGIN_MSG"+t.ckeditorId,value:t},"*")}function uy(t,e){window.postMessage({eventName:"QMSCK_TOOLTIP_PLUGIN_MSG"+e,value:t},"*")}function hy(t,e){window.postMessage({eventName:"QMSCK_BPMN_PLUGIN_MSG"+e,value:t},"*")}function ky(t,e){window.postMessage({eventName:"QMSCK_FLOWCHART_PLUGIN_MSG"+e,value:t},"*")}const py=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,gy=/^(?:(?:https?|ftps?|mailto?|news?):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,my=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,by=/^((\w+:(\/{2,})?)|(\W))/i,fy="Ctrl+K";function Ay(t){return t.is("attributeElement")&&!!t.getCustomProperty("link")}function Cy(t,{writer:e}){const n=e.createAttributeElement("a",{href:t},{priority:5});return e.setCustomProperty("link",!0,n),n}function wy(t,{writer:e}){const n=e.createAttributeElement("a",{option:t},{priority:5});return e.setCustomProperty("link",!0,n),n}function _y(t){return function(t){return t.replace(py,"").match(gy)}(t=String(t))?t:"#"}function vy(t,e){return!!t&&(t.is("element","image")&&e.checkAttribute("image","linkHref"))}function yy(t,e){const n=(o=t,my.test(o)?"mailto:":e);var o;const i=!!n&&!by.test(t);return t&&i?n+t:t}class xy{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach((t=>this._definitions.add(t))):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",((t,e,n)=>{if(!n.consumable.test(e.item,"attribute:linkHref"))return;const o=n.writer,i=o.document.selection;for(const t of this._definitions){const r=o.createAttributeElement("a",t.attributes,{priority:5});o.setCustomProperty("link",!0,r),t.callback(e.attributeNewValue)?e.item.is("selection")?o.wrap(i.getFirstRange(),r):o.wrap(n.mapper.toViewRange(e.range),r):o.unwrap(n.mapper.toViewRange(e.range),r)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:image",((t,e,n)=>{const o=n.mapper.toViewElement(e.item),i=Array.from(o.getChildren()).find((t=>"a"===t.name));for(const t of this._definitions){const o=yo(t.attributes);if(t.callback(e.attributeNewValue))for(const[t,e]of o)"class"===t?n.writer.addClass(e,i):n.writer.setAttribute(t,e,i);else for(const[t,e]of o)"class"===t?n.writer.removeClass(e,i):n.writer.removeAttribute(t,i)}}))}}}class Ey extends te{constructor(t){super(t),this.manualDecorators=new lo,this.automaticDecorators=new xy}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document,n=Ws(e.selection.getSelectedBlocks());vy(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.selection.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"linkHref"));for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}execute(t){if(!t)return;const e=this.editor.model,n=e.document.selection,o={},i=this.editor.config.get("link.decorators"),r=(i.length,t?t.url:""),s=r.substring(2,r.length),a=r.substring(0,2),c=t.title?t.title:r;for(let e=0;e<i.length-1;e++)o["link"+e]=e===t.targetId;const l=[],d=[];for(const t in o)o[t]?l.push(t):d.push(t);e.change((t=>{if(window.LINK_OPTION=r.substring(0,2),n.isCollapsed){const o=n.getFirstPosition();if(n.hasAttribute("linkHref")){const i=bg(o,"linkHref",n.getAttribute("linkHref"),e),r=yo(n.getAttributes());t.remove(i);const u=i.start;r.set("linkHref",s),r.set("linkOption",a),l.forEach((t=>{r.set(t,!0)}));const h=e.insertContent(t.createText(c,r),u);d.forEach((e=>{t.removeAttribute(e,h)})),t.setSelection(h.end)}else if(""!==s){const i=yo(n.getAttributes());i.set("linkHref",s),i.set("linkOption",a),l.forEach((t=>{i.set(t,!0)}));const{end:r}=e.insertContent(t.createText(c,i),o);t.setSelection(r)}["linkHref","linkOption",...l,...d].forEach((e=>{t.removeSelectionAttribute(e)}))}else{const o=e.schema.getValidRanges(n.getRanges(),"linkHref"),i=[];for(const o of n.getSelectedBlocks())e.schema.checkAttribute(o,"linkHref")&&i.push(t.createRangeOn(o));const r=i.slice();for(const t of o){let e=!0;for(const n of i)if(n.containsRange(t)){e=!1;break}e&&r.push(t)}for(const e of r)t.setAttribute("linkHref",s,e),t.setAttribute("linkOption",a,e),l.forEach((n=>{t.setAttribute(n,!0,e)})),d.forEach((n=>{t.removeAttribute(n,e)}))}}))}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document,o=Ws(n.selection.getSelectedBlocks());return vy(o,e.schema)?o.getAttribute(t):n.selection.getAttribute(t)}}class Iy extends te{refresh(){const t=this.editor.model,e=t.document,n=Ws(e.selection.getSelectedBlocks());vy(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"linkHref")}execute(){const t=this.editor,e=this.editor.model,n=e.document.selection,o=t.commands.get("link");e.change((t=>{const i=n.isCollapsed?[bg(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const e of i)if(t.removeAttribute("linkHref",e),o)for(const n of o.manualDecorators)t.removeAttribute(n.id,e)}))}}class Dy{constructor({id:t,label:e,attributes:n,defaultValue:o}){this.id=t,this.set("value"),this.defaultValue=o,this.label=e,this.attributes=n}}Xt(Dy,qt);var By=n(66),Sy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(By.a,Sy),By.a.locals;const Ty="0",My="1",zy="2",Ny="3",Py={_blank:0,_top:1,_self:2,_parent:3},Ly="0",Oy="1",Ry="2",Fy="3",Vy="4",jy={typeId:0,targetId:0,protocolId:0,url:"",title:"",edit:!1,editorContent:"",ckeditorId:""};function Jy(t){if(!t)return 0;const e=t.substring(0,2).substring(0,1);return e===Ty?0:e===My?1:e===zy?2:e===Ny?3:void 0}function Hy(t){if(!t)return 0;const e=t.substring(0,2).slice(-1);return e===Ly?0:e===Oy?1:e===Ry?2:e===Fy?3:e===Vy?4:void 0}function Uy(t){return t<10?"0"+t:t}function qy(t,e){return t&&t.length>0&&t.charAt(0)==e?t.substring(1):t}function Gy(t,e){let n;return function(...o){n&&clearTimeout(n),n=setTimeout((()=>{t(...o),n=null}),e)}}class Wy extends te{constructor(t){super(t),this.manualDecorators=new lo,this.automaticDecorators=new xy}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document,n=Ws(e.selection.getSelectedBlocks());vy(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.selection.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"linkHref"));for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}execute(){const t=this.editor,e=t.model.document.selection.getFirstRange();let n=jy,o=this._getSelectedLinkElement();if(o){let e=o.getAttribute("url")||o.getAttribute("option");n.typeId=Jy(e),n.targetId=o.getAttribute("target")?Py[o.getAttribute("target")]:0,o._children.length>0?n.title=o._children[0]._textData?o._children[0]._textData.trim():"":n.title="",n.protocolId=Hy(e),n.url=o.getAttribute("href")||"",n.edit=!0,n.ckeditorId=t.id}else{n.typeId=0,n.targetId=0,n.protocolId=0,n.url="",n.title="",n.editorContent="",n.ckeditorId=t.id;for(const t of e.getItems())t.data&&(n.title=t.data)}dy(n),window.LINKED=!1,window.addEventListener(cy,(function(e){if(window.LINKED)return;window.LINKED=!0;const n=e.detail;n&&t.commands.get("link").execute(n)}),{once:!0})}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document,o=Ws(n.selection.getSelectedBlocks());return vy(o,e.schema)?o.getAttribute(t):n.selection.getAttribute(t)}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection;if(e.isCollapsed)return Ky(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),o=Ky(n.start),i=Ky(n.end);return o&&o==i&&t.createRangeIn(o).getTrimmed().isEqual(n)?o:null}}}function Ky(t){return t.getAncestors().find((t=>Ay(t)))}const Yy="automatic",Qy=/^(https?:)?\/\//;class Xy extends Zt{static get pluginName(){return"LinkEditing"}static get requires(){return[ng,Yp,jg]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:["linkHref","linkOption"]}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Cy}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(t,e)=>Cy(_y(t),e)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:t=>t.getAttribute("href")}}),t.conversion.for("dataDowncast").attributeToElement({model:"linkOption",view:wy}),t.conversion.for("editingDowncast").attributeToElement({model:"linkOption",view:(t,e)=>wy(t,e)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{option:!0}},model:{key:"linkOption",value:t=>t.getAttribute("option")}}),t.commands.add("link",new Ey(t)),t.commands.add("linkdialog",new Wy(t)),t.commands.add("unlink",new Iy(t));const e=function(t,e){const n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};return e.forEach((t=>(t.label&&n[t.label]&&(t.label=n[t.label]),t))),e}(t.t,function(t){const e=[];if(t)for(const[n,o]of Object.entries(t)){const t=Object.assign({},o,{id:`link${Dv(n)}`});e.push(t)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter((t=>t.mode===Yy))),this._enableManualDecorators(e.filter((t=>"manual"===t.mode)));t.plugins.get(ng).registerAttribute("linkHref"),Ag(t,"linkHref","a","ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Yy,callback:t=>Qy.test(t),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach((t=>{e.model.schema.extend("$text",{allowAttributes:t.id}),n.add(new Dy(t)),e.conversion.for("downcast").attributeToElement({model:t.id,view:(e,{writer:o})=>{if(e){const e=n.get(t.id).attributes,i=o.createAttributeElement("a",e,{priority:5});return o.setCustomProperty("link",!0,i),i}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(t.id).attributes},model:{key:t.id}})}))}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection;if(e.isCollapsed)return tx(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),o=tx(n.start),i=tx(n.end);return o&&o==i&&t.createRangeIn(o).getTrimmed().isEqual(n)?o:null}}_enableInsertContentSelectionAttributesFixer(){const t=this.editor,e=t.model,n=e.document.selection,o=t.commands.get("link");this.listenTo(e,"insertContent",(()=>{const t=n.anchor.nodeBefore,i=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&t&&t.hasAttribute("linkHref")&&(i&&i.hasAttribute("linkHref")||e.change((t=>{Zy(t,o.manualDecorators)})))}),{priority:"low"})}_enableClickingAfterLink(){const t=this.editor,e=t.commands.get("link");t.editing.view.addObserver(wk);let n=!1;this.listenTo(t.editing.view.document,"mousedown",(()=>{n=!0})),this.listenTo(t.editing.view.document,"selectionChange",(()=>{if(!n)return;n=!1;const o=t.model.document.selection;if(!o.isCollapsed)return;if(!o.hasAttribute("linkHref"))return;const i=o.getFirstPosition(),r=bg(i,"linkHref",o.getAttribute("linkHref"),t.model);(i.isTouching(r.start)||i.isTouching(r.end))&&t.model.change((t=>{Zy(t,e.manualDecorators)}))}))}_enableTypingOverLink(){const t=this.editor,e=t.editing.view;let n,o;this.listenTo(e.document,"delete",(()=>{o=!0}),{priority:"high"}),this.listenTo(t.model,"deleteContent",(()=>{const e=t.model.document.selection;e.isCollapsed||(o?o=!1:$y(t)&&function(t){const e=t.document.selection,n=e.getFirstPosition(),o=e.getLastPosition(),i=n.nodeAfter;if(!i)return!1;if(!i.is("$text"))return!1;if(!i.hasAttribute("linkHref"))return!1;const r=o.textNode||o.nodeBefore;if(i===r)return!0;return bg(n,"linkHref",i.getAttribute("linkHref"),t).containsRange(t.createRange(n,o),!0)}(t.model)&&(n=e.getAttributes()))}),{priority:"high"}),this.listenTo(t.model,"insertContent",((e,[i])=>{o=!1,$y(t)&&n&&(t.model.change((t=>{for(const[e,o]of n)t.setAttribute(e,o,i)})),n=null)}),{priority:"high"})}_handleDeleteContentAfterLink(){const t=this.editor,e=t.model,n=e.document.selection,o=t.editing.view,i=t.commands.get("link");let r=!1,s=!1;this.listenTo(o.document,"delete",((t,e)=>{s=e.domEvent.keyCode===ji.backspace}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{r=!1;const t=n.getFirstPosition(),o=n.getAttribute("linkHref");if(!o)return;const i=bg(t,"linkHref",o,e);r=i.containsPosition(t)||i.end.isEqual(t)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{s&&(s=!1,r||t.model.enqueueChange((t=>{Zy(t,i.manualDecorators)})))}),{priority:"low"})}}function Zy(t,e){t.removeSelectionAttribute("linkHref"),t.removeSelectionAttribute("linkOption");for(const n of e)t.removeSelectionAttribute(n.id)}function $y(t){return t.plugins.get("Input").isInput(t.model.change((t=>t.batch)))}function tx(t){return t.getAncestors().find((t=>Ay(t)))}var ex=n(67),nx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(ex.a,nx),ex.a.locals;class ox extends Ud{constructor(t,e){super(t);const n=t.t;this.focusTracker=new Ks,this.keystrokes=new Ys,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Kl,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Wl,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const o=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:this.children}),pu(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((t,e)=>(t[e.name]=e.isOn,t)),{})}render(){super.render(),gu({view:this});[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new Eh(this.locale,Ih);return e.label=t("Link URL"),e}_createButton(t,e,n,o){const i=new $d(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const o=new Au(this.locale);o.set({name:n.id,label:n.label,withText:!0}),o.bind("isOn").toMany([n,t],"value",((t,e)=>void 0===e&&void 0===t?n.defaultValue:t)),o.on("execute",(()=>{n.set("value",!o.isOn)})),e.add(o)}return e}_createFormChildren(t){const e=this.createCollection();return e.add(this.urlInputView),t.length,e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var ix=n(68),rx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(ix.a,rx),ix.a.locals;class sx extends Ud{constructor(t){super(t);const e=t.t;this.focusTracker=new Ks,this.keystrokes=new Ys,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(e("Edit link"),kd,"edit"),this.set("href"),this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render();[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const o=new $d(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.delegate("execute").to(this,n),o}_createPreviewButton(){const t=new $d(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",(t=>t&&_y(t))),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",(t=>t||n("This link has no URL"))),t}}var ax='\x3c!-- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg> --\x3e\n<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>\n';const cx="link-ui";class lx extends Zt{static get requires(){return[Uh]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(Ck),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=t.plugins.get(Uh),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),t.conversion.for("editingDowncast").markerToHighlight({model:cx,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:cx,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const t=this.editor,e=new sx(t.locale),n=t.commands.get("link"),o=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(o),this.listenTo(e,"edit",(()=>{const e=this.isImageLinked(t.editing.view.document.selection.getSelectedElement(),t.plugins.get("Image"));let n=jy;const o=this.actionsView.href;let i;if(e)i=this._getSelectedLinkElement(),this._showUI();else{i=this._getSelectedLinkElement();let e=i.getAttribute("url")||i.getAttribute("option");n.typeId=Jy(e),n.targetId=i.getAttribute("target")?Py[i.getAttribute("target")]:0,i._children.length>0?n.title=i._children[0]._textData?i._children[0]._textData.trim():"":n.title="",n.protocolId=Hy(e),n.url=o,n.edit=!0,n.ckeditorId=t.id,dy(n),window.LINKED=!1,window.addEventListener(cy,(function(e){if(window.LINKED)return;window.LINKED=!0;const n=e.detail;t.commands.get("link").execute(n)}),{once:!0}),this._hideUI()}})),this.listenTo(e,"unlink",(()=>{t.execute("unlink"),this._hideUI()})),e.keystrokes.set("Esc",((t,e)=>{this._hideUI(),e()})),e.keystrokes.set(fy,((t,e)=>{this._addFormView(),e()})),e}isImageLinked(t,e){return!(!t||!e.isImageWidget(t))&&t.getChild(0).is("element","a")}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),o=new ox(t.locale,e);return o.urlInputView.fieldView.bind("value").to(e,"value"),o.urlInputView.bind("isReadOnly").to(e,"isEnabled",(t=>!t)),o.saveButtonView.bind("isEnabled").to(e),this.listenTo(o,"submit",(()=>{const{value:e}=o.urlInputView.fieldView.element,i={url:"00"+yy(e,n)};t.execute("link",i,o.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(o,"cancel",(()=>{this._closeFormView()})),o.keystrokes.set("Esc",((t,e)=>{this._closeFormView(),e()})),o}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("linkdialog"),n=t.t;t.keystrokes.set(fy,((t,n)=>{n(),e.isEnabled&&this.editor.execute("linkdialog")})),t.ui.componentFactory.add("link",(e=>{const o=new $d(e);o.isEnabled=!0,o.label=n("Link"),o.icon=ax,o.keystroke=fy,o.tooltip=!0,o.isToggleable=!0;const i=t.commands.get("linkdialog");return o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",(t=>!!t)),this.listenTo(o,"execute",(()=>{this.editor.execute("linkdialog")})),o}))}_enableUserBalloonInteractions(){const t=this.editor.editing.view.document;this.listenTo(t,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),this.editor.keystrokes.set("Tab",((t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((t,e)=>{this._isUIVisible&&(this._hideUI(),e())})),ku({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const t=this.editor,e=t.commands.get("link");e.value||(e.value=t.editing.view.document.selection.getSelectedElement()._children[0]._attrs.get("src")),this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=e.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),o=r();const i=()=>{const t=this._getSelectedLinkElement(),e=r();n&&!t||!n&&e!==o?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=t,o=e};function r(){return e.selection.focus.getAncestors().reverse().find((t=>t.is("element")))}this.listenTo(t.ui,"update",i),this.listenTo(this._balloon,"change:visibleView",i)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=this.editor.model,n=t.document;let o=null;if(e.markers.has(cx)){const e=Array.from(this.editor.editing.mapper.markerNameToElements(cx)),n=t.createRange(t.createPositionBefore(e[0]),t.createPositionAfter(e[e.length-1]));o=t.domConverter.viewRangeToDom(n)}else{const e=this._getSelectedLinkElement(),i=n.selection.getFirstRange();o=e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(i)}return{target:o}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection;if(e.isCollapsed)return dx(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),o=dx(n.start),i=dx(n.end);return o&&o==i&&t.createRangeIn(o).getTrimmed().isEqual(n)?o:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change((e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(cx))e.updateMarker(cx,{range:n});else if(n.start.isAtEnd){const o=n.start.getLastMatchingPosition((({item:e})=>!t.schema.isContent(e)),{boundaries:n});e.addMarker(cx,{usingOperation:!1,affectsData:!1,range:e.createRange(o,n.end)})}else e.addMarker(cx,{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(cx)&&t.change((t=>{t.removeMarker(cx)}))}}function dx(t){return t.getAncestors().find((t=>Ay(t)))}const ux=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class hx extends Zt{static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling()}_enableTypingHandling(){const t=this.editor,e=new eg(t.model,(t=>{if(!function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t))return;const e=kx(t.substr(0,t.length-1));return e?{url:e}:void 0})),n=t.plugins.get("Input");e.on("matched:data",((e,o)=>{const{batch:i,range:r,url:s}=o;if(!n.isInput(i))return;const a=r.end.getShiftedBy(-1),c=a.getShiftedBy(-s.length),l=t.model.createRange(c,a);this._applyAutoLink(s,l)})),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition();if(!t.parent.previousSibling)return;const n=e.createRangeIn(t.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(n)}))}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:o}=tg(t,e),i=kx(n);if(i){const t=e.createRange(o.end.getShiftedBy(-i.length),o.end);this._applyAutoLink(i,t)}}_applyAutoLink(t,e){const n=this.editor.model;this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref")}(e,n)&&n.enqueueChange((n=>{const o=this.editor.config.get("link.defaultProtocol"),i=yy(t,o);n.setAttribute("linkHref",i,e)}))}}function kx(t){const e=ux.exec(t);return e?e[2]:null}class px extends Zt{static get requires(){return["ImageEditing",Xy]}static get pluginName(){return"LinkImageEditing"}init(){const t=this.editor;t.model.schema.extend("image",{allowAttributes:["linkHref"]}),t.conversion.for("upcast").add((t=>{t.on("element:a",((t,e,n)=>{const o=e.viewItem,i=fx(o);if(!i)return;const r={attributes:["href"]};if(!n.consumable.consume(o,r))return;const s=o.getAttribute("href");if(!s)return;let a=e.modelCursor.parent;if(!a.is("element","image")){const t=n.convertItem(i,e.modelCursor);e.modelRange=t.modelRange,e.modelCursor=t.modelCursor,a=e.modelCursor.nodeBefore}a&&a.is("element","image")&&n.writer.setAttribute("linkHref",s,a)}),{priority:"high"})})),t.conversion.for("editingDowncast").add(gx({attachIconIndicator:!0})),t.conversion.for("dataDowncast").add(gx({attachIconIndicator:!1})),this._enableAutomaticDecorators(),this._enableManualDecorators()}_enableAutomaticDecorators(){const t=this.editor,e=t.commands.get("link").automaticDecorators;e.length&&t.conversion.for("downcast").add(e.getDispatcherForLinkedImage())}_enableManualDecorators(){const t=this.editor,e=t.commands.get("link"),n=e.manualDecorators;for(const o of e.manualDecorators)t.model.schema.extend("image",{allowAttributes:o.id}),t.conversion.for("downcast").add(mx(n,o)),t.conversion.for("upcast").add(bx(n,o))}}function gx(t){return e=>{e.on("attribute:linkHref:image",((e,n,o)=>{const i=o.mapper.toViewElement(n.item),r=o.writer,s=Array.from(i.getChildren()).find((t=>"a"===t.name));let a;if(t.attachIconIndicator&&(a=r.createUIElement("span",{class:"ck ck-link-image_icon"},(function(t){const e=this.toDomElement(t);return e.innerHTML=ax,e}))),s)if(n.attributeNewValue)r.setAttribute("href",n.attributeNewValue,s);else{const t=Array.from(s.getChildren()).find((t=>"img"===t.name));r.move(r.createRangeOn(t),r.createPositionAt(i,0)),r.remove(s)}else{const t=r.createContainerElement("a",{href:n.attributeNewValue,target:"_blank"});r.insert(r.createPositionAt(i,0),t),r.move(r.createRangeOn(i.getChild(1)),r.createPositionAt(t,0)),a&&r.insert(r.createPositionAt(t,"end"),a)}}))}}function mx(t,e){return n=>{n.on(`attribute:${e.id}:image`,((n,o,i)=>{const r=t.get(e.id).attributes,s=i.mapper.toViewElement(o.item),a=Array.from(s.getChildren()).find((t=>"a"===t.name));if(a)for(const[t,e]of yo(r))i.writer.setAttribute(t,e,a)}))}}function bx(t,e){return n=>{n.on("element:a",((n,o,i)=>{const r=o.viewItem;if(!fx(r))return;const s={attributes:t.get(e.id).attributes},a=new xo(s).match(r);if(!a)return;if(!i.consumable.consume(r,a.match))return;const c=o.modelCursor.nodeBefore||o.modelCursor.parent;i.writer.setAttribute(e.id,!0,c)}),{priority:"high"})}}function fx(t){return Array.from(t.getChildren()).find((t=>"img"===t.name))}class Ax extends Zt{static get requires(){return[Xy,lx,"Image"]}static get pluginName(){return"LinkImageUI"}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",((n,o)=>{Cx(e.selection.getSelectedElement(),t.plugins.get("Image"))&&o.preventDefault()})),this._createToolbarLinkImageButton()}_createToolbarLinkImageButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("linkImage",(n=>{const o=new $d(n),i=t.plugins.get("LinkUI"),r=t.commands.get("link");return o.set({isEnabled:!0,label:e("Link image"),icon:ax,keystroke:fy,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(r,"isEnabled"),o.bind("isOn").to(r,"value",(t=>!!t)),this.listenTo(o,"execute",(()=>{Cx(t.editing.view.document.selection.getSelectedElement(),t.plugins.get("Image"))?i._addActionsView():i._showUI(!0)})),o}))}}function Cx(t,e){return!(!t||!e.isImageWidget(t))&&t.getChild(0).is("element","a")}var wx=n(69),_x={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(wx.a,_x),wx.a.locals;function vx(t,e){return t=>{t.on("attribute:url:media",n)};function n(n,o,i){if(!i.consumable.consume(o.item,n.name))return;const r=o.attributeNewValue,s=i.writer,a=i.mapper.toViewElement(o.item),c=[...a.getChildren()].find((t=>t.getCustomProperty("media-content")));s.remove(c);const l=t.getMediaViewElement(s,r,e);s.insert(s.createPositionAt(a,0),l)}}function yx(t){const e=t.getSelectedElement();return e&&function(t){return!!t.getCustomProperty("media")&&Kg(t)}(e)?e:null}function xx(t,e,n,o){const i=t.createContainerElement("figure",{class:"media"});return t.insert(t.createPositionAt(i,0),e.getMediaViewElement(t,n,o)),i}function Ex(t){const e=t.getSelectedElement();return e&&e.is("element","media")?e:null}function Ix(t,e,n){t.change((o=>{const i=o.createElement("media",{url:e});t.insertContent(i,n),o.setSelection(i,"on")}))}class Dx extends te{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema,o=Ex(e);this.value=o?o.getAttribute("url"):null,this.isEnabled=function(t){const e=t.getSelectedElement();return!!e&&"media"===e.name}(e)||function(t,e){let n=em(t,e).parent;n.isEmpty&&!e.schema.isLimit(n)&&(n=n.parent);return e.schema.checkChild(n,"media")}(e,t)&&!nm(e,n)}execute(t){const e=this.editor.model,n=e.document.selection,o=Ex(n);if(o)e.change((e=>{e.setAttribute("url",t,o)}));else{const o=em(n,e);Ix(e,t,o)}}}class Bx{constructor(t,e){const n=e.providers,o=e.extraProviders||[],i=new Set(e.removeProviders),r=n.concat(o).filter((t=>{const e=t.name;return e?!i.has(e):(Object(l.b)("media-embed-no-provider-name",{provider:t}),!1)}));this.locale=t,this.providerDefinitions=r}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new Sx(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,o=ho(e.url);for(const e of o){const o=this._getUrlMatches(t,e);if(o)return new Sx(this.locale,t,o,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let o=t.replace(/^https?:\/\//,"");return n=o.match(e),n||(o=o.replace(/^www\./,""),n=o.match(e),n||null)}}class Sx{constructor(t,e,n,o){this.url=this._getValidUrl(e),this._t=t.t,this._match=n,this._previewRenderer=o}getViewElement(t,e){const n={};let o;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const i=this._getPreviewHtml(e);o=t.createRawElement("div",n,(function(t){t.innerHTML=i}))}else this.url&&(n.url=this.url),o=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,o),o}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new Qd,e=new Wd;t.text=this._t("Open media in new tab"),e.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',e.viewBox="0 0 64 42";return new Cd({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{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]},t]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var Tx=n(70),Mx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Tx.a,Mx),Tx.a.locals;class zx extends Zt{static get pluginName(){return"MediaEmbedEditing"}constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`},{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:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{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/}]}),this.registry=new Bx(t.locale,t.config.get("mediaEmbed"))}init(){const t=this.editor,e=t.model.schema,n=t.t,o=t.conversion,i=t.config.get("mediaEmbed.previewsInData"),r=t.config.get("mediaEmbed.elementName"),s=this.registry;t.commands.add("mediaEmbed",new Dx(t)),e.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),o.for("dataDowncast").elementToElement({model:"media",view:(t,{writer:e})=>{const n=t.getAttribute("url");return xx(e,s,n,{elementName:r,renderMediaPreview:n&&i})}}),o.for("dataDowncast").add(vx(s,{elementName:r,renderMediaPreview:i})),o.for("editingDowncast").elementToElement({model:"media",view:(t,{writer:e})=>{const o=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),Yg(t,e,{label:n})}(xx(e,s,o,{elementName:r,renderForEditingView:!0}),e,n("media widget"))}}),o.for("editingDowncast").add(vx(s,{elementName:r,renderForEditingView:!0})),o.for("upcast").elementToElement({view:t=>["oembed",r].includes(t.name)&&t.getAttribute("url")?{name:!0}:null,model:(t,{writer:e})=>{const n=t.getAttribute("url");if(s.hasMedia(n))return e.createElement("media",{url:n})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(t,{writer:e})=>{const n=t.getAttribute("data-oembed-url");if(s.hasMedia(n))return e.createElement("media",{url:n})}}).elementToElement({view:{name:"iframe",attributes:{"data-src":!0}},model:(t,{writer:e})=>{const n=t.getAttribute("data-src");if(s.hasMedia(n))return e.createElement("media",{url:n})}})}}const Nx=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class Px extends Zt{static get requires(){return[Sm,Gm]}static get pluginName(){return"AutoMediaEmbed"}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document;this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",(()=>{const t=e.selection.getFirstRange(),n=gl.fromPosition(t.start);n.stickiness="toPrevious";const o=gl.fromPosition(t.end);o.stickiness="toNext",e.once("change:data",(()=>{this._embedMediaBetweenPositions(n,o),n.detach(),o.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(()=>{this._timeoutId&&(Tr.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,o=n.plugins.get(zx).registry,i=new Ma(t,e),r=i.getWalker({ignoreElementEnd:!0});let s="";for(const t of r)t.item.is("$textProxy")&&(s+=t.item.data);if(s=s.trim(),!s.match(Nx))return void i.detach();if(!o.hasMedia(s))return void i.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=gl.fromPosition(t),this._timeoutId=Tr.window.setTimeout((()=>{n.model.change((t=>{let e;this._timeoutId=null,t.remove(i),i.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(e=this._positionToInsert),Ix(n.model,s,e),this._positionToInsert.detach(),this._positionToInsert=null}))}),100)):i.detach()}}var Lx=n(71),Ox={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Lx.a,Ox),Lx.a.locals;class Rx extends Ud{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Ks,this.keystrokes=new Ys,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Kl,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",(t=>!!t)),this.cancelButtonView=this._createButton(n("Cancel"),Wl,"ck-button-cancel","cancel"),this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),pu(this)}render(){super.render(),gu({view:this});[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);const t=t=>t.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",((t,e)=>{e.stopPropagation()}),{priority:"high"})}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Eh(this.locale,Ih),n=e.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."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",(()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()})),e}_createButton(t,e,n,o){const i=new $d(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i}}class Fx extends Zt{static get requires(){return[zx]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed"),n=t.plugins.get(zx).registry;t.ui.componentFactory.add("mediaEmbed",(o=>{const i=sh(o),r=new Rx(function(t,e){return[e=>{if(!e.url.length)return t("The URL must not be empty.")},n=>{if(!e.hasMedia(n.url))return t("This media URL is not supported.")}]}(t.t,n),t.locale);return this._setUpDropdown(i,r,e,t),this._setUpForm(i,r,e),i}))}_setUpDropdown(t,e,n){const o=this.editor,i=o.t,r=t.buttonView;function s(){o.editing.view.focus(),t.isOpen=!1}t.bind("isEnabled").to(n),t.panelView.children.add(e),r.set({label:i("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),r.on("open",(()=>{e.disableCssTransitions(),e.url=n.value||"",e.urlInputView.fieldView.select(),e.focus(),e.enableCssTransitions()}),{priority:"low"}),t.on("submit",(()=>{e.isValid()&&(o.execute("mediaEmbed",e.url),s())})),t.on("change:isOpen",(()=>e.resetFormStatus())),t.on("cancel",(()=>s()))}_setUpForm(t,e,n){e.delegate("submit","cancel").to(t),e.urlInputView.bind("value").to(n,"value"),e.urlInputView.bind("isReadOnly").to(n,"isEnabled",(t=>!t))}}var Vx=n(72),jx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Vx.a,jx),Vx.a.locals;function Jx(t){return!!t&&t.is("element","media")}class Hx extends te{refresh(){const t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Jx(t),t&&t.hasAttribute("width")?this.value={width:t.getAttribute("width"),height:null}:this.value=null}execute(t){const e=this.editor.model,n=e.document.selection.getSelectedElement();this.value={width:t.width,height:null},n&&e.change((e=>{e.setAttribute("width",t.width,n)}))}}class Ux extends Zt{static get pluginName(){return"MediaResizeEditing"}constructor(t){super(t),t.config.define("media",{resizeUnit:"%",resizeOptions:[{name:"resizeMedia:original",value:null,icon:"original"},{name:"resizeMedia:25",value:"25",icon:"small"},{name:"resizeMedia:50",value:"50",icon:"medium"},{name:"resizeMedia:75",value:"75",icon:"large"}]})}init(){const t=this.editor,e=new Hx(t);this._registerSchema(),this._registerConverters(),t.commands.add("resizeMedia",e),t.commands.add("mediaResize",e)}_registerSchema(){this.editor.model.schema.extend("media",{allowAttributes:"width"}),this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0})}_registerConverters(){const t=this.editor;t.conversion.for("downcast").add((t=>t.on("attribute:width:media",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewElement(e.item);null!==e.attributeNewValue?(o.setStyle("width",e.attributeNewValue,i),o.addClass("media_resized",i)):(o.removeStyle("width",i),o.removeClass("media_resized",i))})))),t.conversion.for("upcast").attributeToAttribute({view:{name:"figure",styles:{width:/.+/}},model:{key:"width",value:t=>t.getStyle("width")}})}}class qx extends qr{observe(t){this.listenTo(t,"load",((t,e)=>{const n=e.target;this.checkShouldIgnoreEventFromTarget(n)||"MEDIA"===n.tagName&&this._fireEvents(e)}),{useCapture:!0})}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("mediaLoaded",t))}}class Gx extends Zt{static get requires(){return[Xb]}static get pluginName(){return"MediaResizeHandles"}init(){const t=this.editor.commands.get("resizeMedia");this.bind("isEnabled").to(t),this._setupResizerCreator()}_setupResizerCreator(){const t=this.editor,e=t.editing.view;e.addObserver(qx),this.listenTo(e.document,"mediaLoaded",((n,o)=>{if(!o.target.matches("figure.media.ck-widget > media, figure.media.ck-widget > a > media"))return;const i=t.editing.view.domConverter.domToView(o.target).findAncestor("figure");let r=this.editor.plugins.get(Xb).getResizerByViewElement(i);if(r)return void r.redraw();const s=t.editing.mapper.toModelElement(i);r=t.plugins.get(Xb).attachTo({unit:t.config.get("media.resizeUnit"),modelElement:s,viewElement:i,editor:t,getHandleHost:t=>t.querySelector("media"),getResizeHost:t=>t,isCentered(){const t=s.getAttribute("mediaStyle");return!t||"full"===t||"alignCenter"===t},onCommit(e){t.execute("resizeMedia",{width:e})}}),r.on("updateSize",(()=>{i.hasClass("media_resized")||e.change((t=>{t.addClass("media_resized",i)}))})),r.bind("isEnabled").to(this)}))}}const Wx={small:ud,medium:hd,large:dd,original:ld};class Kx extends Zt{static get requires(){return[Ux]}static get pluginName(){return"MediaResizeButtons"}constructor(t){super(t),this._resizeUnit=t.config.get("media.resizeUnit")}init(){const t=this.editor,e=t.config.get("media.resizeOptions"),n=t.commands.get("resizeMedia");this.bind("isEnabled").to(n);for(const t of e)this._registerMediaResizeButton(t);this._registerMediaResizeDropdown(e)}_registerMediaResizeButton(t){const e=this.editor,{name:n,value:o,icon:i}=t,r=o?o+this._resizeUnit:null;e.ui.componentFactory.add(n,(n=>{const o=new $d(n),s=e.commands.get("resizeMedia"),a=this._getOptionLabelValue(t,!0);if(!Wx[i])throw new l.a("mediaresizebuttons-missing-icon",e,t);return o.set({label:a,icon:Wx[i],tooltip:a,isToggleable:!0}),o.bind("isEnabled").to(this),o.bind("isOn").to(s,"value",Yx(r)),this.listenTo(o,"execute",(()=>{e.execute("resizeMedia",{width:r})})),o}))}_registerMediaResizeDropdown(t){const e=this.editor,n=e.t,o=t.find((t=>!t.value)),i=i=>{const r=e.commands.get("resizeMedia"),s=sh(i,Su),a=s.buttonView;return a.set({tooltip:n("Resize media"),commandValue:o.value,icon:Wx.medium,isToggleable:!0,label:this._getOptionLabelValue(o),withText:!0,class:"ck-resize-media-button"}),a.bind("label").to(r,"value",(t=>t&&t.width?t.width:this._getOptionLabelValue(o))),s.bind("isOn").to(r),s.bind("isEnabled").to(this),ch(s,this._getResizeDropdownListItemDefinitions(t,r)),s.listView.ariaLabel=n("Media resize list"),this.listenTo(s,"execute",(t=>{e.execute(t.source.commandName,{width:t.source.commandValue}),e.editing.view.focus()})),s};e.ui.componentFactory.add("resizeMedia",i),e.ui.componentFactory.add("mediaResize",i)}_getOptionLabelValue(t,e){const n=this.editor.t;return t.label?t.label:e?t.value?n("Resize media to %0",t.value+this._resizeUnit):n("Resize media to the original size"):t.value?t.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(t,e){const n=new lo;return t.map((t=>{const o=t.value?t.value+this._resizeUnit:null,i={type:"button",model:new Sh({commandName:"resizeMedia",commandValue:o,label:this._getOptionLabelValue(t),withText:!0,icon:null})};i.model.bind("isOn").to(e,"value",Yx(o)),n.add(i)})),n}}function Yx(t){return e=>null===t&&e===t||e&&e.width===t}var Qx=n(73),Xx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(Qx.a,Xx),Qx.a.locals;class Zx extends te{constructor(t,e){super(t),this.defaultStyle=!1,this.styles=e.reduce(((t,e)=>(t[e.name]=e,e.isDefault&&(this.defaultStyle=e.name),t)),{})}refresh(){const t=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=Jx(t),t)if(t.hasAttribute("mediaStyle")){const e=t.getAttribute("mediaStyle");this.value=!!this.styles[e]&&e}else this.value=this.defaultStyle;else this.value=!1}execute(t){const e=t.value,n=this.editor.model,o=n.document.selection.getSelectedElement();n.change((t=>{this.styles[e].isDefault?t.removeAttribute("mediaStyle",o):t.setAttribute("mediaStyle",e,o)}))}}function $x(t,e){for(const n of e)if(n.name===t)return n}const tE={full:{name:"full",title:"Full size media",icon:cd,isDefault:!0},side:{name:"side",title:"Side media",icon:ad,className:"media-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned media",icon:rd,className:"media-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered media",icon:sd,className:"media-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned media",icon:ad,className:"media-style-align-right"}},eE={full:cd,left:rd,right:ad,center:sd};function nE(t=[]){return t.map(oE)}function oE(t){if("string"==typeof t){const e=t;tE[e]?t=Object.assign({},tE[e]):(Object(l.b)("image-style-not-found",{name:e}),t={name:e})}else if(tE[t.name]){const e=tE[t.name],n=Object.assign({},t);for(const o in e)Object.prototype.hasOwnProperty.call(t,o)||(n[o]=e[o]);t=n}return"string"==typeof t.icon&&eE[t.icon]&&(t.icon=eE[t.icon]),t}class iE extends Zt{static get pluginName(){return"MediaStyleEditing"}init(){const t=this.editor,e=t.model.schema,n=t.data,o=t.editing;t.config.define("media.styles",["full","side"]);const i=nE(t.config.get("media.styles"));e.extend("media",{allowAttributes:"mediaStyle"});const r=function(t){return(e,n,o)=>{if(!o.consumable.consume(n.item,e.name))return;const i=$x(n.attributeNewValue,t),r=$x(n.attributeOldValue,t),s=o.mapper.toViewElement(n.item),a=o.writer;r&&a.removeClass(r.className,s),i&&a.addClass(i.className,s)}}(i);o.downcastDispatcher.on("attribute:mediaStyle:media",r),n.downcastDispatcher.on("attribute:mediaStyle:media",r),n.upcastDispatcher.on("element:figure",function(t){const e=t.filter((t=>!t.isDefault));return(t,n,o)=>{if(!n.modelRange)return;const i=n.viewItem,r=Ws(n.modelRange.getItems());if(!r||o.schema.checkAttribute(r,"mediaStyle"))for(const t of e)o.consumable.consume(i,{classes:t.className})&&o.writer.setAttribute("mediaStyle",t.name,r)}}(i),{priority:"low"}),t.commands.add("mediaStyle",new Zx(t,i))}}var rE=n(74),sE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(rE.a,sE),rE.a.locals;class aE extends Zt{static get pluginName(){return"MediaStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Full size media":t("Full size media"),"Side media":t("Side media"),"Left aligned media":t("Left aligned media"),"Centered media":t("Centered media"),"Right aligned media":t("Right aligned media")}}init(){const t=function(t,e){for(const n of t)e[n.title]&&(n.title=e[n.title]);return t}(nE(this.editor.config.get("media.styles")),this.localizedDefaultStylesTitles);for(const e of t)this._createButton(e)}_createButton(t){const e=this.editor,n=`mediaStyle:${t.name}`;e.ui.componentFactory.add(n,(n=>{const o=e.commands.get("mediaStyle"),i=new $d(n);return i.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o,"isEnabled"),i.bind("isOn").to(o,"value",(e=>e===t.name)),this.listenTo(i,"execute",(()=>{e.execute("mediaStyle",{value:t.name}),e.editing.view.focus()})),i}))}}class cE extends te{constructor(t){super(t)}execute(){const t=this.editor;var e,n;e=null,n=t.id,window.postMessage({eventName:"QMSCK_LOAD_TEMPLATE_PLUGIN_MSG"+n,value:e},"*"),window.addEventListener("QMSCK_LOAD_TEMPLATE_PLUGIN_RESP",(function(e){if(e.detail&&e.detail.isReplace)t.setData(e.detail.content);else if(e.detail&&e.detail.content&&""!==e.detail.content){let n=e.detail.content;t.model.document.selection.focus.isAtStart||(n="<p>&nbsp;</p>"+e.detail.content),n+="<p>&nbsp;</p>";const o=t.data.processor.toView(n),i=t.data.toModel(o);t.model.insertContent(i)}}),{once:!0})}}class lE extends te{constructor(t){super(t)}execute(){const t=this.editor;var e,n;e=null,n=t.id,window.postMessage({eventName:"QMSCK_TEMPLATE_PLUGIN_MSG"+n,value:e},"*")}}class dE extends qr{observe(t){this.listenTo(t,"load",((t,e)=>{const n=e.target;this.checkShouldIgnoreEventFromTarget(n)||"VIDEO"===n.tagName&&this._fireEvents(e)}),{useCapture:!0})}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("videoLoaded",t))}}function uE(t){return!!t.getCustomProperty("video")&&Kg(t)}function hE(t){const e=t.getSelectedElement();return e&&uE(e)?e:null}function kE(t){return!!t&&t.is("element","video")}function pE(t,e={},n=null){t.change((o=>{const i=o.createElement("video",e),r=n||em(t.document.selection,t);t.insertContent(i,r),i.parent&&o.setSelection(i,"on")}))}function gE(t){const e=t.schema,n=t.document.selection;return function(t,e,n){const o=function(t,e){const n=em(t,e).parent;if(n.isEmpty&&!n.is("element","$root"))return n.parent;return n}(t,n);return e.checkChild(o,"video")}(n,e,t)&&!nm(n,e)&&function(t){return[...t.focus.getAncestors()].every((t=>!t.is("element","video")))}(n)}function mE(t){const e=[];for(const n of t.getChildren())e.push(n),n.is("element")&&e.push(...n.getChildren());return e.find((t=>t.is("element","video")))}function bE(t){return n=>{n.on(`attribute:${t}:video`,e)};function e(t,e,n){if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=mE(n.mapper.toViewElement(e.item));o.setAttribute(e.attributeKey,e.attributeNewValue||"",i)}}class fE extends te{refresh(){this.isEnabled=gE(this.editor.model)}execute(t){const e=this.editor.model;e.change((n=>{const o=Array.isArray(t.source)?t.source:[t.source];for(const t of o)pE(n,e,{src:t})}))}}class AE extends Zt{static get pluginName(){return"VideoEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,o=t.conversion;t.editing.view.addObserver(dE),e.register("video",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["id","src","controls","poster","width","height"]}),o.for("dataDowncast").elementToElement({model:"video",view:(t,{writer:e})=>CE(e)}),o.for("editingDowncast").elementToElement({model:"video",view:(t,{writer:e})=>function(t,e){return e.setCustomProperty("video",!0,t),Yg(t,e,{})}(CE(e),e,n("video widget"))}),o.for("downcast").add(bE("id")),o.for("downcast").add(bE("controls")),o.for("downcast").add(bE("src")),o.for("downcast").add(bE("poster")),o.for("downcast").add(bE("height")),o.for("upcast").elementToElement({view:{name:"video",attributes:{src:!0}},model:(t,{writer:e})=>e.createElement("video",{id:t.getAttribute("id"),src:t.getAttribute("src"),controls:t.getAttribute("controls"),poster:t.getAttribute("poster")||"",width:null!==t.getAttribute("width")&&void 0!==t.getAttribute("width")?t.getAttribute("width"):"",height:null!==t.getAttribute("height")&&void 0!==t.getAttribute("height")?t.getAttribute("height"):""})}).add(function(){return e=>{e.on("element:figure",t)};function t(t,e,n){if(!n.consumable.test(e.viewItem,{name:!0,classes:"video"}))return;const o=mE(e.viewItem);if(!o||!o.hasAttribute("src")||!n.consumable.test(o,{name:!0}))return;const i=Ws(n.convertItem(o,e.modelCursor).modelRange.getItems());i&&(n.convertChildren(e.viewItem,i),n.updateConversionResult(i,e))}}());const i=new fE(t);t.commands.add("insertImage",i),t.commands.add("videoInsert",i)}}function CE(t){const e=t.createEmptyElement("video"),n=t.createContainerElement("figure",{class:"video"});return t.insert(t.createPositionAt(n,0),e),n}var wE=n(75),_E={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(wE.a,_E),wE.a.locals;class vE extends te{refresh(){const t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=kE(t),t&&t.hasAttribute("width")?this.value={width:t.getAttribute("width"),height:null}:this.value=null}execute(t){const e=this.editor.model,n=e.document.selection.getSelectedElement();this.value={width:t.width,height:null},n&&e.change((e=>{e.setAttribute("width",t.width,n),e.setAttribute("height","",n)}))}}class yE extends Zt{static get pluginName(){return"VideoResizeEditing"}constructor(t){super(t),t.config.define("video",{resizeUnit:"%",resizeOptions:[{name:"resizeVideo:original",value:null,icon:"original"},{name:"resizeVideo:25",value:"25",icon:"small"},{name:"resizeVideo:50",value:"50",icon:"medium"},{name:"resizeVideo:75",value:"75",icon:"large"}]})}init(){const t=this.editor,e=new vE(t);this._registerSchema(),this._registerConverters(),t.commands.add("resizeVideo",e),t.commands.add("videoResize",e)}_registerSchema(){this.editor.model.schema.extend("video",{allowAttributes:"width"}),this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0})}_registerConverters(){const t=this.editor;t.conversion.for("downcast").add((t=>t.on("attribute:width:video",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewElement(e.item);if(null!==e.attributeNewValue&&void 0!==e.attributeNewValue)if(e.attributeNewValue.toString().indexOf("%")>=0)o.setStyle("width",e.attributeNewValue,i),o.addClass("video_resized",i);else{o.removeStyle("width",i),o.removeClass("video_resized",i);const t=mE(i);o.setAttribute(e.attributeKey,e.attributeNewValue||"",t)}else o.removeStyle("width",i),o.removeClass("video_resized",i)})))),t.conversion.for("upcast").attributeToAttribute({view:{name:"figure",styles:{width:/.+/}},model:{key:"width",value:t=>t.getStyle("width")}})}}class xE extends Zt{static get requires(){return[Xb]}static get pluginName(){return"VideoResizeHandles"}init(){const t=this.editor.commands.get("resizeVideo");this.bind("isEnabled").to(t),this._setupResizerCreator()}_setupResizerCreator(){const t=this.editor,e=t.editing.view;e.addObserver(dE),this.listenTo(e.document,"videoLoaded",((n,o)=>{if(!o.target.matches("figure.video.ck-widget > video, figure.video.ck-widget > a > video"))return;const i=t.editing.view.domConverter.domToView(o.target).findAncestor("figure");let r=this.editor.plugins.get(Xb).getResizerByViewElement(i);if(r)return void r.redraw();const s=t.editing.mapper.toModelElement(i);r=t.plugins.get(Xb).attachTo({unit:t.config.get("video.resizeUnit"),modelElement:s,viewElement:i,editor:t,getHandleHost:t=>t.querySelector("video"),getResizeHost:t=>t,isCentered(){const t=s.getAttribute("videoStyle");return!t||"full"===t||"alignCenter"===t},onCommit(e){t.execute("resizeVideo",{width:e})}}),r.on("updateSize",(()=>{i.hasClass("video_resized")||e.change((t=>{t.addClass("video_resized",i)}))})),r.bind("isEnabled").to(this)}))}}const EE={small:ud,medium:hd,large:dd,original:ld};class IE extends Zt{static get requires(){return[yE]}static get pluginName(){return"VideoResizeButtons"}constructor(t){super(t),this._resizeUnit=t.config.get("video.resizeUnit")}init(){const t=this.editor,e=t.config.get("video.resizeOptions"),n=t.commands.get("resizeVideo");this.bind("isEnabled").to(n);for(const t of e)this._registerVideoResizeButton(t);this._registerVideoResizeDropdown(e)}_registerVideoResizeButton(t){const e=this.editor,{name:n,value:o,icon:i}=t,r=o?o+this._resizeUnit:null;e.ui.componentFactory.add(n,(n=>{const o=new $d(n),s=e.commands.get("resizeVideo"),a=this._getOptionLabelValue(t,!0);if(!EE[i])throw new l.a("videoresizebuttons-missing-icon",e,t);return o.set({label:a,icon:EE[i],tooltip:a,isToggleable:!0}),o.bind("isEnabled").to(this),o.bind("isOn").to(s,"value",DE(r)),this.listenTo(o,"execute",(()=>{e.execute("resizeVideo",{width:r})})),o}))}_registerVideoResizeDropdown(t){const e=this.editor,n=e.t,o=t.find((t=>!t.value)),i=i=>{const r=e.commands.get("resizeVideo"),s=sh(i,Su),a=s.buttonView;return a.set({tooltip:n("Resize video"),commandValue:o.value,icon:EE.medium,isToggleable:!0,label:this._getOptionLabelValue(o),withText:!0,class:"ck-resize-video-button"}),a.bind("label").to(r,"value",(t=>t&&t.width?t.width:this._getOptionLabelValue(o))),s.bind("isOn").to(r),s.bind("isEnabled").to(this),ch(s,this._getResizeDropdownListItemDefinitions(t,r)),s.listView.ariaLabel=n("Video resize list"),this.listenTo(s,"execute",(t=>{e.execute(t.source.commandName,{width:t.source.commandValue}),e.editing.view.focus()})),s};e.ui.componentFactory.add("resizeVideo",i),e.ui.componentFactory.add("videoResize",i)}_getOptionLabelValue(t,e){const n=this.editor.t;return t.label?t.label:e?t.value?n("Resize video to %0",t.value+this._resizeUnit):n("Resize video to the original size"):t.value?t.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(t,e){const n=new lo;return t.map((t=>{const o=t.value?t.value+this._resizeUnit:null,i={type:"button",model:new Sh({commandName:"resizeVideo",commandValue:o,label:this._getOptionLabelValue(t),withText:!0,icon:null})};i.model.bind("isOn").to(e,"value",DE(o)),n.add(i)})),n}}function DE(t){return e=>null===t&&e===t||e&&e.width===t}var BE=n(76),SE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(BE.a,SE),BE.a.locals;class TE extends te{constructor(t,e){super(t),this.defaultStyle=!1,this.styles=e.reduce(((t,e)=>(t[e.name]=e,e.isDefault&&(this.defaultStyle=e.name),t)),{})}refresh(){const t=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=kE(t),t)if(t.hasAttribute("videoStyle")){const e=t.getAttribute("videoStyle");this.value=!!this.styles[e]&&e}else this.value=this.defaultStyle;else this.value=!1}execute(t){const e=t.value,n=this.editor.model,o=n.document.selection.getSelectedElement();n.change((t=>{this.styles[e].isDefault?t.removeAttribute("videoStyle",o):t.setAttribute("videoStyle",e,o)}))}}function ME(t,e){for(const n of e)if(n.name===t)return n}const zE={full:{name:"full",title:"Full size video",icon:cd,isDefault:!0},side:{name:"side",title:"Side video",icon:ad,className:"video-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned video",icon:rd,className:"video-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered video",icon:sd,className:"video-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned video",icon:ad,className:"video-style-align-right"}},NE={full:cd,left:rd,right:ad,center:sd};function PE(t=[]){return t.map(LE)}function LE(t){if("string"==typeof t){const e=t;zE[e]?t=Object.assign({},zE[e]):(Object(l.b)("image-style-not-found",{name:e}),t={name:e})}else if(zE[t.name]){const e=zE[t.name],n=Object.assign({},t);for(const o in e)Object.prototype.hasOwnProperty.call(t,o)||(n[o]=e[o]);t=n}return"string"==typeof t.icon&&NE[t.icon]&&(t.icon=NE[t.icon]),t}class OE extends Zt{static get pluginName(){return"VideoStyleEditing"}init(){const t=this.editor,e=t.model.schema,n=t.data,o=t.editing;t.config.define("video.styles",["full","side"]);const i=PE(t.config.get("video.styles"));e.extend("video",{allowAttributes:"videoStyle"});const r=function(t){return(e,n,o)=>{if(!o.consumable.consume(n.item,e.name))return;const i=ME(n.attributeNewValue,t),r=ME(n.attributeOldValue,t),s=o.mapper.toViewElement(n.item),a=o.writer;r&&a.removeClass(r.className,s),i&&a.addClass(i.className,s)}}(i);o.downcastDispatcher.on("attribute:videoStyle:video",r),n.downcastDispatcher.on("attribute:videoStyle:video",r),n.upcastDispatcher.on("element:figure",function(t){const e=t.filter((t=>!t.isDefault));return(t,n,o)=>{if(!n.modelRange)return;const i=n.viewItem,r=Ws(n.modelRange.getItems());if(!r||o.schema.checkAttribute(r,"videoStyle"))for(const t of e)o.consumable.consume(i,{classes:t.className})&&o.writer.setAttribute("videoStyle",t.name,r)}}(i),{priority:"low"}),t.commands.add("videoStyle",new TE(t,i))}}var RE=n(77),FE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(RE.a,FE),RE.a.locals;class VE extends Zt{static get pluginName(){return"VideoStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Full size video":t("Full size video"),"Side video":t("Side video"),"Left aligned video":t("Left aligned video"),"Centered video":t("Centered video"),"Right aligned video":t("Right aligned video")}}init(){const t=function(t,e){for(const n of t)e[n.title]&&(n.title=e[n.title]);return t}(PE(this.editor.config.get("video.styles")),this.localizedDefaultStylesTitles);for(const e of t)this._createButton(e)}_createButton(t){const e=this.editor,n=`videoStyle:${t.name}`;e.ui.componentFactory.add(n,(n=>{const o=e.commands.get("videoStyle"),i=new $d(n);return i.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o,"isEnabled"),i.bind("isOn").to(o,"value",(e=>e===t.name)),this.listenTo(i,"execute",(()=>{e.execute("videoStyle",{value:t.name}),e.editing.view.focus()})),i}))}}class jE extends Zt{init(){const t=this.editor,e=t.t,n=n=>{const o=t.commands.get("browseVideoDialog"),i=t.config.get("video.upload.allowMultipleFiles"),r=t.config.get("video.upload.types"),s=new $d(n);return s.bind("isEnabled").to(o),s.set({label:e("Browse Video"),icon:'<?xml version="1.0" ?><svg id="Layer_1" style="enable-background:new 0 0 32 30;" version="1.1" viewBox="0 0 32 30" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M25.7,10V6.4c0-1.4-1.1-2.5-2.5-2.5H2.5C1.1,3.9,0,5,0,6.4v14.3c0,1.4,1.1,2.5,2.5,2.5h10c0-0.3-0.1-0.7-0.1-1s0-0.6,0-1 h-10c-0.3,0-0.5-0.2-0.5-0.5V6.4C2,6.1,2.2,5.9,2.5,5.9h20.7c0.3,0,0.5,0.2,0.5,0.5v4.8v4.7v0.8c1,1.3,1.8,2.8,2,4.5l0,0v-4.1 l6.3,3.7V6.3L25.7,10z M30,17.2l-4.3-2.5v-2.4L30,9.8V17.2z"/><path d="M20.1,21.1l2,0l0,2l-2,0l0,2l-2,0l0-2l-2,0l0-2l2,0l0-2l2,0L20.1,21.1z M18.9,16.3c-3.3,0-5.9,2.7-5.8,6 c0,3.3,2.7,5.9,6,5.8c3.3,0,5.9-2.7,5.8-6C24.9,18.9,22.2,16.2,18.9,16.3z M19,26.1c-2.2,0-3.9-1.6-4-3.8c0-2.2,1.7-3.9,3.9-4 c2.2,0,3.9,1.8,3.9,3.8C22.9,24.4,21.3,26,19,26.1z"/></svg>\n',tooltip:!0}),s.on("execute",(()=>{t.execute("browseVideoDialog",{allowMultipleFiles:i,videoTypes:r})})),s};t.ui.componentFactory.add("uploadVideo",n),t.ui.componentFactory.add("videoUpload",n)}}class JE extends te{refresh(){const t=this.editor.model.document.selection.getSelectedElement(),e=t&&"video"===t.name||!1;this.isEnabled=gE(this.editor.model)||e}execute(t){const e=this.editor.model;for(const n of ho(t.urls))pE(e,{id:t.id||"",src:n,controls:!0,poster:t.thumbnailUrl||"",width:t.width,height:t.height})}}class HE extends te{refresh(){const t=this.editor.model.document.selection.getSelectedElement(),e=t&&"video"===t.name||!1;this.isEnabled=gE(this.editor.model)||e}execute(t){const e=this.editor,n=e.model.document.selection.getSelectedElement();var o,i;n&&(t.src=n.getAttribute("src"),t.src&&(t.selectedId=n.getAttribute("src").split("id=")[1].split(/&(.*)/s)[0]),t.poster=n.getAttribute("poster"),t.width=n.getAttribute("width"),t.height=n.getAttribute("height"),t.id=n.getAttribute("id")),o={...t},i=e.id,window.postMessage({eventName:"QMSCK_BROWSE_VIDEO_MSG"+i,value:o},"*"),window.QMSCK_BROWSE_VIDEO_IS_PROCESSING=!1,window.addEventListener("QMSCK_BROWSE_VIDEO_RESP",(t=>{!window.QMSCK_BROWSE_VIDEO_IS_PROCESSING&&t.detail&&(n?e.model.change((e=>{if(t.detail.urls.length)for(const o of ho(t.detail.urls))e.setAttribute("src",o,n);t.detail.id&&e.setAttribute("id",t.detail.id,n),e.setAttribute("poster",t.detail.thumbnailUrl||"",n),t.detail.width&&e.setAttribute("width",t.detail.width,n),t.detail.height&&e.setAttribute("height",t.detail.height,n)})):(window.QMSCK_BROWSE_VIDEO_IS_PROCESSING=!0,e.commands.get("uploadVideo").execute(t.detail)))}),{once:!0})}}function UE(t){return new Promise(((e,n)=>{const o=t.getAttribute("src");fetch(o).then((t=>t.blob())).then((t=>{const n=qE(t,o),i=n.replace("video/",""),r=new File([t],`video.${i}`,{type:n});e(r)})).catch((t=>t&&"TypeError"===t.name?function(t){return function(t){return new Promise(((e,n)=>{const o=Tr.document.createElement("video");o.addEventListener("load",(()=>{const t=Tr.document.createElement("canvas");t.width=o.width,t.height=o.height;t.getContext("2d").drawImage(o,0,0),t.toBlob((t=>t?e(t):n()))})),o.addEventListener("error",(()=>n())),o.src=t}))}(t).then((e=>{const n=qE(e,t),o=n.replace("video/","");return new File([e],`video.${o}`,{type:n})}))}(o).then(e).catch(n):n(t)))}))}function qE(t,e){return t.type?t.type:e.match(/data:(video\/\w+);base64/)?e.match(/data:(video\/\w+);base64/)[1].toLowerCase():"video/mp4"}function GE(t,e){return Array.from(t.model.createRangeOn(e)).filter((t=>t.item.is("element","video"))).map((t=>t.item))}const WE=["mp4","webm","ogg"];class KE extends Zt{static get requires(){return[bd,Bh,jg]}constructor(t){super(t),t.config.define("video.upload",{types:WE,allowMultipleFiles:!0})}init(){const t=this.editor,e=t.model.document,n=t.model.schema,o=t.conversion,i=t.plugins.get(bd),r=function(t){const e=t.map((t=>t.replace("+","\\+")));return new RegExp(`^video\\/(${e.join("|")})$`)}(t.config.get("video.upload.types"));n.extend("video",{allowAttributes:["uploadId","uploadStatus"]});const s=new JE(t);t.commands.add("uploadVideo",s),t.commands.add("videoUpload",s);const a=new HE(t);t.commands.add("browseVideoDialog",a),o.for("upcast").attributeToAttribute({view:{name:"video",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,n)=>{if(o=n.dataTransfer,Array.from(o.types).includes("text/html")&&""!==o.getData("text/html"))return;var o;const i=Array.from(n.dataTransfer.files).filter((t=>!!t&&r.test(t.type)));i.length&&(e.stop(),t.model.change((e=>{n.targetRanges&&e.setSelection(n.targetRanges.map((e=>t.editing.mapper.toModelRange(e)))),t.model.enqueueChange("default",(()=>{t.execute("uploadVideo",{file:i})}))})))})),this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",((e,n)=>{const o=Array.from(t.editing.view.createRangeIn(n.content)).filter((t=>{return!(!(e=t.item).is("element","video")||!e.getAttribute("src"))&&(e.getAttribute("src").match(/^data:video\/\w+;base64,/g)||e.getAttribute("src").match(/^blob:/g))&&!t.item.getAttribute("uploadProcessed");var e})).map((t=>({promise:UE(t.item),videoElement:t.item})));if(!o.length)return;const r=new _k(t.editing.view.document);for(const t of o){r.setAttribute("uploadProcessed",!0,t.videoElement);const e=i.createLoader(t.promise);e&&(r.setAttribute("src","",t.videoElement),r.setAttribute("uploadId",e.id,t.videoElement))}})),t.editing.view.document.on("dragover",((t,e)=>{e.preventDefault()})),e.on("change",(()=>{const n=e.differ.getChanges({includeChangesInGraveyard:!0});for(const e of n)if("insert"===e.type&&"$text"!==e.name){const n=e.position.nodeAfter,o="$graveyard"===e.position.root.rootName;for(const e of GE(t,n)){const t=e.getAttribute("uploadId");if(!t)continue;const n=i.loaders.get(t);n&&(o?n.abort():"idle"===n.status&&this._readAndUpload(n,e))}}})),this.on("uploadComplete",((t,{videoElement:e,data:n})=>{const o=n.urls?n.urls:n;this.editor.model.change((t=>{t.setAttribute("src",o.default,e),this._parseAndSetSrcsetAttributeOnVideo(o,e,t)}))}),{priority:"low"})}_readAndUpload(t,e){const n=this.editor,o=n.model,i=n.locale.t,r=n.plugins.get(bd),s=n.plugins.get(Bh);return o.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","reading",e)})),t.read().then((()=>{const i=t.upload();if(Ri.isSafari){const t=mE(n.editing.mapper.toViewElement(e));n.editing.view.once("render",(()=>{if(!t.parent)return;const e=n.editing.view.domConverter.mapViewToDom(t.parent);if(!e)return;const o=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=o}))}return o.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","uploading",e)})),i})).then((t=>{o.enqueueChange("transparent",(n=>{n.setAttribute("uploadStatus","complete",e),this.fire("uploadComplete",{data:t,videoElement:e})})),a()})).catch((n=>{if("error"!==t.status&&"aborted"!==t.status)throw n;"error"===t.status&&n&&s.showWarning(n,{title:i("Upload failed"),namespace:"upload"}),a(),o.enqueueChange("transparent",(t=>{t.remove(e)}))}));function a(){o.enqueueChange("transparent",(t=>{t.removeAttribute("uploadId",e),t.removeAttribute("uploadStatus",e)})),r.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnVideo(t,e,n){let o=0;const i=Object.keys(t).filter((t=>{const e=parseInt(t,10);if(!isNaN(e))return o=Math.max(o,e),!0})).map((e=>`${t[e]} ${e}w`)).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:o},e)}}var YE=n(78),QE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0},XE=(jd()(YE.a,QE),YE.a.locals,n(79)),ZE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0},$E=(jd()(XE.a,ZE),XE.a.locals,n(80)),tI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()($E.a,tI),$E.a.locals;class eI extends Zt{static get pluginName(){return"VideoUploadProgress"}constructor(t){super(t),this.placeholder="data:video/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>')}init(){this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:video",((...t)=>this.uploadStatusChange(...t)))}uploadStatusChange(t,e,n){const o=this.editor,i=e.item,r=i.getAttribute("uploadId");if(!n.consumable.consume(e.item,t.name))return;const s=o.plugins.get(bd),a=r?e.attributeNewValue:null,c=this.placeholder,l=o.editing.mapper.toViewElement(i),d=n.writer;if("reading"===a)return nI(l,d),void oI(c,l,d);if("uploading"===a){const t=s.loaders.get(r);return nI(l,d),void(t?(iI(l,d),function(t,e,n,o){const i=function(t){const e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e}(e);e.insert(e.createPositionAt(t,"end"),i),n.on("change:uploadedPercent",((t,e,n)=>{o.change((t=>{t.setStyle("width",n+"%",i)}))}))}(l,d,t,o.editing.view),function(t,e,n){if(n.data){const o=mE(t);e.setAttribute("src",n.data,o)}}(l,d,t)):oI(c,l,d))}"complete"===a&&s.loaders.get(r)&&function(t,e,n){const o=e.createUIElement("div",{class:"ck-video-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),o),setTimeout((()=>{n.change((t=>t.remove(t.createRangeOn(o))))}),3e3)}(l,d,o.editing.view),function(t,e){sI(t,e,"progressBar")}(l,d),iI(l,d),function(t,e){e.removeClass("ck-appear",t)}(l,d)}}function nI(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function oI(t,e,n){e.hasClass("ck-video-upload-placeholder")||n.addClass("ck-video-upload-placeholder",e);const o=mE(e);o.getAttribute("src")!==t&&n.setAttribute("src",t,o),rI(e,"placeholder")||n.insert(n.createPositionAfter(o),function(t){const e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(n))}function iI(t,e){t.hasClass("ck-video-upload-placeholder")&&e.removeClass("ck-video-upload-placeholder",t),sI(t,e,"placeholder")}function rI(t,e){for(const n of t.getChildren())if(n.getCustomProperty(e))return n}function sI(t,e,n){const o=rI(t,n);o&&e.remove(e.createRangeOn(o))}const aI="removeFormat";class cI extends Zt{static get pluginName(){return"RemoveFormatUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(aI,(n=>{const o=t.commands.get(aI),i=new $d(n);return i.set({label:e("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>',tooltip:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(aI),t.editing.view.focus()})),i}))}}class lI extends te{refresh(){const t=this.editor.model;this.isEnabled=!!Ws(this._getFormattingItems(t.document.selection,t.schema))}execute(){const t=this.editor.model,e=t.schema;t.change((n=>{for(const o of this._getFormattingItems(t.document.selection,e))if(o.is("selection"))for(const t of this._getFormattingAttributes(o,e))n.removeSelectionAttribute(t);else{const t=n.createRangeOn(o);for(const i of this._getFormattingAttributes(o,e))n.removeAttribute(i,t)}}))}*_getFormattingItems(t,e){const n=t=>!!Ws(this._getFormattingAttributes(t,e));for(const o of t.getRanges())for(const t of o.getItems())!e.isBlock(t)&&n(t)&&(yield t);for(const e of t.getSelectedBlocks())n(e)&&(yield e);n(t)&&(yield t)}*_getFormattingAttributes(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);t&&t.isFormatting&&(yield n)}}}class dI extends Zt{static get pluginName(){return"RemoveFormatEditing"}init(){const t=this.editor;t.commands.add("removeFormat",new lI(t))}}const uI="superscript";class hI extends Zt{static get pluginName(){return"SuperscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:uI}),t.model.schema.setAttributeProperties(uI,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:uI,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(uI,new pp(t,uI))}}const kI="superscript";class pI extends Zt{static get pluginName(){return"SuperscriptUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(kI,(n=>{const o=t.commands.get(kI),i=new $d(n);return i.set({label:e("Superscript"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.677 8.678h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309zM7.03 10.349l3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82z"/></svg>',tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(kI),t.editing.view.focus()})),i}))}}const gI="subscript";class mI extends Zt{static get pluginName(){return"SubscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:gI}),t.model.schema.setAttributeProperties(gI,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:gI,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(gI,new pp(t,gI))}}const bI="subscript";class fI extends Zt{static get pluginName(){return"SubscriptUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(bI,(n=>{const o=t.commands.get(bI),i=new $d(n);return i.set({label:e("Subscript"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.03 10.349 3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82zm8.147 7.829h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309z"/></svg>',tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(bI),t.editing.view.focus()})),i}))}}class AI extends te{execute(t){const e=this.editor,n=e.model;n.change((o=>{const i=yo(e.model.document.selection.getAttributes()),r=o.createText(function(t,e){if(!e)return t.toLocaleDateString()+" "+t.toLocaleTimeString();var n=t.getDate(),o=t.getMonth(),i=t.getFullYear(),r=t.getHours(),s=t.getMinutes(),a=t.getSeconds(),c=t.getMilliseconds(),l=r%12,d=Uy(l),u=Uy(r),h=Uy(s),k=Uy(a),p=r<12?"AM":"PM",g=Uy(n),m=o+1,b=Uy(m),f=i+"",A=f.substr(2,2);return e.replace("hh",d).replace("h",l).replace("HH",u).replace("H",r).replace("mm",h).replace("m",s).replace("ss",k).replace("s",a).replace("S",c).replace("dd",g).replace("d",n).replace("yyyy",f).replace("yy",A).replace("MM",b).replace("M",m).replace("aaa",p)}(new Date,t.datetimeformat),i);n.insertContent(r,e.model.document.selection)}))}}class CI extends Ch{constructor(t,e){super(t);const n=t.t;this.set("class","ck-special-characters-navigation"),this.groupDropdownView=this._createGroupDropdown(e),this.groupDropdownView.panelPosition="rtl"===t.uiLanguageDirection?"se":"sw",this.label=n("Special characters"),this.children.add(this.groupDropdownView)}get currentGroupName(){return this.groupDropdownView.value}_createGroupDropdown(t){const e=this.locale,n=e.t,o=sh(e),i=this._getCharacterGroupListItemDefinitions(o,t);return o.set("value",i.first.model.label),o.buttonView.bind("label").to(o,"value"),o.buttonView.set({isOn:!1,withText:!0,tooltip:n("Character categories"),class:["ck-dropdown__button_label-width_auto"]}),o.on("execute",(t=>{o.value=t.source.label})),o.delegate("execute").to(this),ch(o,i),o}_getCharacterGroupListItemDefinitions(t,e){const n=new lo;for(const o of e){const e={type:"button",model:new Sh({label:o,withText:!0})};e.model.bind("isOn").to(t,"value",(t=>t===e.model.label)),n.add(e)}return n}}var wI=n(81),_I={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(wI.a,_I),wI.a.locals;class vI extends Ud{constructor(t){super(t),this.tiles=this.createCollection(),this.setTemplate({tag:"div",children:[{tag:"div",attributes:{class:["ck","ck-character-grid__tiles"]},children:this.tiles}],attributes:{class:["ck","ck-character-grid"]}})}createTile(t,e){const n=new $d(this.locale);return n.set({label:t,withText:!0,class:"ck-character-grid__tile"}),n.extendTemplate({attributes:{title:e},on:{mouseover:n.bindTemplate.to("mouseover")}}),n.on("mouseover",(()=>{this.fire("tileHover",{name:e,character:t})})),n.on("execute",(()=>{this.fire("execute",{name:e,character:t})})),n}}var yI=n(82),xI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(yI.a,xI),yI.a.locals;class EI extends Ud{constructor(t){super(t);const e=this.bindTemplate;this.set("character",null),this.set("name",null),this.bind("code").to(this,"character",II),this.setTemplate({tag:"div",children:[{tag:"span",attributes:{class:["ck-character-info__name"]},children:[{text:e.to("name",(t=>t||"​"))}]},{tag:"span",attributes:{class:["ck-character-info__code"]},children:[{text:e.to("code")}]}],attributes:{class:["ck","ck-character-info"]}})}}function II(t){if(null===t)return"";return"U+"+("0000"+t.codePointAt(0).toString(16)).slice(-4)}var DI=n(83),BI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(DI.a,BI),DI.a.locals;const SI="All";var TI=n(84),MI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(TI.a,MI),TI.a.locals;class zI extends Ud{constructor(t){super(t);const e=this.bindTemplate;this.set("class"),this.set("isEnabled",!0),this.set("isVisible",!0),this.set("isChecked",!1),this.set("label"),this.set("id",null),this.set("tabindex",-1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.checkboxInputView=this._createCheckboxInputView(),this.setTemplate({tag:"div",attributes:{class:[e.to("class"),e.if("isEnabled","ck-disabled",(t=>!t)),e.if("isVisible","ck-hidden",(t=>!t))],tabindex:e.to("tabindex")},on:{keydown:e.to((t=>{t.target===this.element&&t.keyCode==Hi("space")&&(this.isChecked=!this.isChecked)}))},children:this.children})}render(){super.render(),this.children.add(this.checkboxInputView),this.children.add(this.labelView)}focus(){this.element.focus()}_createCheckboxInputView(){const t=new Ud,e=this.bindTemplate;return t.setTemplate({tag:"input",attributes:{type:"checkbox",id:e.to("id"),checked:e.if("isChecked"),disabled:e.if("isEnabled",!0,(t=>!t)),"aria-disabled":e.if("isEnabled",!0,(t=>!t))},on:{change:e.to((t=>{this.isChecked=t.target.checked}))}}),t}_createLabelView(){const t=new Ud;return t.setTemplate({tag:"label",attributes:{for:this.bindTemplate.to("id")},children:[{text:this.bindTemplate.to("label")}]}),t}}class NI extends Ud{constructor(t){super(t);const e=t.t;this.set("isSearching"),this.set("searchText",""),this.set("replaceText",""),this.set("matchCount",null),this.set("highlightOffset",null),this.set("isCounterHidden",!0),this.findInputView=this._createInputField(e("Find in text…")),this.findButtonView=this._createButton(e("Find"),"ck-button-find"),this.findButtonView.on("execute",(()=>{this.fire("findNext",{searchText:this.searchText,matchCase:this.matchCaseView.isChecked,wholeWords:this.matchWholeWordsView.isChecked})})),this.findPrevButtonView=this._createButton(e("Previous result"),"ck-button-prev",Bu,!1),this.findPrevButtonView.on("execute",(()=>{this.fire("findPrevious")})),this.findNextButtonView=this._createButton(e("Next result"),"ck-button-next",Bu,!1),this.findNextButtonView.on("execute",(()=>{this.fire("findNext")})),this.replaceButtonView=this._createButton(e("Replace"),"ck-button-replace"),this.replaceButtonView.on("execute",(()=>{this.fire("replace",{searchText:this.searchText,replaceText:this.replaceText})})),this.replaceAllButtonView=this._createButton(e("Replace all"),"ck-button-replaceall"),this.replaceAllButtonView.on("execute",(()=>{this.fire("replaceAll",{searchText:this.searchText,replaceText:this.replaceText})})),this.matchCaseView=this._createCheckbox(e("Match case")),this.matchWholeWordsView=this._createCheckbox(e("Whole words only")),this.replaceInputView=this._createInputField(e("Replace with…")),this.findView=this._createFindView(),this.replaceView=this._createReplaceView(),this.focusTracker=new Ks,this.keystrokes=new Ys,this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.bind("searchText").to(this.findInputView.fieldView,"value"),this.findButtonView.bind("isEnabled").to(this.findInputView.fieldView,"isEmpty",(t=>!t)),this.bind("replaceText").to(this.replaceInputView.fieldView,"value"),this.replaceButtonView.bind("isEnabled").to(this,"isSearching"),this.replaceAllButtonView.bind("isEnabled").to(this,"isSearching"),this.bind("isCounterHidden").to(this,"matchCount",this,"highlightOffset",((t,e)=>null===t||0===t||null===e||0===e)),this.setTemplate({tag:"form",attributes:{class:["ck","ck-find-and-replace-form"]},children:[this.findView,this.replaceView]})}render(){super.render(),gu({view:this});[this.findInputView,this.matchCaseView,this.matchWholeWordsView,this.findButtonView,this.findPrevButtonView,this.findNextButtonView,this.replaceInputView,this.replaceAllButtonView,this.replaceButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);const t=t=>t.stopPropagation(),e=t=>{t.stopPropagation(),t.preventDefault()};this.keystrokes.set("f3",(t=>{e(t),this.findNextButtonView.fire("execute")})),this.keystrokes.set("shift+f3",(t=>{e(t),this.findPrevButtonView.fire("execute")})),this.keystrokes.set("enter",(t=>{const n=t.target;n.classList.contains("ck-input-text")&&(n.parentElement.parentElement.parentElement.classList.contains("ck-find-form__wrapper")&&this.findButtonView.isEnabled?(this.findButtonView.fire("execute"),e(t)):n.parentElement.parentElement.parentElement.classList.contains("ck-replace-form__wrapper")&&this.replaceButtonView.isEnabled&&(this.replaceButtonView.fire("execute"),e(t)))})),this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.findInputView.element,"selectstart",((t,e)=>{e.stopPropagation()}),{priority:"high"}),this.listenTo(this.replaceInputView.element,"selectstart",((t,e)=>{e.stopPropagation()}),{priority:"high"})}focus(){this._focusCycler.focusFirst()}_createFindView(){const t=new Ud,e=this.bindTemplate,n=this.locale.t;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-find-form__wrapper","ck-responsive-form",e.if("isSearching","ck-is-searching")],tabindex:"-1"},children:[this.findInputView,{tag:"span",attributes:{class:["ck-results-counter",e.if("isCounterHidden","ck-hidden")]},children:[{text:e.to("highlightOffset")},n(" of "),{text:e.to("matchCount")}]},{tag:"div",attributes:{class:["ck-find-checkboxes"]},children:[this.matchCaseView,this.matchWholeWordsView]},{tag:"div",attributes:{class:["ck-find-buttons"]},children:[this.findButtonView,this.findPrevButtonView,this.findNextButtonView]}]}),t}_createReplaceView(){const t=new Ud,e=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-replace-form__wrapper","ck-responsive-form",e.if("isSearching","ck-is-searching")],tabindex:"-1"},children:[this.replaceInputView,{tag:"div",attributes:{class:["ck-replace-buttons"]},children:[this.replaceAllButtonView,this.replaceButtonView]}]}),t}_createInputField(t){const e=new Eh(this.locale,Ih),n=e.fieldView;return n.on("input",(()=>{n.value=n.element.value})),e.label=t,e.render(),e}_createButton(t,e,n,o=!0){const i=new $d(this.locale);return i.set({label:t,icon:n,withText:o}),i.extendTemplate({attributes:{class:e}}),i}_createCheckbox(t){const e=new zI(this.locale);return e.set({isVisible:!0,tooltip:!0,class:"ck-find-checkboxes__box",id:s(),label:t}),e}}class PI extends Zt{static get pluginName(){return"FindAndReplaceUI"}constructor(t){super(t),this.set("searchText"),this.set("replaceText"),this.set("isSearching",!1),this.set("matchCount",null),this.set("highlightOffset",null),this.bind("isSearching").to(this,"matchCount",(t=>t>0)),this.formView=null}init(){this.findAndReplacePlugin=this.editor.plugins.get("FindAndReplace");const t=this.editor;t.ui.componentFactory.add("findAndReplace",(e=>{const n=sh(e,zu),o=new NI(t.locale);if(o.delegate("findNext").to(this),o.delegate("findPrevious").to(this),o.delegate("replace").to(this),o.delegate("replaceAll").to(this),o.bind("matchCount").to(this),o.bind("highlightOffset").to(this),o.bind("isSearching").to(this),this._createToolbarDropdown(n,'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.87 13.786 1.532-1.286 3.857 4.596a1 1 0 1 1-1.532 1.286l-3.857-4.596z"/><path d="M16.004 8.5a6.5 6.5 0 0 1-9.216 5.905c-1.154-.53-.863-1.415-.663-1.615.194-.194.564-.592 1.635-.141a4.5 4.5 0 0 0 5.89-5.904l-.104-.227 1.332-1.331c.045-.046.196-.041.224.007a6.47 6.47 0 0 1 .902 3.306zm-3.4-5.715c.562.305.742 1.106.354 1.494-.388.388-.995.414-1.476.178a4.5 4.5 0 0 0-6.086 5.882l.114.236-1.348 1.349c-.038.037-.17.022-.198-.023a6.5 6.5 0 0 1 5.54-9.9 6.469 6.469 0 0 1 3.1.784z"/><path d="M4.001 11.93.948 8.877a.2.2 0 0 1 .141-.341h6.106a.2.2 0 0 1 .141.341L4.283 11.93a.2.2 0 0 1-.282 0zm11.083-6.789 3.053 3.053a.2.2 0 0 1-.14.342H11.89a.2.2 0 0 1-.14-.342l3.052-3.053a.2.2 0 0 1 .282 0z"/></svg>',o),n.panelView.children.add(o),n.on("change:isOpen",((t,e,n)=>{n||this.fire("dropdown:closed")})),this.formView=o,this._state){this.unbind("isSearching");const t=o.findInputView.fieldView;this.bind("isSearching").to(this,"matchCount",t,"value",this._state,"searchText",o.matchCaseView,"isChecked",this._state,"matchCase",o.matchWholeWordsView,"isChecked",this._state,"matchWholeWords",((t,e,n,o,i,r,s)=>t>0&&e==n&&o==i&&r==s))}return t.keystrokes.set("Ctrl+F",((t,e)=>{n.buttonView.actionView.fire("execute"),e()})),n}))}_setState(t){this._state=t,this.listenTo(t.results,"change",(()=>{this.set("matchCount",t.results.length)})),this.bind("highlightOffset").to(t,"highlightedResult",(e=>{if(!e)return null;const n=Array.from(t.results).sort(((t,e)=>({before:-1,same:0,after:1}[t.marker.getStart().compareWith(e.marker.getStart())]))).indexOf(e);return-1===n?null:n+1}))}_createToolbarDropdown(t,e,n){const o=this.editor.locale.t,i=t.buttonView;i.set({icon:e,tooltip:o("Find and replace")}),i.actionView.delegate("execute").to(i.arrowView),i.on("open",(()=>{n.findInputView.fieldView.select(),n.focus()}),{priority:"low"})}}function LI(t,e,n,o){const i=o||new lo;return[...t].forEach((({type:t,item:o})=>{if("elementStart"===t&&e.schema.checkChild(o,"$text")){const t=n({item:o,text:OI(e.createRangeIn(o))});if(!t)return;t.forEach((t=>{e.change((e=>{const n=`findResult:${s()}`,r=e.addMarker(n,{usingOperation:!1,affectsData:!1,range:e.createRange(e.createPositionAt(o,t.start),e.createPositionAt(o,t.end))}),a=function(t,e){const n=t.find((({marker:t})=>e.getStart().isBefore(t.getStart())));return n?t.getIndex(n):t.length}(i,r);i.add({id:n,label:t.label,marker:r},a)}))}))}})),i}function OI(t){return Array.from(t.getItems()).reduce(((t,e)=>e.is("text")||e.is("textProxy")?t+e.data:`${t}\n`),"")}function RI(t){return t.indices?{label:t[1],start:t.indices[1][0],end:t.indices[1][1]}:{label:t[1],start:t.index,end:t.index+t[1].length}}function FI(t,e){let n="gu";e.matchCase||(n+="i");let o=`(${lg(t)})`;if(e.wholeWords){n+="d";const t="[^a-zA-ZÀ-ɏḀ-ỿ]";o=`(?:^|${t}|_)`+o+`(?:_|${t}|$)`}const i=new RegExp(o,n);return function({text:t}){return[...t.matchAll(i)].map(RI)}}class VI extends te{constructor(t,e){super(t),this.isEnabled=!0,this.state=e,this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n&&this.clearForceDisabled("readOnlyMode")}))}execute(t,{matchCase:e,wholeWords:n}={}){const{editor:o}=this,{model:i}=o;let r;"string"==typeof t?(r=FI(t,{matchCase:e,wholeWords:n}),this.state.searchText=t):r=t;const s={results:LI(i.createRangeIn(i.document.getRoot()),i,r),findCallback:r};return this.state.clear(i),this.state.results.addMany(Array.from(s.results)),this.state.highlightedResult=s.results.get(0),"string"==typeof t&&(this.state.searchText=t),this.state.matchCase=!!e,this.state.matchWholeWords=!!n,s}}class jI extends te{constructor(t,e){super(t),this.isEnabled=!0,this._state=e}execute(t,e){const{model:n}=this.editor;n.change((o=>{const i=e.marker.getRange();let r={};for(const t of i.getItems())if(t.is("$text")||t.is("$textProxy")){r=t.getAttributes();break}n.insertContent(o.createText(t,r),i),this._state.results.has(e)&&this._state.results.remove(e)}))}}class JI extends jI{execute(t,e){const{editor:n}=this,{model:o}=n,i=o.createRangeIn(o.document.getRoot()),r=e instanceof lo?e:LI(i,o,FI(e,this._state));r.length&&this.editor.model.change((()=>{[...r].forEach((e=>{super.execute(t,e)}))}))}}class HI extends te{constructor(t,e){super(t),this._state=e,this.isEnabled=!1,this.listenTo(this._state.results,"change",(()=>{this.isEnabled=this._state.results.length>1})),this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n&&this.clearForceDisabled("readOnlyMode")}))}refresh(){this.isEnabled=this._state.results.length>1}execute(){const t=this._state.results,e=t.getIndex(this._state.highlightedResult),n=e+1>=t.length?0:e+1;this._state.highlightedResult=this._state.results.get(n)}}class UI extends HI{execute(){const t=this._state.results.getIndex(this._state.highlightedResult),e=t-1<0?this._state.results.length-1:t-1;this._state.highlightedResult=this._state.results.get(e)}}var qI=n(85),GI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(qI.a,GI),qI.a.locals;class WI{constructor(t){this.set("results",new lo),this.set("highlightedResult",null),this.set("searchText",""),this.set("replaceText",""),this.set("matchCase",!1),this.set("matchWholeWords",!1),this.results.on("change",((e,{removed:n,index:o})=>{if((n=Array.from(n)).length){let e=!1;if(t.change((o=>{for(const i of n)this.highlightedResult===i&&(e=!0),t.markers.has(i.marker.name)&&o.removeMarker(i.marker)})),e){const t=o>=this.results.length?0:o;this.highlightedResult=this.results.get(t)}}}))}clear(t){this.searchText="",t.change((e=>{if(this.highlightedResult){const n=this.highlightedResult.marker.name.split(":")[1],o=t.markers.get(`findResultHighlighted:${n}`);o&&e.removeMarker(o)}[...this.results].forEach((({marker:t})=>{e.removeMarker(t)}))})),this.results.clear()}}Xt(WI,qt);class KI extends Zt{static get pluginName(){return"FindAndReplaceEditing"}init(){this.activeResults=null,this.state=new WI(this.editor.model),this._defineConverters(),this._defineCommands(),this.listenTo(this.state,"change:highlightedResult",((t,e,n,o)=>{const{model:i}=this.editor;i.change((t=>{if(o){const e=o.marker.name.split(":")[1],n=i.markers.get(`findResultHighlighted:${e}`);n&&t.removeMarker(n)}if(n){const e=n.marker.name.split(":")[1];t.addMarker(`findResultHighlighted:${e}`,{usingOperation:!1,affectsData:!1,range:n.marker.getRange()})}}))}));const t=Bs(function(t,e,n){if(n){const t=this.editor.editing.view.domConverter,e=this.editor.editing.mapper.toViewRange(n.marker.getRange());Xs({target:t.viewRangeToDom(e),viewportOffset:40})}}.bind(this),32);this.listenTo(this.state,"change:highlightedResult",t,{priority:"low"}),this.listenTo(this.editor,"destroy",t.cancel)}find(t){const{editor:e}=this,{model:n}=e,{findCallback:o,results:i}=e.execute("find",t);return this.activeResults=i,this.listenTo(n.document,"change:data",(()=>function(t,e,n){const o=new Set,i=new Set;e.document.differ.getChanges().forEach((t=>{"$text"===t.name||e.schema.isInline(t.position.nodeAfter)?(o.add(t.position.parent),[...e.markers.getMarkersAtPosition(t.position)].forEach((t=>{i.add(t.name)}))):"insert"===t.type&&o.add(t.position.nodeAfter)})),e.document.differ.getChangedMarkers().forEach((({name:t,data:{newRange:e}})=>{e&&"$graveyard"===e.start.root.rootName&&i.add(t)})),o.forEach((t=>{[...e.markers.getMarkersIntersectingRange(e.createRangeIn(t))].forEach((t=>i.add(t.name)))})),e.change((e=>{i.forEach((n=>{t.has(n)&&t.remove(n),e.removeMarker(n)}))})),o.forEach((o=>{LI(e.createRangeOn(o),e,n,t)}))}(this.activeResults,n,o))),this.activeResults}stop(){this.activeResults&&(this.stopListening(this.editor.model.document),this.state.clear(this.editor.model),this.activeResults=null)}_defineCommands(){this.editor.commands.add("find",new VI(this.editor,this.state)),this.editor.commands.add("findNext",new HI(this.editor,this.state)),this.editor.commands.add("findPrevious",new UI(this.editor,this.state)),this.editor.commands.add("replace",new jI(this.editor,this.state)),this.editor.commands.add("replaceAll",new JI(this.editor,this.state))}_defineConverters(){const{editor:t}=this;t.conversion.for("editingDowncast").markerToHighlight({model:"findResult",view:({markerName:t})=>{const[,e]=t.split(":");return{name:"span",classes:["ck-find-result"],attributes:{"data-find-result":e}}}}),t.conversion.for("editingDowncast").markerToHighlight({model:"findResultHighlighted",view:({markerName:t})=>{const[,e]=t.split(":");return{name:"span",classes:["ck-find-result_selected"],attributes:{"data-find-result":e}}}})}}const YI="tooltip",QI="qmstooltip",XI="data-qmstooltip",ZI="title",$I="source-info",tD="tooltipdialog",eD="tooltip",nD="removetooltip";function oD(t,e){return!!t&&(t.is("element","image")&&e.checkAttribute("image",QI))}class iD extends te{refresh(){const t=this.editor.model,e=t.document,n=Ws(e.selection.getSelectedBlocks());oD(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,QI):this.isEnabled=t.schema.checkAttributeInSelection(e.selection,QI)}execute(t){const e=this.editor.model,n=e.document.selection;e.change((o=>{if(n.isCollapsed){const i=n.getFirstPosition();if(n.hasAttribute(QI)){const r=bg(i,QI,n.getAttribute(QI),e),s=yo(n.getAttributes());s.set(QI,t.content);const{end:a}=e.insertContent(o.createText(t.text,s),r);o.setSelection(a)}else if(""!==t.text){const r=yo(n.getAttributes());r.set(QI,t.content);const{end:s}=e.insertContent(o.createText(t.text,r),i);o.setSelection(s)}}else{const i=yo(n.getAttributes());i.set(QI,t.content);const{end:r}=e.insertContent(o.createText(t.text,i),n);o.setSelection(r)}[QI].forEach((t=>{o.removeSelectionAttribute(t)})),console.log("this.editor.getData()"+(new Date).toISOString()),console.log(this.editor.getData())}))}}class rD extends te{refresh(){const t=this.editor.model,e=t.document,n=Ws(e.selection.getSelectedBlocks());oD(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,QI):this.isEnabled=t.schema.checkAttributeInSelection(e.selection,QI)}execute(){const t=this.editor.model,e=t.document.selection;t.change((n=>{const o=e.isCollapsed?[bg(e.getFirstPosition(),QI,e.getAttribute(QI),t)]:t.schema.getValidRanges(e.getRanges(),QI);for(const t of o)n.removeAttribute(QI,t)}))}}class sD extends te{refresh(){const t=this.editor.model,e=t.document,n=Ws(e.selection.getSelectedBlocks());oD(n,t.schema)?(this.value=n.getAttribute(QI),this.isEnabled=t.schema.checkAttribute(n,QI)):(this.value=e.selection.getAttribute(QI),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,QI))}execute(){const t=this.editor,e=t.model,n=e.document.selection,o={text:"",content:""};if(n.isCollapsed){if(n.hasAttribute(QI)){const t=bg(n.getFirstPosition(),QI,n.getAttribute(QI),e);for(const e of t.getItems())if((e.is("text")||e.is("textProxy"))&&e.hasAttribute(QI)){o.text=e.data,o.content=e.getAttribute(QI);break}}}else{const t=n.getFirstRange();if(t)for(const e of t.getItems())e.data&&(o.text=o.text+e.data)}uy(o,t.id),window.QMSCK_TOOLTIP_IS_PROCESSING=!1,window.addEventListener(ly,(function(e){if(window.QMSCK_TOOLTIP_IS_PROCESSING)return;const n=e.detail;t.commands.get(eD).execute(n),window.QMSCK_TOOLTIP_IS_PROCESSING=!0}),{once:!0})}}var aD=n(86),cD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(aD.a,cD),aD.a.locals;class lD extends Zt{static get pluginName(){return"TooltipEditing"}static get requires(){return[ng,Yp,jg]}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:QI}),t.conversion.for("downcast").attributeToElement({model:QI,view:(t,{writer:e})=>{const n={class:"qms-tooltip source-info"};n[XI]=t,n.title=t;const o=e.createAttributeElement("span",n,{priority:5});return e.setCustomProperty(YI,!0,o),o}}),t.conversion.for("upcast").elementToElement({view:{classes:$I},model:(t,{writer:e})=>{const n={class:"qms-tooltip source-info"};return n[XI]=t.getAttribute(ZI),n.title=t.getAttribute(ZI),e.createElement("abbr",n)}}).elementToAttribute({view:{classes:$I},model:{key:QI,value:t=>t.getAttribute(XI)?t.getAttribute(XI):t.getAttribute(ZI)}}),t.commands.add(eD,new iD(t)),t.commands.add(nD,new rD(t)),t.commands.add(tD,new sD(t));t.plugins.get(ng).registerAttribute(QI),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(t,"insertContent",(()=>{const n=e.anchor.nodeBefore,o=e.anchor.nodeAfter;e.hasAttribute(QI)&&n&&n.hasAttribute(QI)&&(o&&o.hasAttribute(QI)||t.change((t=>{dD(t)})))}),{priority:"low"})}_enableClickingAfterLink(){const t=this.editor;t.editing.view.addObserver(wk);let e=!1;this.listenTo(t.editing.view.document,"mousedown",(()=>{e=!0})),this.listenTo(t.editing.view.document,"selectionChange",(()=>{if(!e)return;e=!1;const n=t.model.document.selection;if(!n.isCollapsed)return;if(!n.hasAttribute(QI))return;const o=n.getFirstPosition(),i=bg(o,QI,n.getAttribute(QI),t.model);(o.isTouching(i.start)||o.isTouching(i.end))&&t.model.change((t=>{dD(t)}))}))}_enableTypingOverLink(){const t=this.editor,e=t.editing.view;let n,o;this.listenTo(e.document,"delete",(()=>{o=!0}),{priority:"high"}),this.listenTo(t.model,"deleteContent",(()=>{const e=t.model.document.selection;e.isCollapsed||(o?o=!1:uD(t)&&function(t){const e=t.document.selection,n=e.getFirstPosition(),o=e.getLastPosition(),i=n.nodeAfter;if(!i)return!1;if(!i.is("$text"))return!1;if(!i.hasAttribute(QI))return!1;const r=o.textNode||o.nodeBefore;if(i===r)return!0;return bg(n,QI,i.getAttribute(QI),t).containsRange(t.createRange(n,o),!0)}(t.model)&&(n=e.getAttributes()))}),{priority:"high"}),this.listenTo(t.model,"insertContent",((e,[i])=>{o=!1,uD(t)&&n&&(t.model.change((t=>{for(const[e,o]of n)t.setAttribute(e,o,i)})),n=null)}),{priority:"high"})}_handleDeleteContentAfterLink(){const t=this.editor,e=t.model,n=e.document.selection,o=t.editing.view;let i=!1,r=!1;this.listenTo(o.document,"delete",((t,e)=>{r=e.domEvent.keyCode===ji.backspace}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{i=!1;const t=n.getFirstPosition(),o=n.getAttribute(QI);if(!o)return;const r=bg(t,QI,o,e);i=r.containsPosition(t)||r.end.isEqual(t)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{r&&(r=!1)}),{priority:"low"})}}function dD(t){t.removeSelectionAttribute(QI)}function uD(t){return t.plugins.get("Input").isInput(t.model.change((t=>t.batch)))}class hD extends Ud{constructor(t){super(t);const e=t.t;this.focusTracker=new Ks,this.keystrokes=new Ys,this.removeButtonView=this._createButton(e("Remove tooltip"),Yl,"remove"),this.editButtonView=this._createButton(e("Edit tooltip"),kd,"edit"),this._focusables=new Ad,this._focusCycler=new yu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.editButtonView,this.removeButtonView]})}render(){super.render();[this.editButtonView,this.removeButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const o=new $d(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.delegate("execute").to(this,n),o}}const kD="tooltip-ui";class pD extends Zt{static get requires(){return[Uh]}static get pluginName(){return"TooltipUI"}init(){const t=this.editor;t.editing.view.addObserver(Ck),this.actionsView=this._createActionsView(),this._balloon=t.plugins.get(Uh),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),t.conversion.for("editingDowncast").markerToHighlight({model:kD,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:kD,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy()}_createActionsView(){const t=this.editor,e=new hD(t.locale),n=t.commands.get(tD),o=t.commands.get(nD);return e.editButtonView.bind("isEnabled").to(n),e.removeButtonView.bind("isEnabled").to(o),this.listenTo(e,"edit",(()=>{const e={text:"",content:""},n=this._getSelectedTooltipElement();n&&(e.content=n.getAttribute(XI)||"",n.childCount>0&&(e.text=n.getChild(0).data)),uy(e,t.id),window.QMSCK_TOOLTIP_IS_PROCESSING=!1,window.addEventListener(ly,(e=>{if(window.QMSCK_TOOLTIP_IS_PROCESSING)return;window.QMSCK_TOOLTIP_IS_PROCESSING=!0;const n=e.detail;t.commands.get(eD).execute(n)}),{once:!0}),this._hideUI()})),this.listenTo(e,"remove",(()=>{t.execute(nD),this._hideUI()})),e.keystrokes.set("Esc",((t,e)=>{this._hideUI(),e()})),e}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get(tD),n=t.t;t.ui.componentFactory.add("tooltip",(o=>{const i=new $d(o);return i.isEnabled=!0,i.label=n("Tooltip"),i.icon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><rect fill="none" height="24" width="24"/><path d="M22,5.18L10.59,16.6l-4.24-4.24l1.41-1.41l2.83,2.83l10-10L22,5.18z M12,20c-4.41,0-8-3.59-8-8s3.59-8,8-8 c1.57,0,3.04,0.46,4.28,1.25l1.45-1.45C16.1,2.67,14.13,2,12,2C6.48,2,2,6.48,2,12s4.48,10,10,10c1.73,0,3.36-0.44,4.78-1.22 l-1.5-1.5C14.28,19.74,13.17,20,12,20z M19,15h-3v2h3v3h2v-3h3v-2h-3v-3h-2V15z"/></svg>',i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(e,"isEnabled"),i.bind("isOn").to(e,"value",(t=>!!t)),i.on("execute",(()=>{t.execute(tD)})),i}))}_enableUserBalloonInteractions(){const t=this.editor.editing.view.document;this.listenTo(t,"click",(()=>{this._getSelectedTooltipElement()&&this._showUI()})),this.editor.keystrokes.set("Tab",((t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((t,e)=>{this._isUIVisible&&(this._hideUI(),e())})),ku({emitter:this.actionsView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_showUI(t=!1){this._getSelectedTooltipElement()?(this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main")),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedTooltipElement(),o=r();const i=()=>{const t=this._getSelectedTooltipElement(),e=r();n&&!t||!n&&e!==o?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=t,o=e};function r(){return e.selection.focus.getAncestors().reverse().find((t=>t.is("element")))}this.listenTo(t.ui,"update",i),this.listenTo(this._balloon,"change:visibleView",i)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=this.editor.model,n=t.document;let o=null;if(e.markers.has(kD)){const e=Array.from(this.editor.editing.mapper.markerNameToElements(kD)),n=t.createRange(t.createPositionBefore(e[0]),t.createPositionAfter(e[e.length-1]));o=t.domConverter.viewRangeToDom(n)}else{const e=this._getSelectedTooltipElement(),i=n.selection.getFirstRange();o=e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(i)}return{target:o}}_getSelectedTooltipElement(){const t=this.editor.editing.view,e=t.document.selection;if(e.isCollapsed)return gD(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),o=gD(n.start),i=gD(n.end);return o&&o==i&&t.createRangeIn(o).getTrimmed().isEqual(n)?o:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change((e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(kD))e.updateMarker(kD,{range:n});else if(n.start.isAtEnd){const o=n.start.getLastMatchingPosition((({item:e})=>!t.schema.isContent(e)),{boundaries:n});e.addMarker(kD,{usingOperation:!1,affectsData:!1,range:e.createRange(o,n.end)})}else e.addMarker(kD,{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(kD)&&t.change((t=>{t.removeMarker(kD)}))}}function gD(t){return t.getAncestors().find((t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty(YI);var e}))}class mD extends te{refresh(){this.isEnabled=function(t){const e=t.schema,n=t.document.selection;return function(t,e,n){const o=function(t,e){const n=em(t,e).parent;if(n.isEmpty&&!n.is("element","$root"))return n.parent;return n}(t,n);return e.checkChild(o,"pageBreak")}(n,e,t)&&!nm(n,e)}(this.editor.model)}execute(){const t=this.editor.model;t.change((e=>{const n=e.createElement("pageBreak");t.insertContent(n);let o=n.nextSibling;!(o&&t.schema.checkChild(o,"$text"))&&t.schema.checkChild(n.parent,"paragraph")&&(o=e.createElement("paragraph"),t.insertContent(o,e.createPositionAfter(n))),o&&e.setSelection(o,0)}))}}var bD=n(87),fD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(bD.a,fD),bD.a.locals;class AD extends Zt{static get pluginName(){return"PageBreakEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,o=t.conversion;e.register("pageBreak",{isObject:!0,allowWhere:"$block"}),o.for("dataDowncast").elementToElement({model:"pageBreak",view:(t,{writer:e})=>{const n=e.createContainerElement("div",{class:"page-break",style:"page-break-after: always"}),o=e.createContainerElement("span",{style:"display: none"});return e.insert(e.createPositionAt(n,0),o),n}}),o.for("editingDowncast").elementToElement({model:"pageBreak",view:(t,{writer:e})=>{const o=n("Page break"),i=e.createContainerElement("div"),r=e.createRawElement("span",{class:"page-break__label"},(function(t){t.innerText=n("Page break")}));return e.addClass("page-break",i),e.insert(e.createPositionAt(i,0),r),function(t,e,n){return e.setCustomProperty("pageBreak",!0,t),Yg(t,e,{label:n})}(i,e,o)}}),o.for("upcast").elementToElement({view:t=>{const e="always"==t.getStyle("page-break-before"),n="always"==t.getStyle("page-break-after");if(e||n){if(1==t.childCount){const e=t.getChild(0);if(!e.is("element","span")||"none"!=e.getStyle("display"))return}else if(t.childCount>1)return;return{name:!0}}},model:"pageBreak",converterPriority:"high"}),t.commands.add("pageBreak",new mD(t))}}class CD extends Zt{static get pluginName(){return"PageBreakUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("pageBreak",(n=>{const o=t.commands.get("pageBreak"),i=new $d(n);return i.set({label:e("Page break"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.598.687h1.5v5h-1.5zm14.5 0h1.5v5h-1.5z"/><path d="M19.598 4.187v1.5h-16v-1.5zm-16 14.569h1.5v-5h-1.5zm14.5 0h1.5v-5h-1.5z"/><path d="M19.598 15.256v-1.5h-16v1.5zM5.081 9h6v2h-6zm8 0h6v2h-6zm-9.483 1L0 12.5v-5z"/></svg>',tooltip:!0}),i.bind("isEnabled").to(o,"isEnabled"),this.listenTo(i,"execute",(()=>{t.execute("pageBreak"),t.editing.view.focus()})),i}))}}class wD extends Zt{static get requires(){return[AD,CD,Am]}static get pluginName(){return"PageBreak"}}const _D="coords",vD="href",yD="shape",xD="name",ED="target",ID="usemap",DD="alt",BD="width",SD="height",TD="src",MD="id",zD="savedsrc",ND="map",PD="img",LD="area",OD="mapareas",RD="mapname",FD="mapwidth",VD="mapheight",jD="imageusemap",JD="imagesavedsrc",HD="src",UD="imagewidth",qD="imageheight",GD="imagemapdialog",WD="imagemap",KD="resizeimagemap",YD="qmsmap",QD="image";function XD(t){return qy(t,"#")+"_inserted"}function ZD(t,e){if(t){t=t.toString().replaceAll("px","");try{return Number.parseFloat(t).toFixed(e)}catch{}}return 0}function $D(t,e){return e.is("element",YD)&&e.hasAttribute(RD)&&t[tB(e)]}function tB(t){return t.getAttribute(RD).toLowerCase()}function eB(t,e){if(!t)return[];const n={};t.forEach((t=>{let e=t.toLowerCase();n[e]=e}));const o={};for(const t of e.getWalker()){const e=t.item;if($D(n,e)){let t=tB(e);o[t]=e}}return Object.keys(o).map((t=>o[t]))}function nB(t,e){if(!t)return null;const n={};let o=t.toLowerCase();n[o]=o;for(const t of e.getWalker()){const e=t.item;if($D(n,e))return e}return null}function oB(t,e){var n=t.coords.split(",");switch(t.shape){case"circle":return n[0]=Math.round(n[0]*e),n[2]=Math.round(n[2]*e),t.coords=n.join(","),t;case"rect":case"poly":for(var o=0;o<n.length&&!(o>=n.length);o+=2)n[o]=Math.round(n[o]*e);return t.coords=n.join(","),t}}function iB(t,e,n){var o=t.coords.split(",");switch(t.shape){case"circle":return o[1]=Math.round(o[1]*e),n||(o[2]=Math.round(o[2]*e)),t.coords=o.join(","),t;case"rect":case"poly":for(var i=1;i<o.length&&!(i>=o.length);i+=2)o[i]=Math.round(o[i]*e);return t.coords=o.join(","),t}}function rB(t,e,n,o,i){if(o&&o.length>0)try{var r=new Image(e,n);r.src=t,r.addEventListener("load",(()=>{var s=document.createElement("canvas"),a=s.getContext("2d");s.width=e,s.height=n,a.drawImage(r,0,0,e,n),a.strokeStyle="#FF0000",a.lineWidth=1;for(var c=0;c<o.length;c++){const t=o[c],e=t.coords.split(",");switch(t.shape){case"circle":a.beginPath(),a.arc(e[0],e[1],e[2],0,2*Math.PI,!0),a.closePath(),a.stroke();break;case"poly":a.beginPath(),a.moveTo(e[0],e[1]);for(var l=2;l<e.length;l+=2)a.lineTo(e[l],e[l+1]);a.closePath(),a.stroke();break;default:a.strokeRect(e[0],e[1],e[2]-e[0],e[3]-e[1])}}let d=t,u=t;try{d=s.toDataURL()}catch(t){}i&&i(u,d)}),!1)}catch(t){console.log(t)}}class sB extends te{execute(t){const e=this.editor.model;e.change((n=>{var o=qy(t.name,"#");const i=t.areas,r=t.imageWidth,s=t.imageHeight,a=e.document.selection.getSelectedElement();if(!a|!ef(a))return;const c=a.getAttribute(jD)||t.oldName;if(c){const t=e.createRangeIn(e.document.getRoot()),o=eB([qy(c,"#")],t);o&&o.length>0&&o.forEach((t=>{n.remove(t)}))}if(i&&i.length>0){n.setAttribute(jD,"#"+o,a),n.setAttribute(UD,r,a),n.setAttribute(qD,s,a);let t=a.getAttribute(HD);a.hasAttribute(JD)&&a.getAttribute(JD)?t=a.getAttribute(JD):n.setAttribute(JD,t,a);let c={};c[RD]=o,c[OD]=JSON.stringify(i),c[FD]=r,c[VD]=s;const l=n.createElement(YD,c);n.insert(l,n.createPositionAt(a,"after")),rB(t,r,s,i,((t,i)=>{e.enqueueChange(n.batch,(t=>{t.setAttribute(HD,i,a),this.fire(XD(o))}))}))}else{if(a.hasAttribute(jD)&&n.removeAttribute(jD,a),a.hasAttribute(JD)){let t=a.getAttribute(JD);t&&n.setAttribute(HD,t,a),n.removeAttribute(JD,a)}a.hasAttribute(qD)&&n.removeAttribute(qD,a),a.hasAttribute(UD)&&n.removeAttribute(UD,a),this.fire(qy(o,"#")+"_removed")}}),{once:!0})}}class aB extends te{refresh(){const t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=ef(t)&&t.hasAttribute(jD)}execute(t={}){const e=this.editor,n=e.model,o=this.editor.editing.view,i=n.document.selection.getSelectedElement(),r=i.getAttribute(jD);if(r){const t=tf(o.document.selection),a=e.plugins.get("WidgetResize").getResizerByViewElement(t);if(a){const t=a._viewResizerWrapper,e=ZD(t.getStyle("width",0)),o=ZD(t.getStyle("height",0)),c=n.createRangeIn(n.document.getRoot()),l=nB(qy(r,"#"),c);if(l){const t=JSON.parse(l.getAttribute(OD)||[]),a=ZD(l.getAttribute(FD,0)),c=ZD(l.getAttribute(VD,0)),d=e!=a&&0!=a,u=o!=c&&0!=c;if(d||u){if(d){const n=1*e/a;for(var s=0;s<t.length;++s)t[s]=oB(t[s],n)}if(u){const e=1*o/c;for(s=0;s<t.length;++s)t[s]=iB(t[s],e,d)}const h=JSON.stringify(t);n.change((s=>{let a=i.getAttribute(HD);i.hasAttribute(JD)&&i.getAttribute(JD)?a=i.getAttribute(JD):s.setAttribute(JD,a,i),s.setAttribute(OD,h,l),s.setAttribute(FD,e,l),s.setAttribute(VD,o,l),s.setAttribute(UD,e,i),s.setAttribute(qD,o,i),rB(a,e,o,t,((t,e)=>{n.enqueueChange(s.batch,(t=>{t.setAttribute(HD,e,i),this.fire(qy(r,"#")+"_resized")}))}))}))}}}}}}class cB extends te{refresh(){const t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=ef(t)}execute(){const t=this.editor,e=t.model,n=t.editing.view,o=e.document.selection.getSelectedElement(),i=o.getAttribute(jD);let r=o.getAttribute(HD);o.hasAttribute(JD)&&o.getAttribute(JD)&&(r=o.getAttribute(JD));const s={imageUrl:r,areas:[],imageWidth:null,imageHeight:null},a=tf(n.document.selection),c=t.plugins.get("WidgetResize").getResizerByViewElement(a);if(c){const t=c._viewResizerWrapper;s.imageWidth=ZD(t.getStyle("width",0)),s.imageHeight=ZD(t.getStyle("height",0))}if(i){const t=e.createRangeIn(e.document.getRoot()),n=nB(qy(i,"#"),t);n&&(s.areas=JSON.parse(n.getAttribute(OD)||[]))}var l,d;l=s,d=t.id,window.postMessage({eventName:"QMSCK_IMAGEMAP_PLUGIN_MSG"+d,value:l},"*"),window.QMSCK_IMAGEMAP_IS_PROCESSING=!1,window.addEventListener("QMSCK_IMAGEMAP_PLUGIN_RESP",(e=>{if(window.QMSCK_IMAGEMAP_IS_PROCESSING)return;window.QMSCK_IMAGEMAP_IS_PROCESSING=!0;const n=e.detail;t.commands.get(WD).execute(n)}),{once:!0})}}function lB(t){const e=t?"highest":"normal";return n=>{n.on(`attribute:${JD}:${QD}`,((e,n,o)=>{if(!o.consumable.consume(n.item,e.name))return;const i=o.writer,r=rf(o.mapper.toViewElement(n.item));if(1==t){if(n.item.hasAttribute(n.attributeKey)){const t=n.item.getAttribute(n.attributeKey);i.setAttribute(TD,t,r)}}else i.setAttribute(zD,n.attributeNewValue||"",r)}),{priority:e})}}class dB extends Zt{static get requires(){return["ImageResize","Delete"]}static get pluginName(){return"ImageMapEditing"}init(){const t=this.editor,e=t.model,n=e.schema,o=t.conversion,i=t.editing.view;i.addObserver(Zb),n.extend(QD,{allowAttributes:[jD,UD,qD,JD]}),n.register(YD,{isObject:!0,allowWhere:"$block",allowAttributes:[RD,OD,FD,VD]}),o.for("dataDowncast").add((t=>{t.on(`attribute:${UD}:${QD}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=rf(n.mapper.toViewElement(e.item));o.setAttribute(BD,e.attributeNewValue,i)}))})),o.for("dataDowncast").add((t=>{t.on(`attribute:${qD}:${QD}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=rf(n.mapper.toViewElement(e.item));o.setAttribute(SD,e.attributeNewValue,i)}))})),o.for("dataDowncast").add(lB(!0)),o.for("editingDowncast").add(lB(!1)),o.for("downcast").add((t=>{t.on(`attribute:${HD}:${QD}`,((t,e,n)=>{const o=n.writer,i=rf(n.mapper.toViewElement(e.item)),r=(e.item.getAttribute("alt")||"").split("#"),s=r.length>0?r[0]:"",a={};switch(s){case"bpmn":a.class="bpmn-chart-entity",a["data-charttype"]=s;break;case"flowchart":a.class="flow-chart-entity",a["data-charttype"]="flow";break;default:a.class="",a["data-charttype"]=""}o.setAttribute("class",a.class,i),o.setAttribute("data-charttype",a["data-charttype"],i)}))})),o.for("downcast").add((t=>{t.on(`attribute:${jD}:${QD}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=rf(n.mapper.toViewElement(e.item)),r=e.attributeNewValue||"",s=e.attributeOldValue||"";r?o.setAttribute(ID,e.attributeNewValue,i):s&&o.removeAttribute(ID,i)}))})),o.for("downcast").add((t=>{t.on(`insert:${YD}`,((t,e,n)=>{const{consumable:o,writer:i,mapper:r}=n;if(!o.consume(e.item,"insert"))return;const s=r.toViewPosition(e.range.start),a=i.createContainerElement(ND);r.bindElements(e.item,a),i.insert(s,a)}))})),o.for("downcast").add((t=>{t.on(`attribute:${RD}:${YD}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewElement(e.item);i&&(o.setAttribute(xD,e.attributeNewValue,i),o.setAttribute(MD,e.attributeNewValue,i))}))})).add((t=>{t.on(`attribute:${FD}:${YD}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewElement(e.item);i&&o.setAttribute(BD,e.attributeNewValue||"",i)}))})).add((t=>{t.on(`attribute:${VD}:${YD}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewElement(e.item);i&&o.setAttribute(SD,e.attributeNewValue||"",i)}))})).add((t=>{t.on(`attribute:${OD}:${YD}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const o=n.writer,i=n.mapper.toViewElement(e.item);if(i&&e.attributeNewValue!=e.attributeOldValue&&e.attributeNewValue){i.childCount>0&&Array.from(i.getChildren()).forEach((t=>{o.remove(t)}));const t=JSON.parse(e.attributeNewValue||"[]");t&&t.length>0&&t.forEach((t=>{if(t.coords&&t.shape){let e=o.createEmptyElement(LD,{coords:t.coords,alt:t.alt||"",shape:t.shape||"",href:t.href,target:t.target});o.insert(o.createPositionAt(i,0),e)}}))}}))})),o.for("upcast").add((t=>{t.on(`element:${PD}`,((t,e,n)=>{const{consumable:o,writer:i}=n,r=e.viewItem;if(!o.consume(r,{attributes:[ID]}))return;const s=r.getAttribute(ID);if(!s)return;const a=Ws(e.modelRange.getItems());if(a&&a.is("element",QD)){const t=qy(s,"#");i.setAttribute(jD,"#"+t,a)}}),{priority:"low"})})),o.for("upcast").add((t=>{t.on(`element:${PD}`,((t,e,n)=>{const{consumable:o,writer:i}=n,r=e.viewItem;if(!o.consume(r,{attributes:[SD]}))return;const s=r.getAttribute(SD);if(!s)return;const a=Ws(e.modelRange.getItems());a&&a.is("element",QD)&&i.setAttribute(qD,s,a)}),{priority:"low"})})),o.for("upcast").add((t=>{t.on(`element:${PD}`,((t,e,n)=>{const{consumable:o,writer:i}=n,r=e.viewItem;if(!o.consume(r,{attributes:[BD]}))return;const s=r.getAttribute(BD);if(!s)return;const a=Ws(e.modelRange.getItems());a&&a.is("element",QD)&&i.setAttribute(UD,s,a)}),{priority:"low"})})),o.for("upcast").add((t=>{t.on(`element:${PD}`,((t,e,n)=>{const{consumable:o,writer:i}=n,r=e.viewItem;if(!o.consume(r,{attributes:[zD]}))return;const s=r.getAttribute(zD);if(!s)return;const a=Ws(e.modelRange.getItems());a&&a.is("element",QD)&&i.setAttribute(JD,s||"",a)}),{priority:"low"})})),o.for("upcast").add((t=>{t.on(`element:${ND}`,((t,e,n)=>{const o=e.viewItem,i=e.modelCursor,r=n.writer;if(!n.consumable.test(e.viewItem,{name:!0}))return;const s=o.getAttribute(xD);if(!s)return;const a=[];if(o.childCount>0)for(const t of Array.from(o.getChildren())){try{if(t.getAttribute()<5)throw-1;if(!t.getAttribute(_D))throw-1}catch(t){continue}let e={};e[_D]=t.getAttribute(_D),e[vD]=t.getAttribute(vD),e[DD]=t.getAttribute(DD)||"",e[yD]=t.getAttribute(yD)||"",e[ED]=t.getAttribute(ED),a.push(e)}const c=o.getAttribute(BD),l=o.getAttribute(SD);let d={};d[RD]=s,d[OD]=JSON.stringify(a),d[FD]=c,d[VD]=l;const u=r.createElement(YD,d);r.insert(u,i),n.convertChildren(o,u),n.updateConversionResult(u,e)}),{priority:"high"})})),t.commands.get("resizeImage").on("execute",Gy((()=>{t.execute(KD)}),100)),this.listenTo(i.document,"delete",((t,e)=>{this.allowDeleteMap=!0}),{context:[Kg]}),this.listenTo(i.document,"imageLoaded",((t,e)=>{!function(t){if(!t.target.matches("figure.image.ck-widget > img, figure.image.ck-widget > a > img"))return;if(t.target.hasAttribute(ID)&&t.target.getAttribute(ID)&&!t.target.hasAttribute(zD)){const e=t.target.getAttribute(TD),n=qy(t.target.getAttribute(ID),"#"),o=`${ND}[${xD}='${n}']`,i=document.querySelector(o);if(i&&i.childNodes){const n=[];if(i.childNodes.forEach((t=>{if(t.nodeName&&t.nodeName.toLowerCase()===LD){let e={};e[_D]=t.getAttribute(_D),e[yD]=t.getAttribute(yD)||"",n.push(e)}})),n.length>0){const o=i.getAttribute(BD)||t.target.width,r=i.getAttribute(SD)||t.target.height,s=t.target;rB(e,o,r,n,((t,e)=>{s&&(s.setAttribute(TD,e),s.setAttribute(zD,t)),i&&(i.setAttribute(BD,o),i.setAttribute(SD,r))}))}}}}(e)})),e.document.on("change:data",((t,n)=>{1==this.allowDeleteMap&&(this.allowDeleteMap=!1,function(t,e){if("transparent"==e.type)return;const n=t.document.differ;if(n.isEmpty)return;const o=n.getChanges({includeChangesInGraveyard:!0});if(0===o.length)return;let i=!0;for(let t=0;t<o.length;t++){const e=o[t];if(e&&"remove"===e.type&&e.name===QD){i=!1;break}}if(i)return;const r=o.filter((t=>"insert"===t.type&&t.name===QD)),s=[];if(r.forEach((t=>{let e=t.position.nodeAfter;if(e&&e.hasAttribute(jD)){let t=e.getAttribute(jD)||"";s.push(qy(t,"#"))}})),s&&s.length>0){const n=t.createRangeIn(t.document.getRoot()),o=eB(s,n);o&&o.length>0&&t.enqueueChange(e,(t=>{o.forEach((e=>{t.remove(e)}))}))}}(e,n))})),t.commands.add(GD,new cB(t)),t.commands.add(WD,new sB(t)),t.commands.add(KD,new aB(t))}}class uB extends Zt{static get requires(){return[Uh]}static get pluginName(){return"ImageMapUI"}init(){this._createButton()}destroy(){super.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageMap",(n=>{const o=t.commands.get(GD),i=new $d(n);return i.set({label:e("Image Map"),icon:'<?xml version="1.0" encoding="iso-8859-1"?>\n\x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve">\n<g>\n\t<g>\n\t\t<path d="M511.307,478.536l-60.831-241.023c-2.558-10.131-11.671-17.229-22.118-17.229h-33.836\n\t\t\tc6.497-20.56,10.376-42.692,10.376-66.3c0-82.11-66.794-148.912-148.894-148.912c-82.098,0-148.891,66.802-148.891,148.912\n\t\t\tc0,23.644,3.91,45.8,10.402,66.3H83.644c-10.448,0-19.56,7.098-22.118,17.229L0.694,478.536\n\t\t\tc-1.722,6.819-0.201,14.052,4.123,19.601c4.322,5.549,10.962,8.793,17.995,8.793h466.376c7.034,0,13.673-3.244,17.995-8.793\n\t\t\tC511.508,492.588,513.029,485.356,511.307,478.536z M256.004,50.694c56.943,0,103.271,46.335,103.271,103.289\n\t\t\tc0,28.306-7.157,54.31-18.129,77.565c-0.622,1.055-1.16,2.161-1.607,3.317c-16.437,33.349-40.57,60.862-62.297,81.102\n\t\t\tc-8.092,7.539-15.444,13.649-21.204,18.17c-29.934-23.612-103.301-90.633-103.301-180.155\n\t\t\tC152.736,97.03,199.062,50.694,256.004,50.694z M52.097,461.307l49.318-195.4h35.807\n\t\t\tc38.993,70.887,102.46,113.131,106.301,115.644c3.791,2.477,8.136,3.717,12.481,3.717c4.345,0,8.691-1.239,12.483-3.718\n\t\t\tc0.722-0.473,17.983-11.826,39.854-32.198c22.699-21.145,47.625-49.257,66.475-83.444h35.772l49.318,195.4H52.097z"/>\n\t</g>\n</g>\n<g>\n\t<g>\n\t\t<path d="M272.135,137.835c-4.243-4.243-10.127-6.676-16.134-6.676s-11.879,2.433-16.122,6.676\n\t\t\tc-4.258,4.243-6.69,10.113-6.69,16.12s2.433,11.893,6.69,16.136c4.245,4.243,10.115,6.691,16.122,6.691s11.877-2.448,16.134-6.691\n\t\t\tc4.243-4.243,6.678-10.128,6.678-16.136C278.812,147.964,276.378,142.078,272.135,137.835z"/>\n\t</g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n</svg>\n',tooltip:!0}),i.bind("isEnabled").to(o,"isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(GD)})),i}))}}class hB extends Zt{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new ne(t)),t.commands.add("outdent",new ne(t))}}var kB='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',pB='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';class gB extends Zt{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,o="ltr"==e.uiLanguageDirection?kB:pB,i="ltr"==e.uiLanguageDirection?pB:kB;this._defineButton("indent",n("Increase indent"),o),this._defineButton("outdent",n("Decrease indent"),i)}_defineButton(t,e,n){const o=this.editor;o.ui.componentFactory.add(t,(i=>{const r=o.commands.get(t),s=new $d(i);return s.set({label:e,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(s,"execute",(()=>{o.execute(t),o.editing.view.focus()})),s}))}}class mB extends te{constructor(t,e){super(t),this._indentBehavior=e}refresh(){const t=this.editor.model,e=Ws(t.document.selection.getSelectedBlocks());e&&t.schema.checkAttribute(e,"blockIndent")?this.isEnabled=this._indentBehavior.checkEnabled(e.getAttribute("blockIndent")):this.isEnabled=!1}execute(){const t=this.editor.model,e=function(t){const e=t.document.selection,n=t.schema;return Array.from(e.getSelectedBlocks()).filter((t=>n.checkAttribute(t,"blockIndent")))}(t);t.change((t=>{for(const n of e){const e=n.getAttribute("blockIndent"),o=this._indentBehavior.getNextIndent(e);o?t.setAttribute("blockIndent",o,n):t.removeAttribute("blockIndent",n)}}))}}class bB{constructor(t){this.isForward="forward"===t.direction,this.offset=t.offset,this.unit=t.unit}checkEnabled(t){const e=parseFloat(t||0);return this.isForward||e>0}getNextIndent(t){const e=parseFloat(t||0);if(!(!t||t.endsWith(this.unit)))return this.isForward?this.offset+this.unit:void 0;const n=e+(this.isForward?this.offset:-this.offset);return n>0?n+this.unit:void 0}}class fB{constructor(t){this.isForward="forward"===t.direction,this.classes=t.classes}checkEnabled(t){const e=this.classes.indexOf(t);return this.isForward?e<this.classes.length-1:e>=0}getNextIndent(t){const e=this.classes.indexOf(t),n=this.isForward?1:-1;return this.classes[e+n]}}const AB=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"];class CB extends te{refresh(){this.isEnabled=function(t){const e=t.schema,n=t.document.selection;return function(t,e,n){const o=function(t,e){const n=em(t,e).parent;if(n.isEmpty&&!n.is("element","$root"))return n.parent;return n}(t,n);return e.checkChild(o,"horizontalLine")}(n,e,t)&&!nm(n,e)}(this.editor.model)}execute(){const t=this.editor.model;t.change((e=>{const n=e.createElement("horizontalLine");t.insertContent(n);let o=n.nextSibling;!(o&&t.schema.checkChild(o,"$text"))&&t.schema.checkChild(n.parent,"paragraph")&&(o=e.createElement("paragraph"),t.insertContent(o,e.createPositionAfter(n))),o&&e.setSelection(o,0)}))}}var wB=n(88),_B={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(wB.a,_B),wB.a.locals;class vB extends Zt{static get pluginName(){return"HorizontalLineEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,o=t.conversion;e.register("horizontalLine",{isObject:!0,allowWhere:"$block"}),o.for("dataDowncast").elementToElement({model:"horizontalLine",view:(t,{writer:e})=>e.createEmptyElement("hr")}),o.for("editingDowncast").elementToElement({model:"horizontalLine",view:(t,{writer:e})=>{const o=n("Horizontal line"),i=e.createContainerElement("div"),r=e.createEmptyElement("hr");return e.addClass("ck-horizontal-line",i),e.setCustomProperty("hr",!0,i),e.insert(e.createPositionAt(i,0),r),function(t,e,n){return e.setCustomProperty("horizontalLine",!0,t),Yg(t,e,{label:n})}(i,e,o)}}),o.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),t.commands.add("horizontalLine",new CB(t))}}class yB extends Zt{static get pluginName(){return"HorizontalLineUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("horizontalLine",(n=>{const o=t.commands.get("horizontalLine"),i=new $d(n);return i.set({label:e("Horizontal line"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',tooltip:!0}),i.bind("isEnabled").to(o,"isEnabled"),this.listenTo(i,"execute",(()=>{t.execute("horizontalLine"),t.editing.view.focus()})),i}))}}class xB extends te{execute(){const t=this.editor;if(this.isBpmnImage(t.editing.view.document.selection.getSelectedElement(),t.plugins.get("Image"))){hy(t.editing.view.document.selection.getSelectedElement().getChild(0).getAttribute("alt").split("#")[1],t.id)}else hy("",t.id);window.QMSCK_BPMN_IS_PROCESSING=!1,window.addEventListener("QMSCK_BPMN_PLUGIN_RESP",(function(e){window.QMSCK_BPMN_IS_PROCESSING||(window.QMSCK_BPMN_IS_PROCESSING=!0,t.model.change((n=>{const o=e.detail.imagemap||{};let i=null;if(i=o.imageWidth>600?n.createElement("image",{src:e.detail.values,alt:e.detail.key}):n.createElement("image",{src:e.detail.values,alt:e.detail.key,width:o.imageWidth.toString()+"px"}),t.model.insertContent(i,t.model.document.selection),o.areas&&o.areas.length>0){t.model.createSelection(i,"in");const e=t.commands.get(WD);if(e&&(e.set("isEnabled",!0),o.oldName=o.name,e.execute(o),o.imageWidth>600)){const n=t.commands.get(KD);n&&e.once(XD(o.name),Gy((()=>{n.set("isEnabled",!0),n.execute()}),500))}}})))}),{once:!0})}isBpmnImage(t,e){if(!(t&&e.isImageWidget(t)))return!1;const n=t.getChild(0).getAttribute("alt");return!(!n||!n.includes("bpmn"))}}class EB extends te{execute(){const t=this.editor;if(this.isFlowchartImage(t.editing.view.document.selection.getSelectedElement(),t.plugins.get("Image"))){ky(t.editing.view.document.selection.getSelectedElement().getChild(0).getAttribute("alt").split("#")[1],t.id)}else ky("",t.id);window.addEventListener("QMSCK_FLOWCHART_PLUGIN_RESP",(function(e){t.model.change((n=>{const o=n.createElement("image",{src:e.detail.values,alt:e.detail.key});t.model.insertContent(o,t.model.document.selection)}))}),{once:!0})}isFlowchartImage(t,e){if(!(t&&e.isImageWidget(t)))return!1;const n=t.getChild(0).getAttribute("alt");return!(!n||!n.includes("flowchart"))}}const IB=["heading1","heading2","heading3"],DB="inserttoc",BB="headingClass",SB="anchorId",TB="linkHref",MB="paragraph";function zB(t){let e=t||[];return e=e.map((t=>t.toLowerCase())).filter((t=>t.startsWith("heading"))),0==e.length&&(e=IB),e}class NB extends te{execute(t={}){this.editor.model.change((e=>{const n=this._findHeadingElements(t.headings);if(Object.keys(n).length>0){const t=this._buildTOCElements(n);this._setAnchorIdAttribute(n,t,e),this._insertTOCElements(t,e)}}))}_insertTOCElements(t,e){let n;Object.keys(t).forEach((o=>{const i=t[o],r=e.createElement(MB,{...i.attributes}),s=e.createText(i.text,{[TB]:"#"+i.id});e.insert(s,e.createPositionAt(r,0)),n||(n=em(this.editor.model.document.selection,this.editor.model));const{end:a}=this.editor.model.insertContent(r,n);n=a}))}_setAnchorIdAttribute(t,e,n){Object.keys(e).forEach((o=>{const i=t[o],r=e[o];if(!r.hasAnchorId){const t=this.editor.model.createRangeIn(i),e={key:SB,value:r.id};if(!function(t,e,n,o){for(const i of Array.from(t.getItems()))if(e.checkAttribute(i,o.key))return n.setAttribute(o.key,o.value,i),!0;return!1}(t,this.editor.model.schema,n,e)){let t=n.createText(" ",{[SB]:r.id});n.insert(t,n.createPositionAt(i,0))}}}))}_buildTOCElements(t){const e={};let n=1;return Object.keys(t).forEach((o=>{const i=t[o],r=this.editor.model.createRangeIn(i),s=Object.fromEntries(i.getAttributes()),a=i.name.toLowerCase();s[BB]=a;const c=function(t){return Array.from(t.getItems()).reduce(((t,e)=>e.is("text")||e.is("textProxy")?t+e.data:t),"")}(r)||"";let l=qy(c,"#").replace(/[^a-z0-9\+]/gi,"").toLowerCase()+n,d=!1;const u=function(t,e){for(const n of t.getItems())for(const[t,o]of n.getAttributes())if(t.toLowerCase()==e.toLowerCase())return o;return null}(r,SB);u&&(l=qy(u,"#"),d=!0),e[o]={id:l,name:a,text:c,hasAnchorId:d,attributes:s},n++})),e}_findHeadingElements(t){const e={},n=this.editor.model.createRangeIn(this.editor.model.document.getRoot());for(const o of n.getWalker()){const n=o.item;if(n.is("element")&&t.indexOf(n.name)>-1){e[n.getPath()]=n}}return e}}var PB=n(89),LB={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(PB.a,LB),PB.a.locals;class OB extends Zt{static get pluginName(){return"TableOfContentsEditing"}init(){const t=this.editor,e=t.model,n=zB(t.config.get("tableOfContents.supportedHeadings"));e.schema.extend("$block",{allowAttributes:BB}),e.schema.setAttributeProperties(BB,{isFormatting:!0}),t.conversion.attributeToAttribute(function(t){const e=[];t.forEach((t=>{try{const n="h"+(parseInt(t.replace("heading",""))+1);e.push({name:t,className:n})}catch{}}));const n={model:{key:BB,values:e.map((t=>t.name))},view:{}};for(const t of e)n.view[t.name]={key:"class",value:t.className};return n}(n)),t.commands.add(DB,new NB(t))}}class RB extends Zt{static get pluginName(){return"TableOfContentsUI"}init(){const t=this.editor,e=t.t,n=zB(t.config.get("tableOfContents.supportedHeadings"));t.ui.componentFactory.add("tableOfContents",(o=>{const i=new $d(o);i.set({label:e("Create Table of Contents"),icon:'<?xml version="1.0" encoding="iso-8859-1"?>\n\x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">\n<g>\n\t<g>\n\t\t<path d="M0,22.261v467.478h512V22.261H0z M155.826,456.348H33.391v-77.913h122.435V456.348z M155.826,345.043H33.391V267.13\n\t\t\th122.435V345.043z M155.826,233.739H33.391v-77.913h122.435V233.739z M322.783,456.348H189.217v-77.913h133.565V456.348z\n\t\t\t M322.783,345.043H189.217V267.13h133.565V345.043z M322.783,233.739H189.217v-77.913h133.565V233.739z M478.609,456.348H356.174\n\t\t\tv-77.913h122.435V456.348z M478.609,345.043H356.174V267.13h122.435V345.043z M478.609,233.739H356.174v-77.913h122.435V233.739z\n\t\t\t M478.609,122.435H33.391V55.652h445.217V122.435z"/>\n\t</g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n<g>\n</g>\n</svg>\n',withText:!1,tooltip:!0});const r=t.commands.get(DB);return i.bind("isEnabled").to(r,"isEnabled"),i.bind("isOn").to(r,"value",(t=>!!t)),i.on("execute",(()=>{t.execute(DB,{headings:n})})),i}))}}function FB(t){const e=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"br",isVoid:!0},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"input",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"pre",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"textarea",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],n=e.map((t=>t.name)).join("|"),o=t.replace(new RegExp(`</?(${n})( .*?)?>`,"g"),"\n$&\n").split("\n");let i=0;return o.filter((t=>t.length)).map((t=>function(t,e){return e.some((e=>!e.isVoid&&!!new RegExp(`<${e.name}( .*?)?>`).test(t)))}(t,e)?VB(t,i++):function(t,e){return e.some((e=>new RegExp(`</${e.name}>`).test(t)))}(t,e)?VB(t,--i):VB(t,i))).join("\n")}function VB(t,e,n=" "){return`${n.repeat(e)}${t}`}var jB=n(90),JB={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};jd()(jB.a,JB),jB.a.locals;const HB="SourceEditingMode";function UB(t){return function(t){return t.startsWith("<")}(t)?FB(t):t}class qB extends Lg{}qB.builtinPlugins=[class extends Zt{static get requires(){return[hu,tk]}static get pluginName(){return"Alignment"}},class extends Zt{static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&dp(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&dp(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&dp(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&dp(this.editor,this,/^\[\s?x\s?\]\s$/,(()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")}))}_addBasicStylesAutoformats(){const t=this.editor.commands;if(t.get("bold")){const t=kp(this.editor,"bold");up(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),up(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(t.get("italic")){const t=kp(this.editor,"italic");up(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),up(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(t.get("code")){const t=kp(this.editor,"code");up(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(t.get("strikethrough")){const t=kp(this.editor,"strikethrough");up(this.editor,this,/(~~)([^~]+)(~~)$/g,t)}}_addHeadingAutoformats(){const t=this.editor.commands.get("heading");t&&t.modelElements.filter((t=>t.match(/^heading[1-6]$/))).forEach((e=>{const n=e[7],o=new RegExp(`^(#{${n}})\\s$`);dp(this.editor,this,o,(()=>{if(!t.isEnabled||t.value===e)return!1;this.editor.execute("heading",{value:e})}))}))}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&dp(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){this.editor.commands.get("codeBlock")&&dp(this.editor,this,/^```$/,"codeBlock")}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&dp(this.editor,this,/^---$/,"horizontalLine")}},class extends Zt{static get requires(){return[yg,Ig]}static get pluginName(){return"BlockQuote"}},class extends Zt{static get requires(){return[mp,fp]}static get pluginName(){return"Bold"}},class extends Zt{static get pluginName(){return"CKFinder"}static get requires(){return["Image","Link","CKFinderUploadAdapter",Tg,Dg]}},class extends Zt{static get requires(){return[bd]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(bd).createUploadAdapter=e=>new ru(e,t,this.editor.t))}},class extends Zt{static get requires(){return[Sm,Pp,Lm,Fp,$p,Gm]}static get pluginName(){return"Essentials"}},class extends Zt{static get requires(){return[ub,wb,Eb,Sb]}static get pluginName(){return"Font"}},class extends Zt{static get requires(){return[Rb,jb]}static get pluginName(){return"Heading"}},class extends Zt{static get requires(){return[cf,Am,Af]}static get pluginName(){return"Image"}isImageWidget(t){return $b(t)}},class extends Zt{static get requires(){return[yf]}static get pluginName(){return"ImageCaption"}},class extends Zt{static get requires(){return[Mf,Lf,Nf]}static get pluginName(){return"ImageResize"}},class extends Zt{static get requires(){return[qf,Kf]}static get pluginName(){return"ImageStyle"}},class extends Zt{static get requires(){return[Jb]}static get pluginName(){return"ImageToolbar"}afterInit(){const t=this.editor,e=t.t;t.plugins.get(Jb).register("image",{ariaLabel:e("Image toolbar"),items:t.config.get("image.toolbar")||[],getRelatedElement:tf})}},class extends Zt{static get pluginName(){return"ImageUpload"}static get requires(){return[kA,Zf,rA]}},class extends Zt{static get requires(){return[Cp,_p]}static get pluginName(){return"Italic"}},class extends Zt{static get requires(){return[Dp,Sp]}static get pluginName(){return"Underline"}},class extends Zt{static get requires(){return[yp,Ep]}static get pluginName(){return"Strikethrough"}},class extends Zt{static get requires(){return[Xy,lx,hx]}static get pluginName(){return"Link"}},class extends Zt{static get requires(){return[px,Ax]}static get pluginName(){return"LinkImage"}},class extends Zt{static get requires(){return[FA,jA]}static get pluginName(){return"List"}},class extends Zt{static get requires(){return[zx,Fx,Px,Am]}static get pluginName(){return"MediaEmbed"}},class extends Zt{static get requires(){return[Jb]}static get pluginName(){return"MediaEmbedToolbar"}afterInit(){const t=this.editor,e=t.t;t.plugins.get(Jb).register("mediaEmbed",{ariaLabel:e("Media toolbar"),items:t.config.get("mediaEmbed.toolbar")||[],getRelatedElement:yx})}},class extends Zt{static get requires(){return[Ux,Gx,Kx]}static get pluginName(){return"MediaResize"}},class extends Zt{static get requires(){return[iE,aE]}static get pluginName(){return"MediaStyle"}},Nb,class extends Zt{static get requires(){return[Cw,xw,Bw,Lw,Nw,Sw,Am]}static get pluginName(){return"Table"}},class extends Zt{static get requires(){return[Jb]}static get pluginName(){return"TableToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(Jb),o=t.config.get("table.contentToolbar"),i=t.config.get("table.tableToolbar");o&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:o,getRelatedElement:M_}),i&&n.register("table",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:T_})}},class extends Zt{static get pluginName(){return"TableProperties"}static get requires(){return[e_,J_]}},class extends Zt{static get pluginName(){return"TableCellProperties"}static get requires(){return[av,Y_]}},Bw,class extends Zt{static get pluginName(){return"TextTransformation"}constructor(t){super(t),t.config.define("typing",{transformations:{include:hg}})}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}_enableTransformationWatchers(){const t=this.editor,e=t.model,n=t.plugins.get("Input"),o=function(t){const e=t.extra||[],n=t.remove||[],o=t=>!n.includes(t);return function(t){const e=new Set;for(const n of t)if(ug[n])for(const t of ug[n])e.add(t);else e.add(n);return Array.from(e)}(t.include.concat(e).filter(o)).filter(o).map((t=>dg[t]||t)).map((t=>({from:kg(t.from),to:pg(t.to)})))}(t.config.get("typing.transformations")),i=new eg(t.model,(t=>{for(const e of o){if(e.from.test(t))return{normalizedTransformation:e}}}));i.on("matched:data",((t,o)=>{if(!n.isInput(o.batch))return;const{from:i,to:r}=o.normalizedTransformation,s=i.exec(o.text),a=r(s.slice(1)),c=o.range;let l=s.index;e.enqueueChange((t=>{for(let n=1;n<s.length;n++){const o=s[n],i=a[n-1];if(null==i){l+=o.length;continue}const r=c.start.getShiftedBy(l),d=e.createRange(r,r.getShiftedBy(o.length)),u=gg(r);e.insertContent(t.createText(i,u),d),l+=i.length}}))})),i.bind("isEnabled").to(this)}},class extends Zt{init(){const t=this.editor,e=this.editor.locale.t;t.ui.componentFactory.add("qmsFullscreen",(n=>{const o=new $d(n);o.set({label:e("Maximize"),icon:ay,tooltip:!0});const i=this.editor.config.get("fullScreenConfig.class")||"qmsckeditor__fullscreen";return o.on("execute",(()=>{const n=t.config._config.containerId,r=window.document.getElementById(n),s=r&&r.classList.contains(i);var a;s?(o.set({label:e("Maximize"),icon:ay,tooltip:!0}),r.classList.contains(i)&&r.classList.remove(i)):(o.set({label:e("Minimize"),icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>',tooltip:!0}),r.classList.add(i)),a=s,window.postMessage({eventName:"QMSCK_FULLSCREEN_PLUGIN_MSG",value:a},"*")})),o}))}},class extends Zt{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("qmsTemplate",(n=>{const o=new $d(n),i=t.commands.get("templateDialog");return o.set({label:e("Add Template"),icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M13 11h-2v3H8v2h3v3h2v-3h3v-2h-3zm1-9H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i),o.on("execute",(()=>{i.execute()})),o})),t.commands.add("templateDialog",new lE(t))}},class extends Zt{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("qmsLoadTemplate",(n=>{const o=new $d(n),i=t.commands.get("loadtemplateDialog");return o.set({label:e("Templates"),icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i),o.on("execute",(()=>{i.execute()})),o})),t.commands.add("loadtemplateDialog",new cE(t))}},class extends Zt{static get requires(){return[qv,ey,ry]}static get pluginName(){return"Anchor"}},class extends Zt{static get requires(){return[AE,Am]}static get pluginName(){return"Video"}isVideoWidget(t){return uE(t)}},class extends Zt{static get requires(){return[yE,xE,IE]}static get pluginName(){return"VideoResize"}},class extends Zt{static get requires(){return[OE,VE]}static get pluginName(){return"VideoStyle"}},class extends Zt{static get requires(){return[Jb]}static get pluginName(){return"VideoToolbar"}afterInit(){const t=this.editor,e=t.t;t.plugins.get(Jb).register("video",{ariaLabel:e("Video toolbar"),items:t.config.get("video.toolbar")||[],getRelatedElement:hE})}},class extends Zt{static get requires(){return[KE,jE,eI]}},class extends Zt{constructor(t){super(t),this.set("characters",0),this.set("words",0),Object.defineProperties(this,{characters:{get(){return this.characters=this._getCharacters()}},words:{get(){return this.words=this._getWords()}}}),this.set("_wordsLabel"),this.set("_charactersLabel"),this._config=t.config.get("wordCount")||{},this._outputView=void 0,this._wordsMatchRegExp=Ri.features.isRegExpUnicodePropertySupported?new RegExp("([\\p{L}\\p{N}]+\\S?)+","gu"):/([a-zA-Z0-9À-ž]+\S?)+/gu}static get pluginName(){return"WordCount"}init(){this.editor.model.document.on("change:data",wm(this._refreshStats.bind(this),250)),"function"==typeof this._config.onUpdate&&this.on("update",((t,e)=>{this._config.onUpdate(e)})),io(this._config.container)&&this._config.container.appendChild(this.wordCountContainer)}destroy(){this._outputView&&(this._outputView.element.remove(),this._outputView.destroy()),super.destroy()}get wordCountContainer(){const t=this.editor,e=t.t,n=t.config.get("wordCount.displayWords"),o=t.config.get("wordCount.displayCharacters"),i=Cd.bind(this,this),r=[];return this._outputView||(this._outputView=new Ud,(n||void 0===n)&&(this.bind("_wordsLabel").to(this,"words",(t=>e("Words: %0",t))),r.push({tag:"div",children:[{text:[i.to("_wordsLabel")]}],attributes:{class:"ck-word-count__words"}})),(o||void 0===o)&&(this.bind("_charactersLabel").to(this,"characters",(t=>e("Characters: %0",t))),r.push({tag:"div",children:[{text:[i.to("_charactersLabel")]}],attributes:{class:"ck-word-count__characters"}})),this._outputView.setTemplate({tag:"div",attributes:{class:["ck","ck-word-count"]},children:r}),this._outputView.render()),this._outputView.element}_getCharacters(){return lv(this.editor.model.document.getRoot()).replace(/\n/g,"").length}_getWords(){return(lv(this.editor.model.document.getRoot()).match(this._wordsMatchRegExp)||[]).length}_refreshStats(){const t=this.words=this._getWords(),e=this.characters=this._getCharacters();this.fire("update",{words:t,characters:e})}},class extends Zt{static get requires(){return[dI,cI]}static get pluginName(){return"RemoveFormat"}},class extends Zt{static get requires(){return[hI,pI]}static get pluginName(){return"Superscript"}},class extends Zt{static get requires(){return[mI,fI]}static get pluginName(){return"Subscript"}},class extends Zt{init(){const t=this.editor,e=t.t,n=t.config.get("timestampConfig.datetimeFormat");t.ui.componentFactory.add("timestamp",(o=>{const i=new $d(o),r=t.commands.get("timestamp");return i.set({label:e("Timestamp"),icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>',withText:!1,tooltip:!0}),i.bind("isEnabled").to(r),i.on("execute",(()=>{r.execute({datetimeformat:n})})),i})),t.commands.add("timestamp",new AI(t))}},class extends Zt{static get requires(){return[$p]}static get pluginName(){return"SpecialCharacters"}constructor(t){super(t),this._characters=new Map,this._groups=new Map}init(){const t=this.editor,e=t.t,n=t.commands.get("input");t.ui.componentFactory.add("specialCharacters",(o=>{const i=sh(o);let r;return i.buttonView.set({label:e("Special characters"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2.5a7.47 7.47 0 0 1 4.231 1.31 7.268 7.268 0 0 1 2.703 3.454 7.128 7.128 0 0 1 .199 4.353c-.39 1.436-1.475 2.72-2.633 3.677h2.013c0-.226.092-.443.254-.603a.876.876 0 0 1 1.229 0c.163.16.254.377.254.603v.853c0 .209-.078.41-.22.567a.873.873 0 0 1-.547.28l-.101.006h-4.695a.517.517 0 0 1-.516-.518v-1.265c0-.21.128-.398.317-.489a5.601 5.601 0 0 0 2.492-2.371 5.459 5.459 0 0 0 .552-3.693 5.53 5.53 0 0 0-1.955-3.2A5.71 5.71 0 0 0 10 4.206 5.708 5.708 0 0 0 6.419 5.46 5.527 5.527 0 0 0 4.46 8.663a5.457 5.457 0 0 0 .554 3.695 5.6 5.6 0 0 0 2.497 2.37.55.55 0 0 1 .317.49v1.264c0 .286-.23.518-.516.518H2.618a.877.877 0 0 1-.614-.25.845.845 0 0 1-.254-.603v-.853c0-.226.091-.443.254-.603a.876.876 0 0 1 1.228 0c.163.16.255.377.255.603h1.925c-1.158-.958-2.155-2.241-2.545-3.678a7.128 7.128 0 0 1 .199-4.352 7.268 7.268 0 0 1 2.703-3.455A7.475 7.475 0 0 1 10 2.5z"/></svg>',tooltip:!0}),i.bind("isEnabled").to(n),i.on("execute",((e,n)=>{t.execute("input",{text:n.character}),t.editing.view.focus()})),i.on("change:isOpen",(()=>{r||(r=this._createDropdownPanelContent(o,i),i.panelView.children.add(r.navigationView),i.panelView.children.add(r.gridView),i.panelView.children.add(r.infoView)),r.infoView.set({character:null,name:null})})),i}))}addItems(t,e){if(t===SI)throw new l.a('special-character-invalid-group-name: The name "All" is reserved and cannot be used.');const n=this._getGroup(t);for(const t of e)n.add(t.title),this._characters.set(t.title,t.character)}getGroups(){return this._groups.keys()}getCharactersForGroup(t){return t===SI?new Set(this._characters.keys()):this._groups.get(t)}getCharacter(t){return this._characters.get(t)}_getGroup(t){return this._groups.has(t)||this._groups.set(t,new Set),this._groups.get(t)}_updateGrid(t,e){e.tiles.clear();const n=this.getCharactersForGroup(t);for(const t of n){const n=this.getCharacter(t);e.tiles.add(e.createTile(n,t))}}_createDropdownPanelContent(t,e){const n=[...this.getGroups()];n.unshift(SI);const o=new CI(t,n),i=new vI(t),r=new EI(t);return i.delegate("execute").to(e),i.on("tileHover",((t,e)=>{r.set(e)})),o.on("execute",(()=>{this._updateGrid(o.currentGroupName,i)})),this._updateGrid(o.currentGroupName,i),{navigationView:o,gridView:i,infoView:r}}},class extends Zt{static get pluginName(){return"SpecialCharactersArrows"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Arrows",[{title:e("leftwards double arrow"),character:"⇐"},{title:e("rightwards double arrow"),character:"⇒"},{title:e("upwards double arrow"),character:"⇑"},{title:e("downwards double arrow"),character:"⇓"},{title:e("leftwards dashed arrow"),character:"⇠"},{title:e("rightwards dashed arrow"),character:"⇢"},{title:e("upwards dashed arrow"),character:"⇡"},{title:e("downwards dashed arrow"),character:"⇣"},{title:e("leftwards arrow to bar"),character:"⇤"},{title:e("rightwards arrow to bar"),character:"⇥"},{title:e("upwards arrow to bar"),character:"⤒"},{title:e("downwards arrow to bar"),character:"⤓"},{title:e("up down arrow with base"),character:"↨"},{title:e("back with leftwards arrow above"),character:"🔙"},{title:e("end with leftwards arrow above"),character:"🔚"},{title:e("on with exclamation mark with left right arrow above"),character:"🔛"},{title:e("soon with rightwards arrow above"),character:"🔜"},{title:e("top with upwards arrow above"),character:"🔝"}])}},class extends Zt{static get pluginName(){return"SpecialCharactersCurrency"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Currency",[{character:"$",title:e("Dollar sign")},{character:"€",title:e("Euro sign")},{character:"¥",title:e("Yen sign")},{character:"£",title:e("Pound sign")},{character:"¢",title:e("Cent sign")},{character:"₠",title:e("Euro-currency sign")},{character:"₡",title:e("Colon sign")},{character:"₢",title:e("Cruzeiro sign")},{character:"₣",title:e("French franc sign")},{character:"₤",title:e("Lira sign")},{character:"¤",title:e("Currency sign")},{character:"₿",title:e("Bitcoin sign")},{character:"₥",title:e("Mill sign")},{character:"₦",title:e("Naira sign")},{character:"₧",title:e("Peseta sign")},{character:"₨",title:e("Rupee sign")},{character:"₩",title:e("Won sign")},{character:"₪",title:e("New sheqel sign")},{character:"₫",title:e("Dong sign")},{character:"₭",title:e("Kip sign")},{character:"₮",title:e("Tugrik sign")},{character:"₯",title:e("Drachma sign")},{character:"₰",title:e("German penny sign")},{character:"₱",title:e("Peso sign")},{character:"₲",title:e("Guarani sign")},{character:"₳",title:e("Austral sign")},{character:"₴",title:e("Hryvnia sign")},{character:"₵",title:e("Cedi sign")},{character:"₶",title:e("Livre tournois sign")},{character:"₷",title:e("Spesmilo sign")},{character:"₸",title:e("Tenge sign")},{character:"₹",title:e("Indian rupee sign")},{character:"₺",title:e("Turkish lira sign")},{character:"₻",title:e("Nordic mark sign")},{character:"₼",title:e("Manat sign")},{character:"₽",title:e("Ruble sign")}])}},class extends Zt{static get pluginName(){return"SpecialCharactersLatin"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Latin",[{character:"Ā",title:e("Latin capital letter a with macron")},{character:"ā",title:e("Latin small letter a with macron")},{character:"Ă",title:e("Latin capital letter a with breve")},{character:"ă",title:e("Latin small letter a with breve")},{character:"Ą",title:e("Latin capital letter a with ogonek")},{character:"ą",title:e("Latin small letter a with ogonek")},{character:"Ć",title:e("Latin capital letter c with acute")},{character:"ć",title:e("Latin small letter c with acute")},{character:"Ĉ",title:e("Latin capital letter c with circumflex")},{character:"ĉ",title:e("Latin small letter c with circumflex")},{character:"Ċ",title:e("Latin capital letter c with dot above")},{character:"ċ",title:e("Latin small letter c with dot above")},{character:"Č",title:e("Latin capital letter c with caron")},{character:"č",title:e("Latin small letter c with caron")},{character:"Ď",title:e("Latin capital letter d with caron")},{character:"ď",title:e("Latin small letter d with caron")},{character:"Đ",title:e("Latin capital letter d with stroke")},{character:"đ",title:e("Latin small letter d with stroke")},{character:"Ē",title:e("Latin capital letter e with macron")},{character:"ē",title:e("Latin small letter e with macron")},{character:"Ĕ",title:e("Latin capital letter e with breve")},{character:"ĕ",title:e("Latin small letter e with breve")},{character:"Ė",title:e("Latin capital letter e with dot above")},{character:"ė",title:e("Latin small letter e with dot above")},{character:"Ę",title:e("Latin capital letter e with ogonek")},{character:"ę",title:e("Latin small letter e with ogonek")},{character:"Ě",title:e("Latin capital letter e with caron")},{character:"ě",title:e("Latin small letter e with caron")},{character:"Ĝ",title:e("Latin capital letter g with circumflex")},{character:"ĝ",title:e("Latin small letter g with circumflex")},{character:"Ğ",title:e("Latin capital letter g with breve")},{character:"ğ",title:e("Latin small letter g with breve")},{character:"Ġ",title:e("Latin capital letter g with dot above")},{character:"ġ",title:e("Latin small letter g with dot above")},{character:"Ģ",title:e("Latin capital letter g with cedilla")},{character:"ģ",title:e("Latin small letter g with cedilla")},{character:"Ĥ",title:e("Latin capital letter h with circumflex")},{character:"ĥ",title:e("Latin small letter h with circumflex")},{character:"Ħ",title:e("Latin capital letter h with stroke")},{character:"ħ",title:e("Latin small letter h with stroke")},{character:"Ĩ",title:e("Latin capital letter i with tilde")},{character:"ĩ",title:e("Latin small letter i with tilde")},{character:"Ī",title:e("Latin capital letter i with macron")},{character:"ī",title:e("Latin small letter i with macron")},{character:"Ĭ",title:e("Latin capital letter i with breve")},{character:"ĭ",title:e("Latin small letter i with breve")},{character:"Į",title:e("Latin capital letter i with ogonek")},{character:"į",title:e("Latin small letter i with ogonek")},{character:"İ",title:e("Latin capital letter i with dot above")},{character:"ı",title:e("Latin small letter dotless i")},{character:"IJ",title:e("Latin capital ligature ij")},{character:"ij",title:e("Latin small ligature ij")},{character:"Ĵ",title:e("Latin capital letter j with circumflex")},{character:"ĵ",title:e("Latin small letter j with circumflex")},{character:"Ķ",title:e("Latin capital letter k with cedilla")},{character:"ķ",title:e("Latin small letter k with cedilla")},{character:"ĸ",title:e("Latin small letter kra")},{character:"Ĺ",title:e("Latin capital letter l with acute")},{character:"ĺ",title:e("Latin small letter l with acute")},{character:"Ļ",title:e("Latin capital letter l with cedilla")},{character:"ļ",title:e("Latin small letter l with cedilla")},{character:"Ľ",title:e("Latin capital letter l with caron")},{character:"ľ",title:e("Latin small letter l with caron")},{character:"Ŀ",title:e("Latin capital letter l with middle dot")},{character:"ŀ",title:e("Latin small letter l with middle dot")},{character:"Ł",title:e("Latin capital letter l with stroke")},{character:"ł",title:e("Latin small letter l with stroke")},{character:"Ń",title:e("Latin capital letter n with acute")},{character:"ń",title:e("Latin small letter n with acute")},{character:"Ņ",title:e("Latin capital letter n with cedilla")},{character:"ņ",title:e("Latin small letter n with cedilla")},{character:"Ň",title:e("Latin capital letter n with caron")},{character:"ň",title:e("Latin small letter n with caron")},{character:"ʼn",title:e("Latin small letter n preceded by apostrophe")},{character:"Ŋ",title:e("Latin capital letter eng")},{character:"ŋ",title:e("Latin small letter eng")},{character:"Ō",title:e("Latin capital letter o with macron")},{character:"ō",title:e("Latin small letter o with macron")},{character:"Ŏ",title:e("Latin capital letter o with breve")},{character:"ŏ",title:e("Latin small letter o with breve")},{character:"Ő",title:e("Latin capital letter o with double acute")},{character:"ő",title:e("Latin small letter o with double acute")},{character:"Œ",title:e("Latin capital ligature oe")},{character:"œ",title:e("Latin small ligature oe")},{character:"Ŕ",title:e("Latin capital letter r with acute")},{character:"ŕ",title:e("Latin small letter r with acute")},{character:"Ŗ",title:e("Latin capital letter r with cedilla")},{character:"ŗ",title:e("Latin small letter r with cedilla")},{character:"Ř",title:e("Latin capital letter r with caron")},{character:"ř",title:e("Latin small letter r with caron")},{character:"Ś",title:e("Latin capital letter s with acute")},{character:"ś",title:e("Latin small letter s with acute")},{character:"Ŝ",title:e("Latin capital letter s with circumflex")},{character:"ŝ",title:e("Latin small letter s with circumflex")},{character:"Ş",title:e("Latin capital letter s with cedilla")},{character:"ş",title:e("Latin small letter s with cedilla")},{character:"Š",title:e("Latin capital letter s with caron")},{character:"š",title:e("Latin small letter s with caron")},{character:"Ţ",title:e("Latin capital letter t with cedilla")},{character:"ţ",title:e("Latin small letter t with cedilla")},{character:"Ť",title:e("Latin capital letter t with caron")},{character:"ť",title:e("Latin small letter t with caron")},{character:"Ŧ",title:e("Latin capital letter t with stroke")},{character:"ŧ",title:e("Latin small letter t with stroke")},{character:"Ũ",title:e("Latin capital letter u with tilde")},{character:"ũ",title:e("Latin small letter u with tilde")},{character:"Ū",title:e("Latin capital letter u with macron")},{character:"ū",title:e("Latin small letter u with macron")},{character:"Ŭ",title:e("Latin capital letter u with breve")},{character:"ŭ",title:e("Latin small letter u with breve")},{character:"Ů",title:e("Latin capital letter u with ring above")},{character:"ů",title:e("Latin small letter u with ring above")},{character:"Ű",title:e("Latin capital letter u with double acute")},{character:"ű",title:e("Latin small letter u with double acute")},{character:"Ų",title:e("Latin capital letter u with ogonek")},{character:"ų",title:e("Latin small letter u with ogonek")},{character:"Ŵ",title:e("Latin capital letter w with circumflex")},{character:"ŵ",title:e("Latin small letter w with circumflex")},{character:"Ŷ",title:e("Latin capital letter y with circumflex")},{character:"ŷ",title:e("Latin small letter y with circumflex")},{character:"Ÿ",title:e("Latin capital letter y with diaeresis")},{character:"Ź",title:e("Latin capital letter z with acute")},{character:"ź",title:e("Latin small letter z with acute")},{character:"Ż",title:e("Latin capital letter z with dot above")},{character:"ż",title:e("Latin small letter z with dot above")},{character:"Ž",title:e("Latin capital letter z with caron")},{character:"ž",title:e("Latin small letter z with caron")},{character:"ſ",title:e("Latin small letter long s")}])}},class extends Zt{static get pluginName(){return"SpecialCharactersText"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Text",[{character:"‹",title:e("Single left-pointing angle quotation mark")},{character:"›",title:e("Single right-pointing angle quotation mark")},{character:"«",title:e("Left-pointing double angle quotation mark")},{character:"»",title:e("Right-pointing double angle quotation mark")},{character:"‘",title:e("Left single quotation mark")},{character:"’",title:e("Right single quotation mark")},{character:"“",title:e("Left double quotation mark")},{character:"”",title:e("Right double quotation mark")},{character:"‚",title:e("Single low-9 quotation mark")},{character:"„",title:e("Double low-9 quotation mark")},{character:"¡",title:e("Inverted exclamation mark")},{character:"¿",title:e("Inverted question mark")},{character:"‥",title:e("Two dot leader")},{character:"…",title:e("Horizontal ellipsis")},{character:"‡",title:e("Double dagger")},{character:"‰",title:e("Per mille sign")},{character:"‱",title:e("Per ten thousand sign")},{character:"‼",title:e("Double exclamation mark")},{character:"⁈",title:e("Question exclamation mark")},{character:"⁉",title:e("Exclamation question mark")},{character:"⁇",title:e("Double question mark")},{character:"©",title:e("Copyright sign")},{character:"®",title:e("Registered sign")},{character:"™",title:e("Trade mark sign")},{character:"§",title:e("Section sign")},{character:"¶",title:e("Paragraph sign")},{character:"⁋",title:e("Reversed paragraph sign")}])}},class extends Zt{static get pluginName(){return"SpecialCharactersMathematical"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Mathematical",[{character:"<",title:e("Less-than sign")},{character:">",title:e("Greater-than sign")},{character:"≤",title:e("Less-than or equal to")},{character:"≥",title:e("Greater-than or equal to")},{character:"–",title:e("En dash")},{character:"—",title:e("Em dash")},{character:"¯",title:e("Macron")},{character:"‾",title:e("Overline")},{character:"°",title:e("Degree sign")},{character:"−",title:e("Minus sign")},{character:"±",title:e("Plus-minus sign")},{character:"÷",title:e("Division sign")},{character:"⁄",title:e("Fraction slash")},{character:"×",title:e("Multiplication sign")},{character:"ƒ",title:e("Latin small letter f with hook")},{character:"∫",title:e("Integral")},{character:"∑",title:e("N-ary summation")},{character:"∞",title:e("Infinity")},{character:"√",title:e("Square root")},{character:"∼",title:e("Tilde operator")},{character:"≅",title:e("Approximately equal to")},{character:"≈",title:e("Almost equal to")},{character:"≠",title:e("Not equal to")},{character:"≡",title:e("Identical to")},{character:"∈",title:e("Element of")},{character:"∉",title:e("Not an element of")},{character:"∋",title:e("Contains as member")},{character:"∏",title:e("N-ary product")},{character:"∧",title:e("Logical and")},{character:"∨",title:e("Logical or")},{character:"¬",title:e("Not sign")},{character:"∩",title:e("Intersection")},{character:"∪",title:e("Union")},{character:"∂",title:e("Partial differential")},{character:"∀",title:e("For all")},{character:"∃",title:e("There exists")},{character:"∅",title:e("Empty set")},{character:"∇",title:e("Nabla")},{character:"∗",title:e("Asterisk operator")},{character:"∝",title:e("Proportional to")},{character:"∠",title:e("Angle")},{character:"¼",title:e("Vulgar fraction one quarter")},{character:"½",title:e("Vulgar fraction one half")},{character:"¾",title:e("Vulgar fraction three quarters")}])}},Sm,class extends Zt{static get pluginName(){return"PasteFromOffice"}static get requires(){return[jg]}init(){const t=this.editor,e=t.editing.view.document,n=[];n.push(new tC(e)),n.push(new WA(e)),t.plugins.get("ClipboardPipeline").on("inputTransformation",((t,e)=>{if(e.isTransformedWithPasteFromOffice)return;const o=e.dataTransfer.getData("text/html"),i=n.find((t=>t.isActive(o)));i&&(i.execute(e),e.isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}},class extends Zt{static get requires(){return[lD,pD]}static get pluginName(){return"Tooltip"}},class extends Zt{static get requires(){return[KI,PI]}static get pluginName(){return"FindAndReplace"}init(){const t=this.editor.plugins.get("FindAndReplaceUI"),e=this.editor.plugins.get("FindAndReplaceEditing");t.on("findNext",((t,n)=>{n?(e.state.searchText=n.searchText,this.editor.execute("find",n.searchText,n)):this.editor.execute("findNext")})),t.on("findPrevious",((t,n)=>{n&&e.state.searchText!==n.searchText?this.editor.execute("find",n.searchText):this.editor.execute("findPrevious")})),t.on("replace",((t,n)=>{e.state.searchText!==n.searchText&&this.editor.execute("find",n.searchText);const o=e.state.highlightedResult;o&&this.editor.execute("replace",n.replaceText,o)})),t.on("replaceAll",((t,n)=>{e.state.searchText!==n.searchText&&this.editor.execute("find",n.searchText),this.editor.execute("replaceAll",n.replaceText,e.state.results)})),t.on("dropdown:closed",(()=>{e.state.clear(this.editor.model),e.stop()})),this.editor.ui&&this.listenTo(this.editor.ui,"ready",(()=>{const e=t.formView;if(e){const t=this.editor.commands;e.findNextButtonView.bind("isEnabled").to(t.get("findNext"),"isEnabled"),e.findPrevButtonView.bind("isEnabled").to(t.get("findPrevious"),"isEnabled"),e.replaceButtonView.unbind("isEnabled"),e.replaceButtonView.bind("isEnabled").to(t.get("replace"),"isEnabled",e,"isSearching",((t,e)=>t&&e)),e.replaceAllButtonView.unbind("isEnabled"),e.replaceAllButtonView.bind("isEnabled").to(t.get("replaceAll"),"isEnabled",e,"isSearching",((t,e)=>t&&e))}})),t._setState(e.state)}},wD,class extends Zt{static get requires(){return[dB,uB]}static pluginName(){return"ImageMap"}},wD,class extends Zt{static get pluginName(){return"Indent"}static get requires(){return[hB,gB]}},class extends Zt{constructor(t){super(t),t.config.define("indentBlock",{offset:40,unit:"px"})}static get pluginName(){return"IndentBlock"}init(){const t=this.editor,e=t.config.get("indentBlock"),n=!e.classes||!e.classes.length,o=Object.assign({direction:"forward"},e),i=Object.assign({direction:"backward"},e);n?(t.data.addStyleProcessorRules(cp),this._setupConversionUsingOffset(t.conversion),t.commands.add("indentBlock",new mB(t,new bB(o))),t.commands.add("outdentBlock",new mB(t,new bB(i)))):(this._setupConversionUsingClasses(e.classes),t.commands.add("indentBlock",new mB(t,new fB(o))),t.commands.add("outdentBlock",new mB(t,new fB(i))))}afterInit(){const t=this.editor,e=t.model.schema,n=t.commands.get("indent"),o=t.commands.get("outdent"),i=t.config.get("heading.options");(i&&i.map((t=>t.model))||AB).forEach((t=>{e.isRegistered(t)&&e.extend(t,{allowAttributes:"blockIndent"})})),e.setAttributeProperties("blockIndent",{isFormatting:!0}),n.registerChildCommand(t.commands.get("indentBlock")),o.registerChildCommand(t.commands.get("outdentBlock"))}_setupConversionUsingOffset(){const t=this.editor.conversion,e="rtl"===this.editor.locale.contentLanguageDirection?"margin-right":"margin-left";t.for("upcast").attributeToAttribute({view:{styles:{[e]:/[\s\S]+/}},model:{key:"blockIndent",value:t=>t.getStyle(e)}}),t.for("downcast").attributeToAttribute({model:"blockIndent",view:t=>({key:"style",value:{[e]:t}})})}_setupConversionUsingClasses(t){const e={model:{key:"blockIndent",values:[]},view:{}};for(const n of t)e.model.values.push(n),e.view[n]={key:"class",value:[n]};this.editor.conversion.attributeToAttribute(e)}},class extends Zt{static get requires(){return[vB,yB,Am]}static get pluginName(){return"HorizontalLine"}},class extends Zt{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("qmsBpmn",(n=>{const o=new $d(n),i=t.commands.get("bpmnDialog");return o.set({label:e("Business Process Model and Notation"),icon:'<?xml version="1.0" standalone="no"?>\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"\n "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">\n<svg version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="24.000000pt" height="24.000000pt" viewBox="0 0 24.000000 24.000000"\n preserveAspectRatio="xMidYMid meet">\n\n<g transform="translate(0.000000,24.000000) scale(0.100000,-0.100000)"\nfill="#000000" stroke="none">\n<path d="M30 180 c0 -16 5 -30 10 -30 6 0 10 -22 10 -50 l0 -50 50 0 c28 0 50\n-4 50 -10 0 -5 14 -10 30 -10 27 0 30 3 30 30 0 27 -3 30 -30 30 -16 0 -30 -4\n-30 -10 0 -5 -18 -10 -40 -10 -39 0 -40 1 -40 36 0 19 6 42 14 50 17 16 66 19\n66 4 0 -5 14 -10 30 -10 27 0 30 3 30 30 0 27 -3 30 -30 30 -16 0 -30 -4 -30\n-10 0 -5 -13 -10 -30 -10 -16 0 -30 5 -30 10 0 6 -13 10 -30 10 -27 0 -30 -3\n-30 -30z m40 0 c0 -5 -4 -10 -10 -10 -5 0 -10 5 -10 10 0 6 5 10 10 10 6 0 10\n-4 10 -10z m120 0 c0 -5 -4 -10 -10 -10 -5 0 -10 5 -10 10 0 6 5 10 10 10 6 0\n10 -4 10 -10z m0 -120 c0 -5 -4 -10 -10 -10 -5 0 -10 5 -10 10 0 6 5 10 10 10\n6 0 10 -4 10 -10z"/>\n</g>\n</svg>\n',tooltip:!0}),o.bind("isEnabled").to(i),o.on("execute",(()=>{i.execute()})),o})),t.commands.add("bpmnDialog",new xB(t))}},class extends Zt{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("aboutCKEditor",(n=>{const o=new $d(n);return o.set({label:e("About CKEditor"),icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>',withText:!1,tooltip:!0}),o.on("execute",(()=>{var e,n;e=c.a,n=t.id,window.postMessage({eventName:"QMSCK_ABOUT_CKEDITOR_PLUGIN_MSG"+n,value:e},"*")})),o}))}},class extends Zt{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("qmsFlowchart",(n=>{const o=new $d(n),i=t.commands.get("flowchartDialog");return o.set({label:e("Flowchart"),icon:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="500px" height="500px" viewBox="0 0 500 500" enable-background="new 0 0 500 500" xml:space="preserve"> <image id="image0" width="500" height="500" x="0" y="0"\n href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAABGdBTUEAALGPC/xhBQAAACBjSFJN\nAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAABu\nvElEQVR42u29eYCcx13m/3x7Rqctqe04DgE2HgUnIYTELfl2bGuGcCwB1iNgQ7jimQTILvyCrCzX\ngmNplk2AX2AtkXCEHBo5d+xYIzawgSyolQTJTmxNmzMEgtuwgV2SxZ2T+FDX/vFeVfXWe/X08fb7\nPp9E7n7frreq3uq353mfqm/VCxBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEII\nIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGE\nEEIIIYQQQgghhBBCCCGEEDJyZNIVIIQMlz2dMy0ATW1XE0BL2+76/0LWWze0J11vQsjGoKATMoXs\n6ZyZBzDn/9uHuGgPStf/1wHwiP/aWW/d0Jv0ORNC0qGgE1Jy9nTONAEsArgCwDyGI9xF6QJoA3gI\nwNp664bupNuFEGJCQSekhPjd5rdicgKeRRdAW4CT51o3rE26MoQQCjohpUET8SWYY+ClIvZHQwEA\nVgGcPLeH4k7IpKCgEzJB/O70JQAH4I2Hl5IEEXel7MET96Pn9lzfnXS9CakTFHRCJoAf1Ba48dJR\nQMDTsmkDOH5uz/Wrkz4fQuoABZ2QMeIL+SF4Y+OlYkgi7qIrwMqDFHZCRgoFnZAxUEYhH6GAJx3V\nhcLKg3sp7ISMAgo6ISPED3S7EyUR8lGKeOIR8TK6AA4+uPf6tUm3ByFVgoJOyAjwg90OAbhtkvVw\n/sBV7pSD5Z9YRuzYNoDlB/YyeI6QYUBBJ2TI7OmcWQRwDBOaelYSF57zeAGAlQf2Xnd4DE1DSKWh\noBMyJHxXfgIT6F7PJ+Ljd+Hu4x05KnQB7H/gyus6I2geQmpBY9IVIKQK+K78YYxJzMX6B2X9c6Yc\nMO+AxDKyjk/I0cxrToD1qx+87/A42o+QKkKHTsgG8F35nRjDfPKpd+FWfik17QDY//Err+sOdDKE\n1BQKOiED4kewH8OI1lqfwLSykQp4wZr2oGT541dduzbQyRFSQ9jlTsgA+F3spzBkMY91TGd2ow+5\nK71I3ZLqoOVXuKZKACUQJU0BTlzzwP2Hh9m+hFQZOnRCCrKnc2YJnjPfMBNx4anlpB07dBfuHy9Z\nx61+7KprlwdqAEJqBAWdkALs6Zw5hg2Ol9doLDzh2EwBd9WgA4WF+6++tjdQwxBSAyjohORkUDGn\nC0chETeGG0w6gCzcf/U1vUHaiZCqQ0EnJAdFxZwufCAXnnmzI14E/MJ9FHVCYlDQCckgj5jThWNY\nLtxIkdCuHQAL911DUSdEh4JOSAppYk4XPjIXnnnOgVM/S1EnJISCTkgCtpjThWOcLjzPOXagsHD2\n2qt7RU+DkCpCQSfEQSDmdOETdeHuPcrY6gBYOENRJ4QLyxBis7dzZkkCMR/iGumpR41qjXQ1QE2j\nxV0yjwvzVt6/pHaK/pe+9nzi4jVKvHNRsXNpwVt6l5DaQ4dOiMbe9TPz8FaAs6ALj+U/PheeUvcw\n3cqfXHf14aKnTkiVoKAT4rN3/cwcgHWEzzHnWHgsTcqQwwbGwo30BUTcznH/n1x31VrRpiCkKlDQ\nCQGwd/1sEwOuzU4Xnn7OIxRwM1eFHoCFj15/Vado8xBSBTiGTojHnSgg5pUdC8fExsKd7RilS8hR\nRf/g9awcu+nsA828TURIlaCgk9qzd/3sInIsHJP5pLKcIp60J5YfCoq4LuAFA9qQKeJZT4BLuEkJ\n65Qh4rqAK7tUrdV0AXfeQEgLSg7laS5Cqga73Emt8bvaH0Y4bh7BsfD08x1HV7po6dxlm2Vqexc+\nfMOV7RzNQkhloEMndecYfDGnCx/QhWPsLjwsM6Udj9185sFmniYlpCpQ0EltuXL97KIAi5McCy8s\n4jmOGdVYeLwrHYaIu+uOQcbCrbL9mipTxJNvwARQMifseic1g13upJZcaXe1jzAiPSVVwrGTi0iP\npzNvTIYYkZ5RdmJXemKbiTu/hfYL97azqk1IFZiddAUImQgKh+AYN7cp41i4ka76Y+EDtZd2w3An\ngD1Zp0BIFaBDJ7XjynNn5+C5cyd04Vl1t4+arAt3l2WkXG7fuGc167QImXY4hk7qyDF9g2PhwxkL\nB0YyFm4EAKaXZZ1h9PmdCx9Zb+a8NgiZWijopFZcee7sPID5skekZ4t40Yh0bc+IItKTRDxHRLq7\nzazP42WZtwIpdWkKcFuer4yQaYaCTmqFAIfq6cJlaly4pJaV6MIT2jWsy4EXfbjTzH2hEDKFUNBJ\nbbjq3H3zgMzThZt5lsqFA4O68FDANRHXj26CLp1UHAo6qRPevGS68PK68JiIF3Lh8TqYNy0Hvvn0\nQ83CVw0hUwIFndSCqx68rwWF+YFcOIQufDpcePyc9bpDmshYs5+QaYaCTmqBAAcG70qnCy+1CwdS\nb1qsG4QDA11AhEwB+QwKIVPM1Q/e1wTwaHoqyTcHO0rtMZJ54dqePIu7THBeeNLnEssnfjORWhcl\nSD46+5yT8xcA2P+H8y9YAyEVgyvFkTqw5Nxb8dXZALewjULA3WUNX8QHFHD7HG8FsAZCKgYdOqk8\nVz9438MA5ujC42Wm54ZpduGxYQw9X4Hs/uA3Pb8LQioEx9BJpbn6gftb/pO3Sj0WnhnQhg2OhVsB\nbWUYC4erDvnHwrW8/f+FwXLWOYbtGJyTAMDi8K4yQsoBBZ1UGgFuLUtEOooI+LAj0lWCgAOZ0/BG\nFZHumFYWO9/kG4RIxJ03KZaAS7z9bt341UVIuaCgk6qzaO9Id+FeCskp4pN04VFpo3PhcRGfKhee\n0n7SevEf/fnchq8uQkoEg+JIZbnmgftbAOZKNRbupyvTWHi8vPKOhZvlIibcyXmKa/8igCMgpCJQ\n0EllEWAxTcQTHXM8H/eeMUSkR6klll9q2dWJSI8FJ25QxLX0cgso6KRCsMudVBeFW6KNeECbnyaz\nK93Yk2cs3M93GGPhopVZl7Fws9zMsfDYOYXp7XPRhxm8c5j/zj/8i+YoLj1CJgEdOqkk1378Y00A\nLSBfV3o5XHi83NSy6cKh3zC40yfUMEo/D85JJxWBgk4qiXh/qD04Fh5tpd3MTO9YuJY+4RwcPQM+\n+0BBJxWBgk6qicI+exdduCNVPVy4M+rdZx6EVAQKOqkqLaAOLtxRUklduJEux/kM0YWnldMCIRWB\nQXGkkggwv+F54Y7grjD/rLnYY5sXbga0OQP7cswLh3a+Yp/FgPPC8wa06bV1BbMBZkCbeW5a/e3/\n5QyaW/zgX82P6bIkZKTQoZPKcf3HPt4CQBeeVIdJuPDYcWN14c4bryA/gbQAtEHIlENBJ5VDFOZS\nE9R0LDzpnJNvECY3Fu4qx1XWIALuyOcyEFIBKOikirRie+jCc55rNV24s87RNdECIRWAgk6qyBV0\n4Y539Xbhie0jioJOqgEFnVQOUWjShdOFB/slKw+FJgipAIxyJxVEWsbWABHp5ucapYpIN6PwxxKR\nHosWH29EemadE2Yp2HXVjwcE3/uBT7ZAyJRDh04qR5LjmoQLd39OF57WbiNy4Vnt1wQhUw4FnVSK\nG88+0NS3BxNxsUTC+pRj4YONhcfqN/Sx8IRzSv9+fGffBCFTDgWdVAoJI5bpwunC3XWw202LdF8D\nIVMMBZ1UDJl6F56UfxlduF1eqV24n6/dOvZ5EjKtUNBJpUgSJwCjdeHWjUQZXHg8X+38XedSRhdu\nlb9BF558rmnXDSFTAgWdVBi6cLpw7TOV41hCphgKOqkWdOHRf+nCCx1PyLRDQSeVIv5HPT3FRF24\ndrxZpiNdjnOqmwu3U+d24TlXESRk2qCgk0rhdqZ04e6yR+fCrVqWxoUnTWOkpJMqQEEn1cIRsUwX\n7q5XLV24vT/jeyBkmqCgk0qSLuLT4MK1lKV34e66ltaFK0e7gJDph4JOKkWyMNXThcfzS+gCz6pz\nBV14Ul0JmVYo6KRSTNdYuJZyWl14uD0lLlyrK+eek6pBQSfVQkk3eEsXXrDOk3ThsbqOxoUn3tQg\num4ImVYo6KRS/PHNre6LPtzxNkrkwpPKK6MLt/Mpswu3zynLhdtDMBLt74KQKYeCTqqHGo6I04Vn\nt18REZ+4C7dFnGPopGJQ0EnlEEgbwDxQEheeNJ5PFz5eF24Lv1bGW1/6jDYImXIo6KRyVMeFayno\nwtPPJTw+v4gn9eIQMq1Q0EkVOQ1gni6cLjxehvO4NgipABR0UjkE0k2csqaGI+Defrrw9GNL5sJV\nYh26IKQCUNBJ5RCl/YGmC08oq4Qu3GrLIbvwtBuJR0BIBaCgk8rxBwsvaP/bP/4z52eTdOH2/jK7\n8Hhdp96FJ9eBXe6kIlDQSVXpAGgB1XPh0bbjZiOXCAd5jN6F23WdoAtPa88OCKkAFHRSSUShDV/Q\nS+HC/fymwoWHdbXKnKALN/aq7HbNrENU985v/vBX90BIBaCgk4oiDwF04XTh8c+t4zogpCJQ0Ekl\n8R26tk0XHju/0rpw77ghuvC0406DkIrAFRVIZfmOD/3FOoJxdP2DJIHDpFy4I2VpXbj2yZS48Iw5\n7Re98dan90BIBaBDJ5XFj15u0YVbZdbPhTuOEwDovGHpq3ogpCJQ0El1UTgJ4Da6cNTPhdt1d5d9\nEoRUiMakK0DIqPjAtz6vLZAe4IlA8M9DAAhEibFfgn8K/meC4H9Q8Fxk8C/4nzLzif6JLyRBWVod\nrOPDfKELpWh5xM/BLN+sE5T3L6lO0bHWfu1coPT2CPLzZLShHaeVGh2n3McVrYP+r6EEjYTjYB0D\nLb+GsusW5rA26WuUkGFCh04qjSisAViiC0+uq3towZweVgYXHu0v5MKT2q175OVP64CQCkFBJxVH\njovCkrEneFPysXD7+DKPhWe164jHwvOKuJ7PGgipGIxyJ5Vn8YN/9TCAuXEssUoXnq8O+vYIXXis\nbK2k3f/tFZd2QUiFoEMn1UfhuEAOWfumw4Xb++nCBxRx4+al/Ws/8tQuCKkYFHRSeQSyCoVD3vto\nL7BBFw7ElyEFXbjr82LR9JJ+E5PXhSefw3EQUkHY5U5qwXf//l+fALBIF75BFx4eV3oXHjsHP23v\n9T92yUUgpILQoZNaIApHASz674O9dpro/RS4cG1v6V24s31H68KTvpejIKSi0KGT2vC9H/jkOsIn\nsI3WhUfHl9+F2/UotwtH6gpzSWVqXPT/v/IpPRBSQejQSZ04KgrHgo2pduFhfnThWSKu1X31l//D\nxT0QUlHo0EmteMl//xtrCpvJMEScLnyyLlwSygSw+5f/48VdEFJR6NBJvVBYEWguvVQuHIaQ0YVv\nXMS1/Fd/6ccv6oKQCkOHTmrHS0/+7SkA88H2hlx4uD0FLlxLp5c1SRdu5yOJdS0s4Pp2D8Du1/34\nRT0QUmHo0EntEGAFShN0uvBiLtwvv4QuPKldj772J5o9EFJx+LQ1UjvefcvlbYGsuZ905v3XeFIZ\nMNhTwhAca35uPKkszA+5nlRmPS0McNWt4JPK3E84055UpqyyVXK7BXk0Us4hzBtm/kl1CeueUMfE\ndvXSdkXhyKSvOULGAR06qSWicBDAPCBNACN90Mk0uHBvOzkQrUwuPLFd3WkP/uKrdvVASA3gGDqp\nLT9479/dJsCd4Y6SjoVH+dV+LDzxnBLSr/2XV+3aD0JqAgWd1Jofev/frQukpe+jC3fnUQoXHtbZ\nXRetrB6APSs/ubMLQmoCu9xJrRHIsiisB1vApF249knJXXiQz4RdeFJ5Bw8foJiTekGHTmrPy+7p\n3iZK63pHlthY4gakusZJuHC7/ORV8Sbvwp3tms+FJ7XT2qEDO9jVTmoHBZ0QAEt3d7256ZN04f72\nVLhwfyqbXccxu3BXeT0Au++4bUcPhNQMdrkTAgBK9gvwMIBmTHTDNHThqXUfpwtPKAvA/jsOXtgD\nITWEDp0Qn5e/95EWIOujDGgrswuP17W0Ljw8XvQSFA7e/uoLj4CQmkJBJ0TjFe/5+yUJ1nqnC9+Q\niMdcuH+DsFEXnnDDsHr7qy9YBiE1hivFEaLx1pc+YxVKVvOtzhaIkmOFuA2uzpa0glq4Olso7vlW\nZ9PPwcgb7roUWZ2tkX/VNiNPvR3DdrJXoNPzhLssUej4CwURUmvo0Alx8KPv+odjAlkKtsfpwo18\n6MITzj08vgPBws//p+09EFJzGBRHiAOBHBSFFoAWx8KL1WU0y7lax3qvPQDL//mnKOaEAHTohCTy\nynd+uikKpwC0gPq68GB7gi7ctb8HYOHnfnpbB4QQABR0QlL5j2//dBPAKX152Klw4X76qXDhSXVN\nPt8egIWf/RmKOSE6FHRCMvjxt/+j5tSr7cK1rTK4cNc59wAs/MzPbu3k+/YIqQ8UdEJy8BN3/ZPV\n/T5+F66XGx5TUhcepR/YhRt18I/qAVj4aYo5IU4o6ITk5P87/k9NUXJMgEUA+Vy4vb/MLnxkwXMb\nEvGgnA6A5Z/+uS2dwb49QqoPBZ2Qghw49n+OAViiCx+JC3eV0VGChZ/6uS29wb81QqoPBZ2QATjw\ntv9zm0DuBMruwmEtkVpqF+4KmlsFcPA//efNvQ1+ZYRUHgo6IQNy8K3/PC/ACQDNobrwcDt4XwYX\nrh3hquvGXbjrnA6++uc3HxnKl0VIDaCgE7IBXv2WzzQFOAGFeYAu3HXOhaaueWm6APYf/IVNneF+\nW4RUGwo6IUPgp9782cOicEjf5xJxunDHOZl1XwOwfPAXNvWG9uUQUhMo6IQMiZ/+nc+2RMkxJK0s\nN8SAtmlw4VF6pwu3694DsHzb7ZvWRvcNEVJtKOiEDJmf/e3/e1ggnlsvqQsPtp09BmrkLtyu+xqA\n5QO3z/ZG+sUQUnEo6ISMgJ/7rX+ZE+AYlMwDQ3LhwJCmsI3BhWf0IPjbXQDLP/ma2fZYvxxCKgoF\nnZAR8vO/+eiiKNwJyBwwGRduHz8hF64f1wNw9CdfM3N4rF8GIRWHgk7IGLj9jb0lAQ4BmEsT8XK7\ncC2H/C5cr1sPwFEAR151x0xvol8IIRWEgk7ImHjNGz7XFGBRlHjC7lNRF65v9+AJ+eqr7pjpTvZb\nIKS6UNAJmQCHf/3zS1A4IJBWxVy4ThfAcdCREzIWKOiETJCVI1+YF+BWKFkCptqF67QBHH/VHTOr\nk25fQuoEBZ2QEvCLd36xKQqLAG4BZHEcLjzYzoqmzyHggPc0tOMA1titTshkoKATUjJe+2tfagpk\nEQq3CLBoiCtgdYFPzIUDFHFCSgUFnZCS88uv/9d58daK3wdgfsIuvA3gNIA2x8UJKRcUdEKmjNf/\nyldaUNICMCfAPgHmoDA3RBfegyfeHQCPAOi86o6Z9qTPmxCSDgWdkIrw3173+ByAOV/IWwCaOUW8\n7e/sveqOmc6kz4MQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQ\nQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIaWCz0Mn2NM5MwdgTtvVWW/d0Jt0vQghbm786INN\neM+8D+h99MYrO5OuF5ksFPQKs6dzpgVPqFsALkMk2vMFs+oB6PjvT/uvbQDd9dYN3UmfJyFV4caP\nPtgC0IT3G92FSLSD/QaijC374w68324XwCOi0AXQ/fDNe9uTPk8yGijoFcEX7xaAff5ra4zFt+EJ\nfQdAm+6ekGxe+CcPtkShBeAKeL/X+TzHZYh4SlqDDoAOlDwEoP3hfXs6k24PsnEo6FPKns6ZJoBF\neAK+CMfd+wTpwBf59dYNa5OuDCFl4IV/8uAcgHlRuAWeeDfzHFdEwOPpHagoDy23Hrzf7EkA7dP7\n9nQn3FxkACjoU4Qv4ktA+AdhGuhBYQ3AyfU9FHdSL3wRXxSFW1Gg12xILjzCF/E8f/D9/DoAjgNY\na89T3KcFCvoUsKdzZgmeiC9Oui650f7IWC5gDcDRc3tu6Ey6ioSMAj9gbQnIL+JjcuHuvADj9+qo\nRwcKRwGstRdavVG0GRkOFPSS4keeLwE4gHJ1pyfj/1HIeVF14An76qSrTcgw8APaDsD73WZSAhfu\n+kTLL7anB++GfOXUQqs7hCYjQ4aCXjJ8IT+EnH8UJorbhefASN2F17V35Nye63uTPiVCinLjRx+c\nh/ebnU9LV3IXnu/3HKVZA3D01De12oO1GhkFFPSSMDVCXsyFa2Qe0QNwFBR2MiXkEfIpdOFWeUk5\nhEe0Aaz88Tdd0c7dcGRkUNAnTOmFfDguvAg9ACvn9lx/ZNKnTogLv2v9TjiEvGIuXEsrqWnFE/bl\nP3rRFd3MkyYjg4I+IfyI9dtQxjHy0bnwInQBLJ/bc3170s1BCBAGux2C97sNqYELd6Z15qfkCICV\nP/rmF/RyVJ8MGQr6BNjTOTMP4BjM5VYnx/hdeO46iTdWd/DBvdd3x90shAT43evHAMxN0oUn5zd6\nF56cn9g3DT0AB//nN79gNcfpkCFCQR8jvis/hjJMPyuHCy9Sp4MP7mU3PBk/N33kwTthuPLhufDs\n3CbgwnPll6P+Cm0Blj/0LS/o5mgRMgQo6GPCd+UnMKnu9RK78AKltAHsf3Avg+bI6LnpIw82AZwC\npJWVtoYuPG8ePUBWPvQtzz+S47TJBqGgj4E9nTPWHf6YmD4XnocePFFvj66SpO7c9JFz80i5AacL\nT8vDeeOxBmD5Q9/6/F6OliMDQkEfIX4E+wmM60Ep1XDheVl5cO/1h0dXcVJXbvrIucPwgt8M6MLT\n8nDX2zrXLoD9f/htz+/kaB4yABT0ETG2LvZquvAcZQgAb4zugSuv646yKFIPbvrIuSa0GBe68LQ8\n0gU8+XwFAJb/8Nu+cRVk6FDQR4C/9vqxkWReLxduleOcztMDsPLAldcdGWXRpNrc/OFzLXi/2VZq\nQrrw5DrluGHR0qz+wb/9xuXsFiRFoKAPmT2dM8cw7EViSizi4xDwnOV04Ln1ziirRKqHL+ankNSb\nRhc+iAvPaA8AwJooLH/w27+xBzIUKOhDZGhiXmIBH3EphRbVSOAIPMfeG2U1STW4+cPnluCt+tYM\nd9KFJ9epmAvP0V7SAbDwwW9/Xg9kw1DQh8BQ5peXWMRL5MLz1rkH4OADV123Osqqk+nl5g+fa0Jf\n9Y0ufFQu3JEmVsOOKCz8jxdT1DcKBX2D+GJ+CkUj2Uss4CMuZRguPLHeVv3bAFY+ftV17VGeDpku\nbj693oI2Xj6dLhzZv6PyuPAcadABKOobhYK+QfZ0zqwjr5iXWMSn0IXHSMl7FZCVj191bXeUp0nK\nz82n1w8DOEQXnud8h+rCk/OIzqsjwMLvf8c39LJLIy4o6Bsgc8y8xAI+4lLG6cIzCFP1oLzHs378\n6mt7ozx1Uj72nV6fR8bzE+jCzeNG4MKjtMk3Lx1RWPi976SoDwIFfUASxbzEIl5xFx5P4c6jJ8DR\nj1197eFRNgcpB/tOrzfhBb0t2Z8VceHWXufnZg504UXOy3r0awegqA8CBX0A9nTOHEawklSJBXzE\npYxFxAu68CJ5dAGsfOzqa1dH1Dpkwuw7vX4bvN9pM9hHF24eNyEXnqd+q7/3nc/lPPWCUNALsmfd\nXDSmbCI+7QKeL+8cbiR/LbpQWPnYNRT2qqB3r9OFm8eVyIXnqd+RD3zXcw9m15gEUNALsHf9TAtp\nC1DEoAtPq3exfAdy4UXq0RXIyv3XXLM6jNMk42f+9Po8FA4BmI9/SheemHJyLjxZ5MN8Zfm//7uv\nXwXJBQU9J3vXzzQBrCMlqMZjykW8mi68iMvqAV7w3P3XXNMbRhOQ0TLfXp+DN06+aH5CF57EqFz4\nhupnfEdaMCuw8N//3dd3ss+KUNBzsnf9zAkkLhwzomakCx8gj6x65MglWpxmFcDR+6+9pjuMZiHD\nZb69Pg/gVoQBb3ThiSkHduHZ5zVw/dwC7krTEWDhd2/5+h5IKhT0HOxdP3MbPAfgQxeeVGedErvw\nXMdpdVgDcPS+a69pD95IZFj4Qu53rdOFJzFFLjzhc6NOq7+7+BwGyWVAQc9g7/rZFqBOAdIcSQF0\n4QPkkVWP3C48Ty11uv5c9tX7rmN3/LiZb3eWABxAsJATXXhKHlPnwu3cXDdD+08uPmcNJBEKegZ7\n18/mXwkuL3ThBfPIU4+NufDUeihnilUAx++77up2keqTYsy3O3PwRHwJQLP6Ljw6toYuPL1OCj0A\nu0/uf04vu2XqCQU9hb3rZw8jmG++EejCB8gjqx4jc+HWcZJ1bBfAGhSOnr3+6m7RUyNufDd+K1QU\nsU4XXgsXnpX32tr+Z+8HcUJBT2Dv+tk5eFHtzYEyoAsvmEeeeozdhRc4DoC3wtVxAGsU9+LMtzvz\nULgVXvBpExiuC0/OL78LN9OUxIUnlT+NLlw7VhLaV4CFE9/97HZ2y9UPCnoCe9fPpkS1O6ALHyCP\nrHqUxoXnLk87rgMlJwGsnbnhqk7R5qgL86c68wBugfdbmyviwoGCYmKkyezeTfg8x3W/wYA2M49a\nunBjv8TTdk98z7N3g8SgoDvYu352Ht4CMunQhRfMI089xiHiG3Lh6ccpZy5dAG0BTgJo/8kNV/WK\nNFWVmD/VacJb+CUQ8WblXXjKse486MIdIm58IsDKvd/zrMMgBhR0B3vXzz4M1wIydOED5JFVj6l2\n4X56KZAWgNc174n7C69qZ5c23fgufB7APgDzdOF04fb+LAF3pOkB2H3v9z6rBxJCQbfYu352Cdpa\n7XThRfPIU49KuvCU9JmpOwDaovAQgPZHb7yym91A5WS+7TtwhRZ8AY+1R0a70IUXP68qunDjnfu4\n1fd/77OWQUIo6BZ7z0XunC6cLjxKX9iF50qd4uTa8Jz8I/5r56M3XtnLrvX4mG93WvB+Ky0A+6Aw\nh6zfDl24mWZqXHh2nbJcuHFsPheeWg+f3e//95d3QQBQ0A2uPGe582FCF5772Mx6TKcLj97luJlw\np5UePHHvAXjIf+34H3Y+ctPeXv6cs5lvr7fgRZs34Yn2Lu9V5hAMSY17cRe6cGfdUus/LS7cyM9d\nD0d7rN7zksvp0n0o6BpXnksYOx8UuvDM43LVYypdeHREEQGPp5cCaUN6CIS+wDXoi8185tkXGC81\nc6ALd51XZV14QtsM4MJT20OU7L77+76uC4LZSVegLPjufG5jueQIDikCXTgKCXjR8srpwgumd7WB\nNJE2dm2XliFqdOFpedCFj8GFW60hdvseAHAQhA494MpzAy7xSheeeVyuetCF50ybQJazypUfXXhi\nyg268KQj6cLztYek/257orD7fS/9uh5qDh06gCvPnW0ht5jThec9NrMedOE507vaoHBXevqZ18iF\np6dxfV5AxCfpwrU0FXThacc1AVkCcAQ1h4LucSD1U7rwzONy1WXaXXju9P5RdOHO+iemGdCFJ59v\nsZsvKZsL186XLjy5p8TP7wAo6Oxyv/Lc2SaAh2Gs2U4XnvfYzHrkGW/caHl04RVz4doWXXhimpq5\n8Mz2E4WF9/zAM9uoMXTowYMgauTCvXxkoOMy6zKoC89RJl143vzowrPbjC48np+jzgXqkac9NujC\nM8qRW+Gt31BbKOhKbqELTz82sx504TnTu9qALpwuPDkNXXi+tH4ZiwCWUWNq3eV+1YP3NQE8OnAG\nI3Lh+fPJyoMu3HUEXXiQni68yHnRhedrjywXbh5b2IXH6mrVc/+7f2huLbMCFaXuDn2xUOoNia8M\nIY+setCFJ6WeFheenN+Uu/CkOtGFT70L9/YXudHdkAvParNbAKyhptRd0G/JTDHtXel04bkYlQvP\nzm0CLjxXfkWEJb3O+c6XLpwu3FGrIjc97HavfZd7/PIahgtPyGcYAW104cmp6cI34MK1sU668Jx1\nG4MLN/Kukgs36l3YhWed1553vuyyDmpIbR36VQ/eNx9u0IUj5c/8QGXShefNjy48u82q48ITz2aS\nLtxKH7VBaV14Ynp/3yKihxbVitoKOhwPoaALpwtPhS48uU5T6cKjI+jCg/1T48LT0u5DTamvoPtf\nOl14uV04MDoRpwtPy4MunC7cbqdSufBYWu2T+cyTqii1HUO/+oH7Uv7c0IVnllkWF27kTRdOF55c\nv9K48MT83G1DF57dTo4bloW3Lz2jjZpRS4d+9QPa+DkAuvCc5dGF04VbxxVz4e4a0oVbdS5YD+Pz\n+rjw5Pp5Ly3UcNW4Wgo6IC1jky7cfSxdeEp+dOH52mvMLjzhvOjC046bDheeWr94fleghtRT0BUu\nc+2mCwddOPKJGl14Wh5DdOGJ9aYLN/aP2YUbewd04WYe7vIyXLiRn5W2ldkgFaSegu5/2XTh/rtC\ngl8gZ7rwDbjw6Bwq5cJz9C7Qhedrj2G6cHP/1LjwtLZpoYbUMijumo/f/yiMx6UmQBdOF47ibU4X\nXuy86MLztUcxFx6VVBoXntRORVx4gbYRYPexV3xtN7PRKkRdHXoz8RO6cLpwFGt3unBHGXThdOFp\n7TQcF57VHnMAuqgRtRP0az5+f8vYMW4XbhxLF56cNqkNRuPCE/OjC89RRvZ50YU7zrxsLjzpRqzE\nLjyxPbw8WqhZpHvtBB1Aky48T9504WYOdOGxMujCM7un87QHXfiGXHhaHk3UjPoJuoq+ZLrw5CPo\nwunCi55XtVx49ElpXHisfslpk+taOReelnYXakbtBF2QEf1IF56LrCU73WmT2oAuPLFOdOFm+WVx\n4Qm/RbrwsbvwxPaQGk5dq52gx6ALzwVd+AD1pwt3toeXWjI+z18nunB7b61ceK761YV6CjpdeC6G\n6sJzuL3s/OjC87XXeF14Yhq68JTj6MIHb48ofZ4b0zpRP0HPc4fpTD85F26kL4sLz1MXuvCpdOEb\nqt+oXLh2LF24/64iLjypzMIuPOuGuwbUT9B9JuvCMeSudLpwMwe68KLnNXYXnudaoQunC0f2NZ1+\njvWidoIu/nPQDejCk0ugCx+yC4+OpQtPzpsu3H9XAhdetG3G7sJzxFDUhdoJOoDewEus0oWDLjyl\nTnThdm504cBQXbixvywu3ChzQBceq3eR9si4bmpE/QRdyUMAFu3dY3fhOfKmC7dzGL0LN9OUxIUn\nlU8XXgEXjhyu031edOH52qlO1E/QNejCU+pREReemGaSLtzImy68Wi5cS08XbqQfqQvPcV51oHaC\nPoiI04WnlZ1QjxG58OT8JujCU45150EXPi0uPDk/d1q68Hz1G6YL1387iTfnNaF2gg6ALjzIY8Mu\nXDt6QBfupS8gJkaaEbnwxLrShU/WhcP5W5x6F54j+I0uPPm8Mm+cakT9BL3gHW0SdOHIFl268HhO\ndOFwfjN04VZ6uvBYHlkin1BOnaifoHuP0zsE1MGFo9AdK124eRxdeM68nWO/CXXOrAcwVBdulDOg\nC9fyoAsvjws39rvLOI2aUTtBdwWbZKYFSuHCc+U9bhee0DZ04cXPiy48uz0kIfgt+Ti68Glx4Xo5\nxW+cMm4UakLtBB1Kukkfjd+Fx0rNSJt4TjlyysqvwA+CLtxMMzUuPLtOdOF04anpy+fC0/4+dFEz\naifoZ264qnvDmQfC7cq78MTzogtPTEkXPrgLN/Jz1yOrPejC085lci7cSF1GFx4vo4uaUTtBBwAB\nOgBaRZZYpQsP0tOFFzmvqXfhCW1DFz5ZF26mr5ALN/Ib7EZBo4OaUUtBh0Iv+UO6cDOHerrwxHIm\n6cK1NHTh+dLSheer36jEdQwuPLH9fv3VT+mhZtRT0L3ox/loM78Q6NCFu+ufmGaCLtxMUxIXrp0X\nXXi1XLiRgi48sZwhuPCktmujhtRU0KUTvqMLn0oXnp7G9TldeF1duLF/YBcefVIaF27Ur54uPLk9\n6tfdDtRU0EXl/7Lpwt31T0wzoAtPPl+6cLpwR6027MKBrG53uvDk8yqJC09uD+Ah1JBaCvpHb7yy\ne+NHH+wBaNqf0YUPUP8sEacLT0xDF54v7dhdeGx/Rn4F2oYuPLvtvP1ZLjwhD+99BzWkloLu04b/\nGFW6cHf9E9PQhSe2CV24fWyFXLg+tk4XbuU3ARceF/GgHr07f/qiDmpIbQVdFE4DWKQLz1n/QQPa\n6MKn3oV7+4vc6I7Bhec4L7rwnG1aMhdupk8XcLsefpo2akptBR2QduIndOEpdaILpwu3j6ULH1Z7\n0IWntIejHgntexo1pbaC/pGb9nZu+si5LoA5YLguPDm/Cbpw/Q9VjvLowoFxuHAj7yq5cKPedOFl\nceFGmgFvFBLzGK8Lt9rX+I7aqCm1FXQAEIU2gKXEBCN60MlQXHiu/OjCC9dvgy488Wwm6cKt9FEb\n0IVPuws30pfFhW/kBii/Cze/oyhN99d+rtlBTam1oAM4CV3Q6cKT60QXThdupzXqTRdeWRc+yhug\nQV14Qnv0H3+yjRpTa0H/8M17124+vd6DP32NLjzP+dKFJ54NXThdeFp6uvDEehR04e7vGcDMpk0n\nUWNqLegAIMAaUrrd6cLN48rnwqMjSuPCE/Nztw1d+PS4cHN/SVx40t+EirrwpDZVT57v/eprLl5D\njam9oAM4Dk3Q6cLN44q5cHcN6cKtOhesh/F5/Hw7AunBW/3wc/AW1OgFn939fV/XQ0X47tf+iZIn\n+4Dy2kL6frsoQGliFLSTKF8cws+Uvy0QKK+NlZ9Y+ddSKCb+G32/0r+D4HhlfB7kZYqjt08p7Xr1\n6yL6Z0HeQT2Nssx8AQWlghP33qvwAAXMNtC48ILoWC9VlD48R4XG1q2Y2boNMjuL2R07sGnHDsjs\nbGlduDOtEkhjdnXwq6sa1F7QT+/b055vr3fhR7tH0IUnpqQLT8nP3TZDcOE9eGJ92n/t3vOSyzuo\nCYu/crapFDBz3t+hAIgv4KKJoSASfMBPhFAYvbQSpfWFWbTmFy2fcB+0vEVFNxBaAhFfI0XFbg4E\n3lcc+5aVV6dAjiU4ObFEPpwsHgl4VA/llxFs96HOA/3eF/wi+n6uXjqFKA/v2M9DoR/mpaDQmJ3F\n7IUXYvNFF2PzRRdjS/NiWGc8ERdu3CjEf0fHC19YFaP2gu5zHMAhuvBkRubCE+tdexfegTf95iEA\n7XtecnkXNUYgLQBQ0kAjEDEA4qmhJupBm6qwsUMtlEDIxbzuAgE2RF0iEQ/y0nsBrIsyTGbfCESD\n39o4uAo/U1DhTQm0Ooh9xxCKui/EfreEiPIP84TYE3m/B8Lfi+C8Q4vv/fPSqrBg74bEuzHAk308\n2fscnuj18MWHPwUoha1PfRq2XvI0bH3qpWjMbpqIC48fF37nnV+5fUen+JVVLSjoAABZhcKhcCsp\nGV14jnKyzyvThSecV8VdeBeegJ+EJ+A9kJDgj7lqCNBX3ncUOmaJjy2Ldi0Z/0Vgo0PBjhy5tT/M\nMeoCl0B5VVSYGPX00xsFap9ZF3dDL0P/SKLt4KZAoe9Lb993/FEXenDDoNDXMlGh0AfO23P+vmMP\nbwh8EdfyVEEXQ+D8ReGxz34Gj332n9H7BLD1kkux/au+FtsuedrIXLj+vec47mjWNVQHKOgA2vOt\n7sKpzirs4Di68BxlZJ8XXXhie3Tg9Q6169R9PiDzUJ6gSyDWWrc7gHA/EIxNS+x3JP6Bofvui+/Q\nPTkMbwZU/Lox3Lfu/kVF6YNEwYuVPuhH14cIvHsJFbs50BXRE90Z//iorp7D1wQYool4kEcg+EE+\n/pESdN3D74oHgL7fpn1jTD4Q9eAG4rHPfhaPffYz+NzWrdh12eXYdslXoTGzKV51uH8PA7pwc782\nHPXP6+trG7m4qgIFPeIogKXhunC4L+BcedCFV9CFA96sisCFd0FyIUp2AQAU0G8IZoKAuOBz/ZoU\ny9mJ9ctSDf/6C4S3EYqp3nUemG2BKeZ297juos1xfEu8jUoENx3medhd7so/WILxbwlkVutyF1/U\nw259730gwKGb1yLzgq518R27Eq/M4HYgOAnvXPuR2CM4Lz8Q77HH8ehf/wU+/8insPMZz8IFT/ua\nUbrwJPE/+rZ7b+4N4TKbeijoPqcWWp2FP+60AcwDdOFFz4su3HHmUfoOPCe+RhEfFGl5EeUSylYg\n4mFke5BSu2mMxs1h/O4ksOihy9e+c81kR+PopuArPY3t3FV0nNnNrvUshGUp7VBL4P0x9nCcO8xH\nwYiYC8Pn9XR9v+PAv/OxXHo0xKAANCDoJ3ThK0AagOpDVAOQyLmLFpzXf+wx9P7mz/Clf3wEzd3P\nxZZdFw/HhWvHuqbNqfPn8aXP/vPqsK+2aYWCriGQFfiCHkIXThdu7883L7wHYBXAcXanbxxRaAUj\nziKA8sfNxQ/msm8KjWj2QPitQDr/E+01umK82DkV5WddB4bQ285dzzMMfdf3wQigk1BgtXzCWujB\na4gE13fO4V2DisTaGwUwggMQRMAr8Z156NSDm4qoq160MfdoOCDqlgg8fHg3pZX95Je/iM/8+cex\n46svQ3Pu67Xvb8Mu3Ezrp3nyscdW3/Abz+qO4JKbSmTjWVSLb/rjh05BBS49Abrw4vUrnQuPPhmS\nCw9owxPxVZCh8L2/9MAcFB4OxsQDMzrbb0TXZGhYfaFX2jh46PAQ3XwHRhRRQJ3oY95KO65vRcWr\naHw+yCcUHr+f3pybjlD7wvexesO8Nv0udKXMjJSKxNb7f+Sqg+C3cL+WD7S8vCr6TlvLP5zWpqKK\nBuWE3fhGWVo+6IflBvlsumAHnvrsPZjdsk07r+IuPPy+YKbpnz+PL//ff9599DfZ6xVAh24hCnGX\nDtCFJ9Sv5i5cr8cqFFbu/r6v64IMFVFoRUIcCbU3duy7dr2bPTgutLrij0mbv2Ex3mkd+XoXvjYM\nI6LMvwNW97i9Xr9oNjwIRAvK0vvsXYFzgcEWEU2Q4U+X824YwrHzMIO+X4TZLS+QaKpb2JUu/rHe\nccH0OYg1nc3fFwTfRVHxfne+zIQ3OFH+Xo2f/PKX8L//7D5c+tyrsXn7joFdeOLKh/3zRyjmJhR0\niz960RXtF/3RQ6tQshTsowvPWb8sEa+OCw/+yPTgBVMeqdKKbKVDeXPQdTEPO5JDdyzW8LIprnAI\nf4CE+wXGDYGnhno9vC5+LQN9ERpR0QdR13p00xGkV4BRTnSH4r1X/pi+HRAXRaMHXd0CSD/sBBfV\n8MfB/T3BFDQEwwdW9HuwT83Ant4mQUXD3oGoe90IGNAWxlFaXYMfjTrfx2f+6gFc+tyrsHnbDoTf\nowMpIPJQ0puZ3bwyjstvmqCgu1CyIsAi/Ie2RPujt3Vy4YlpCrhwI7eyuHCtbfK0h/ZHpgtgBcAa\nhXws7IuEOOr+lnDptUDoBaEGq8gX2+O3ol9RSs/PcfWEy8RqabV8gpRJN8fRfPkoRUPTQ31RmXAa\nmd4PryKHHjp633F7br3hm2itT9/OR1seNnDWwXz6aMxcYIh34PT1HgH9c60HQA+4C1LpC92g38dn\nPnEOlz77SmzevsNs4QJd7Xobnn/i8aO/9EvN3ugvvemCY+gJfPP//NPDAA5V0YVvqH6jcuHasSVz\n4TpdACt3f9/XrYKMjZe89pwKBFwfJw++2YYS77NA1JWKRLyvddXDF3NTH7Xx8OAYv2BDI7XFa4Ky\ntTo5x971td79cgBDd6P1Y1Q09hxkZI9fm/vNMfXgk9j4up2Hvua7MR4fHa07c3dZrvH8aFjAEP6g\nPKUgMzOeqG+70PhOdCwXbu736T95vvva1+3YPbYLcIqgoKfwLR/604cRrvFeZheOzDH+sbvwHD0D\nJXfhOl1QyCfCS167Pg+FU9FDVzThDkU1EFZbZKNu9zAiXkV5hJ9paaMHumjOXdvvGV53IJ2Rp1G2\nP0CgC5VubuESc0RCGo6hx8Ubfroovh1aYJuWn3FjoAmynWdCmbbQBzcMRiBeUnCeFoy3adsFeNrl\ne9GYiTqHk1y460bc37fwX35xW3v8V2P5YZd7KrIM4BRdeNrnxeo0BS5cpwdPyI+ATARRmI+6uvUx\n7kjMrWFhS8yDG7pojD3MIXTp5ra3LxiL1qLm/fzMcXa/XkHQne3qozOJygjOJBTZoFdegDAf3fKL\nUZYK/xtOUvOD+oJ9YjRMtMRrdHOhPzAm7G4PA9sQinA0lQ3a4jQIp7/pUfJRAKA2fU5vENXHk1/5\nMj7/v7u46Ksvj74fo4WQur//xBOr//WXd7bHexVOD42NZ1FdPvQtz29D4UiwHdyNG9NbvE/Cf+7P\ntZRGHmIc60pjoMR3F+I4agP103+TYeCPxEVX66YMxwcz6pSUd7RPy88YotNL0f6IZtTDfna063wl\n7KJNFn5RWBGF3RTzCaPkFsOZ+4Isyu9qh0DQQHjVBdrkC08k8IHDjG4OPJlqeK9K4AXONbz8VEO7\nTv0Z7IGzVsFvSbT8GlFdxMvDG6e2f09BGgEawWUu8B4YI9H78F8jOlaCf8GJevUP9/vbIoKG6OVJ\neF7i7xdphP8gjfC4oC3DzxoNSKMBNKL6QKLPG/65wsrPK0vbB4HIDEQa+MJnP40n/vVLxs2RhO1r\n/i1paL9f9eT53szspoOTviTLDB16NivizUtvmbvNO+406MLT8ovXe8wu3D5uDcDB972U088mzUv/\n60NNKO93Z3aLW13kQCQO4TPSJYrtAhBdPSrqcte7zS0XHI7F2846fBCMvl+LkfdvKMLueivoLkiQ\n9LPVp7Bpb7V30ZS1MJod0bnaGQZT56J0+prskaOGESQX1TEcYtAD3kTrCfBPzDtH3dUjdOrQprsF\nZfb+6VO4dK5lnFn43tEFLwDOP/7Y8i/+2lN6o7/yphcKegYf+tbn9771D/5sGZD1YF/mWDig/bo4\nFl6isfCE4wTwlmc9+L6XPrMNUg4UFvVeJbPLXbvWQjG3A+AQfh6NiZviZwi7V6a/TxNzTexDUbbH\n0fW6WL1PYb1Fv4ZVVCdfHJX+WSCrKi7r0IQ06O73Av7D7gkEK78B0bpu5tPkgqluenN7dYzK9Ovu\n3zyE3ezw8w9WkDNWr9PrBq0bX4uUF4XHvvR5PPalz2HrBbtyjaGff+LxI6/7taesjf6im24o6Dn4\nw297fufbPvjnBwHcmZQm04UDTkGiC89Xj6z2KOjC9ZJ6AFbe99JnHsnMgIwVgdyiO9soil17Da7D\nflx8ARhduGZAHbR0vqz6n+vz2KNgON3VS9yZQ5kBddr4uTEsHdZLfyuhHkYfRYJvSLrW6xCmM24U\ntJ+NRPmEJhxRXaKhh+DE/POQ4NyUH3AnoQtX2hh82IYSnIPy77v1dd4Rpg/n1ftT7L74L/+Ibdt3\nuU2MOUTW+fSn/nRlPFfddJP9V5CEfNsH//wEvPnpdOHW/ilx4fb+NQAH3/v9z+yClIrv/8U/bQJ4\nNIxKhymudvAZLLEPl3kNu7/NGwLvuChvdwAcjPycNxS6GCstH6NMGAFwerS4uQ3oEeJR13x0R6D0\niinrc1GGyw8/NQLs/HK1MiNXHwi1Vhdl5mUea+al/DqG6e3ztOqslMK/efZ1aDRmoZ9G+J169D7z\nT59aeOPqN3QmdzVOD3ToxVgWhTkALbrwqXLhdn49AMvv/f5nrmVmSCaCAItBYGTY1W2IuTW27RBz\n24kbXeiGmCMm5rYbN1ajA7QV6hDdoOtR7bEbiGgMO0wS24aWnzZGHYx969vB8eF233fPUU5mHED0\ncFXztxrlKxDj5yh+N7vp1u2ehKgOwUI2yj8WoqI02tBBWHtR+Ncv/Asu2Hmp8dvWf+Vf/uKjBynm\n+WGUewH+4N9+Yw+Q/YD0gn1GFLU9FlSxiHQjP6Wn10vJikiP2maIEemxWQPhQiOx9sURUdhNMS83\nouQW3RmHYg7/VaLvO9YtbvwizOtHX4Am6lq2rrHw2jTFPOr6N9MaY/MKUP3ohsF05prL9V+DH4Wl\nxZH4IhjzN/rRvXoIogD32F+BoGzrOK19vH2NaA6//tdExctTwTFaJD6AKCI/yC+IvA/e6xHvjUaY\nHiL4yhcf9WcrBH9Xor8NX/7Co0d++Q1ftTrpa3GaYJf7AHz77/9FC8Ap6EvD1tSFG++G4cITut2T\nj0tvP21fD8Dye36AQl52fvC//NkcIA+HTtwY0/a/cTsATumCC0Nkzeh4Lw38z/Ubv1C09fHxcExc\n/9xy5Ep/b3XBW2IeDnfr3eBid2/7+5X1CuvzYDvmuIP89WMc3euxbbtrPyontkqcIx/lrKvpdKKH\nvvjt0ZjBv9l9Tfh58Hs9f/6J1cO/esHyiC+1ykGHPgD/48XP6wA4WD4XjrG7cMmoR2EX7hT5Yi7c\n3CcAZA2Q3RTzaaGxaHR/iy6gEhdz240DDjE3542LIeaaAzfEXADViDv0sC5IEPPAycJbLMY7CUCA\nvoK/zKsms/7ysOHz2kM/Ht5tBzbcEnNo3exAvCcAWmrNaWv5Rdtaen2+e+jCg3PQ/gb4890bonl7\nQei+o7nx2m9WmwcPESjVhzr/pL+ugJfqsa98sfMP3fWDk74KpxGOoQ/I/3jx81Zf/Ht/CQDH9P2V\nd+FGfu56ZLXHCF24WSuFHoCD7/nB3asgU4MABxBJtCGa8eVT7QA0ZTjqoGteyy0aP9cFH5pwhT0D\ntusP0kZ1MALljC5ubbBd246uTs3b2s4c0EqyXbOE+6PgNG2M3Cnm9naQThs7t8vT8kXYpe/t0+eT\nAxJmFd7UROMG4XlEwX7B7UpUsyce/zK2btnlvX/iK51/+vRfLrz1nht7I77MKgm73DfIi3/vL5dE\nmaLukSHiWQIeS6Pvl/i+PHlnirhkfJ4t4gNHpCfVIzG/2NF2XTsA9r/nB3d3QaaGH1r5i3kBToXX\nliHmmjPXxNh2yebccj1ILvjc7BbPjI43yoZ2Q5A0HS5pbXaY265udgCx6PXYK6wo9WCfmc6cf27v\n1/cp49OoXvpth79lzb2Ld7PDce5mPewI+K962jdg69adgPebXfiF12/qDfGSqhV06Bvk97/jG1a/\n4wN/CUBCUacLH6sLd+098u4f3M0uuylEILfqWmOIuSW+XhpzzDzqVPfzc4i5mOUZYm4Hg9liHn94\ni12mLt4u51xQzBVijtb5PnTD2lPTzA8QOHM7t6izP3DeUQqjoz9sdy116MijBWwkVmcx2gPW28cf\n/zK2bt3VAbDwC6+f7Q37mqoTdOhD4js/8FdLsJ06Xbj5eVI9BnThjnr2ACy/+4fm1kCmjh9e+csm\nFB4Vvxs3jNWwlnPN46Qjpx6fmhZeP8ol5qJ9bo/BB/npPQP6zWtCNLsxNc3hVoPMlGsbUYUtN2yk\nhS6pMPZHHQNpZbo75yMxV/E8Y4F39rkrIyuzvlG+Wzbv6HzlK19YeMs9L+wN9YKqIQyKGxIf+M7n\nrgJYNoPLHMFs0D5XegBaFESmB7S5j7Omlzjzi9KbAW164Fp6PZIC2sJ9YWBavmllRj1c+Sn9n1bT\nhHO02qsjwALFfKq5TR/t9sQ8CoCMiXmUKtYl34i56Ei0vfcNf3/DCJgLnKRrqpu+aEx43cfEPDgV\nl5ibbwwJ1W5SzV+SynhFeET4vDXlCaXxbPLMGwh/r36s9qqXaZ6nV2OltV0U1hf9DXG0gl+edL7y\nGMV8WNChD5nv+t1PtBCb0hZ9TheeVk4uF+46rw4EC+/6obkeyNTyspW/ehQKTefa7MGNXMwli9tJ\nA5o42/vNgLpoTD5Kr7t4W8ztnoFsZ+4aO07fbzttfcw8dWw8JZ0eVucsxcovvk9pXeVWr4OrF0Lb\nE75qNxH9vuoA/YW33E0xHxYU9BHwXb/7iZbf/d7iWHi+tIXiB8x8VwEcfNcPU8ynmZcd/sQSgGPB\nmKyxNrtDkI1gNMdcdC9dtM9YJlbLw4xmt8bc9YA6XcAzutnDV/3zqP9c87kKMflTCvFANDPfPDcL\n7u5ufZ8deGdUwq9Kdu9A4k2K3R2hvfpT91bfcvf1yxu6aEgMCvqI+HcnP9EEcAxKFoFquXDz2LG5\ncNf+g+/84bkjmZUlpedlhz/xsCiZA7Qxc0f0uT1Gri/9ao+ZO6emacLtnJrmvGlwzTn3k/nuNDbW\nHX3qv9VTKLeoOvJJF3P3Pvd68Ga5ej2Va5/XJEbdzHODsy7J7t6jr/pQCgffcvf1RzZ4yRAHFPQR\nc8vaXx8GcMjYWTIX7u3P6EqfoAtPCH7b/86XXdYGmXpuPfyJJSg5JgBQWMytFd0AU8xhOupYQJ2R\nhyn47qlpcDht7zUSOMt55xHvRDHXS1JA4r70bnazh8AUXrjGyB1liPbjdN9EmHkpIJzXr6DQ76se\noPa/5e7r2yO6lGoPg+JGzMnF5xwGsACFbnSHn7I6G6Dt14PZElZnU/px6cFsSauzZQe06cFsuVdn\nA7RzzBMAmLXqnJ+2LcBuinmVkFuj8WhJFPMwGM1PBXGJuRfw5uXSSMwvHAO3A+og3triifPMjYlc\nfv1dAhd1++cXc0T5W79Jc9g6Q8z9k7Oj4PUSDDMR/tgkUcy9GwzvX18pqH4QdOe6idBapg/0lUK/\nr9oAdlPMRwsd+phYPPHJJoBjUNrjVwOm0YUb9R7Qhec4L21/D8DKO1522RGQynDrob+eF+CU+WAU\nW8z1ADR7zFyZYm5EwZtiX2hqmr5oDfTfTnYAXHzM3HTDhuypWGharjFzPX+zjPj66YFD1o93drPn\nXjTGUa6yf/jKPz0FBbXylruvOzy8q4YkQUEfM/vv/eQigDvhPYYVHAs30yekbQNYfsetl3UzT4hM\nFUuH/vqUKJkH4BZz6IFxVlCb1c0eWxzGio6XYBqVMWYeCX9MzGF3syc8v1xzzoXGyB0irZzi6xBz\njVSnnlvMYW47xtuzutkd3fsdBbX8lruv64zi2iFxKOgTYP/7P9kE5BCA2+jCU3sregAOvuPWZ6zm\na1kyTSwd+uS8KDkF2OPX5rQyW8xFF2XAGFNPcvp6OoQ3CLYz14LeoKfVZHiAqWlBOreYWw7eeTOg\nNI10lKfll0/MtXyRR8yDfVY9Ed1sWOfQg8LRN9997eFRXDckGQr6BPnu9//NHLzpbfOZLhywb8y9\n/dVx4fYnRwCsvOPWZ/QKNiuZEpbv+JuHAczZj0g1hNU17Swm5vE04UpzlgvXp6IFafXjjDTa1DSv\nXqZIq8Ru8HhkeWwqWkx4zXzSbxasPFyimvgI1KR9yWLuGgYwX7w3jz9F8MWn9dcu+kscfPP7rukO\n92oheaCgl4Dvuedv5qHkTgAtfX9NXLhdj1UAK29fekZ3g81KSszyHX+7BOCYc3645ahj087saWS2\naOtd6ohPTUOCgNsBcCpFzN3d7Aq2dCeOiVvd7MXFPHi7kW72eBe+W7jt3gQVE3MAbUCt/M77rmkP\n8zohxaCgl4jvuftvl0ThEBCMr3tU1YVb9VsFhbw2LN/xtw8LMGePmXtirQYUc93hu8U8e565lzbN\nmUc4xDhNvFOnpmnprdXZio5dx6LbtTqp2D5lJdFrqPKU24Zg5Xfee3V7dFcLyQsFvYR87/v+dl6U\nHAIwn5Rmyl24zioo5LVi+Y6/PSzAIbeYA1FUejxgDUCqmCfOM7fG142bgmBfHmfuEmvl+Nz51LRg\n2xfqTDGPd4FnB6K5FpJBPE87j4wxc0fAW1tBrfzO+yjkZYKCXmL+/Xs/1QJwAMAigGbZXLixv8AN\nBoAugKMCrN61xDHyOrF8x6eaAjwMhaYxh9y1JCusgDVoae1xdThuDsLPo/F5fWqamafWC5Ak3oUf\ngQpre9Bu9rjjVojfMOiO23XDoNc0sQyVJuYAvBvwo29675Wd0V0lZFAo6FPAS97zqSaARUBuAbBY\nZhcOJPYS9ACsATh+19Iz2pNpSTJpXn7Hp45BYUl/lGlsmlgeMYf9as0z72v5BbmrrN4AvcvaNWZu\njZHncuaDLOdqp9PqExu7Thgzt8p0p3E5c8TFXKk1ACff9N4rV8d4qZABoKBPGd/37r+bg+fY94m/\nSI1HhoiP34XrIn7yrqVnrE267chkefkdn2pBYT0Uc31c27loDKwxde1pZ0FardveHP9OnmceE3Pb\nmedeNKa4mJt3A2aAnav73NifNwDOKNM/IlZuppivKaiTANbe9J69vXFeJ2RwKOhTzEvf9XAT3jj7\nPijMI+/T3UbnwgFvEZjTANbuWnpGZ9JtRMrDy1/zqVMCmXcFo0EliXmQFhlibk5NS8wvEHu/3I2I\nub43bZ55mG6AbvZsMXfkCavsHFPTFFQbCqcB1f7t9+xpj/O6IMODgl4hvv+dDzcBtKBkHsAV4kXL\ntwbtds/hwtvijYc/BKDDrnSSxCvu+LslKByLi7k+L1y5xdwh2u555vrUNZeYi9b9DsSj2aPudreY\nIybAwT6jMz5hBbhE4VVFxVyvq57eLMM7NFHMu/B6z07/1ruvWBvrxUBGBgW9BvzA27stAZrwxL4J\nAALsMxIli3gXwCP+rg68bvTO2xnMRnLyijsebgJ4WBSagXN2r9wGU8wh5rg34OhG9zvNg14nl5jD\n7A3Qp7fZY9O2mGdPCRtwzNwlxraYq6AejkViYsIdz9OxuExbKa8b/bfe/YLumC8DMgYo6ISQkfKK\n1zx8TIAl56Ix4epwjrXZralpxtrsCLrd7fF4Kz8k30DEu8eHP2bunJpmBbo5xVyrR2q3u3Vs/By8\nGBYAa7/xrm/sTeQCIGODgk4IGRk/8pqH5wGcii3gAof45lg0xu5WT59nnnADsaEAOH+f2QHuibmK\nRDpdzKPXQZ5n7kpn3CAodAB1HMAqRbxeUNAJISPhR17zcBPAOpTM2Q89ia3Nbq/cZqeBNkUtNs9c\nYmkHEvNwXzy4rJBTt7vZVT4xh1EH+LHoCraYJ3Sz9wCsKqWO/8a7nteZ2JdOJsrspCtACKkmArkN\nCnOAQASRsDrmmQMwxVxfXRBZi8Z4CY1pbdZyrsliDihIVAnxt1OehlZszDyM9/PPJkonKiblMWce\nnE/KmHkHUEff+M5vWJ3w101KAB06IWTo/OhrHmkBWA8ENXnRmGBBl6hL3n5MqrFojP08c0Rd8M5V\n54xx+mD+teW88yzvGh6fsh3rPkfOdOnd7Alivgbg6Bvf+dz2pL9rUh4o6ISQofKjtz/SBLDuPXzF\nFZ2urwCXtBCMtRKcNmauL+Mayy9JzLPGzFVRMQeiN+5Ic7u8cK9TzI0tmGJuCPyqglp54zuf2530\n90zKB7vcCSFDRQSHvK52fzvBmdsLxdjj6kY3O4xH/CQsGmOmi9xKjgC4UPfNbvHoxVuxzuxN1+R3\nKGJuRL3ZYXergKy84Z3P6U7kSyVTAR06IWRo/NhrHpmHklMCQDmC28znkosZ6AYYzt2MXI+OSxJz\n8wYhqlNczO1gNLvL29xXbMy8yPPMlXbPkNTNjjVAHXzDOyjkJBsKOiFkKPzY7X/fhN7V7hJfuJ6a\nljJmDvsmAGZ+9qpz/iuAxOjy7EePblTMg/9oqYuPmbcBrLzhHc9uT/p7JdMDu9wJIcPiWKKY+wl0\nRx57KEsg5kG62ENcIrdudMsDoZgbY+YCiEp3zhsXcyCIXrej4xF00hcQc3/62cE3vOPZq5P+Msn0\n0Zh0BQgh08+P3f73t4n3iN9IWMUW3BQxR5BWIKqBpEVjJBwrlyhvvUzn1LSiK8Dpo+Pib0e3JF5W\neufmoA9asRAcgWA3xZwMCrvcCSEb4sdu/4eWeKvBNT1HnPHUNK37HbqYa1PT7G52e+lWc232ImKu\nRY7HIssxsjFz+79W+V0Ay7/+9svbk/4uyXRDh04IGZhXvuYfmgIcg5Jm5JuTxDwQ4iBlQ3PlSWuz\nJ4i5MX7eMAPSjYC4aFqc8ZGytqEGEHMPgYIIvMVzRKKVbiwk9PlhIAAAHBFgD8WcDAOOoRNCBkfh\nTkBa5trsSBBzmJ3kmq6lPWglCobTH4FqL+fqEnPk6GaPEru73a3j/RXvzOOjqW6BMxe/WyFlzLwH\nheWjb798bdJfIakOFHRCyEC88vZ/uA2QJdeCMMbSq/oYt5bGeJypLuYwhV8XcADIvTZ74aemeeWY\nDjzYDuahB0Jt5h/mquWf8nz0DhT2H3375d1Jf4ekWnAMnRBSmFfe/r9aANbTxTzofk9bAc7aBpA+\nzxxG+vxiDoeYm0FrSWPdWWPm9s2CUWrcma8evevy5Ul/f6Sa0KETMuW8+PifzYtCUyAtXwCvECVN\nLQCtCf8zfxy7K310jVXXlJz2xbQrCl0o6bz7tt09V3mvvP3Tc4A6lbw2OxBGoQfd7zDF23jQSpje\nsQiNPc/cnlIe/seeOmZ1i7uceVBdK9xcaWPdeQLgzIy0B6kYLwJALR+96/LVCV0mpAbQoRMyJXzb\nOztNUZj3xXkflMwJMCf6GLUSSN8X07633Qhcrb8ffeWnV5B+JIBBlzcUINIAID3ITEcUOqLkIVHS\n3va5Rg/AKVFo6WPc4bGAOWaesAJcTMydNwdwiLmYrto1n1vf43DSKsVJp0epq4x0ic68B2D/0bue\n2Z70NUSqDQWdkJLyLe8+1wQwL0r2icIiIHNGABmiedkuMW/owugUc0TTvvrwREh/3/ce8QmZAUQg\nMoPNj2/B7BNiii9gTC1zPSY16k4PusuTHsqCRGcukJhjdjvvImPmyv+/Mo+3Iuyyxsz1UhxivnD0\nrmd2Jn09kerDLndCSsQ3v/fBJoBFKLkFCouiOeciYi4xMQekr7xjA6G2xbwfiKkm5koB558A+kBD\nzWK2vzUesGbMCU9azlWvPyIxRz5nHo2xW+Is8QempHazO8U8wO+m17rPk7rZc4p5B8AyxZyMCwo6\nISXgRe97YAlKboEn5qGISR/IFvOGJ+KJ3eyBaGeJuS9SQZq+MoR+S/9CU8ztADhNjAFrBTh9v/7f\njAA44xGokrZ2erAneL66te2PrRvD5Qqm2OccMy8g5gtH73pmb9LXFqkPFHRCJsTCPR+fE4UDULIE\noGk70lxi3m8Y6RtOZ44NiLm3f4u6EA1/HarkFeAAfeW34DW+NrvWPY8kMY96JiLRNR9t6nbmebrZ\n9e1BxRywiofWf9ABxZxMAI6hEzJm5t//sXlRckgU5nWRLquYz6hN2KZ2AkgSc3ttdkTd7Na5AXZa\nRze7tWiMK3AtKeAtXcwTtjPFXNubb8x8z9G7dncnfZ2R+kGHTsiYmH//x+YBHBIl87oojlLMRRfq\nwmLuBdBtVTsApIg5tG5xo0tehQFw7qemSUz84yvAjUrMI5KfmhZfAS5fABzFnEwGCjohI2bfvffP\nC3AICvO2KA5VzLVguLALvK85ZiPoLVvM0VfYgp3emutal3pMzLW554YzzyXmQVotTWzRmKgtzUeU\nZi3naq0AlyrmennFxsyDkXoAC0fu2t2Z9PVG6gsFnZARse/E/XNQuFPCQLfxiTmGIOaz2IxZbEke\nM4fXGwCYoq5Hsyc9AhVhfo4AOEPMBwmAC3br27aYDxYAF4m3iqbEeywfOU4xJ5OFgk7ICLj5xH2H\nARwQoDkJMZeYmCtN5LPFXJRgi+yKizkQum/xe6XdYq4FwLnEHLqYRzcImh4b9jndmVvR6kN6BGoo\n3qLdDLhWhAOOHDm+e3XS1xwhDIojZIjcvHZfCwrHtGVYxyrm+mIxhpiH+4P3/hi5toiM/roNTcxi\na+SwAcDozk9bm10SnLm1+IyeZ+G12fOPmeup4HhVRlJ3upS12TtHju/eM+nrjhCAz0MnZGjctHbf\nYSisj0LMG8MQ834+MZ9VWzwxh1836OcSrBInxcQ88OOqkbhozNDFHMG4gIoeU24F7ynN04ifLuxa\nyBbzHhQWJn3dERLALndCNshNa2dbgBwThZax4MoQxRxZ3ex5xNzoajfFPYxq7wPbGrusFeD0RWzc\nK8AFS7kaYu5ahMZw6cMU86AkfxwgiFY3trX0AwbAGU5fYfnIXe4H2BAyCejQCdkAN508uwTIqVGJ\neZBHI0PMzfFzlVPM+zGHvk2aEDRGJOaBS88Sc+9IM4otaB9zO3Tc0ULxcIr3AAFw7qem+e8Ujhy5\na/fapK8/QnTo0AkZkJtOnj0GJUuiHMK1ITEXSD9YvtV7ldzd7Epz7Fq3ulPMAfSj11m1FZsa2zTd\nyxbzoP7BMfqc9PyPQI3P+4aKOsMNcQ57yJVfj+EEwCU/Nc14CdqlC2Bl0tcfITYUdEIKcuPJs00A\np6D8Z4wPU8z73mseMUduMVdRdHsg5rFXwfbZixE+z1whv5jDPyfoaZEi5uaiMeLqVg+ctkuMk7YH\nFnNo0ethrZK62QHg4JG75nqTvg4JsWGXOyEFuPF3z7YAnJISiLkUEHMoBdVXTjFXfYXtMxdDVEOr\nT0MLgEsQc20BmfhT08Qp5pkrwNniKznFO3HRmDxi7jciVNaYOQCsHblrbm3S1yEhLujQCcnJjb97\ntgWFU6KkWRox9513lpjHutv9cXPVV9gkW7EJ27yT1OvtWptdF3PNbbufmganmIvLiQM5AuCCj/M6\nc79+QYCcNUaf/KAVt5j72wcnfR0SkgQFnZAcTETMwy71hDFz35VHi8MgQ8yj4DelLSCzfeYp5vxw\nZze7tpKbJubJD1pxiDmA5GjzqK3zrwCXtJyr66lsZqqC0exBuhWu007KDAWdkAxGLeYNLY80MY+i\n1uE58ZiYR8FvXg9yXMyVNed8e+Mp3mNRU8U8kHFAHwd3i7nezY64mAsMcbWds+nMrYC4oXWzJ4m5\nd17KvLsI/tMT4Mikr0VC0qCgE5JCmcRccot59F58EReHmG/CVmxubA/Pxe46BwARvf7W1LQwgC4h\nmh1aUHrMiQ/6PPOsbvZBxTxKZwXS+2ehjnLOOSk7DIojJIFxibkMQcyVQ8zRj0TcFnPpAxfMPjVd\nzGNrs0crxEmaM9eC5YwV2exu9QmLuX6O0PZEVQmP74HunEwBdOiEOBilmDf65vxuSRFzSetm9wPi\nVOjQTTE3Fo0J3ve9xWS2zz4NomY0yfXWRk0Wc+ucELn28PwEcEWz2+Lq3B6ZmPvnBi9eQAVj7zFn\njvB4S8wBgO6cTAUUdEIsbjx5tjk5McfgYp6wNrst5ptkOzbLBcZYNxAJdD4x9+ePhzcAmKCY64jX\nLrpoa/nri8BmRLMHx/dAd06mBAo6IRrBojHDFvOGFs2eLubRttc1LpGYh4JdQMy1leDgC/AFs5ca\nY92ALubI5czDKWvIK+Z2AFxeMQ+Tw16bXV8MJkoXjHrnGzO3n8KmxL4JwBrdOZkWKOiEaAhw57BX\ngGsoAQqKuVhijj6g/LFvt5j3NVG3RDwcR+9jx6anoyEzsaA205kjl5jbQXGR209y5uF/tKlphmdG\ntEKbRKIc9CA4RFrgLs9OB1jiLRmfR/89OulrkpC8MCiOEJ+bTp69bdhrswfOvGGLeR9OMZdQzGGI\nOXKJeT9VzDc3LsDmxoUZYp7hzBHsTxJzPeAtKSDO/68mplFkuSmqse1YYFuKmOfZFu8/ps+XILvO\n0bue2ZngJUlIIejQCQFw09rZeSi5c6hiHrpyh5gHQtqP8tEXiwmniMXEXBld76aYq0jMtfFz1e9D\nlODC2ae5g9qM+iNdzK2pacHNQN4x8/DVEmWvjCFHs0vgxM3io1sIe8w8LDaA7pxMFRR0UntuWjvb\nBOTEeMRcW00tFHMvAruYmNsOPS7mKhw37+PCTV+DBmYyxNx25l77BAvLFBVzuLbhn+PIpqYhGltX\nsKRa37bFXO/eD/etTfbKJKQYFHRCIMdEoTlMMccQxRyJYq6/IlHMN8uF2NK4MCbmgRindrNDq7Ph\n0r1Ps8TcGOMe2tQ0PcAuCpSLutF1cY+Oy4hmj4n50bue2Zv0lUlIESjopNbcvHbfIhQWx9PNjpxi\nrvx0vgAqFV8JzvVqi3m/D1EN7Nj2dKczd4p58F/RF41JF3Mv32TnnE/M4dj2A+ZUJNrG8RLlm3vM\nPJ+YA8DJSV+bhBSFgk5qy80n7mtC4dg4x8wbwfF5xTxYiz2HmCvtKWpBUNyOzU9HQ3k/c/2pabDq\nH4q5cwW4+NQ0QwAzxRyWmEf7kh+8oqWXhJsBfaqZy4nnm2fuEnMAWJv09UlIUSjopM4cE3jzzccv\n5jDFPHxKmkPMjSeoxR25U8z7CptnLsSWxk4AUR0iMUdOMY8Wn3E+AtV+sErg3qEt7hLqtS3eQEy8\nk7ZlsLXZi4m5V3elVPvX387udjJ9UNBJLbn5xH3zAlkcZzS7KeYoJuZOd97356f3tW3/YSwQ7Nj8\nNfCC0MypacbqbknzzK0AuPiiMeYYtqmLBcfMdScebCvH5xsW8+Csk8Qc3mNl2d1OphQKOqkl4gXC\njU3MG8pcJCYSc13AUVDMo+eaR2LudbXv3PKMKKrdEHP//JV1Tigi5sjRzZ7cTa4kIX2wvSEx987L\nfASqIO7M7VXmjHLbk74+CRkECjqpHfvuvf82UZgbtZibwp5HzFW4rOtGxHxLYwe2zOyMiXkQ8haJ\nuoSmeCxirqyAtg1NTQu+Te2BKzFnHlQlq5s9qhKA3tG3f11n0tcoIYNAQSe1Yt+99zcFOLQRMTfX\nZTeXcXVHtucQ8yAYzpiGVlzMRQl2bvlat5iHDt125hi/M8/xoBW7Gz/M1dDrYmPmwfi/61i6czLt\ncOlXUisEuA1KmqMUcxhijgHEXMWi1eNi3o+JOfp97Nzyb9Dw79Ml9ORe/aNzjRZ3sZ93PjIxD7aj\nx41DV2YVLCUL7XND4H0ZDtOpTDEHonnw8Uz9z+Jd+Q9N9AIlZAPQoZPaMP/+jzWhcGDUYt4YQMwT\nI9it1eBCMfcFXmnCv3lmJ7bO7IJfe+Pcwuhz55g5NiDmljiLLe6BdEbd4tGRwTxz7fjcY+bBx5YD\nt9KFpVv7vEOdZbQnfJkSMjAUdFInbgsei1pYzPsCUQ2zS93uZu/r3ddB9Ho+MZcMMVfa88xNMQ/E\nXbBr6zPg195y3t5et5i7nDnSxdzPzvjIXvTFTm9EmhcdM7fF3O3MJaGbvYCYA0BncpcnIRtDNp4F\nIeVn4Z6PNwE8LArNUol5uHCMJebGw1VMMQ+nqfX7oWNvbtuNrbPNAcTcXGgm05lHA/FWZHna1DRl\nOXM//RDE3NXdbxwf67vXy42V0f31dzxr96SvVUIGhQ6d1IXFqRNzY7xcF/O+IexbZnZh6+xF/nk5\nlnP1xRvIWjQGpuuN+rUdY97RZ3qK4ENT3PVudz/1kMTcO0Pd/WvpU515cKRC+DAXoDupi5OQYUBB\nJ7VAlB/ZjjGKeWxuOYynpKWJuXI819wl5qIaaG6bs5y5GcGOXN3sujNXyWPkgayK0vU6YtiPQE0I\nYnMvGhN+25Zwu8RcXwwn2C+nx39lEjI8KOik8nzT3Q/MQ2FuusRc3x91retirvp9XLR9Nxoy40eu\n688z19w6EDn2PNHsACD6CnDJ3dup4j2gmANRFL5Rq0LLueoEAq+tEmf+J8i3N6FLlJChQEEn1Ufh\n1vKIub6IjN6t7nW/K+0RqDC2zSA41e9j62wTWzddbM0jj87JWyEthzP3G8npxEco5oB/Y5OQv743\nedEYnSxnnuT+w32dsV+bhAwRCjqpNC963wNNAEvlEXNlrAKXLOZBZLv+PnLqDTTQ3P5Mq5vdOicg\nnzOXhOVYRyzmyuHM08XcOz93N7vtzIuKuQKA3vivUEKGBwWdVBsli7aI5RXz6OloRcU86FZHTMyV\nY0nXmJiHwu0Wc6g+mtsvx0y4VrskiLk5pp7ozDO6wQcTc68+Xv5mQFyQTpz566miB8AM8gjUgmKO\nN7zz2Z0JXaWEDAUKOqk0AtyST8wbhiPfuJibTjxJzJEo5n3oU9b0J6ptnW1i26aLEsQc8MagtdXh\nNDceE/OBnLnfskp7RKp/nO3MoRAKt1+zUKT97gE/nTW+rdVjHGJOSBWgoJPK8s3vebAJ5T0iNUnM\nGwDEEnNxirkyV1br66+WmDtWf4uLuRbFnijmZhAcVB+iBBdtvzzDmUfrtusLxYTLwHqJNH3bSABc\nmNzPXUtlaaWdf5hrrjHz0Yq5guqM89okZBRQ0EllEcgiBhBzySXmCtKXXGIeOfX4VDTXEq5GJLs1\nVe3iC56DGcwmirkYYp4RAGeIt1jiHo1Vp4u5Pp4d6zNPLC/cWw4xBzh+TioABZ1UF4V9RcS8kduZ\nK9OZBw9XCQPaYHarG/v7Vpe7LeaRS7enqm2dvQjbNz0lh5hbi8YgS8wBrwtB2/aP9V70bvX4tlcT\nLT9LaKdAzNn1TioBBZ1UFoEsjk7MzXHy4LNkMTcdedQVH23rT00LRT3sam/gKRc8K1PM9biAcCGd\nsEWSxBzI58yDdnUL6HSIeXCuQb76mD4h0w0fn0oqybe+a70lfTRzi7kW9NboDyjmfbjFvJ8i5n1N\nzPu2mPcBdR6q38dTLngWGtiUKObhinAxMfeD4wCrW13f9rbyjZnbjrbMYh5habvDmXMMnUw/dOik\nkojCfCExV74zD8fFfZEMH32aQ8ydzzM3u9f1ued28Ju+eIzyp6epvsK2TRdj26ZLMsVcnGIOJDtz\naztFzL2SE8S9VGIO6BHz0Xrtyd3s/vbnxn6REjJkKOikkoiSff6rU8wbQTS7JeYyUTHX9vli7nW1\nPye/M8fGxdzLJaFbvRRibhwafOMDjZnbz4AjZJqhoJOq0grF3HevDX+c2S3mGJ6Y2+PmhpjrXe7p\nYq76fVyy47leVHvhbnZgWM58cmJuVUNfiz3Wpb4RMaeok2pAQSeV49vf/lATCnMuMReHmDdCwbbE\nXFvG1S3mKi7qOcRcf5652c1uPnhl+6aLccGmSzAuMQdSutXHJuYmrlXmhhHNbpdLSBWgoJMKIq3Q\niedw5qaYK8uhwxJt5BDzvr8/Xcz1BWNCMT/v7W9gBpdc+FyMs5sdYxNz/SVaKc7tzMch5ux4J9WA\ngk6qh0IrJuZ9PXhM72ZPF3NzoZjAqesOHFZEe99w6Cr2PHNTzHVHHu3v45Kdz0NDNqUGwHnnOi1i\nDkRTxEz5HTwAjmJOiA4FnVQOUXJZspgrc132vu9yY2IejZ2HC8fkFXPHc82dYq53uWtivm3zJdi+\n+dJUZ+6faWEx946yxWxYYq6VEnaVS6aolkPM1a7RX5mEjBYKOqkcAs+hu8Q86nb3HTrgFHPYYh4b\nG4ffjQ5LzL3lXV2LxMQcuSXmqu91tT/1wudFAo6yOfOIKBvrwSrObvZSizkAtEZ1PRIyLijopHJI\nX5rRNDSkiLkkirlzSdfUJVwjUVeOKHa3mEf7g31P3fkCzMgmzZkj7swHEHNgI84cVnCaradJ3exT\nI+axXgZCphEKOqkcArQkoZu9mJi7ItqTXvVnmEdj4nqXuzIi282pakr1ccGmp+KCzZcmdLNj4Gj2\ncG+qM/dbTumPRA2eZ24elyf/aRJzv5zWeK5OQkYHl34llaP/r/8aE/OGLuYqTcyVJuZZIq6Jebi8\naz9BzIOnprnFfFa24NKdz88n5qpYN3uggeZq5eJrnLa3FIvGTETMAaA52quSkNFDh04qxXe97S9a\ns080PAFTShtD18RcGyOPizk0MUd+MbfHy7Uod/sRqLaYo9/Hpc3nYwabAJhPTYvNM9e6uU1x9cXZ\n6DrWH7SiSyEKjJlXWcy1NiKkAlDQSaUQJU3VUGj04RBzGN3qoxTzaBqa5tqN/dGCMru2XeY9FhUp\nYq7sR6DqTwlzibv/39Ru9jqKOQAIXE+KI2TaoaCTShGt/uYSc2hirrRtU8yVQkp3uxb45hLzMPgt\nn5hvnrkQF1/wLK/yzueZa2KuvBPM081OMU/omXCUE50zIdMNx9BJtQjEMEvM+/62JsxOMXfMM4/E\nvJ8s5vp4eoKYC2Zw6c4rMCObQuFOFfNAeCjmGeV6bRcdrT0RPkXM/8P3/WlzVJclIeOADp1UinCc\nOUvM9Qh2X8SVHdVuzD23npYWW9ZVd+Te524xj+afX7rz+dgyuzO/mANu8ba3leNzW8gqLeb2Hnc5\npjNXvd9+7wt6w78iCRkfFHRSKYIxaNEerLIhMY+t9gY455VrIm4v6+oS8+a2OezY9rXJzzOnmIff\nabaYA2YAYGExBxjlTioABZ1UC6UHvCFdzP3xcxUEwsWC4fSFYsyFZMyu9SQx9973g/e+mO/Y+jW4\nZOfzNibm9rYki7khe5UU86jcAcXcdPiETCkUdFIpxJ97Hol5NN98aGJuLdsaTkGzutihFPrqvHHM\ntk0X42m7WsMV8xRnnro9tWIOGGvEU8wJAcCgOFIxPDGUAcRchd3jSWIeiXa2mCuHmG+Z2YmnN68e\nnZgrhMMILjGHvj3VYo7hi7lSeOVLOvMjuiwJGQt06KRSSB/wniGuPS3NJeZ9FX96mhYE5xJz/dnl\nehd6cvCbKeZfc/H1mJHNoxNz15i6f5ztzOFKX1oxN9+MQswJqQIUdFIpJEPMkSLmSmnbYUCbFtwW\ne9RpvPvdJeY7tn7t5LrZ4dj2j5OE/MO9tRNzCjuZbijopFoES7smiDkGFXN9WlqOp6YFDn+iYp4h\n7nFRK4OYa19l+MZd7rDF/E3v29Me1mVIyCTgGDqpFHf/xOVtSMMSc7P73Axw0+aW96PIdF24Y6u+\nZYq593rpzivKJeYqnp/S0ilMWsyVlgap5Q5bzOnNSRWgQyeVQyCOOeVAtBqc/2oIvDVeri8SE3uY\nStD97hbz2cY2PL15FbbM7iyXmGc497jQTrqbfZxiTkkn0w8FnVQOUdIFMGeLub7Sm/5QFd21Z4u5\nHgAXF/Nd2+fwlAuejYZsKqeYp42ZW9uipatSNDtipSlAoTuky4+QiUFBJ5VDFLqAzMXnltuvDjGP\nRbJbYm49fEX1z0P1FWYbW3HpRc/H9k2X+HWYMjF3dLPbol1hMQdAQSfTDwWdVA8l3Vm1HefVF6H6\n5/3udKSIeXzFN32/+3nm3msDM9h5wWW4+IJnecvOohpiHjpziYuqcXwlxFwBFHRSASjopHKIwiMN\n2YTNjUvwpPoinuh/0egutxeSiT/HXBNzK2o9mGsumMGu7buxa9tlmPG7172yKyTm+ue6MxddfKdf\nzP1PHxnO1UfI5KCgk8ohStoQdUgUsEl2YNPMhXgSX8IT/c+j338icuj609KscfGkp6Ztnd2FC7Y8\nHTu2fDW8BWxQXTHX6hHfNstAjjKifaUTcwCqs8HLjpCJQ0EnFUS6SpQmrILNjZ3Ysmkn+jOP44kn\nv4An+1/Gk+pfrXHxuJjPyGZs2rQd2zZdgq2zTcw2tvkGtaZiHiaLi2paGdE+l5gr48joZWxiDgCd\nQa82QsqCTLoChIyCl73+Hx7d+uUtTUNYHeJ7/vxXoPrn0e8/jv75xyFqBptmtgMK2Ny4AA2ZjY4N\njqOYW/scZcB7fAr02qSKuSa+yjyzkYu5Qu/N91x10SDXGSFlgg6dVBIF1QawmCbmAniOWwTSAGQm\nSgMVLCNLMS8s5sE5iFYbFYh8drmWvDvLGaKYA0B7kGuMkLLBleJIJRElD6mGShXzUIStNBTzjYt5\nmFUYhAgz3/KIOQB1erCrjJByQUEnlUQg7X6jTzFHXGjHv5xrtK0U/KmAQF9p9XeOa6txiDkUHTqp\nCBxDJ5Xl5a/7x0e3fGVzk2JubWvpxr8CXB5nrsyuef2T4Yt57y33XM3xc1IJ6NBJZVGi2gAo5lMm\n5oDn3vXtyK0rJJ1Petvq+4x0a0WvK0LKCgWdVBZRclI1FMUc2aJaJjEPylF+l7xSKlwTKBB1Bf+B\n9xsTcwA4ueELjZCSwCh3UmG8cfRZzFDMtXTTIObxc472he5dF3NBet5uMe+95Z5r1opdU4SUFzp0\nUlne9vNP7/YbqkMxR2XEPLGbXXmLAnnPd1eO8hxtDqwNcFkRUloo6KTSiMLx/kyfYo4Ki7met1Jh\nV32qmHv99+xuJ5WCgk6qjZI1e/oaxbyiYm7lrfqRc+8rbQqc99p9y/uvXRvomiKkpFDQSaV58x1P\n66qGWlOiKOY1EnO3M1f+s+0V+kodH+iCIqTEUNBJ9VFyvD+jKOa1FnO9bgCA1fwXECHTAQWdVJ43\nHX7qWr/R71LMKeb+f9fedu913QKXECFTAQWd1APB8XAsnWJeZzEHgKP5LxxCpgcKOqkHfRzpz/R7\nFPPai3n7bfde38593RAyRVDQSS34zf/6lJ4StaYafVDMayvmAN05qTAUdFIflKycd8xJp5gnlxHt\nq4SYd9527/VrOa8WQqYOCjqpDW983UVd1VCryutzp5jXS8wB4GCe64SQaYWCTmqF9GXl/Gy/RzGv\nm5grjp2TykNBJ7Xi6K/s6ipRR/vBU9go5nUQcwBYyXmJEDK1UNBJ/VA4cn7mfI9iXhMxV1h92703\ntPNeHoRMKxR0UjuOvH5nD4KD52fPU8wrLuZKoac4dk5qAgWd1JL/9qsXrvYb/TagKOZ6baol5gCw\ncuzEDb18VwUh0w0FndQYWT4/26eYo7Ji3j524oYjOS8GQqYeCjqpLb965/auErVyfuY8xbx6Yg6w\nq53UDJl0BQiZND/7k19Zn3280Up16hTzqRNzunNSN+jQSe0RJfv7M6pHMa+MmLOrndQSCjqpPb/8\nhi1dQA6qhlDMp17MVQ9Q+4tdAYRUAwo6IQB+6Tc2r4rIKkRAMZ9aMQeA/cdOvLBX+AIgpAJQ0Anx\nee1vblpuyEzHCy2hmE+hmB88duKF7QG+ekIqAQWdEAO1INLoUczNPVMg5qvHTrzwyEBfOSEVgVHu\nhFj8wisfbymlTvXVk02KeXI5JRLzzrETL9wz+DdOSDWgQyfE4rVv2twRwf6G+D8PinmpxRzAwsBf\nNiEVgoJOiIPXvmlLG5BlQYNiXl4x7wJYYBAcIR4UdEISeN3vbF0VkWVJcuoUc2e+ZmkjE/MeGNFO\niAEFnZAUXvc721bF5dQp5s58zdJGKuYLx068sDOEr5iQykBBJySDX3rzdtOpU8yd+ZqljXbMnGJO\nSBxGuROSk5/70S8uKdU/1u+fB8V8omLeG+b3SkhVoKATUoCf/ZEvtJTqn1LqfJNiPlYxb4Nj5oSk\nQkEnpCA/+yOfb0H1T/TV+bksoaWYD0XMV4+deOHyiL5OQioDBZ2QAfiZV/SaAE4odX5eqT4AivmI\nxHz52IkXro7siySkQlDQCdkAP/OKRw/3Vf+QUucp5sMV8y68LvbOaL9BQqoDBZ2QDfLTL/+XeYX+\nCdU/3wQo5hsXc6wBapnj5YQUg4JOyBD4qZf/3yaUOqbU+UVdaCnmWv7ZYt4DcPDYiRtWx/fNEVId\nKOiEDJGfWv7MovKEvUkx1/LPFvM1eGLeHesXRkiFoKATMmT+0/I/N6HUnUr1lxT6FPN0Me/CE/K1\niXxZhFQICjohI+LVS/973hf2lidxFHMtvx4UjirgyLETN/Qm+DURUhko6ISMmFff+k9LCv1DSil/\n3nrtxXwVwMrb7mX3OiHDhIJOyJg4eOunDyulDijVb9ZUzFcBrLzt3uu7k/4uCKkiFHRCxsxtL/tf\nS4A61O/356B3xVdTzHvwhPwohZyQ0UJBJ2RCHPjhv18E1AGl1HwQPFchMe8CWAHU2tvuvb436bYm\npA5Q0AmZMAd++JE5pdQBQC0qpeY8kZxKMe/Bm352/K33XteedLsSUjco6ISUiJ/8oYdbSqlbY+IO\nlFXMe/BE/ORb33/t2qTbj5A6Q0EnpKS86gc/1VJQi1Bqn4Kah1JlEfOO8h5nevqt779mbdLtRAjx\noKATMiX8xA98ch7APJS6QkG1oNRcfMGaoYt5D1AdAKeh0AHQfsv7r+5Nui0IIXEo6IRMMT/+/X81\nD4U5BTUHqMu8bnoAUC0ATafAh5vhvnYo3ko9BG9N9Q6AzpvvubI36XMkhBBCCCGEEEIIIYQQQggh\nhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQ\nQgghhBBCCCGEEEIIIYQQQqaf/wdXkEdO6JtPpAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMC0y\nN1QwNjo0MjoxNiswMzowMP4Qt+4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTAtMjdUMDY6NDI6\nMTYrMDM6MDCPTQ9SAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5E\nrkJggg==" />\n</svg>\n',tooltip:!0}),o.bind("isEnabled").to(i),o.on("execute",(()=>{i.execute()})),o})),t.commands.add("flowchartDialog",new EB(t))}},class extends Zt{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("toggleToolbar",(n=>{const o=new $d(n);return o.set({label:e("Toggle Toolbar"),icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>',tooltip:!0}),o.on("execute",(()=>{var e;e={ckeditorId:t.id},window.postMessage({eventName:"QMSCK_TOGGLE_TOOLBAR_MSG"+e.ckeditorId,value:e},"*")})),o}))}},class extends Zt{static get requires(){return[OB,RB]}static get pluginName(){return"TableOfContents"}},class extends Zt{static get pluginName(){return"SourceEditing"}static get requires(){return[Hl]}constructor(t){super(t),this.set("isSourceEditingMode",!1),this._elementReplacer=new Ps,this._replacedRoots=new Map,this._dataFromRoots=new Map}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("sourceEditing",(n=>{const o=new $d(n);return o.set({label:e("Source"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>',tooltip:!0,withText:!0,class:"ck-source-editing-button"}),o.bind("isOn").to(this,"isSourceEditingMode"),o.bind("isEnabled").to(this,"isEnabled",t,"isReadOnly",t.plugins.get(Hl),"hasAny",((t,e,n)=>!!t&&(!e&&!n))),this.listenTo(o,"execute",(()=>{this.isSourceEditingMode=!this.isSourceEditingMode})),o})),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",((t,e,n)=>{n?(this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())})),this.on("change:isEnabled",((t,e,n)=>this._handleReadOnlyMode(!n))),this.listenTo(t,"change:isReadOnly",((t,e,n)=>this._handleReadOnlyMode(n))))}afterInit(){const t=this.editor;["RealTimeCollaborativeEditing","CommentsEditing","TrackChangesEditing","RevisionHistory"].some((e=>t.plugins.has(e)))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),t.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}_showSourceEditing(){const t=this.editor,e=t.editing.view,n=t.model;n.change((t=>{t.setSelection(null),t.removeSelectionAttribute(n.document.selection.getAttributeKeys())}));for(const[n,o]of e.domRoots){const i=UB(t.data.get({rootName:n})),r=Os(o.ownerDocument,"textarea",{rows:"1"}),s=Os(o.ownerDocument,"div",{class:"ck-source-editing-area","data-value":i},[r]);r.value=i,r.setSelectionRange(0,0),r.addEventListener("input",(()=>{s.dataset.value=r.value})),e.change((t=>{const o=e.document.getRoot(n);t.addClass("ck-hidden",o)})),this._replacedRoots.set(n,s),this._elementReplacer.replace(o,s),this._dataFromRoots.set(n,i)}this._focusSourceEditing()}_hideSourceEditing(){const t=this.editor,e=t.editing.view,n={};for(const[t,o]of this._replacedRoots){const i=this._dataFromRoots.get(t),r=o.dataset.value;i!==r&&(n[t]=r),e.change((n=>{const o=e.document.getRoot(t);n.removeClass("ck-hidden",o)}))}this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),Object.keys(n).length&&t.data.set(n,{batchType:"default"}),t.editing.view.focus()}_focusSourceEditing(){const[t]=this._replacedRoots.values();t.querySelector("textarea").focus()}_disableCommands(){const t=this.editor;for(const e of t.commands.commands())e.forceDisabled(HB)}_enableCommands(){const t=this.editor;for(const e of t.commands.commands())e.clearForceDisabled(HB)}_handleReadOnlyMode(t){if(this.isSourceEditingMode)for(const[,e]of this._replacedRoots)e.querySelector("textarea").readOnly=t}_isAllowedToHandleSourceEditingMode(){const t=this.editor.ui.view.editable;return t&&!t._hasExternalElement}}];e.default=qB}]).default}));