(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+EQa":function(l,n,e){"use strict";var t=function(){function l(l,n){for(var e=0;e0?setTimeout(o,i):n(!0):n(!1)},i)})}},"+Vid":function(l,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("CcnG"),o=e("gIcY"),u=e("COG4"),i={provide:o.NG_VALIDATORS,useExisting:t.forwardRef(function(){return a}),multi:!0},a=function(){function l(){}return l.prototype.validate=function(l){return u.digits(l)},l}();a.decorators=[{type:t.Directive,args:[{selector:"[digits][formControlName],[digits][formControl],[digits][ngModel]",providers:[i]}]}],a.ctorParameters=function(){return[]},n.DigitsValidator=a},"+W5N":function(l,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("gIcY"),o=e("PoRY"),u=e("m9Vx");n.phone=function(l){return function(n){if(u.isPresent(t.Validators.required(n)))return null;var e=n.value;return o.isValidNumber({phone:e,country:l})?null:{phone:!0}}}},"+gEr":function(l,n,e){"use strict";e.d(n,"a",function(){return u}),e.d(n,"b",function(){return i});var t=e("mrSG"),o=e("z4bA"),u={leading:!0,trailing:!1};function i(l,n){return void 0===n&&(n=u),function(e){return e.lift(new a(l,!!n.leading,!!n.trailing))}}var a=function(){function l(l,n,e){this.durationSelector=l,this.leading=n,this.trailing=e}return l.prototype.call=function(l,n){return n.subscribe(new r(l,this.durationSelector,this.leading,this.trailing))},l}(),r=function(l){function n(n,e,t,o){var u=l.call(this,n)||this;return u.destination=n,u.durationSelector=e,u._leading=t,u._trailing=o,u._hasValue=!1,u}return t.d(n,l),n.prototype._next=function(l){this._hasValue=!0,this._sendValue=l,this._throttled||(this._leading?this.send():this.throttle(l))},n.prototype.send=function(){var l=this._hasValue,n=this._sendValue;l&&(this.destination.next(n),this.throttle(n)),this._hasValue=!1,this._sendValue=void 0},n.prototype.throttle=function(l){var n=this.tryDurationSelector(l);n&&this.add(this._throttled=Object(o.c)(n,new o.a(this)))},n.prototype.tryDurationSelector=function(l){try{return this.durationSelector(l)}catch(n){return this.destination.error(n),null}},n.prototype.throttlingDone=function(){var l=this._throttled,n=this._trailing;l&&l.unsubscribe(),this._throttled=void 0,n&&this.send()},n.prototype.notifyNext=function(){this.throttlingDone()},n.prototype.notifyComplete=function(){this.throttlingDone()},n}(o.b)},"+h4i":function(l,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("CcnG"),o=e("gIcY"),u=e("rKjJ"),i={provide:o.NG_VALIDATORS,useExisting:t.forwardRef(function(){return a}),multi:!0},a=function(){function l(){}return l.prototype.ngOnInit=function(){this.validator=u.lt(this.lt)},l.prototype.ngOnChanges=function(l){for(var n in l)"lt"===n&&(this.validator=u.lt(l[n].currentValue),this.onChange&&this.onChange())},l.prototype.validate=function(l){return this.validator(l)},l.prototype.registerOnValidatorChange=function(l){this.onChange=l},l}();a.decorators=[{type:t.Directive,args:[{selector:"[lt][formControlName],[lt][formControl],[lt][ngModel]",providers:[i]}]}],a.ctorParameters=function(){return[]},a.propDecorators={lt:[{type:t.Input}]},n.LessThanValidator=a},"+kOg":function(l,n,e){"use strict";var t=function(){return function(l,n){if(Array.isArray(l))return l;if(Symbol.iterator in Object(l))return function(l,n){var e=[],t=!0,o=!1,u=void 0;try{for(var i,a=l[Symbol.iterator]();!(t=(i=a.next()).done)&&(e.push(i.value),!n||e.length!==n);t=!0);}catch(r){o=!0,u=r}finally{try{!t&&a.return&&a.return()}finally{if(o)throw u}}return e}(l,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function l(l,n){for(var e=0;e0&&this._events[l].length>i&&(this._events[l].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[l].length),"function"==typeof console.trace&&console.trace()),this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(l,n){if(!t(n))throw TypeError("listener must be a function");var e=!1;function o(){this.removeListener(l,o),e||(e=!0,n.apply(this,arguments))}return o.listener=n,this.on(l,o),this},e.prototype.removeListener=function(l,n){var e,u,i,a;if(!t(n))throw TypeError("listener must be a function");if(!this._events||!this._events[l])return this;if(i=(e=this._events[l]).length,u=-1,e===n||t(e.listener)&&e.listener===n)delete this._events[l],this._events.removeListener&&this.emit("removeListener",l,n);else if(o(e)){for(a=i;a-- >0;)if(e[a]===n||e[a].listener&&e[a].listener===n){u=a;break}if(u<0)return this;1===e.length?(e.length=0,delete this._events[l]):e.splice(u,1),this._events.removeListener&&this.emit("removeListener",l,n)}return this},e.prototype.removeAllListeners=function(l){var n,e;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[l]&&delete this._events[l],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(t(e=this._events[l]))this.removeListener(l,e);else if(e)for(;e.length;)this.removeListener(l,e[e.length-1]);return delete this._events[l],this},e.prototype.listeners=function(l){return this._events&&this._events[l]?t(this._events[l])?[this._events[l]]:this._events[l].slice():[]},e.prototype.listenerCount=function(l){if(this._events){var n=this._events[l];if(t(n))return 1;if(n)return n.length}return 0},e.listenerCount=function(l,n){return l.listenerCount(n)}},"+s0g":function(l,n,e){!function(l){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),e="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;l.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(l,t){return l?/-MMM-/.test(t)?e[l.month()]:n[l.month()]:n},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(l){return l+(1===l||8===l||l>=20?"ste":"de")},week:{dow:1,doy:4}})}(e("wd/R"))},"+tJ4":function(l,n,e){"use strict";e.d(n,"a",function(){return t});var t=function(l){return function(n){for(var e=0,t=l.length;e(()=>{"use strict";var e={3062:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",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-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:""}]);const a=i},903:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.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{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.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://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CCzBF,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CA2DF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,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-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-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: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:""}]);const a=i},3143:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../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-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-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-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@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-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/**\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:""}]);const a=i},4717:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",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/* 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/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\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\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:""}]);const a=i},9315:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",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/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const a=i},8733:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-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-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-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/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const a=i},3508:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.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{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.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}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBAuBD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAWA,2GACC,SAUD,CAHC,qEACC,YACD,CAOA,0FACC,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-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\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\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of .\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\n\t/*\n\t * Make sure the selected inline image always stays on top of its siblings.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t */\n\t& .image.ck-widget_selected {\n\t\tz-index: 1;\n\t}\n\n\t& .image-inline.ck-widget_selected {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the native browser selection style is not displayed.\n\t\t * Inline image widgets have their own styles for the selected state and\n\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t */\n\t\t& ::selection {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},2640:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.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)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,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:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const a=i},5083:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":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-left:auto;margin-right:0}.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-bottom:var(--ck-inline-image-style-spacing);margin-top: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)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",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:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\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\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=i},4036:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);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{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@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%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,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-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\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\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/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\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: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\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:""}]);const a=i},3773:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top: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{margin:0;width:100%}.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{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,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-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-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:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\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\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\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:""}]);const a=i},3689:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",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-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\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\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const a=i},1905:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../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-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@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-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@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},9773:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",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/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const a=i},2347:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.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{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",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@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-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@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-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@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},7754:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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{min-width:var(--ck-input-width);padding:0}.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{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[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{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",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@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-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@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-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@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},4652:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,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-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* 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\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const a=i},7442:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.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 .ck-media__placeholder__url__text{display:block;overflow:hidden}.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{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.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-height:380px;max-width:300px}.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+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.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+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",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-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/* 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& .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*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\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\u2013only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-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:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},9292:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-media-form{align-items:flex-start;display:flex;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://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,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-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@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-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@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const a=i},1613:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;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)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",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","/*\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:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const a=i},6306:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.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://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",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-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* 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\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent . Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the 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:""}]);const a=i},3881:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-color-table-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,6DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",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:root {\n\t--ck-color-table-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-table-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=i},6945:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top: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}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",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:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=i},4906:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.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,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)}.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{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.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{color:inherit;cursor:inherit;font-size:inherit;font-weight: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-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.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)}.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-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.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)}.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://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",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@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\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',"/*\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/**\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-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@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\n\t\tcolor: var(--ck-color-button-on-color);\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-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/**\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}\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-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/**\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-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/**\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-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/**\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-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/**\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:""}]);const a=i},5332:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[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{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.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)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.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:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.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://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",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-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-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@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\u2013point 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: calc(1.0769230769em + 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\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\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/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\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\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: var(--ck-switch-button-inner-hover-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/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\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\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-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/**\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:""}]);const a=i},6781:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.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{color:var(--ck-color-color-grid-check-icon);display:none}.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://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",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-color-grid {\n\tdisplay: grid;\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\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(212, 81%, 46%);\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:""}]);const a=i},5485:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":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-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.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{bottom:auto;top:100%}.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{margin-left:var(--ck-spacing-standard);right: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{overflow:hidden;text-overflow:ellipsis;width:7em}.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{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 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://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,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,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",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: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\t}\n\n\t& .ck-dropdown__panel {\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-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@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-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/**\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-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/**\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-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/**\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:""}]);const a=i},3949:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-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://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",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@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-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/**\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:""}]);const a=i},7686:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}: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-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.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{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-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}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",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-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\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\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&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .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\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\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/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\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/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\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-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/**\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:""}]);const a=i},7339:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.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://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",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: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-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-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const a=i},9688:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":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.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.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://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,mDACD,CAIA,gEACC,gDACD",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@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\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\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-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/**\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-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/**\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-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/**\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:""}]);const a=i},8847:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BACD,CCNA,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",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__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-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: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:""}]);const a=i},6574:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",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-icon {\n\tvertical-align: middle;\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\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\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\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=i},4879:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":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);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);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{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.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)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,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@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\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-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-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-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-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/**\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-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/**\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-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/**\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:""}]);const a=i},3662:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../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-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-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\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\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const a=i},2577:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--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{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;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-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) 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-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) 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{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));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://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../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,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",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-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-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@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-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\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-labeled-field-view_empty > .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-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) 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-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/**\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:""}]);const a=i},1046:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.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{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.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-switchbutton):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{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",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@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-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/**\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-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@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-switchbutton):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-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/**\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:""}]);const a=i},8793:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,':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-border-width:1px;--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{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.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{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;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-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../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,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",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: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-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@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\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: var(--ck-balloon-border-width) 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\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\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: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\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\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\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: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\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\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\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\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-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/**\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:""}]);const a=i},4650:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;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-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",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-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-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-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:""}]);const a=i},7676:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width: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://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../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,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",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-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-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@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-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/**\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:""}]);const a=i},5868:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",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-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-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@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-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/**\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:""}]);const a=i},6764:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.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)*.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:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){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}[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://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",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@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\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\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-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@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-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(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\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\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\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\t}\n}\n'],sourceRoot:""}]);const a=i},9695:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".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://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../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-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-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\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\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:""}]);const a=i},5542:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;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);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.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-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.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.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.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.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.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.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.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)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,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,eDoGD,CAvGA,qECOE,qCDgGF,CAvGA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAmGD,CAhGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAjGF,qCAqGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",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@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-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/**\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-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@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\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/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\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-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/**\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:""}]);const a=i},3332:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDPnC,mBAAoB,CAEpB,qCACD,CCMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAbD,gCAgBC,eAMD,CAHC,uCACC,YACD",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-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\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\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const a=i},4793:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}: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:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--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:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(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:var(--ck-color-base-border);--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:var(--ck-color-base-border);--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-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--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-background);--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,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--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-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding: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://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAwD,CCvGxD,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,kCJuGD,CIjGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,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-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/**\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-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-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\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\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-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/**\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-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: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(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\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(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\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\t218, 81.8%, 56.9%;\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(212.4, 89.3%, 89%);\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%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\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(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\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, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\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%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\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, 53.2%, 40.2%);\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\tvar(--ck-color-base-border);\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\tvar(--ck-color-base-border);\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-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\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-background);\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\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\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\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-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: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-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: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-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: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-reset_all *:not(.ck-reset_all-excluded *) {\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-reset_all *:not(.ck-reset_all-excluded *) {\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-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-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-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/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\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\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-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: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:""}]);const a=i},3488:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,":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);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.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{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top: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{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);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-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);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{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);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)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.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{background-color:var(--ck-color-widget-hover-border);opacity:1}.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{background-color:var(--ck-color-focus-border);opacity:1}.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:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.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{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,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-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: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\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 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: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\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&.ck-orientation-above-center {\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\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\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\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\t\ttop: 0;\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-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/**\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-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/**\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:""}]);const a=i},8506:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.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{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top: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://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",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-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-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: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:""}]);const a=i},4921:(l,n,e)=>{e.d(n,{Z:()=>a});var t=e(1799),o=e.n(t),u=e(2609),i=e.n(u)()(o());i.push([l.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.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;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;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{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.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{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;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);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.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{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.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{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.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}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,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,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,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,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,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-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-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-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: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:""}]);const a=i},2609:l=>{l.exports=function(l){var n=[];return n.toString=function(){return this.map(function(n){var e=l(n);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e}).join("")},n.i=function(l,e,t){"string"==typeof l&&(l=[[null,l,""]]);var o={};if(t)for(var u=0;u{function n(l,n){return function(l){if(Array.isArray(l))return l}(l)||function(l,n){var e=l&&("undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"]);if(null!=e){var t,o,u=[],i=!0,a=!1;try{for(e=e.call(l);!(i=(t=e.next()).done)&&(u.push(t.value),!n||u.length!==n);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(l,n)||function(l,n){if(l){if("string"==typeof l)return e(l,n);var t=Object.prototype.toString.call(l).slice(8,-1);return"Object"===t&&l.constructor&&(t=l.constructor.name),"Map"===t||"Set"===t?Array.from(l):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e(l,n):void 0}}(l,n)||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 e(l,n){(null==n||n>l.length)&&(n=l.length);for(var e=0,t=new Array(n);e{var t,o=function(){var l={};return function(n){if(void 0===l[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(l){e=null}l[n]=e}return l[n]}}(),u=[];function i(l){for(var n=-1,e=0;e{var n=l&&l.__esModule?()=>l.default:()=>l;return o.d(n,{a:n}),n}),o.d=((l,n)=>{for(var e in n)o.o(n,e)&&!o.o(l,e)&&Object.defineProperty(l,e,{enumerable:!0,get:n[e]})}),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=((l,n)=>Object.prototype.hasOwnProperty.call(l,n)),o.nc=void 0;var u={};return(()=>{o.d(u,{default:()=>Ly});const e=function(){try{return navigator.userAgent.toLowerCase()}catch(e){return""}}(),t={isMac:i(e),isWindows:function(l){return l.indexOf("windows")>-1}(e),isGecko:function(l){return!!l.match(/gecko\/\d+/)}(e),isSafari:function(l){return l.indexOf(" applewebkit/")>-1&&-1===l.indexOf("chrome")}(e),isiOS:function(l){return!!l.match(/iphone|ipad/i)||i(l)&&navigator.maxTouchPoints>0}(e),isAndroid:function(l){return l.indexOf("android")>-1}(e),isBlink:function(l){return l.indexOf("chrome/")>-1&&l.indexOf("edge/")<0}(e),features:{isRegExpUnicodePropertySupported:function(){let l=!1;try{l=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch(l){}return l}()}};function i(l){return l.indexOf("macintosh")>-1}function a(l,n,e,t){e=e||function(l,n){return l===n};const o=Array.isArray(l)?l:Array.prototype.slice.call(l),u=Array.isArray(n)?n:Array.prototype.slice.call(n),i=function(l,n,e){const t=r(l,n,e);if(-1===t)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const o=r(s(l,t),s(n,t),e);return{firstIndex:t,lastIndexOld:l.length-o,lastIndexNew:n.length-o}}(o,u,e);return t?function(l,n){const{firstIndex:e,lastIndexOld:t,lastIndexNew:o}=l;if(-1===e)return Array(n).fill("equal");let u=[];return e>0&&(u=u.concat(Array(e).fill("equal"))),o-e>0&&(u=u.concat(Array(o-e).fill("insert"))),t-e>0&&(u=u.concat(Array(t-e).fill("delete"))),o0&&e.push({index:t,type:"insert",values:l.slice(t,u)}),o-t>0&&e.push({index:t+(u-t),type:"delete",howMany:o-t}),e}(u,i)}function r(l,n,e){for(let t=0;t200||o>200||t+o>300)return d.fastDiff(l,n,e,!0);let u,i;if(os?-1:1;c[t+d]&&(c[t]=c[t+d].slice(0)),c[t]||(c[t]=[]),c[t].push(o>s?u:i);let f=Math.max(o,s),m=f-t;for(;ms;m--)p[m]=f(m);p[s]=f(s),h++}while(p[s]!==r);return c[s].slice(1)}function c(l,...n){n.forEach(n=>{const e=Object.getOwnPropertyNames(n),t=Object.getOwnPropertySymbols(n);e.concat(t).forEach(e=>{if(e in l.prototype)return;if("function"==typeof n&&("length"==e||"name"==e||"prototype"==e))return;const t=Object.getOwnPropertyDescriptor(n,e);t.enumerable=!1,Object.defineProperty(l.prototype,e,t)})})}d.fastDiff=a;const p=function(){return function l(){l.called=!0}};class f{constructor(l,n){this.source=l,this.name=n,this.path=[],this.stop=p(),this.off=p()}}const m=new Array(256).fill("").map((l,n)=>("0"+n.toString(16)).slice(-2));function h(){const l=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0;return"e"+m[l>>0&255]+m[l>>8&255]+m[l>>16&255]+m[l>>24&255]+m[n>>0&255]+m[n>>8&255]+m[n>>16&255]+m[n>>24&255]+m[e>>0&255]+m[e>>8&255]+m[e>>16&255]+m[e>>24&255]+m[t>>0&255]+m[t>>8&255]+m[t>>16&255]+m[t>>24&255]}const g={get(l="normal"){return"number"!=typeof l?this[l]||this.normal:l},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function v(l,n){const e=g.get(n.priority);for(let t=0;t{if("object"==typeof n&&null!==n){if(e.has(n))return`[object ${n.constructor.name}]`;e.add(n)}return n})}`:"")+A(l)}(l,e)),this.name="CKEditorError",this.context=n,this.data=e}is(l){return"CKEditorError"===l}static rethrowUnexpectedError(l,n){if(l.is&&l.is("CKEditorError"))throw l;const e=new b(l.message,n);throw e.stack=l.stack,e}}function y(l,n){console.warn(..._(l,n))}function x(l,n){console.error(..._(l,n))}function A(l){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${l}`}function _(l,n){const e=A(l);return n?[l,n,e]:[l,e]}const C="object"==typeof window?window:o.g;if(C.CKEDITOR_VERSION)throw new b("ckeditor-duplicated-modules",null);C.CKEDITOR_VERSION="35.4.0";const w=Symbol("listeningTo"),R=Symbol("emitterId"),L=Symbol("delegations"),M=E(Object);function E(l){return l?class extends l{on(l,n,e){this.listenTo(this,l,n,e)}once(l,n,e){let t=!1;this.listenTo(this,l,(l,...e)=>{t||(t=!0,l.off(),n.call(this,l,...e))},e)}off(l,n){this.stopListening(this,l,n)}listenTo(l,n,e,t={}){let o,u;this[w]||(this[w]={});const i=this[w];S(l)||O(l);const a=S(l);(o=i[a])||(o=i[a]={emitter:l,callbacks:{}}),(u=o.callbacks[n])||(u=o.callbacks[n]=[]),u.push(e),function(l,n,e,t,o){n._addEventListener?n._addEventListener(e,t,o):l._addEventListener.call(n,e,t,o)}(this,l,n,e,t)}stopListening(l,n,e){const t=this[w];let o=l&&S(l);const u=t&&o?t[o]:void 0,i=u&&n?u.callbacks[n]:void 0;if(!(!t||l&&!u||n&&!i))if(e)N(this,l,n,e),-1!==i.indexOf(e)&&(1===i.length?delete u.callbacks[n]:N(this,l,n,e));else if(i){for(;e=i.pop();)N(this,l,n,e);delete u.callbacks[n]}else if(u){for(n in u.callbacks)this.stopListening(l,n);delete t[o]}else{for(o in t)this.stopListening(t[o].emitter);delete this[w]}}fire(l,...n){try{const e=l instanceof f?l:new f(this,l),t=e.name;let o=function l(n,e){let t;return n._events&&(t=n._events[e])&&t.callbacks.length?t.callbacks:e.indexOf(":")>-1?l(n,e.substr(0,e.lastIndexOf(":"))):null}(this,t);if(e.path.push(this),o){const l=[e,...n];o=Array.from(o);for(let n=0;n{this[L]||(this[L]=new Map),l.forEach(l=>{const t=this[L].get(l);t?t.set(n,e):this[L].set(l,new Map([[n,e]]))})}}}stopDelegating(l,n){if(this[L])if(l)if(n){const e=this[L].get(l);e&&e.delete(n)}else this[L].delete(l);else this[L].clear()}_addEventListener(l,n,e){!function(l,n){const e=k(l);if(e[n])return;let t=n,o=null;const u=[];for(;""!==t&&!e[t];)e[t]={callbacks:[],childEvents:[]},u.push(e[t]),o&&e[t].childEvents.push(o),o=t,t=t.substr(0,t.lastIndexOf(":"));if(""!==t){for(const l of u)l.callbacks=e[t].callbacks.slice();e[t].childEvents.push(o)}}(this,l);const t=I(this,l),o={callback:n,priority:g.get(e.priority)};for(const u of t)v(u,o)}_removeEventListener(l,n){const e=I(this,l);for(const t of e)for(let l=0;l{E[l]=M.prototype[l]});const D=function(l){var n=typeof l;return null!=l&&("object"==n||"function"==n)},z=Symbol("observableProperties"),q=Symbol("boundObservables"),T=Symbol("boundProperties"),P=Symbol("decoratedMethods"),B=Symbol("decoratedOriginal"),V=U(E());function U(l){return l?class extends l{set(l,n){if(D(l))return void Object.keys(l).forEach(n=>{this.set(n,l[n])},this);W(this);const e=this[z];if(l in this&&!e.has(l))throw new b("observable-set-cannot-override",this);Object.defineProperty(this,l,{enumerable:!0,configurable:!0,get:()=>e.get(l),set(n){const t=e.get(l);let o=this.fire(`set:${l}`,l,n,t);void 0===o&&(o=n),t===o&&e.has(l)||(e.set(l,o),this.fire(`change:${l}`,l,o,t))}}),this[l]=n}bind(...l){if(!l.length||!H(l))throw new b("observable-bind-wrong-properties",this);if(new Set(l).size!==l.length)throw new b("observable-bind-duplicate-properties",this);W(this);const n=this[T];l.forEach(l=>{if(n.has(l))throw new b("observable-bind-rebind",this)});const e=new Map;return l.forEach(l=>{const t={property:l,to:[]};n.set(l,t),e.set(l,t)}),{to:G,toMany:j,_observable:this,_bindProperties:l,_to:[],_bindings:e}}unbind(...l){if(!this[z])return;const n=this[T],e=this[q];if(l.length){if(!H(l))throw new b("observable-unbind-wrong-properties",this);l.forEach(l=>{const t=n.get(l);t&&(t.to.forEach(([l,n])=>{const o=e.get(l),u=o[n];u.delete(t),u.size||delete o[n],Object.keys(o).length||(e.delete(l),this.stopListening(l,"change"))}),n.delete(l))})}else e.forEach((l,n)=>{this.stopListening(n,"change")}),e.clear(),n.clear()}decorate(l){W(this);const n=this[l];if(!n)throw new b("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:l});this.on(l,(l,e)=>{l.return=n.apply(this,e)}),this[l]=function(...n){return this.fire(l,n)},this[l][B]=n,this[P]||(this[P]=[]),this[P].push(l)}stopListening(l,n,e){if(!l&&this[P]){for(const l of this[P])this[l]=this[l][B];delete this[P]}super.stopListening(l,n,e)}}:V}function W(l){l[z]||(Object.defineProperty(l,z,{value:new Map}),Object.defineProperty(l,q,{value:new Map}),Object.defineProperty(l,T,{value:new Map}))}function G(...l){const n=function(...l){if(!l.length)throw new b("observable-bind-to-parse-error",null);const n={to:[]};let e;return"function"==typeof l[l.length-1]&&(n.callback=l.pop()),l.forEach(l=>{if("string"==typeof l)e.properties.push(l);else{if("object"!=typeof l)throw new b("observable-bind-to-parse-error",null);e={observable:l,properties:[]},n.to.push(e)}}),n}(...l),e=Array.from(this._bindings.keys()),t=e.length;if(!n.callback&&n.to.length>1)throw new b("observable-bind-to-no-callback",this);if(t>1&&n.callback)throw new b("observable-bind-to-extra-callback",this);var o;n.to.forEach(l=>{if(l.properties.length&&l.properties.length!==t)throw new b("observable-bind-to-properties-length",this);l.properties.length||(l.properties=this._bindProperties)}),this._to=n.to,n.callback&&(this._bindings.get(e[0]).callback=n.callback),o=this._observable,this._to.forEach(l=>{const n=o[q];let e;n.get(l.observable)||o.listenTo(l.observable,"change",(t,u)=>{(e=n.get(l.observable)[u])&&e.forEach(l=>{Y(o,l.property)})})}),function(l){let n;l._bindings.forEach((e,t)=>{l._to.forEach(o=>{n=o.properties[e.callback?0:l._bindProperties.indexOf(t)],e.to.push([o.observable,n]),function(l,n,e,t){const o=l[q],u=o.get(e),i=u||{};i[t]||(i[t]=new Set),i[t].add(n),u||o.set(e,i)}(l._observable,e,o.observable,n)})})}(this),this._bindProperties.forEach(l=>{Y(this._observable,l)})}function j(l,n,e){if(this._bindings.size>1)throw new b("observable-bind-to-many-not-one-binding",this);this.to(...function(l,n){const e=l.map(l=>[l,n]);return Array.prototype.concat.apply([],e)}(l,n),e)}function H(l){return l.every(l=>"string"==typeof l)}function Y(l,n){const e=l[T].get(n);let t;e.callback?t=e.callback.apply(l,e.to.map(l=>l[0][l[1]])):t=(t=e.to[0])[0][t[1]],Object.prototype.hasOwnProperty.call(l,n)?l[n]=t:l.set(n,t)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(l=>{U[l]=V.prototype[l]});class Z{constructor(){this._replacedElements=[]}replace(l,n){this._replacedElements.push({element:l,newElement:n}),l.style.display="none",n&&l.parentNode.insertBefore(n,l.nextSibling)}restore(){this._replacedElements.forEach(({element:l,newElement:n})=>{l.style.display="",n&&n.remove()}),this._replacedElements=[]}}function X(l){let n=0;for(const e of l)n++;return n}function $(l,n){const e=Math.min(l.length,n.length);for(let t=0;t-1},wl.prototype.set=function(l,n){var e=this.__data__,t=_l(e,l);return t<0?(++this.size,e.push([l,n])):e[t][1]=n,this};const Rl=wl,Ll=function(l){if(!D(l))return!1;var n=rl(l);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n},Ml=ll["__core-js_shared__"];var El=function(){var l=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}();var Ol=Function.prototype.toString;const Sl=function(l){if(null!=l){try{return Ol.call(l)}catch(l){}try{return l+""}catch(l){}}return""};var kl=/^\[object .+?Constructor\]$/,Il=Function.prototype,Fl=Object.prototype,Nl=Il.toString,Dl=Fl.hasOwnProperty,zl=RegExp("^"+Nl.call(Dl).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ql=function(l){return!(!D(l)||function(l){return!!El&&El in l}(l))&&(Ll(l)?zl:kl).test(Sl(l))},Tl=function(l,n){var e=function(l,n){return null==l?void 0:l[n]}(l,n);return ql(e)?e:void 0},Pl=Tl(ll,"Map"),Bl=Tl(Object,"create");var Vl=Object.prototype.hasOwnProperty;var Ul=Object.prototype.hasOwnProperty;function Wl(l){var n=-1,e=null==l?0:l.length;for(this.clear();++n-1&&l%1==0&&l-1&&l%1==0&&l<=9007199254740991};var mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;const hn=function(l){return function(n){return l(n)}};var gn="object"==typeof n&&n&&!n.nodeType&&n,vn=gn&&"object"==typeof l&&l&&!l.nodeType&&l,bn=vn&&vn.exports===gn&&Q.process;const yn=function(){try{return vn&&vn.require&&vn.require("util").types||bn&&bn.binding&&bn.binding("util")}catch(e){}}();var xn=yn&&yn.isTypedArray;const An=xn?hn(xn):function(l){return dl(l)&&fn(l.length)&&!!mn[rl(l)]};var _n=Object.prototype.hasOwnProperty;const Cn=function(l,n){var e=sl(l),t=!e&&un(l),o=!e&&!t&&dn(l),u=!e&&!t&&!o&&An(l),i=e||t||o||u,a=i?function(l,n){for(var e=-1,t=Array(l);++e{this._setToTarget(l,t,n[t],e)})}}function Ie(l){return Oe(l,Fe)}function Fe(l){return Se(l)?l:void 0}function Ne(l){if(l){if(l.defaultView)return l instanceof l.defaultView.Document;if(l.ownerDocument&&l.ownerDocument.defaultView)return l instanceof l.ownerDocument.defaultView.Node}return!1}function De(l){const n=Object.prototype.toString.apply(l);return"[object Window]"==n||"[object global]"==n}const ze=qe(E());function qe(l){return l?class extends l{listenTo(l,n,e,t={}){if(Ne(l)||De(l)){const o={capture:!!t.useCapture,passive:!!t.usePassive},u=this._getProxyEmitter(l,o)||new Te(l,o);this.listenTo(u,n,e,t)}else super.listenTo(l,n,e,t)}stopListening(l,n,e){if(Ne(l)||De(l)){const t=this._getAllProxyEmitters(l);for(const l of t)this.stopListening(l,n,e)}else super.stopListening(l,n,e)}_getProxyEmitter(l,n){return function(l,n){const e=l[w];return e&&e[n]?e[n].emitter:null}(this,Pe(l,n))}_getAllProxyEmitters(l){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(n=>this._getProxyEmitter(l,n)).filter(l=>!!l)}}:ze}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(l=>{qe[l]=ze.prototype[l]});class Te extends(E()){constructor(l,n){super(),O(this,Pe(l,n)),this._domNode=l,this._options=n}attach(l){if(this._domListeners&&this._domListeners[l])return;const n=this._createDomListener(l);this._domNode.addEventListener(l,n,this._options),this._domListeners||(this._domListeners={}),this._domListeners[l]=n}detach(l){let n;!this._domListeners[l]||(n=this._events[l])&&n.callbacks.length||this._domListeners[l].removeListener()}_addEventListener(l,n,e){this.attach(l),E().prototype._addEventListener.call(this,l,n,e)}_removeEventListener(l,n){E().prototype._removeEventListener.call(this,l,n),this.detach(l)}_createDomListener(l){const n=n=>{this.fire(l,n)};return n.removeListener=(()=>{this._domNode.removeEventListener(l,n,this._options),delete this._domListeners[l]}),n}}function Pe(l,n){let e=function(l){return l["data-ck-expando"]||(l["data-ck-expando"]=h())}(l);for(const t of Object.keys(n).sort())n[t]&&(e+="-"+t);return e}let Be;try{Be={window:window,document:document}}catch(e){Be={window:{},document:{}}}const Ve=Be;function Ue(l){const n=[];let e=l;for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)n.unshift(e),e=e.parentNode;return n}function We(l){return"[object Text]"==Object.prototype.toString.call(l)}function Ge(l){return"[object Range]"==Object.prototype.toString.apply(l)}function je(l){const n=l.ownerDocument.defaultView.getComputedStyle(l);return{top:parseInt(n.borderTopWidth,10),right:parseInt(n.borderRightWidth,10),bottom:parseInt(n.borderBottomWidth,10),left:parseInt(n.borderLeftWidth,10)}}const He=["top","right","bottom","left","width","height"];class Ye{constructor(l){const n=Ge(l);if(Object.defineProperty(this,"_source",{value:l._source||l,writable:!0,enumerable:!1}),$e(l)||n)if(n){const n=Ye.getDomRangeRects(l);Ze(this,Ye.getBoundingRect(n))}else Ze(this,l.getBoundingClientRect());else if(De(l)){const{innerWidth:n,innerHeight:e}=l;Ze(this,{top:0,right:n,bottom:e,left:0,width:n,height:e})}else Ze(this,l)}clone(){return new Ye(this)}moveTo(l,n){return this.top=n,this.right=l+this.width,this.bottom=n+this.height,this.left=l,this}moveBy(l,n){return this.top+=n,this.right+=l,this.left+=l,this.bottom+=n,this}getIntersection(l){const n={top:Math.max(this.top,l.top),right:Math.min(this.right,l.right),bottom:Math.min(this.bottom,l.bottom),left:Math.max(this.left,l.left),width:0,height:0};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new Ye(n)}getIntersectionArea(l){const n=this.getIntersection(l);return n?n.getArea():0}getArea(){return this.width*this.height}getVisible(){const l=this._source;let n=this.clone();if(!Xe(l)){let e=l.parentNode||l.commonAncestorContainer;for(;e&&!Xe(e);){const l=new Ye(e),t=n.getIntersection(l);if(!t)return null;t.getArea(){for(const n of l){const l=Ke._getElementCallbacks(n.target);if(l)for(const e of l)e(n)}})}}function Qe(l){return n=>n+l}function Je(l){let n=0;for(;l.previousSibling;)l=l.previousSibling,n++;return n}function lt(l,n,e){l.insertBefore(e,l.childNodes[n]||null)}function nt(l){return l&&l.nodeType===Node.COMMENT_NODE}function et(l){return!!(l&&l.getClientRects&&l.getClientRects().length)}function tt({element:l,target:n,positions:e,limiter:t,fitInViewport:o,viewportOffsetConfig:u}){Ll(n)&&(n=n()),Ll(t)&&(t=t());const i=function(l){return l&&l.parentNode?l.offsetParent===Ve.document.body?null:l.offsetParent:null}(l),a=new Ye(l),r=new Ye(n);let s;const d=o&&function(l){l=Object.assign({top:0,bottom:0,left:0,right:0},l);const n=new Ye(Ve.window);return n.top+=l.top,n.height-=l.top,n.bottom-=l.bottom,n.height-=l.bottom,n}(u)||null,c={targetRect:r,elementRect:a,positionedElementAncestor:i,viewportRect:d};if(t||o){const l=t&&new Ye(t).getVisible();Object.assign(c,{limiterRect:l,viewportRect:d}),s=function(l,n){const{elementRect:e}=n,t=e.getArea(),o=l.map(l=>new ut(l,n)).filter(l=>!!l.name);let u=0,i=null;for(const a of o){const{limiterIntersectionArea:l,viewportIntersectionArea:n}=a;if(l===t)return a;const e=n**2+l**2;e>u&&(u=e,i=a)}return i}(e,c)||new ut(e[0],c)}else s=new ut(e[0],c);return s}function ot(l){const{scrollX:n,scrollY:e}=Ve.window;return l.clone().moveBy(n,e)}Ke._observerInstance=null,Ke._elementCallbacks=null;class ut{constructor(l,n){const e=l(n.targetRect,n.elementRect,n.viewportRect);if(!e)return;const{left:t,top:o,name:u,config:i}=e;this.name=u,this.config=i,this._positioningFunctionCorrdinates={left:t,top:o},this._options=n}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const l=this._options.limiterRect;if(l){const n=this._options.viewportRect;if(!n)return l.getIntersectionArea(this._rect);{const e=l.getIntersection(n);if(e)return e.getIntersectionArea(this._rect)}}return 0}get viewportIntersectionArea(){const l=this._options.viewportRect;return l?l.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=ot(this._rect),this._options.positionedElementAncestor&&function(l,n){const e=ot(new Ye(n)),t=je(n);let o=0,u=0;o-=e.left,u-=e.top,o+=n.scrollLeft,u+=n.scrollTop,o-=t.left,u-=t.top,l.moveBy(o,u)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}function it(l){const n=l.parentNode;n&&n.removeChild(l)}function at(l,n,e){const t=n.clone().moveBy(0,e),o=n.clone().moveBy(0,-e),u=new Ye(l).excludeScrollbarsAndBorders();if(![o,t].every(l=>u.contains(l))){let{scrollX:i,scrollY:a}=l;dt(o,u)?a-=u.top-n.top+e:st(t,u)&&(a+=n.bottom-u.bottom+e),ct(n,u)?i-=u.left-n.left+e:pt(n,u)&&(i+=n.right-u.right+e),l.scrollTo(i,a)}}function rt(l,n){const e=ft(l);let t,o;for(;l!=e.document.body;)o=n(),(t=new Ye(l).excludeScrollbarsAndBorders()).contains(o)||(dt(o,t)?l.scrollTop-=t.top-o.top:st(o,t)&&(l.scrollTop+=o.bottom-t.bottom),ct(o,t)?l.scrollLeft-=t.left-o.left:pt(o,t)&&(l.scrollLeft+=o.right-t.right)),l=l.parentNode}function st(l,n){return l.bottom>n.bottom}function dt(l,n){return l.topn.right}function ft(l){return Ge(l)?l.startContainer.ownerDocument.defaultView:l.ownerDocument.defaultView}function mt(l){if(Ge(l)){let n=l.commonAncestorContainer;return We(n)&&(n=n.parentNode),n}return l.parentNode}function ht(l,n){const e=ft(l),t=new Ye(l);if(e===n)return t;{let l=e;for(;l!=n;){const n=l.frameElement,e=new Ye(n).excludeScrollbarsAndBorders();t.moveBy(e.left,e.top),l=l.parent}}return t}const gt={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},vt={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},bt=function(){const l={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 n=65;n<=90;n++)l[String.fromCharCode(n).toLowerCase()]=n;for(let n=48;n<=57;n++)l[n-48]=n;for(let n=112;n<=123;n++)l["f"+(n-111)]=n;for(const n of"`-=[];',./\\")l[n]=n.charCodeAt(0);return l}(),yt=Object.fromEntries(Object.entries(bt).map(([l,n])=>[n,l.charAt(0).toUpperCase()+l.slice(1)]));function xt(l){let n;if("string"==typeof l){if(!(n=bt[l.toLowerCase()]))throw new b("keyboard-unknown-key",null,{key:l})}else n=l.keyCode+(l.altKey?bt.alt:0)+(l.ctrlKey?bt.ctrl:0)+(l.shiftKey?bt.shift:0)+(l.metaKey?bt.cmd:0);return n}function At(l){return"string"==typeof l&&(l=function(l){return l.split("+").map(l=>l.trim())}(l)),l.map(l=>"string"==typeof l?function(l){if(l.endsWith("!"))return xt(l.slice(0,-1));const n=xt(l);return t.isMac&&n==bt.ctrl?bt.cmd:n}(l):l).reduce((l,n)=>n+l,0)}function _t(l){let n=At(l);return Object.entries(t.isMac?gt:vt).reduce((l,[e,t])=>(0!=(n&bt[e])&&(n&=~bt[e],l+=t),l),"")+(n?yt[n]:"")}function Ct(l,n){const e="ltr"===n;switch(l){case bt.arrowleft:return e?"left":"right";case bt.arrowright:return e?"right":"left";case bt.arrowup:return"up";case bt.arrowdown:return"down"}}function wt(l){return Array.isArray(l)?l:[l]}Ve.window.CKEDITOR_TRANSLATIONS||(Ve.window.CKEDITOR_TRANSLATIONS={});const Rt=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Lt(l){return Rt.includes(l)?"rtl":"ltr"}class Mt{constructor({uiLanguage:l="en",contentLanguage:n}={}){this.uiLanguage=l,this.contentLanguage=n||this.uiLanguage,this.uiLanguageDirection=Lt(this.uiLanguage),this.contentLanguageDirection=Lt(this.contentLanguage),this.t=((l,n)=>this._t(l,n))}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(l,n=[]){n=wt(n),"string"==typeof l&&(l={string:l});const e=l.plural?n[0]:1;return function(l,n){return l.replace(/%(\d+)/g,(l,e)=>e1===l?0:1),a=u[o];return"string"==typeof a?a:a[Number(i(e))]}(this.uiLanguage,l,e),n)}}class Et extends(E()){constructor(l={},n={}){super();const e=K(l);if(e||(n=l),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],e)for(const t of l)this._items.push(t),this._itemMap.set(this._getItemIdBeforeAdding(t),t)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(l,n){return this.addMany([l],n)}addMany(l,n){if(void 0===n)n=this._items.length;else if(n>this._items.length||n<0)throw new b("collection-add-item-invalid-index",this);let e=0;for(const t of l){const l=this._getItemIdBeforeAdding(t),o=n+e;this._items.splice(o,0,t),this._itemMap.set(l,t),this.fire("add",t,o),e++}return this.fire("change",{added:l,removed:[],index:n}),this}get(l){let n;if("string"==typeof l)n=this._itemMap.get(l);else{if("number"!=typeof l)throw new b("collection-get-invalid-arg",this);n=this._items[l]}return n||null}has(l){if("string"==typeof l)return this._itemMap.has(l);{const n=l[this._idProperty];return n&&this._itemMap.has(n)}}getIndex(l){let n;return(n="string"==typeof l?this._itemMap.get(l):l)?this._items.indexOf(n):-1}remove(l){const[n,e]=this._remove(l);return this.fire("change",{added:[],removed:[n],index:e}),n}map(l,n){return this._items.map(l,n)}find(l,n){return this._items.find(l,n)}filter(l,n){return this._items.filter(l,n)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const l=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:l,index:0})}bindTo(l){if(this._bindToCollection)throw new b("collection-bind-to-rebind",this);return this._bindToCollection=l,{as:l=>{this._setUpBindToBinding(n=>new l(n))},using:l=>{"function"==typeof l?this._setUpBindToBinding(l):this._setUpBindToBinding(n=>n[l])}}}_setUpBindToBinding(l){const n=this._bindToCollection,e=(e,t,o)=>{const u=n._bindToCollection==this,i=n._bindToInternalToExternalMap.get(t);if(u&&i)this._bindToExternalToInternalMap.set(t,i),this._bindToInternalToExternalMap.set(i,t);else{const e=l(t);if(!e)return void this._skippedIndexesFromExternal.push(o);let u=o;for(const l of this._skippedIndexesFromExternal)o>l&&u--;for(const l of n._skippedIndexesFromExternal)u>=l&&u++;this._bindToExternalToInternalMap.set(t,e),this._bindToInternalToExternalMap.set(e,t),this.add(e,u);for(let l=0;l{const t=this._bindToExternalToInternalMap.get(n);t&&this.remove(t),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((l,n)=>(en&&l.push(n),l),[])})}_getItemIdBeforeAdding(l){const n=this._idProperty;let e;if(n in l){if("string"!=typeof(e=l[n]))throw new b("collection-add-invalid-id",this);if(this.get(e))throw new b("collection-add-item-already-exists",this)}else l[n]=e=h();return e}_remove(l){let n,e,t,o=!1;const u=this._idProperty;if("string"==typeof l?(e=l,o=!(t=this._itemMap.get(e)),t&&(n=this._items.indexOf(t))):"number"==typeof l?(n=l,o=!(t=this._items[n]),t&&(e=t[u])):(e=(t=l)[u],o=-1==(n=this._items.indexOf(t))||!this._itemMap.get(e)),o)throw new b("collection-remove-404",this);this._items.splice(n,1),this._itemMap.delete(e);const i=this._bindToInternalToExternalMap.get(t);return this._bindToInternalToExternalMap.delete(t),this._bindToExternalToInternalMap.delete(i),this.fire("remove",t,n),[t,n]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Ot(l){const n=l.next();return n.done?null:n.value}class St extends(qe(U())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(l){if(this._elements.has(l))throw new b("focustracker-add-element-already-exist",this);this.listenTo(l,"focus",()=>this._focus(l),{useCapture:!0}),this.listenTo(l,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(l)}remove(l){l===this.focusedElement&&this._blur(),this._elements.has(l)&&(this.stopListening(l),this._elements.delete(l))}destroy(){this.stopListening()}_focus(l){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=l,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class kt{constructor(){this._listener=new(qe())}listenTo(l){this._listener.listenTo(l,"keydown",(l,n)=>{this._listener.fire("_keydown:"+xt(n),n)})}set(l,n,e={}){const t=At(l),o=e.priority;this._listener.listenTo(this._listener,"_keydown:"+t,(l,e)=>{n(e,()=>{e.preventDefault(),e.stopPropagation(),l.stop()}),l.return=!0},{priority:o})}press(l){return!!this._listener.fire("_keydown:"+xt(l),l)}destroy(){this._listener.stopListening()}}function It(l){return K(l)?new Map(l):function(l){const n=new Map;for(const e in l)n.set(e,l[e]);return n}(l)}function Ft(l,n){return!!(e=l.charAt(n-1))&&1==e.length&&/[\ud800-\udbff]/.test(e)&&function(l){return!!l&&1==l.length&&/[\udc00-\udfff]/.test(l)}(l.charAt(n));var e}function Nt(l,n){return!!(e=l.charAt(n))&&1==e.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e);var e}const Dt=function(){const l=/\p{Regional_Indicator}{2}/u.source,n="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map(l=>l.source).join("|")+")";return new RegExp(`${l}|${n}(?:\u200d${n})*`,"ug")}();function zt(l,n){const e=String(l).matchAll(Dt);return Array.from(e).some(l=>l.index{this.refresh()}),this.on("execute",l=>{this.isEnabled||l.stop()},{priority:"high"}),this.listenTo(l,"change:isReadOnly",(l,n,e)=>{e&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}get affectsData(){return this._affectsData}set affectsData(l){this._affectsData=l}refresh(){this.isEnabled=!0}forceDisabled(l){this._disableStack.add(l),1==this._disableStack.size&&(this.on("set:isEnabled",Bt,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(l){this._disableStack.delete(l),0==this._disableStack.size&&(this.off("set:isEnabled",Bt),this.refresh())}execute(...l){}destroy(){this.stopListening()}}function Bt(l){l.return=!1,l.stop()}class Vt extends Pt{constructor(l){super(l),this._childCommandsDefinitions=[]}refresh(){}execute(...l){const n=this._getFirstEnabledCommand();return!!n&&n.execute(l)}registerChildCommand(l,n={}){v(this._childCommandsDefinitions,{command:l,priority:n.priority||"normal"}),l.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const l=this._childCommandsDefinitions.find(({command:l})=>l.isEnabled);return l&&l.command}}class Ut extends(E()){constructor(l,n=[],e=[]){super(),this._context=l,this._plugins=new Map,this._availablePlugins=new Map;for(const t of n)t.pluginName&&this._availablePlugins.set(t.pluginName,t);this._contextPlugins=new Map;for(const[t,o]of e)this._contextPlugins.set(t,o),this._contextPlugins.set(o,t),t.pluginName&&this._availablePlugins.set(t.pluginName,t)}*[Symbol.iterator](){for(const l of this._plugins)"function"==typeof l[0]&&(yield l)}get(l){const n=this._plugins.get(l);if(!n){let n=l;throw"function"==typeof l&&(n=l.pluginName||l.name),new b("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return n}has(l){return this._plugins.has(l)}init(l,n=[],e=[]){const t=this,o=this._context;!function l(n,e=new Set){n.forEach(n=>{a(n)&&(e.has(n)||(e.add(n),n.pluginName&&!t._availablePlugins.has(n.pluginName)&&t._availablePlugins.set(n.pluginName,n),n.requires&&l(n.requires,e)))})}(l),c(l);const u=[...function l(n,e=new Set){return n.map(l=>a(l)?l:t._availablePlugins.get(l)).reduce((n,t)=>e.has(t)?n:(e.add(t),t.requires&&(c(t.requires,t),l(t.requires,e).forEach(l=>n.add(l))),n.add(t)),new Set)}(l.filter(l=>!s(l,n)))];!function(l,n){for(const e of n){if("function"!=typeof e)throw new b("plugincollection-replace-plugin-invalid-type",null,{pluginItem:e});const n=e.pluginName;if(!n)throw new b("plugincollection-replace-plugin-missing-name",null,{pluginItem:e});if(e.requires&&e.requires.length)throw new b("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:n});const o=t._availablePlugins.get(n);if(!o)throw new b("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:n});const u=l.indexOf(o);if(-1===u){if(t._contextPlugins.has(o))return;throw new b("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:n})}if(o.requires&&o.requires.length)throw new b("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:n});l.splice(u,1,e),t._availablePlugins.set(n,e)}}(u,e);const i=u.map(l=>{let n=t._contextPlugins.get(l);return n=n||new l(o),t._add(l,n),n});return p(i,"init").then(()=>p(i,"afterInit")).then(()=>i);function a(l){return"function"==typeof l}function r(l){return a(l)&&l.isContextPlugin}function s(l,n){return n.some(n=>n===l||d(l)===n||d(n)===l)}function d(l){return a(l)?l.pluginName||l.name:l}function c(l,e=null){l.map(l=>a(l)?l:t._availablePlugins.get(l)||l).forEach(l=>{!function(l,n){if(!a(l)){if(n)throw new b("plugincollection-soft-required",o,{missingPlugin:l,requiredBy:d(n)});throw new b("plugincollection-plugin-not-found",o,{plugin:l})}}(l,e),function(l,n){if(r(n)&&!r(l))throw new b("plugincollection-context-required",o,{plugin:d(l),requiredBy:d(n)})}(l,e),function(l,e){if(e&&s(l,n))throw new b("plugincollection-required",o,{plugin:d(l),requiredBy:d(e)})}(l,e)})}function p(l,n){return l.reduce((l,e)=>e[n]?t._contextPlugins.has(e)?l:l.then(e[n].bind(e)):l,Promise.resolve())}}destroy(){const l=[];for(const[,n]of this)"function"!=typeof n.destroy||this._contextPlugins.has(n)||l.push(n.destroy());return Promise.all(l)}_add(l,n){this._plugins.set(l,n);const e=l.pluginName;if(e){if(this._plugins.has(e))throw new b("plugincollection-plugin-name-conflict",null,{pluginName:e,plugin1:this._plugins.get(e).constructor,plugin2:l});this._plugins.set(e,n)}}}class Wt{constructor(l){this.config=new ke(l,this.constructor.defaultConfig);const n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new Ut(this,n);const e=this.config.get("language")||{};this.locale=new Mt({uiLanguage:"string"==typeof e?e:e.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Et,this._contextOwner=null}initPlugins(){const l=this.config.get("plugins")||[],n=this.config.get("substitutePlugins")||[];for(const e of l.concat(n)){if("function"!=typeof e)throw new b("context-initplugins-constructor-only",null,{Plugin:e});if(!0!==e.isContextPlugin)throw new b("context-initplugins-invalid-plugin",null,{Plugin:e})}return this.plugins.init(l,[],n)}destroy(){return Promise.all(Array.from(this.editors,l=>l.destroy())).then(()=>this.plugins.destroy())}_addEditor(l,n){if(this._contextOwner)throw new b("context-addeditor-private-context");this.editors.add(l),n&&(this._contextOwner=l)}_removeEditor(l){return this.editors.has(l)&&this.editors.remove(l),this._contextOwner===l?this.destroy():Promise.resolve()}_getEditorConfig(){const l={};for(const n of this.config.names())["plugins","removePlugins","extraPlugins"].includes(n)||(l[n]=this.config.get(n));return l}static create(l){return new Promise(n=>{const e=new this(l);n(e.initPlugins().then(()=>e))})}}class Gt extends(U()){constructor(l){super(),this.context=l}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}var jt=o(6062),Ht=o.n(jt),Yt=o(4717);Ht()(Yt.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Yt.Z.locals;const Zt=new WeakMap;function Xt(l){const{view:n,element:e,text:t,isDirectHost:o=!0,keepOnFocus:u=!1}=l,i=n.document;Zt.has(i)||(Zt.set(i,new Map),i.registerPostFixer(l=>$t(i,l)),i.on("change:isComposing",()=>{n.change(l=>$t(i,l))},{priority:"high"})),Zt.get(i).set(e,{text:t,isDirectHost:o,keepOnFocus:u,hostElement:o?e:null}),n.change(l=>$t(i,l))}function $t(l,n){const e=Zt.get(l),t=[];let o=!1;for(const[u,i]of e)i.isDirectHost&&(t.push(u),Kt(n,u,i)&&(o=!0));for(const[u,i]of e){if(i.isDirectHost)continue;const l=Qt(u);l&&(t.includes(l)||(i.hostElement=l,Kt(n,u,i)&&(o=!0)))}return o}function Kt(l,n,e){const{text:t,isDirectHost:o,hostElement:u}=e;let i=!1;return u.getAttribute("data-placeholder")!==t&&(l.setAttribute("data-placeholder",t,u),i=!0),(o||1==n.childCount)&&function(l,n){if(!l.isAttached())return!1;if(Array.from(l.getChildren()).some(l=>!l.is("uiElement")))return!1;const e=l.document,t=e.selection.anchor;return!(e.isComposing&&t&&t.parent===l||!n&&e.isFocused&&(!t||t.parent===l))}(u,e.keepOnFocus)?function(l,n){return!n.hasClass("ck-placeholder")&&(l.addClass("ck-placeholder",n),!0)}(l,u)&&(i=!0):function(l,n){return!!n.hasClass("ck-placeholder")&&(l.removeClass("ck-placeholder",n),!0)}(l,u)&&(i=!0),i}function Qt(l){if(l.childCount){const n=l.getChild(0);if(n.is("element")&&!n.is("uiElement")&&!n.is("attributeElement"))return n}return null}class Jt{is(){throw new Error("is() method is abstract")}}const lo=function(l){return Ee(l,4)};class no extends(E(Jt)){constructor(l){super(),this.document=l,this.parent=null}get index(){let l;if(!this.parent)return null;if(-1==(l=this.parent.getChildIndex(this)))throw new b("view-node-not-found-in-parent",this);return l}get nextSibling(){const l=this.index;return null!==l&&this.parent.getChild(l+1)||null}get previousSibling(){const l=this.index;return null!==l&&this.parent.getChild(l-1)||null}get root(){let l=this;for(;l.parent;)l=l.parent;return l}isAttached(){return this.root.is("rootElement")}getPath(){const l=[];let n=this;for(;n.parent;)l.unshift(n.index),n=n.parent;return l}getAncestors(l={}){const n=[];let e=l.includeSelf?this:this.parent;for(;e;)n[l.parentFirst?"push":"unshift"](e),e=e.parent;return n}getCommonAncestor(l,n={}){const e=this.getAncestors(n),t=l.getAncestors(n);let o=0;for(;e[o]==t[o]&&e[o];)o++;return 0===o?null:e[o-1]}isBefore(l){if(this==l)return!1;if(this.root!==l.root)return!1;const n=this.getPath(),e=l.getPath(),t=$(n,e);switch(t){case"prefix":return!0;case"extension":return!1;default:return n[t]l.data.length)throw new b("view-textproxy-wrong-offsetintext",this);if(e<0||n+e>l.data.length)throw new b("view-textproxy-wrong-length",this);this.data=l.data.substring(n,n+e),this.offsetInText=n}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}getAncestors(l={}){const n=[];let e=l.includeSelf?this.textNode:this.parent;for(;null!==e;)n[l.parentFirst?"push":"unshift"](e),e=e.parent;return n}}to.prototype.is=function(l){return"$textProxy"===l||"view:$textProxy"===l||"textProxy"===l||"view:textProxy"===l};class oo{constructor(...l){this._patterns=[],this.add(...l)}add(...l){for(let n of l)("string"==typeof n||n instanceof RegExp)&&(n={name:n}),this._patterns.push(n)}match(...l){for(const n of l)for(const l of this._patterns){const e=uo(n,l);if(e)return{element:n,pattern:l,match:e}}return null}matchAll(...l){const n=[];for(const e of l)for(const l of this._patterns){const t=uo(e,l);t&&n.push({element:e,pattern:l,match:t})}return n.length>0?n:null}getElementName(){if(1!==this._patterns.length)return null;const l=this._patterns[0],n=l.name;return"function"==typeof l||!n||n instanceof RegExp?null:n}}function uo(l,n){if("function"==typeof n)return n(l);const e={};return n.name&&(e.name=function(l,n){return l instanceof RegExp?!!n.match(l):l===n}(n.name,l.name),!e.name)||n.attributes&&(e.attributes=function(l,n){const e=new Set(n.getAttributeKeys());return xl(l)?(void 0!==l.style&&y("matcher-pattern-deprecated-attributes-style-key",l),void 0!==l.class&&y("matcher-pattern-deprecated-attributes-class-key",l)):(e.delete("style"),e.delete("class")),io(l,e,l=>n.getAttribute(l))}(n.attributes,l),!e.attributes)||n.classes&&(e.classes=function(l,n){return io(l,n.getClassNames(),()=>{})}(n.classes,l),!e.classes)||n.styles&&(e.styles=function(l,n){return io(l,n.getStyleNames(!0),l=>n.getStyle(l))}(n.styles,l),!e.styles)?null:e}function io(l,n,e){const t=function(l){return Array.isArray(l)?l.map(l=>xl(l)?(void 0!==l.key&&void 0!==l.value||y("matcher-pattern-missing-key-or-value",l),[l.key,l.value]):[l,!0]):xl(l)?Object.entries(l):[[l,!0]]}(l),o=Array.from(n),u=[];if(t.forEach(([l,n])=>{o.forEach(t=>{(function(l,n){return!0===l||l===t||l instanceof RegExp&&t.match(l)})(l)&&function(l,n,e){if(!0===l)return!0;const t=e(n);return l===t||l instanceof RegExp&&!!String(t).match(l)}(n,t,e)&&u.push(t)})}),t.length&&!(u.lengtho?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var u=Array(o);++t0){if(++n>=800)return arguments[0]}else n=0;return l.apply(void 0,arguments)}}(No),qo=function(l,n){return zo(function(l,n,e){return n=Io(void 0===n?l.length-1:n,0),function(){for(var t=arguments,o=-1,u=Io(t.length-n,0),i=Array(u);++o1?e[o-1]:void 0,i=o>2?e[2]:void 0;for(u=l.length>3&&"function"==typeof u?(o--,u):void 0,i&&function(l,n,e){if(!D(e))return!1;var t=typeof n;return!!("number"==t?En(e)&&pn(n,e.length):"string"==t&&n in e)&&Al(e[n],l)}(e[0],e[1],i)&&(u=o<3?void 0:u,o=1),n=Object(n);++tn===l);return Array.isArray(n)}set(l,n){if(D(l))for(const[e,t]of Object.entries(l))this._styleProcessor.toNormalizedForm(e,t,this._styles);else this._styleProcessor.toNormalizedForm(l,n,this._styles)}remove(l){const n=Wo(l);Ro(this._styles,n),delete this._styles[l],this._cleanEmptyObjectsOnPath(n)}getNormalized(l){return this._styleProcessor.getNormalized(l,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(l=>l.join(":")).sort().join(";")+";"}getAsString(l){if(this.isEmpty)return;if(this._styles[l]&&!D(this._styles[l]))return this._styles[l];const n=this._styleProcessor.getReducedForm(l,this._styles).find(([n])=>n===l);return Array.isArray(n)?n[1]:void 0}getStyleNames(l=!1){return this.isEmpty?[]:l?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([l])=>l)}clear(){this._styles={}}_getStylesEntries(){const l=[],n=Object.keys(this._styles);for(const e of n)l.push(...this._styleProcessor.getReducedForm(e,this._styles));return l}_cleanEmptyObjectsOnPath(l){const n=l.split(".");if(!(n.length>1))return;const e=n.splice(0,n.length-1).join("."),t=Lo(this._styles,e);t&&!Array.from(Object.keys(t)).length&&this.remove(e)}}class Uo{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(l,n,e){if(D(n))Go(e,Wo(l),n);else if(this._normalizers.has(l)){const t=this._normalizers.get(l),{path:o,value:u}=t(n);Go(e,o,u)}else Go(e,l,n)}getNormalized(l,n){if(!l)return Po({},n);if(void 0!==n[l])return n[l];if(this._extractors.has(l)){const e=this._extractors.get(l);if("string"==typeof e)return Lo(n,e);const t=e(l,n);if(t)return t}return Lo(n,Wo(l))}getReducedForm(l,n){const e=this.getNormalized(l,n);return void 0===e?[]:this._reducers.has(l)?this._reducers.get(l)(e):[[l,e]]}getStyleNames(l){const n=Array.from(this._consumables.keys()).filter(n=>{const e=this.getNormalized(n,l);return e&&"object"==typeof e?Object.keys(e).length:e}),e=new Set([...n,...Object.keys(l)]);return Array.from(e.values())}getRelatedStyles(l){return this._consumables.get(l)||[]}setNormalizer(l,n){this._normalizers.set(l,n)}setExtractor(l,n){this._extractors.set(l,n)}setReducer(l,n){this._reducers.set(l,n)}setStyleRelation(l,n){this._mapStyleNames(l,n);for(const e of n)this._mapStyleNames(e,[l])}_mapStyleNames(l,n){this._consumables.has(l)||this._consumables.set(l,[]),this._consumables.get(l).push(...n)}}function Wo(l){return l.replace("-",".")}function Go(l,n,e){let t=e;D(e)&&(t=Po({},Lo(l,n),e)),Bo(l,n,t)}class jo extends no{constructor(l,n,e,t){if(super(l),this.name=n,this._attrs=function(l){const n=It(e);for(const[e,t]of n)null===t?n.delete(e):"string"!=typeof t&&n.set(e,String(t));return n}(),this._children=[],t&&this._insertChild(0,t),this._classes=new Set,this._attrs.has("class")){const l=this._attrs.get("class");Ho(this._classes,l),this._attrs.delete("class")}this._styles=new Vo(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}getChild(l){return this._children[l]}getChildIndex(l){return this._children.indexOf(l)}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(l){if("class"==l)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==l){const l=this._styles.toString();return""==l?void 0:l}return this._attrs.get(l)}hasAttribute(l){return"class"==l?this._classes.size>0:"style"==l?!this._styles.isEmpty:this._attrs.has(l)}isSimilar(l){if(!(l instanceof jo))return!1;if(this===l)return!0;if(this.name!=l.name)return!1;if(this._attrs.size!==l._attrs.size||this._classes.size!==l._classes.size||this._styles.size!==l._styles.size)return!1;for(const[n,e]of this._attrs)if(!l._attrs.has(n)||l._attrs.get(n)!==e)return!1;for(const n of this._classes)if(!l._classes.has(n))return!1;for(const n of this._styles.getStyleNames())if(!l._styles.has(n)||l._styles.getAsString(n)!==this._styles.getAsString(n))return!1;return!0}hasClass(...l){for(const n of l)if(!this._classes.has(n))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(l){return this._styles.getAsString(l)}getNormalizedStyle(l){return this._styles.getNormalized(l)}getStyleNames(l){return this._styles.getStyleNames(l)}hasStyle(...l){for(const n of l)if(!this._styles.has(n))return!1;return!0}findAncestor(...l){const n=new oo(...l);let e=this.parent;for(;e&&!e.is("documentFragment");){if(n.match(e))return e;e=e.parent}return null}getCustomProperty(l){return this._customProperties.get(l)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const l=Array.from(this._classes).sort().join(","),n=this._styles.toString(),e=Array.from(this._attrs).map(l=>`${l[0]}="${l[1]}"`).sort().join(" ");return this.name+(""==l?"":` class="${l}"`)+(n?` style="${n}"`:"")+(""==e?"":` ${e}`)}shouldRenderUnsafeAttribute(l){return this._unsafeAttributesToRender.includes(l)}_clone(l=!1){const n=[];if(l)for(const t of this.getChildren())n.push(t._clone(l));const e=new this.constructor(this.document,this.name,this._attrs,n);return e._classes=new Set(this._classes),e._styles.set(this._styles.getNormalized()),e._customProperties=new Map(this._customProperties),e.getFillerOffset=this.getFillerOffset,e._unsafeAttributesToRender=this._unsafeAttributesToRender,e}_appendChild(l){return this._insertChild(this.childCount,l)}_insertChild(l,n){this._fireChange("children",this);let e=0;const t=function(l,n){return"string"==typeof n?[new eo(l,n)]:(K(n)||(n=[n]),Array.from(n).map(n=>"string"==typeof n?new eo(l,n):n instanceof to?new eo(l,n.data):n))}(this.document,n);for(const o of t)null!==o.parent&&o._remove(),o.parent=this,o.document=this.document,this._children.splice(l,0,o),l++,e++;return e}_removeChildren(l,n=1){this._fireChange("children",this);for(let e=l;e0&&(this._classes.clear(),!0):"style"==l?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(l)}_addClass(l){this._fireChange("attributes",this);for(const n of wt(l))this._classes.add(n)}_removeClass(l){this._fireChange("attributes",this);for(const n of wt(l))this._classes.delete(n)}_setStyle(l,n){this._fireChange("attributes",this),xl(l)?this._styles.set(l):this._styles.set(l,n)}_removeStyle(l){this._fireChange("attributes",this);for(const n of wt(l))this._styles.remove(n)}_setCustomProperty(l,n){this._customProperties.set(l,n)}_removeCustomProperty(l){return this._customProperties.delete(l)}}function Ho(l,n){const e=n.split(/\s+/);l.clear(),e.forEach(n=>l.add(n))}jo.prototype.is=function(l,n){return n?n===this.name&&("element"===l||"view:element"===l):"element"===l||"view:element"===l||"node"===l||"view:node"===l};class Yo extends jo{constructor(...l){super(...l),this.getFillerOffset=Zo}}function Zo(){const l=[...this.getChildren()],n=l[this.childCount-1];if(n&&n.is("element","br"))return this.childCount;for(const e of l)if(!e.is("uiElement"))return null;return this.childCount}Yo.prototype.is=function(l,n){return n?n===this.name&&("containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l):"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class Xo extends(U(Yo)){constructor(...l){super(...l);const n=l[0];this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(n),this.bind("isFocused").to(n,"isFocused",l=>l&&n.selection.editableElement==this),this.listenTo(n.selection,"change",()=>{this.isFocused=n.isFocused&&n.selection.editableElement==this})}destroy(){this.stopListening()}}Xo.prototype.is=function(l,n){return n?n===this.name&&("editableElement"===l||"view:editableElement"===l||"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l):"editableElement"===l||"view:editableElement"===l||"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};const $o=Symbol("rootName");class Ko extends Xo{constructor(l,n){super(l,n),this.rootName="main"}get rootName(){return this.getCustomProperty($o)}set rootName(l){this._setCustomProperty($o,l)}set _name(l){this.name=l}}Ko.prototype.is=function(l,n){return n?n===this.name&&("rootElement"===l||"view:rootElement"===l||"editableElement"===l||"view:editableElement"===l||"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l):"rootElement"===l||"view:rootElement"===l||"editableElement"===l||"view:editableElement"===l||"containerElement"===l||"view:containerElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class Qo{constructor(l={}){if(!l.boundaries&&!l.startPosition)throw new b("view-tree-walker-no-start-position",null);if(l.direction&&"forward"!=l.direction&&"backward"!=l.direction)throw new b("view-tree-walker-unknown-direction",l.startPosition,{direction:l.direction});this.boundaries=l.boundaries||null,l.startPosition?this.position=Jo._createAt(l.startPosition):this.position=Jo._createAt(l.boundaries["backward"==l.direction?"end":"start"]),this.direction=l.direction||"forward",this.singleCharacters=!!l.singleCharacters,this.shallow=!!l.shallow,this.ignoreElementEnd=!!l.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(l){let n,e,t;do{t=this.position,({done:n,value:e}=this.next())}while(!n&&l(e));n||(this.position=t)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let l=this.position.clone();const n=this.position,e=l.parent;if(null===e.parent&&l.offset===e.childCount)return{done:!0,value:void 0};if(e===this._boundaryEndParent&&l.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let t;if(e instanceof eo){if(l.isAtEnd)return this.position=Jo._createAfter(e),this._next();t=e.data[l.offset]}else t=e.getChild(l.offset);if(t instanceof jo)return this.shallow?l.offset++:l=new Jo(t,0),this.position=l,this._formatReturnValue("elementStart",t,n,l,1);if(t instanceof eo){if(this.singleCharacters)return l=new Jo(t,0),this.position=l,this._next();{let e,o=t.data.length;return t==this._boundaryEndParent?(o=this.boundaries.end.offset,e=new to(t,0,o),l=Jo._createAfter(e)):(e=new to(t,0,t.data.length),l.offset++),this.position=l,this._formatReturnValue("text",e,n,l,o)}}if("string"==typeof t){let t;t=this.singleCharacters?1:(e===this._boundaryEndParent?this.boundaries.end.offset:e.data.length)-l.offset;const o=new to(e,l.offset,t);return l.offset+=t,this.position=l,this._formatReturnValue("text",o,n,l,t)}return l=Jo._createAfter(e),this.position=l,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",e,n,l)}_previous(){let l=this.position.clone();const n=this.position,e=l.parent;if(null===e.parent&&0===l.offset)return{done:!0,value:void 0};if(e==this._boundaryStartParent&&l.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let t;if(e instanceof eo){if(l.isAtStart)return this.position=Jo._createBefore(e),this._previous();t=e.data[l.offset-1]}else t=e.getChild(l.offset-1);if(t instanceof jo)return this.shallow?(l.offset--,this.position=l,this._formatReturnValue("elementStart",t,n,l,1)):(l=new Jo(t,t.childCount),this.position=l,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",t,n,l));if(t instanceof eo){if(this.singleCharacters)return l=new Jo(t,t.data.length),this.position=l,this._previous();{let e,o=t.data.length;if(t==this._boundaryStartParent){const n=this.boundaries.start.offset;o=(e=new to(t,n,t.data.length-n)).data.length,l=Jo._createBefore(e)}else e=new to(t,0,t.data.length),l.offset--;return this.position=l,this._formatReturnValue("text",e,n,l,o)}}if("string"==typeof t){let t;if(this.singleCharacters)t=1;else{const n=e===this._boundaryStartParent?this.boundaries.start.offset:0;t=l.offset-n}l.offset-=t;const o=new to(e,l.offset,t);return this.position=l,this._formatReturnValue("text",o,n,l,t)}return l=Jo._createBefore(e),this.position=l,this._formatReturnValue("elementStart",e,n,l,1)}_formatReturnValue(l,n,e,t,o){return n instanceof to&&(n.offsetInText+n.data.length==n.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?e=Jo._createAfter(n.textNode):(t=Jo._createAfter(n.textNode),this.position=t)),0===n.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?e=Jo._createBefore(n.textNode):(t=Jo._createBefore(n.textNode),this.position=t))),{done:!1,value:{type:l,item:n,previousPosition:e,nextPosition:t,length:o}}}}class Jo extends Jt{constructor(l,n){super(),this.parent=l,this.offset=n}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 l=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===l}get root(){return this.parent.root}get editableElement(){let l=this.parent;for(;!(l instanceof Xo);){if(!l.parent)return null;l=l.parent}return l}getShiftedBy(l){const n=Jo._createAt(this),e=n.offset+l;return n.offset=e<0?0:e,n}getLastMatchingPosition(l,n={}){n.startPosition=this;const e=new Qo(n);return e.skip(l),e.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(l){const n=this.getAncestors(),e=l.getAncestors();let t=0;for(;n[t]==e[t]&&n[t];)t++;return 0===t?null:n[t-1]}isEqual(l){return this.parent==l.parent&&this.offset==l.offset}isBefore(l){return"before"==this.compareWith(l)}isAfter(l){return"after"==this.compareWith(l)}compareWith(l){if(this.root!==l.root)return"different";if(this.isEqual(l))return"same";const n=this.parent.is("node")?this.parent.getPath():[],e=l.parent.is("node")?l.parent.getPath():[];n.push(this.offset),e.push(l.offset);const t=$(n,e);switch(t){case"prefix":return"before";case"extension":return"after";default:return n[t]0?new this(e,t):new this(t,e)}static _createIn(l){return this._createFromParentsAndOffsets(l,0,l,l.childCount)}static _createOn(l){const n=l.is("$textProxy")?l.offsetSize:1;return this._createFromPositionAndShift(Jo._createBefore(l),n)}}function nu(l){return!(!l.item.is("attributeElement")&&!l.item.is("uiElement"))}lu.prototype.is=function(l){return"range"===l||"view:range"===l};class eu extends(E(Jt)){constructor(...l){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",l.length&&this.setTo(...l)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const l=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?l.end:l.start).clone()}get focus(){if(!this._ranges.length)return null;const l=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?l.start:l.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 l of this._ranges)yield l.clone()}getFirstRange(){let l=null;for(const n of this._ranges)l&&!n.start.isBefore(l.start)||(l=n);return l?l.clone():null}getLastRange(){let l=null;for(const n of this._ranges)l&&!n.end.isAfter(l.end)||(l=n);return l?l.clone():null}getFirstPosition(){const l=this.getFirstRange();return l?l.start.clone():null}getLastPosition(){const l=this.getLastRange();return l?l.end.clone():null}isEqual(l){if(this.isFake!=l.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=l.fakeSelectionLabel)return!1;if(this.rangeCount!=l.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(l.anchor)||!this.focus.isEqual(l.focus))return!1;for(const n of this._ranges){let e=!1;for(const t of l._ranges)if(n.isEqual(t)){e=!0;break}if(!e)return!1}return!0}isSimilar(l){if(this.isBackward!=l.isBackward)return!1;const n=X(this.getRanges());if(n!=X(l.getRanges()))return!1;if(0==n)return!0;for(let e of this.getRanges()){e=e.getTrimmed();let n=!1;for(let t of l.getRanges())if(t=t.getTrimmed(),e.start.isEqual(t.start)&&e.end.isEqual(t.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...l){let[n,e,t]=l;if("object"==typeof e&&(t=e,e=void 0),null===n)this._setRanges([]),this._setFakeOptions(t);else if(n instanceof eu||n instanceof tu)this._setRanges(n.getRanges(),n.isBackward),this._setFakeOptions({fake:n.isFake,label:n.fakeSelectionLabel});else if(n instanceof lu)this._setRanges([n],t&&t.backward),this._setFakeOptions(t);else if(n instanceof Jo)this._setRanges([new lu(n)]),this._setFakeOptions(t);else if(n instanceof no){const l=!!t&&!!t.backward;let o;if(void 0===e)throw new b("view-selection-setto-required-second-parameter",this);o="in"==e?lu._createIn(n):"on"==e?lu._createOn(n):new lu(Jo._createAt(n,e)),this._setRanges([o],l),this._setFakeOptions(t)}else{if(!K(n))throw new b("view-selection-setto-not-selectable",this);this._setRanges(n,t&&t.backward),this._setFakeOptions(t)}this.fire("change")}setFocus(l,n){if(null===this.anchor)throw new b("view-selection-setfocus-no-ranges",this);const e=Jo._createAt(l,n);if("same"==e.compareWith(this.focus))return;const t=this.anchor;this._ranges.pop(),"before"==e.compareWith(t)?this._addRange(new lu(e,t),!0):this._addRange(new lu(t,e)),this.fire("change")}_setRanges(l,n=!1){l=Array.from(l),this._ranges=[];for(const e of l)this._addRange(e);this._lastRangeBackward=!!n}_setFakeOptions(l={}){this._isFake=!!l.fake,this._fakeSelectionLabel=l.fake&&l.label||""}_addRange(l,n=!1){if(!(l instanceof lu))throw new b("view-selection-add-range-not-range",this);this._pushRange(l),this._lastRangeBackward=!!n}_pushRange(l){for(const n of this._ranges)if(l.isIntersecting(n))throw new b("view-selection-range-intersects",this,{addedRange:l,intersectingRange:n});this._ranges.push(new lu(l.start,l.end))}}eu.prototype.is=function(l){return"selection"===l||"view:selection"===l};class tu extends(E(Jt)){constructor(...l){super(),this._selection=new eu,this._selection.delegate("change").to(this),l.length&&this._selection.setTo(...l)}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(l){return this._selection.isEqual(l)}isSimilar(l){return this._selection.isSimilar(l)}_setTo(...l){this._selection.setTo(...l)}_setFocus(l,n){this._selection.setFocus(l,n)}}tu.prototype.is=function(l){return"selection"===l||"documentSelection"==l||"view:selection"==l||"view:documentSelection"==l};class ou extends f{constructor(l,n,e){super(l,n),this.startRange=e,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const uu=Symbol("bubbling contexts");function iu(l){return class extends l{fire(l,...n){try{const e=l instanceof f?l:new f(this,l),t=du(this);if(!t.size)return;if(au(e,"capturing",this),ru(t,"$capture",e,...n))return e.return;const o=e.startRange||this.selection.getFirstRange(),u=o?o.getContainedElement():null,i=!!u&&Boolean(su(t,u));let a=u||function(l){if(!l)return null;const n=l.start.parent,e=l.end.parent,t=n.getPath(),o=e.getPath();return t.length>o.length?n:e}(o);if(au(e,"atTarget",a),!i){if(ru(t,"$text",e,...n))return e.return;au(e,"bubbling",a)}for(;a;){if(a.is("rootElement")){if(ru(t,"$root",e,...n))return e.return}else if(a.is("element")&&ru(t,a.name,e,...n))return e.return;if(ru(t,a,e,...n))return e.return;au(e,"bubbling",a=a.parent)}return au(e,"bubbling",this),ru(t,"$document",e,...n),e.return}catch(l){b.rethrowUnexpectedError(l,this)}}_addEventListener(l,n,e){const t=wt(e.context||"$document"),o=du(this);for(const u of t){let t=o.get(u);t||(t=new(E()),o.set(u,t)),this.listenTo(t,l,n,e)}}_removeEventListener(l,n){const e=du(this);for(const t of e.values())this.stopListening(t,l,n)}}}{const l=iu(Object);["fire","_addEventListener","_removeEventListener"].forEach(n=>{iu[n]=l.prototype[n]})}function au(l,n,e){l instanceof ou&&(l._eventPhase=n,l._currentTarget=e)}function ru(l,n,e,...t){const o="string"==typeof n?l.get(n):su(l,n);return!!o&&(o.fire(e,...t),e.stop.called)}function su(l,n){for(const[e,t]of l)if("function"==typeof e&&e(n))return t;return null}function du(l){return l[uu]||(l[uu]=new Map),l[uu]}class cu extends(iu(U())){constructor(l){super(),this.selection=new tu,this.roots=new Et({idProperty:"rootName"}),this.stylesProcessor=l,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("_isFocusChanging",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(l="main"){return this.roots.get(l)}registerPostFixer(l){this._postFixers.add(l)}destroy(){this.roots.map(l=>l.destroy()),this.stopListening()}_callPostFixers(l){let n=!1;do{for(const e of this._postFixers)if(n=e(l))break}while(n)}}class pu extends jo{constructor(...l){super(...l),this.getFillerOffset=fu,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 b("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(l){return null!==this.id||null!==l.id?this.id===l.id:super.isSimilar(l)&&this.priority==l.priority}_clone(l=!1){const n=super._clone(l);return n._priority=this._priority,n._id=this._id,n}}function fu(){if(mu(this))return null;let l=this.parent;for(;l&&l.is("attributeElement");){if(mu(l)>1)return null;l=l.parent}return!l||mu(l)>1?null:this.childCount}function mu(l){return Array.from(l.getChildren()).filter(l=>!l.is("uiElement")).length}pu.DEFAULT_PRIORITY=10,pu.prototype.is=function(l,n){return n?n===this.name&&("attributeElement"===l||"view:attributeElement"===l||"element"===l||"view:element"===l):"attributeElement"===l||"view:attributeElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class hu extends jo{constructor(l,n,e,t){super(l,n,e,t),this.getFillerOffset=gu}_insertChild(l,n){if(n&&(n instanceof no||Array.from(n).length>0))throw new b("view-emptyelement-cannot-add",[this,n]);return 0}}function gu(){return null}hu.prototype.is=function(l,n){return n?n===this.name&&("emptyElement"===l||"view:emptyElement"===l||"element"===l||"view:element"===l):"emptyElement"===l||"view:emptyElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class vu extends jo{constructor(...l){super(...l),this.getFillerOffset=bu}_insertChild(l,n){if(n&&(n instanceof no||Array.from(n).length>0))throw new b("view-uielement-cannot-add",[this,n]);return 0}render(l,n){return this.toDomElement(l)}toDomElement(l){const n=l.createElement(this.name);for(const e of this.getAttributeKeys())n.setAttribute(e,this.getAttribute(e));return n}}function bu(){return null}vu.prototype.is=function(l,n){return n?n===this.name&&("uiElement"===l||"view:uiElement"===l||"element"===l||"view:element"===l):"uiElement"===l||"view:uiElement"===l||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class yu extends jo{constructor(...l){super(...l),this.getFillerOffset=xu}_insertChild(l,n){if(n&&(n instanceof no||Array.from(n).length>0))throw new b("view-rawelement-cannot-add",[this,n]);return 0}render(){}}function xu(){return null}yu.prototype.is=function(l,n){return n?n===this.name&&("rawElement"===l||"view:rawElement"===l||"element"===l||"view:element"===l):"rawElement"===l||"view:rawElement"===l||l===this.name||l==="view:"+this.name||"element"===l||"view:element"===l||"node"===l||"view:node"===l};class Au extends(E(Jt)){constructor(l,n){super(),this.document=l,this._children=[],n&&this._insertChild(0,n)}[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}_appendChild(l){return this._insertChild(this.childCount,l)}getChild(l){return this._children[l]}getChildIndex(l){return this._children.indexOf(l)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(l,n){this._fireChange("children",this);let e=0;const t=function(l,n){return"string"==typeof n?[new eo(l,n)]:(K(n)||(n=[n]),Array.from(n).map(n=>"string"==typeof n?new eo(l,n):n instanceof to?new eo(l,n.data):n))}(this.document,n);for(const o of t)null!==o.parent&&o._remove(),o.parent=this,this._children.splice(l,0,o),l++,e++;return e}_removeChildren(l,n=1){this._fireChange("children",this);for(let e=l;et instanceof l))throw new b("view-writer-insert-invalid-node-type",e);t.is("$text")||l(t.getChildren(),e)}}(n=K(n)?[...n]:[n],this.document);const e=n.reduce((l,n)=>{const e=l[l.length-1],t=!n.is("uiElement");return e&&e.breakAttributes==t?e.nodes.push(n):l.push({breakAttributes:t,nodes:[n]}),l},[]);let t=null,o=l;for(const{nodes:u,breakAttributes:i}of e){const l=this._insertNodes(o,u,i);t||(t=l.start),o=l.end}return t?new lu(t,o):new lu(l)}remove(l){const n=l instanceof lu?l:lu._createOn(l);if(Su(n,this.document),n.isCollapsed)return new Au(this.document);const{start:e,end:t}=this._breakAttributesRange(n,!0),o=e.parent,u=t.offset-e.offset,i=o._removeChildren(e.offset,u);for(const r of i)this._removeFromClonedElementsGroup(r);const a=this.mergeAttributes(e);return n.start=a,n.end=a.clone(),new Au(this.document,i)}clear(l,n){Su(l,this.document);const e=l.getWalker({direction:"backward",ignoreElementEnd:!0});for(const t of e){const e=t.item;let o;if(e.is("element")&&n.isSimilar(e))o=lu._createOn(e);else if(!t.nextPosition.isAfter(l.start)&&e.is("$textProxy")){const l=e.getAncestors().find(l=>l.is("element")&&n.isSimilar(l));l&&(o=lu._createIn(l))}o&&(o.end.isAfter(l.end)&&(o.end=l.end),o.start.isBefore(l.start)&&(o.start=l.start),this.remove(o))}}move(l,n){let e;if(n.isAfter(l.end)){const t=(n=this._breakAttributes(n,!0)).parent,o=t.childCount;l=this._breakAttributesRange(l,!0),e=this.remove(l),n.offset+=t.childCount-o}else e=this.remove(l);return this.insert(n,e)}wrap(l,n){if(!(n instanceof pu))throw new b("view-writer-wrap-invalid-attribute",this.document);if(Su(l,this.document),l.isCollapsed){let t=l.start;t.parent.is("element")&&(e=t.parent,!Array.from(e.getChildren()).some(l=>!l.is("uiElement")))&&(t=t.getLastMatchingPosition(l=>l.item.is("uiElement"))),t=this._wrapPosition(t,n);const o=this.document.selection;return o.isCollapsed&&o.getFirstPosition().isEqual(l.start)&&this.setSelection(t),new lu(t)}return this._wrapRange(l,n);var e}unwrap(l,n){if(!(n instanceof pu))throw new b("view-writer-unwrap-invalid-attribute",this.document);if(Su(l,this.document),l.isCollapsed)return l;const{start:e,end:t}=this._breakAttributesRange(l,!0),o=e.parent,u=this._unwrapChildren(o,e.offset,t.offset,n),i=this.mergeAttributes(u.start);i.isEqual(u.start)||u.end.offset--;const a=this.mergeAttributes(u.end);return new lu(i,a)}rename(l,n){const e=new Yo(this.document,l,n.getAttributes());return this.insert(Jo._createAfter(n),e),this.move(lu._createIn(n),Jo._createAt(e,0)),this.remove(lu._createOn(n)),e}clearClonedElementsGroup(l){this._cloneGroups.delete(l)}createPositionAt(l,n){return Jo._createAt(l,n)}createPositionAfter(l){return Jo._createAfter(l)}createPositionBefore(l){return Jo._createBefore(l)}createRange(...l){return new lu(...l)}createRangeOn(l){return lu._createOn(l)}createRangeIn(l){return lu._createIn(l)}createSelection(...l){return new eu(...l)}createSlot(l){if(!this._slotFactory)throw new b("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,l)}_registerSlotFactory(l){this._slotFactory=l}_clearSlotFactory(){this._slotFactory=null}_insertNodes(l,n,e){let t,o;if(!(t=e?Cu(l):l.parent.is("$text")?l.parent.parent:l.parent))throw new b("view-writer-invalid-position-container",this.document);o=e?this._breakAttributes(l,!0):l.parent.is("$text")?Lu(l):l;const u=t._insertChild(o.offset,n);for(const s of n)this._addToClonedElementsGroup(s);const i=o.getShiftedBy(u),a=this.mergeAttributes(o);a.isEqual(o)||i.offset--;const r=this.mergeAttributes(i);return new lu(a,r)}_wrapChildren(l,n,e,t){let o=n;const u=[];for(;o!1),l.parent._insertChild(l.offset,e);const t=new lu(l,l.getShiftedBy(1));this.wrap(t,n);const o=new Jo(e.parent,e.index);e._remove();const u=o.nodeBefore,i=o.nodeAfter;return u instanceof eo&&i instanceof eo?Mu(u,i):Ru(o)}_wrapAttributeElement(l,n){if(!ku(l,n))return!1;if(l.name!==n.name||l.priority!==n.priority)return!1;for(const e of l.getAttributeKeys())if("class"!==e&&"style"!==e&&n.hasAttribute(e)&&n.getAttribute(e)!==l.getAttribute(e))return!1;for(const e of l.getStyleNames())if(n.hasStyle(e)&&n.getStyle(e)!==l.getStyle(e))return!1;for(const e of l.getAttributeKeys())"class"!==e&&"style"!==e&&(n.hasAttribute(e)||this.setAttribute(e,l.getAttribute(e),n));for(const e of l.getStyleNames())n.hasStyle(e)||this.setStyle(e,l.getStyle(e),n);for(const e of l.getClassNames())n.hasClass(e)||this.addClass(e,n);return!0}_unwrapAttributeElement(l,n){if(!ku(l,n))return!1;if(l.name!==n.name||l.priority!==n.priority)return!1;for(const e of l.getAttributeKeys())if("class"!==e&&"style"!==e&&(!n.hasAttribute(e)||n.getAttribute(e)!==l.getAttribute(e)))return!1;if(!n.hasClass(...l.getClassNames()))return!1;for(const e of l.getStyleNames())if(!n.hasStyle(e)||n.getStyle(e)!==l.getStyle(e))return!1;for(const e of l.getAttributeKeys())"class"!==e&&"style"!==e&&this.removeAttribute(e,n);return this.removeClass(Array.from(l.getClassNames()),n),this.removeStyle(Array.from(l.getStyleNames()),n),!0}_breakAttributesRange(l,n=!1){const e=l.start,t=l.end;if(Su(l,this.document),l.isCollapsed){const e=this._breakAttributes(l.start,n);return new lu(e,e)}const o=this._breakAttributes(t,n),u=o.parent.childCount,i=this._breakAttributes(e,n);return o.offset+=o.parent.childCount-u,new lu(i,o)}_breakAttributes(l,n=!1){const e=l.offset,t=l.parent;if(l.parent.is("emptyElement"))throw new b("view-writer-cannot-break-empty-element",this.document);if(l.parent.is("uiElement"))throw new b("view-writer-cannot-break-ui-element",this.document);if(l.parent.is("rawElement"))throw new b("view-writer-cannot-break-raw-element",this.document);if(!n&&t.is("$text")&&Ou(t.parent))return l.clone();if(Ou(t))return l.clone();if(t.is("$text"))return this._breakAttributes(Lu(l),n);if(e==t.childCount){const l=new Jo(t.parent,t.index+1);return this._breakAttributes(l,n)}if(0===e){const l=new Jo(t.parent,t.index);return this._breakAttributes(l,n)}{const l=t.index+1,o=t._clone();t.parent._insertChild(l,o),this._addToClonedElementsGroup(o);const u=t.childCount-e,i=t._removeChildren(e,u);o._appendChild(i);const a=new Jo(t.parent,l);return this._breakAttributes(a,n)}}_addToClonedElementsGroup(l){if(!l.root.is("rootElement"))return;if(l.is("element"))for(const t of l.getChildren())this._addToClonedElementsGroup(t);const n=l.id;if(!n)return;let e=this._cloneGroups.get(n);e||(e=new Set,this._cloneGroups.set(n,e)),e.add(l),l._clonesGroup=e}_removeFromClonedElementsGroup(l){if(l.is("element"))for(const t of l.getChildren())this._removeFromClonedElementsGroup(t);const n=l.id;if(!n)return;const e=this._cloneGroups.get(n);e&&e.delete(l)}}function Cu(l){let n=l.parent;for(;!Ou(n);){if(!n)return;n=n.parent}return n}function wu(l,n){return l.priorityn.priority)&&l.getIdentity()l.createTextNode("\xa0"),Fu=l=>{const n=l.createElement("span");return n.dataset.ckeFiller="true",n.innerText="\xa0",n},Nu=l=>{const n=l.createElement("br");return n.dataset.ckeFiller="true",n},Du="\u2060".repeat(7);function zu(l){return We(l)&&l.data.substr(0,7)===Du}function qu(l){return 7==l.data.length&&zu(l)}function Tu(l){return zu(l)?l.data.slice(7):l.data}function Pu(l,n){if(n.keyCode==bt.arrowleft){const l=n.domTarget.ownerDocument.defaultView.getSelection();if(1==l.rangeCount&&l.getRangeAt(0).collapsed){const n=l.getRangeAt(0).startContainer,e=l.getRangeAt(0).startOffset;zu(n)&&e<=7&&l.collapse(n,0)}}}var Bu=o(9315);Ht()(Bu.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bu.Z.locals;class Vu extends(U()){constructor(l,n){super(),this.domDocuments=new Set,this.domConverter=l,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.set("isFocused",!1),this.set("_isFocusChanging",!1),this.set("isSelecting",!1),t.isBlink&&!t.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()}),this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(l,n){if("text"===l)this.domConverter.mapViewToDom(n.parent)&&this.markedTexts.add(n);else{if(!this.domConverter.mapViewToDom(n))return;if("attributes"===l)this.markedAttributes.add(n);else{if("children"!==l)throw new b("view-renderer-unknown-type",this);this.markedChildren.add(n)}}}render(){if(this.isComposing&&!t.isAndroid)return;let l=null;const n=!(t.isBlink&&!t.isAndroid&&this.isSelecting);for(const e of this.markedChildren)this._updateChildrenMappings(e);n?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?l=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(l=this.selection.getFirstPosition(),this.markedChildren.add(l.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&((l=this.domConverter.domPositionToView(this._inlineFiller))&&l.parent.is("$text")&&(l=Jo._createBefore(l.parent)));for(const e of this.markedAttributes)this._updateAttrs(e);for(const e of this.markedChildren)this._updateChildren(e,{inlineFillerPosition:l});for(const e of this.markedTexts)!this.markedChildren.has(e.parent)&&this.domConverter.mapViewToDom(e.parent)&&this._updateText(e,{inlineFillerPosition:l});if(n)if(l){const n=this.domConverter.viewPositionToDom(l),e=n.parent.ownerDocument;zu(n.parent)?this._inlineFiller=n.parent:this._inlineFiller=Uu(e,n.parent,n.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(l){if(!this.domConverter.mapViewToDom(l))return;const n=Array.from(this.domConverter.mapViewToDom(l).childNodes),e=Array.from(this.domConverter.viewChildrenToDom(l,{withChildren:!1})),t=this._diffNodeLists(n,e),o=this._findReplaceActions(t,n,e);if(-1!==o.indexOf("replace")){const t={equal:0,insert:0,delete:0};for(const u of o)if("replace"===u){const o=t.equal+t.insert,u=t.equal+t.delete,i=l.getChild(o);!i||i.is("uiElement")||i.is("rawElement")||this._updateElementMappings(i,n[u]),it(e[o]),t.equal++}else t[u]++}}_updateElementMappings(l,n){this.domConverter.unbindDomElement(n),this.domConverter.bindElements(n,l),this.markedChildren.add(l),this.markedAttributes.add(l)}_getInlineFillerPosition(){const l=this.selection.getFirstPosition();return l.parent.is("$text")?Jo._createBefore(l.parent):l}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const l=this.selection.getFirstPosition(),n=this.domConverter.viewPositionToDom(l);return!!(n&&We(n.parent)&&zu(n.parent))}_removeInlineFiller(){const l=this._inlineFiller;if(!zu(l))throw new b("view-renderer-filler-was-lost",this);qu(l)?l.remove():l.data=l.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const l=this.selection.getFirstPosition(),n=l.parent,e=l.offset;if(!this.domConverter.mapViewToDom(n.root))return!1;if(!n.is("element"))return!1;if(!function(l){if("false"==l.getAttribute("contenteditable"))return!1;const n=l.findAncestor(l=>l.hasAttribute("contenteditable"));return!n||"true"==n.getAttribute("contenteditable")}(n))return!1;if(e===n.getFillerOffset())return!1;const o=l.nodeBefore,u=l.nodeAfter;return!(o instanceof eo||u instanceof eo||t.isAndroid&&(o||u))}_updateText(l,n){const e=this.domConverter.findCorrespondingDomText(l);let t=this.domConverter.viewToDom(l).data;const o=n.inlineFillerPosition;o&&o.parent==l.parent&&o.offset==l.index&&(t=Du+t),ju(e,t)}_updateAttrs(l){const n=this.domConverter.mapViewToDom(l);if(!n)return;const e=Array.from(n.attributes).map(l=>l.name),t=l.getAttributeKeys();for(const o of t)this.domConverter.setDomElementAttribute(n,o,l.getAttribute(o),l);for(const o of e)l.hasAttribute(o)||this.domConverter.removeDomElementAttribute(n,o)}_updateChildren(l,n){const e=this.domConverter.mapViewToDom(l);if(!e)return;if(t.isAndroid){let l=null;for(const n of Array.from(e.childNodes)){if(l&&We(l)&&We(n)){e.normalize();break}l=n}}const o=n.inlineFillerPosition,u=e.childNodes,i=Array.from(this.domConverter.viewChildrenToDom(l,{bind:!0}));o&&o.parent===l&&Uu(e.ownerDocument,i,o.offset);const a=this._diffNodeLists(u,i),r=t.isAndroid?this._findReplaceActions(a,u,i,{replaceText:!0}):a;let s=0;const d=new Set;for(const t of r)"delete"===t?(d.add(u[s]),it(u[s])):"equal"!==t&&"replace"!==t||s++;s=0;for(const t of r)"insert"===t?(lt(e,s,i[s]),s++):"replace"===t?(ju(u[s],i[s].data),s++):"equal"===t&&(this._markDescendantTextToSync(this.domConverter.domToView(i[s])),s++);for(const t of d)t.parentNode||this.domConverter.unbindDomElement(t)}_diffNodeLists(l,n){return d(l=function(l,n){const e=Array.from(l);return 0!=e.length&&n?(e[e.length-1]==n&&e.pop(),e):e}(l,this._fakeSelectionContainer),n,(function(l,n,e){return n===e||(We(n)&&We(e)?n.data===e.data:!(!l.isBlockFiller(n)||!l.isBlockFiller(e)))}).bind(null,this.domConverter))}_findReplaceActions(l,n,e,t={}){if(-1===l.indexOf("insert")||-1===l.indexOf("delete"))return l;let o=[],u=[],i=[];const a={equal:0,insert:0,delete:0};for(const r of l)"insert"===r?i.push(e[a.equal+a.insert]):"delete"===r?u.push(n[a.equal+a.delete]):((o=o.concat(d(u,i,t.replaceText?Gu:Wu).map(l=>"equal"===l?"replace":l))).push("equal"),u=[],i=[]),a[r]++;return o.concat(d(u,i,t.replaceText?Gu:Wu).map(l=>"equal"===l?"replace":l))}_markDescendantTextToSync(l){if(l)if(l.is("$text"))this.markedTexts.add(l);else if(l.is("element"))for(const n of l.getChildren())this._markDescendantTextToSync(n)}_updateSelection(){if(t.isBlink&&!t.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(this._isFocusChanging)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const l=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&l&&(this.selection.isFake?this._updateFakeSelection(l):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(l)):this.isComposing&&t.isAndroid||this._updateDomSelection(l))}_updateFakeSelection(l){const n=l.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(l){const n=l.createElement("div");return n.className="ck-fake-selection-container",Object.assign(n.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),n.textContent="\xa0",n}(n));const e=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(e,this.selection),!this._fakeSelectionNeedsUpdate(l))return;e.parentElement&&e.parentElement==l||l.appendChild(e),e.textContent=this.selection.fakeSelectionLabel||"\xa0";const t=n.getSelection(),o=n.createRange();t.removeAllRanges(),o.selectNodeContents(e),t.addRange(o)}_updateDomSelection(l){const n=l.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(n))return;const e=this.domConverter.viewPositionToDom(this.selection.anchor),o=this.domConverter.viewPositionToDom(this.selection.focus);n.collapse(e.parent,e.offset),n.extend(o.parent,o.offset),t.isGecko&&function(l,n){const e=l.parent;if(e.nodeType!=Node.ELEMENT_NODE||l.offset!=e.childNodes.length-1)return;const t=e.childNodes[l.offset];t&&"BR"==t.tagName&&n.addRange(n.getRangeAt(0))}(o,n)}_domSelectionNeedsUpdate(l){if(!this.domConverter.isDomSelectionCorrect(l))return!0;const n=l&&this.domConverter.domSelectionToView(l);return!(n&&this.selection.isEqual(n)||!this.selection.isCollapsed&&this.selection.isSimilar(n))}_fakeSelectionNeedsUpdate(l){const n=this._fakeSelectionContainer,e=l.ownerDocument.getSelection();return!n||n.parentElement!==l||e.anchorNode!==n&&!n.contains(e.anchorNode)||n.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const l of this.domDocuments){const n=l.getSelection();if(n.rangeCount){const e=l.activeElement,t=this.domConverter.mapDomToView(e);e&&t&&n.removeAllRanges()}}}_removeFakeSelection(){const l=this._fakeSelectionContainer;l&&l.remove()}_updateFocus(){if(this.isFocused){const l=this.selection.editableElement;l&&this.domConverter.focus(l)}}}function Uu(l,n,e){const t=n instanceof Array?n:n.childNodes,o=t[e];if(We(o))return o.data=Du+o.data,o;{const o=l.createTextNode(Du);return Array.isArray(n)?t.splice(e,0,o):lt(n,e,o),o}}function Wu(l,n){return Ne(l)&&Ne(n)&&!We(l)&&!We(n)&&!nt(l)&&!nt(n)&&l.tagName.toLowerCase()===n.tagName.toLowerCase()}function Gu(l,n){return Ne(l)&&Ne(n)&&We(l)&&We(n)}function ju(l,n){const e=l.data;if(e==n)return;const t=a(e,n);for(const o of t)"insert"===o.type?l.insertData(o.index,o.values.join("")):l.deleteData(o.index,o.howMany)}const Hu=Nu(Ve.document),Yu=Iu(Ve.document),Zu=Fu(Ve.document),Xu="data-ck-unsafe-attribute-",$u="data-ck-unsafe-element";class Ku{constructor(l,n={}){this.document=l,this.renderingMode=n.renderingMode||"editing",this.blockFillerMode=n.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Ve.document:Ve.document.implementation.createHTMLDocument(""),this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new oo,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(l,n){this._fakeSelectionMapping.set(l,new eu(n))}fakeSelectionToView(l){return this._fakeSelectionMapping.get(l)}bindElements(l,n){this._domToViewMapping.set(l,n),this._viewToDomMapping.set(n,l)}unbindDomElement(l){const n=this._domToViewMapping.get(l);if(n){this._domToViewMapping.delete(l),this._viewToDomMapping.delete(n);for(const n of Array.from(l.children))this.unbindDomElement(n)}}bindDocumentFragments(l,n){this._domToViewMapping.set(l,n),this._viewToDomMapping.set(n,l)}shouldRenderAttribute(l,n,e){return"data"===this.renderingMode||!(l=l.toLowerCase()).startsWith("on")&&("srcdoc"!==l||!n.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===e&&("src"===l||"srcset"===l)||"source"===e&&"srcset"===l||!n.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(l,n){if("data"===this.renderingMode)return void(l.innerHTML=n);const e=(new DOMParser).parseFromString(n,"text/html"),t=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)t.appendChild(o[0]);const u=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=[];let a;for(;a=u.nextNode();)i.push(a);for(const r of i){for(const n of r.getAttributeNames())this.setDomElementAttribute(r,n,r.getAttribute(n));const l=r.tagName.toLowerCase();this._shouldRenameElement(l)&&(li(l),r.replaceWith(this._createReplacementDomElement(l,r)))}for(;l.firstChild;)l.firstChild.remove();l.append(t)}viewToDom(l,n={}){if(l.is("$text")){const n=this._processDataFromViewText(l);return this._domDocument.createTextNode(n)}{if(this.mapViewToDom(l))return this.mapViewToDom(l);let e;if(l.is("documentFragment"))e=this._domDocument.createDocumentFragment(),n.bind&&this.bindDocumentFragments(e,l);else{if(l.is("uiElement"))return e="$comment"===l.name?this._domDocument.createComment(l.getCustomProperty("$rawContent")):l.render(this._domDocument,this),n.bind&&this.bindElements(e,l),e;this._shouldRenameElement(l.name)?(li(l.name),e=this._createReplacementDomElement(l.name)):e=l.hasAttribute("xmlns")?this._domDocument.createElementNS(l.getAttribute("xmlns"),l.name):this._domDocument.createElement(l.name),l.is("rawElement")&&l.render(e,this),n.bind&&this.bindElements(e,l);for(const n of l.getAttributeKeys())this.setDomElementAttribute(e,n,l.getAttribute(n),l)}if(!1!==n.withChildren)for(const t of this.viewChildrenToDom(l,n))e.appendChild(t);return e}}setDomElementAttribute(l,n,e,t){const o=this.shouldRenderAttribute(n,e,l.tagName.toLowerCase())||t&&t.shouldRenderUnsafeAttribute(n);o||y("domconverter-unsafe-attribute-detected",{domElement:l,key:n,value:e}),l.hasAttribute(n)&&!o?l.removeAttribute(n):l.hasAttribute(Xu+n)&&o&&l.removeAttribute(Xu+n),l.setAttribute(o?n:Xu+n,e)}removeDomElementAttribute(l,n){n!=$u&&(l.removeAttribute(n),l.removeAttribute(Xu+n))}*viewChildrenToDom(l,n={}){const e=l.getFillerOffset&&l.getFillerOffset();let t=0;for(const o of l.getChildren()){e===t&&(yield this._getBlockFiller());const l=o.is("element")&&o.getCustomProperty("dataPipeline:transparentRendering");l&&"data"==this.renderingMode?yield*this.viewChildrenToDom(o,n):(l&&y("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:o}),yield this.viewToDom(o,n)),t++}e===t&&(yield this._getBlockFiller())}viewRangeToDom(l){const n=this.viewPositionToDom(l.start),e=this.viewPositionToDom(l.end),t=this._domDocument.createRange();return t.setStart(n.parent,n.offset),t.setEnd(e.parent,e.offset),t}viewPositionToDom(l){const n=l.parent;if(n.is("$text")){const e=this.findCorrespondingDomText(n);if(!e)return null;let t=l.offset;return zu(e)&&(t+=7),{parent:e,offset:t}}{let e,t,o;if(0===l.offset){if(!(e=this.mapViewToDom(n)))return null;o=e.childNodes[0]}else{const n=l.nodeBefore;if(!(t=n.is("$text")?this.findCorrespondingDomText(n):this.mapViewToDom(n)))return null;e=t.parentNode,o=t.nextSibling}return We(o)&&zu(o)?{parent:o,offset:7}:{parent:e,offset:t?Je(t)+1:0}}}domToView(l,n={}){if(this.isBlockFiller(l))return null;const e=this.getHostViewElement(l);if(e)return e;if(nt(l)&&n.skipComments)return null;if(We(l)){if(qu(l))return null;{const n=this._processDataFromDomText(l);return""===n?null:new eo(this.document,n)}}{if(this.mapDomToView(l))return this.mapDomToView(l);let e;if(this.isDocumentFragment(l))e=new Au(this.document),n.bind&&this.bindDocumentFragments(l,e);else{e=this._createViewElement(l,n),n.bind&&this.bindElements(l,e);const t=l.attributes;if(t)for(let l=t.length,n=0;n{const{scrollLeft:n,scrollTop:e}=l;t.push([n,e])}),n.focus(),Qu(n,l=>{const[n,e]=t.shift();l.scrollLeft=n,l.scrollTop=e}),Ve.window.scrollTo(l,e)}}isElement(l){return l&&l.nodeType==Node.ELEMENT_NODE}isDocumentFragment(l){return l&&l.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(l){return"br"==this.blockFillerMode?l.isEqualNode(Hu):!("BR"!==l.tagName||!Ju(l,this.blockElements)||1!==l.parentNode.childNodes.length)||l.isEqualNode(Zu)||function(l,n){return l.isEqualNode(Yu)&&Ju(l,n)&&1===l.parentNode.childNodes.length}(l,this.blockElements)}isDomSelectionBackward(l){if(l.isCollapsed)return!1;const n=this._domDocument.createRange();try{n.setStart(l.anchorNode,l.anchorOffset),n.setEnd(l.focusNode,l.focusOffset)}catch(l){return!1}const e=n.collapsed;return n.detach(),e}getHostViewElement(l){const n=Ue(l);for(n.pop();n.length;){const l=n.pop(),e=this._domToViewMapping.get(l);if(e&&(e.is("uiElement")||e.is("rawElement")))return e}return null}isDomSelectionCorrect(l){return this._isDomSelectionPositionCorrect(l.anchorNode,l.anchorOffset)&&this._isDomSelectionPositionCorrect(l.focusNode,l.focusOffset)}registerRawContentMatcher(l){this._rawContentElementMatcher.add(l)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Iu(this._domDocument);case"markedNbsp":return Fu(this._domDocument);case"br":return Nu(this._domDocument)}}_isDomSelectionPositionCorrect(l,n){if(We(l)&&zu(l)&&n<7)return!1;if(this.isElement(l)&&zu(l.childNodes[n]))return!1;const e=this.mapDomToView(l);return!e||!e.is("uiElement")&&!e.is("rawElement")}_processDataFromViewText(l){let n=l.data;if(l.getAncestors().some(l=>this.preElements.includes(l.name)))return n;if(" "==n.charAt(0)){const e=this._getTouchingInlineViewNode(l,!1);!(e&&e.is("$textProxy")&&this._nodeEndsWithSpace(e))&&e||(n="\xa0"+n.substr(1))}if(" "==n.charAt(n.length-1)){const e=this._getTouchingInlineViewNode(l,!0),t=e&&e.is("$textProxy")&&" "==e.data.charAt(0);" "!=n.charAt(n.length-2)&&e&&!t||(n=n.substr(0,n.length-1)+"\xa0")}return n.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(l){if(l.getAncestors().some(l=>this.preElements.includes(l.name)))return!1;const n=this._processDataFromViewText(l);return" "==n.charAt(n.length-1)}_processDataFromDomText(l){let n=l.data;if(function(l,n){return Ue(l).some(l=>l.tagName&&n.includes(l.tagName.toLowerCase()))}(l,this.preElements))return Tu(l);n=n.replace(/[ \n\t\r]{1,}/g," ");const e=this._getTouchingInlineDomNode(l,!1),t=this._getTouchingInlineDomNode(l,!0),o=this._checkShouldLeftTrimDomText(l,e),u=this._checkShouldRightTrimDomText(l,t);o&&(n=n.replace(/^ /,"")),u&&(n=n.replace(/ $/,"")),n=(n=Tu(new Text(n))).replace(/ \u00A0/g," ");const i=t&&this.isElement(t)&&"BR"!=t.tagName,a=t&&We(t)&&" "==t.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(n)||!t||i||a)&&(n=n.replace(/\u00A0$/," ")),(o||e&&this.isElement(e)&&"BR"!=e.tagName)&&(n=n.replace(/^\u00A0/," ")),n}_checkShouldLeftTrimDomText(l,n){return!n||(this.isElement(n)?"BR"===n.tagName:!this._encounteredRawContentDomNodes.has(l.previousSibling)&&/[^\S\u00A0]/.test(n.data.charAt(n.data.length-1)))}_checkShouldRightTrimDomText(l,n){return!n&&!zu(l)}_getTouchingInlineViewNode(l,n){const e=new Qo({startPosition:n?Jo._createAfter(l):Jo._createBefore(l),direction:n?"forward":"backward"});for(const t of e){if(t.item.is("element")&&this.inlineObjectElements.includes(t.item.name))return t.item;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(l,n){if(!l.parentNode)return null;const e=n?"firstChild":"lastChild",t=n?"nextSibling":"previousSibling";let o=!0,u=l;do{if(!o&&u[e]?u=u[e]:u[t]?(u=u[t],o=!1):(u=u.parentNode,o=!0),!u||this._isBlockElement(u))return null}while(!We(u)&&"BR"!=u.tagName&&!this._isInlineObjectElement(u));return u}_isBlockElement(l){return this.isElement(l)&&this.blockElements.includes(l.tagName.toLowerCase())}_isInlineObjectElement(l){return this.isElement(l)&&this.inlineObjectElements.includes(l.tagName.toLowerCase())}_createViewElement(l,n){if(nt(l))return new vu(this.document,"$comment");const e=n.keepOriginalCase?l.tagName:l.tagName.toLowerCase();return new jo(this.document,e)}_isViewElementWithRawContent(l,n){return!1!==n.withChildren&&!!this._rawContentElementMatcher.match(l)}_shouldRenameElement(l){const n=l.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(n)}_createReplacementDomElement(l,n){const e=this._domDocument.createElement("span");if(e.setAttribute($u,l),n){for(;n.firstChild;)e.appendChild(n.firstChild);for(const l of n.getAttributeNames())e.setAttribute(l,n.getAttribute(l))}return e}}function Qu(l,n){let e=l;for(;e;)n(e),e=e.parentElement}function Ju(l,n){const e=l.parentNode;return!!e&&!!e.tagName&&n.includes(e.tagName.toLowerCase())}function li(l){"script"===l&&y("domconverter-unsafe-script-element-detected"),"style"===l&&y("domconverter-unsafe-style-element-detected")}class ni extends(qe()){constructor(l){super(),this.view=l,this.document=l.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(l){return l&&3===l.nodeType&&(l=l.parentNode),!(!l||1!==l.nodeType)&&l.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const ei=To(function(l,n){ln(n,In(n),l)});class ti{constructor(l,n,e){this.view=l,this.document=l.document,this.domEvent=n,this.domTarget=n.target,ei(this,e)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class oi extends ni{constructor(l){super(l),this.useCapture=!1}observe(l){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(n=>{this.listenTo(l,n,(l,n)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(n.target)&&this.onDomEvent(n)},{useCapture:this.useCapture})})}fire(l,n,e){this.isEnabled&&this.document.fire(l,new ti(this.view,n,e))}}class ui extends oi{constructor(l){super(l),this.domEventType=["keydown","keyup"]}onDomEvent(l){const n={keyCode:l.keyCode,altKey:l.altKey,ctrlKey:l.ctrlKey,shiftKey:l.shiftKey,metaKey:l.metaKey,get keystroke(){return xt(this)}};this.fire(l.type,l,n)}}const ii=function(){return ll.Date.now()};var ai=/\s/;var ri=/^\s+/;const si=function(l){return l?l.slice(0,function(l){for(var n=l.length;n--&&ai.test(l.charAt(n)););return n}(l)+1).replace(ri,""):l};var di=/^[-+]0x[0-9a-f]+$/i,ci=/^0b[01]+$/i,pi=/^0o[0-7]+$/i,fi=parseInt;const mi=function(l){if("number"==typeof l)return l;if(ao(l))return NaN;if(D(l)){var n="function"==typeof l.valueOf?l.valueOf():l;l=D(n)?n+"":n}if("string"!=typeof l)return 0===l?l:+l;l=si(l);var e=ci.test(l);return e||pi.test(l)?fi(l.slice(2),e?2:8):di.test(l)?NaN:+l};var hi=Math.max,gi=Math.min;const vi=function(l,n,e){var t,o,u,i,a,r,s=0,d=!1,c=!1,p=!0;if("function"!=typeof l)throw new TypeError("Expected a function");function f(n){var e=t,u=o;return t=o=void 0,s=n,i=l.apply(u,e)}function m(l){var e=l-r;return void 0===r||e>=n||e<0||c&&l-s>=u}function h(){var l=ii();if(m(l))return g(l);a=setTimeout(h,function(l){var e=n-(l-r);return c?gi(e,u-(l-s)):e}(l))}function g(l){return a=void 0,p&&t?f(l):(t=o=void 0,i)}function v(){var l=ii(),e=m(l);if(t=arguments,o=this,r=l,e){if(void 0===a)return function(l){return s=l,a=setTimeout(h,n),d?f(l):i}(r);if(c)return clearTimeout(a),a=setTimeout(h,n),f(r)}return void 0===a&&(a=setTimeout(h,n)),i}return n=mi(n)||0,D(e)&&(d=!!e.leading,u=(c="maxWait"in e)?hi(mi(e.maxWait)||0,n):u,p="trailing"in e?!!e.trailing:p),v.cancel=function(){void 0!==a&&clearTimeout(a),s=0,t=r=o=a=void 0},v.flush=function(){return void 0===a?i:g(ii())},v};class bi extends ni{constructor(l){super(l),this._fireSelectionChangeDoneDebounced=vi(l=>{this.document.fire("selectionChangeDone",l)},200)}observe(){const l=this.document;l.on("arrowKey",(n,e)=>{l.selection.isFake&&this.isEnabled&&e.preventDefault()},{context:"$capture"}),l.on("arrowKey",(n,e)=>{l.selection.isFake&&this.isEnabled&&this._handleSelectionMove(e.keyCode)},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(l){const n=this.document.selection,e=new eu(n.getRanges(),{backward:n.isBackward,fake:!1});l!=bt.arrowleft&&l!=bt.arrowup||e.setTo(e.getFirstPosition()),l!=bt.arrowright&&l!=bt.arrowdown||e.setTo(e.getLastPosition());const t={oldSelection:n,newSelection:e,domSelection:null};this.document.fire("selectionChange",t),this._fireSelectionChangeDoneDebounced(t)}}function yi(l){var n=-1,e=null==l?0:l.length;for(this.__data__=new Yl;++na))return!1;var s=u.get(l),d=u.get(n);if(s&&d)return s==n&&d==l;var c=-1,p=!0,f=2&e?new xi:void 0;for(u.set(l,n),u.set(n,l);++c{this.document.fire("selectionChangeDone",l)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=vi(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(l){const n=l.ownerDocument,e=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,n),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(l,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(l,"keydown",e,{priority:"highest",useCapture:!0}),this.listenTo(l,"keyup",e,{priority:"highest",useCapture:!0}),this._documents.has(n)||(this.listenTo(n,"mouseup",e,{priority:"highest",useCapture:!0}),this.listenTo(n,"selectionchange",(l,e)=>{this.document.isComposing&&!t.isAndroid||(this._handleSelectionChange(e,n),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(n))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_handleSelectionChange(l,n){if(!this.isEnabled)return;const e=n.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(e.anchorNode))return;this.mutationObserver.flush();const t=this.domConverter.domSelectionToView(e);if(0!=t.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(t)&&this.domConverter.isDomSelectionCorrect(e)||++this._loopbackCounter>60))if(this.selection.isSimilar(t))this.view.forceRender();else{const l={oldSelection:this.selection,newSelection:t,domSelection:e};this.document._isFocusChanging=!1,this.document.fire("selectionChange",l),this._fireSelectionChangeDoneDebounced(l)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Pi extends oi{constructor(l){super(l),this.domEventType=["focus","blur"],this.useCapture=!0;const n=this.document;n.on("focus",()=>{n.isFocused=!0,n._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{n._isFocusChanging=!1,l.change(()=>{})},50)}),n.on("blur",(e,t)=>{const o=n.selection.editableElement;null!==o&&o!==t.target||(n.isFocused=!1,l.change(()=>{}))})}onDomEvent(l){this.fire(l.type,l)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Bi extends oi{constructor(l){super(l),this.domEventType=["compositionstart","compositionupdate","compositionend"];const n=this.document;n.on("compositionstart",()=>{n.isComposing=!0},{priority:"low"}),n.on("compositionend",()=>{n.isComposing=!1},{priority:"low"})}onDomEvent(l){this.fire(l.type,l,{data:l.data})}}class Vi{constructor(l){this.files=function(l){const n=Array.from(l.files||[]),e=Array.from(l.items||[]);return n.length?n:e.filter(l=>"file"===l.kind).map(l=>l.getAsFile())}(l),this._native=l}get types(){return this._native.types}getData(l){return this._native.getData(l)}setData(l,n){this._native.setData(l,n)}set effectAllowed(l){this._native.effectAllowed=l}get effectAllowed(){return this._native.effectAllowed}set dropEffect(l){this._native.dropEffect=l}get dropEffect(){return this._native.dropEffect}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}class Ui extends oi{constructor(l){super(l),this.domEventType=["beforeinput"]}onDomEvent(l){const n=l.getTargetRanges(),e=this.view,o=e.document;let u=null,i=null,a=[];if(l.dataTransfer&&(u=new Vi(l.dataTransfer)),null!==l.data?i=l.data:u&&(i=u.getData("text/plain")),o.selection.isFake)a=Array.from(o.selection.getRanges());else if(n.length)a=n.map(l=>e.domConverter.domRangeToView(l));else if(t.isAndroid){const n=l.target.ownerDocument.defaultView.getSelection();a=Array.from(e.domConverter.domSelectionToView(n).getRanges())}if(t.isAndroid&&"insertCompositionText"==l.inputType&&i&&i.endsWith("\n"))this.fire(l.type,l,{inputType:"insertParagraph",targetRanges:[e.createRange(a[0].end)]});else if("insertText"==l.inputType&&i&&i.includes("\n")){const n=i.split(/\n{1,2}/g);let e=a;for(let t=0;t{if(this.isEnabled&&((e=n.keyCode)==bt.arrowright||e==bt.arrowleft||e==bt.arrowup||e==bt.arrowdown)){const e=new ou(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(e,n),e.stop.called&&l.stop()}var e})}observe(){}}class Gi extends ni{constructor(l){super(l);const n=this.document;n.on("keydown",(l,e)=>{if(!this.isEnabled||e.keyCode!=bt.tab||e.ctrlKey)return;const t=new ou(n,"tab",n.selection.getFirstRange());n.fire(t,e),t.stop.called&&l.stop()})}observe(){}}class ji extends(U()){constructor(l){super(),this.document=new cu(l),this.domConverter=new Ku(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Vu(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing","_isFocusChanging").to(this.document,"isFocused","isSelecting","isComposing","_isFocusChanging"),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new _u(this.document),this.addObserver(zi),this.addObserver(Ti),this.addObserver(Pi),this.addObserver(ui),this.addObserver(bi),this.addObserver(Bi),this.addObserver(Wi),this.addObserver(Ui),this.addObserver(Gi),this.document.on("arrowKey",Pu,{priority:"low"}),function(l){l.document.on("arrowKey",(n,e)=>(function(l,n,e){if(n.keyCode==bt.arrowright){const l=n.domTarget.ownerDocument.defaultView.getSelection(),t=1==l.rangeCount&&l.getRangeAt(0).collapsed;if(t||n.shiftKey){const n=l.focusNode,o=l.focusOffset,u=e.domPositionToView(n,o);if(null===u)return;let i=!1;const a=u.getLastMatchingPosition(l=>(l.item.is("uiElement")&&(i=!0),!(!l.item.is("uiElement")&&!l.item.is("attributeElement"))));if(i){const n=e.viewPositionToDom(a);t?l.collapse(n.parent,n.offset):l.extend(n.parent,n.offset)}}}})(0,e,l.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0})}attachDomRoot(l,n="main"){const e=this.document.getRoot(n);e._name=l.tagName.toLowerCase();const t={};for(const{name:u,value:i}of Array.from(l.attributes))t[u]=i,"class"===u?this._writer.addClass(i.split(" "),e):this._writer.setAttribute(u,i,e);this._initialDomRootAttributes.set(l,t);const o=()=>{this._writer.setAttribute("contenteditable",(!e.isReadOnly).toString(),e),e.isReadOnly?this._writer.addClass("ck-read-only",e):this._writer.removeClass("ck-read-only",e)};o(),this.domRoots.set(n,l),this.domConverter.bindElements(l,e),this._renderer.markToSync("children",e),this._renderer.markToSync("attributes",e),this._renderer.domDocuments.add(l.ownerDocument),e.on("change:children",(l,n)=>this._renderer.markToSync("children",n)),e.on("change:attributes",(l,n)=>this._renderer.markToSync("attributes",n)),e.on("change:text",(l,n)=>this._renderer.markToSync("text",n)),e.on("change:isReadOnly",()=>this.change(o)),e.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const u of this._observers.values())u.observe(l,n)}detachDomRoot(l){const n=this.domRoots.get(l);Array.from(n.attributes).forEach(({name:l})=>n.removeAttribute(l));const e=this._initialDomRootAttributes.get(n);for(const t in e)n.setAttribute(t,e[t]);this.domRoots.delete(l),this.domConverter.unbindDomElement(n)}getDomRoot(l="main"){return this.domRoots.get(l)}addObserver(l){let n=this._observers.get(l);if(n)return n;n=new l(this),this._observers.set(l,n);for(const[e,t]of this.domRoots)n.observe(t,e);return n.enable(),n}getObserver(l){return this._observers.get(l)}disableObservers(){for(const l of this._observers.values())l.disable()}enableObservers(){for(const l of this._observers.values())l.enable()}scrollToTheSelection(){const l=this.document.selection.getFirstRange();l&&function({target:l,viewportOffset:n=0}){const e=ft(l);let t=e,o=null;for(;t;){let u;rt(u=mt(t==e?l:o),()=>ht(l,t));const i=ht(l,t);if(at(t,i,n),t.parent!=t){if(o=t.frameElement,t=t.parent,!o)return}else t=null}}({target:this.domConverter.viewRangeToDom(l),viewportOffset:20})}focus(){if(!this.document.isFocused){const l=this.document.selection.editableElement;l&&(this.domConverter.focus(l),this.forceRender())}}change(l){if(this.isRenderingInProgress||this._postFixersInProgress)throw new b("cannot-change-view-tree",this);try{if(this._ongoingChange)return l(this._writer);this._ongoingChange=!0;const n=l(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),n}catch(l){b.rethrowUnexpectedError(l,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.document._isFocusChanging=!1,this.change(()=>{})}destroy(){for(const l of this._observers.values())l.destroy();this.document.destroy(),this.stopListening()}createPositionAt(l,n){return Jo._createAt(l,n)}createPositionAfter(l){return Jo._createAfter(l)}createPositionBefore(l){return Jo._createBefore(l)}createRange(...l){return new lu(...l)}createRangeOn(l){return lu._createOn(l)}createRangeIn(l){return lu._createIn(l)}createSelection(...l){return new eu(...l)}_disableRendering(l){this._renderingDisabled=l,0==l&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Hi{is(){throw new Error("is() method is abstract")}}class Yi extends Hi{constructor(l){super(),this.parent=null,this._attrs=It(l)}get document(){return null}get index(){let l;if(!this.parent)return null;if(null===(l=this.parent.getChildIndex(this)))throw new b("model-node-not-found-in-parent",this);return l}get startOffset(){let l;if(!this.parent)return null;if(null===(l=this.parent.getChildStartOffset(this)))throw new b("model-node-not-found-in-parent",this);return l}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const l=this.index;return null!==l&&this.parent.getChild(l+1)||null}get previousSibling(){const l=this.index;return null!==l&&this.parent.getChild(l-1)||null}get root(){let l=this;for(;l.parent;)l=l.parent;return l}isAttached(){return this.root.is("rootElement")}getPath(){const l=[];let n=this;for(;n.parent;)l.unshift(n.startOffset),n=n.parent;return l}getAncestors(l={}){const n=[];let e=l.includeSelf?this:this.parent;for(;e;)n[l.parentFirst?"push":"unshift"](e),e=e.parent;return n}getCommonAncestor(l,n={}){const e=this.getAncestors(n),t=l.getAncestors(n);let o=0;for(;e[o]==t[o]&&e[o];)o++;return 0===o?null:e[o-1]}isBefore(l){if(this==l)return!1;if(this.root!==l.root)return!1;const n=this.getPath(),e=l.getPath(),t=$(n,e);switch(t){case"prefix":return!0;case"extension":return!1;default:return n[t](l[n[0]]=n[1],l),{})),l}_clone(l){return new Yi(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(l,n){this._attrs.set(l,n)}_setAttributesTo(l){this._attrs=It(l)}_removeAttribute(l){return this._attrs.delete(l)}_clearAttributes(){this._attrs.clear()}}Yi.prototype.is=function(l){return"node"===l||"model:node"===l};class Zi{constructor(l){this._nodes=[],l&&this._insertNodes(0,l)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((l,n)=>l+n.offsetSize,0)}getNode(l){return this._nodes[l]||null}getNodeIndex(l){const n=this._nodes.indexOf(l);return-1==n?null:n}getNodeStartOffset(l){const n=this.getNodeIndex(l);return null===n?null:this._nodes.slice(0,n).reduce((l,n)=>l+n.offsetSize,0)}indexToOffset(l){if(l==this._nodes.length)return this.maxOffset;const n=this._nodes[l];if(!n)throw new b("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(n)}offsetToIndex(l){let n=0;for(const e of this._nodes){if(l>=n&&l1e4)return l.slice(0,e).concat(n).concat(l.slice(e+0,l.length));{const t=Array.from(l);return t.splice(e,0,...n),t}}(this._nodes,Array.from(n),l)}_removeNodes(l,n=1){return this._nodes.splice(l,n)}toJSON(){return this._nodes.map(l=>l.toJSON())}}class Xi extends Yi{constructor(l,n){super(n),this._data=l||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const l=super.toJSON();return l.data=this.data,l}_clone(){return new Xi(this.data,this.getAttributes())}static fromJSON(l){return new Xi(l.data,l.attributes)}}Xi.prototype.is=function(l){return"$text"===l||"model:$text"===l||"text"===l||"model:text"===l||"node"===l||"model:node"===l};class $i extends Hi{constructor(l,n,e){if(super(),this.textNode=l,n<0||n>l.offsetSize)throw new b("model-textproxy-wrong-offsetintext",this);if(e<0||n+e>l.offsetSize)throw new b("model-textproxy-wrong-length",this);this.data=l.data.substring(n,n+e),this.offsetInText=n}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}getPath(){const l=this.textNode.getPath();return l.length>0&&(l[l.length-1]+=this.offsetInText),l}getAncestors(l={}){const n=[];let e=l.includeSelf?this:this.parent;for(;e;)n[l.parentFirst?"push":"unshift"](e),e=e.parent;return n}hasAttribute(l){return this.textNode.hasAttribute(l)}getAttribute(l){return this.textNode.getAttribute(l)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}$i.prototype.is=function(l){return"$textProxy"===l||"model:$textProxy"===l||"textProxy"===l||"model:textProxy"===l};class Ki extends Yi{constructor(l,n,e){super(n),this.name=l,this._children=new Zi,e&&this._insertChild(0,e)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(l){return this._children.getNode(l)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(l){return this._children.getNodeIndex(l)}getChildStartOffset(l){return this._children.getNodeStartOffset(l)}offsetToIndex(l){return this._children.offsetToIndex(l)}getNodeByPath(l){let n=this;for(const e of l)n=n.getChild(n.offsetToIndex(e));return n}findAncestor(l,n={}){let e=n.includeSelf?this:this.parent;for(;e;){if(e.name===l)return e;e=e.parent}return null}toJSON(){const l=super.toJSON();if(l.name=this.name,this._children.length>0){l.children=[];for(const n of this._children)l.children.push(n.toJSON())}return l}_clone(l=!1){const n=l?Array.from(this._children).map(l=>l._clone(!0)):void 0;return new Ki(this.name,this.getAttributes(),n)}_appendChild(l){this._insertChild(this.childCount,l)}_insertChild(l,n){const e=function(l){return"string"==typeof l?[new Xi(l)]:(K(l)||(l=[l]),Array.from(l).map(l=>"string"==typeof l?new Xi(l):l instanceof $i?new Xi(l.data,l.getAttributes()):l))}(n);for(const t of e)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(l,e)}_removeChildren(l,n=1){const e=this._children._removeNodes(l,n);for(const t of e)t.parent=null;return e}static fromJSON(l){let n;if(l.children){n=[];for(const e of l.children)e.name?n.push(Ki.fromJSON(e)):n.push(Xi.fromJSON(e))}return new Ki(l.name,l.attributes,n)}}Ki.prototype.is=function(l,n){return n?n===this.name&&("element"===l||"model:element"===l):"element"===l||"model:element"===l||"node"===l||"model:node"===l};class Qi{constructor(l={}){if(!l.boundaries&&!l.startPosition)throw new b("model-tree-walker-no-start-position",null);const n=l.direction||"forward";if("forward"!=n&&"backward"!=n)throw new b("model-tree-walker-unknown-direction",l,{direction:n});this.direction=n,this.boundaries=l.boundaries||null,l.startPosition?this.position=l.startPosition.clone():this.position=la._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!l.singleCharacters,this.shallow=!!l.shallow,this.ignoreElementEnd=!!l.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(l){let n,e,t,o;do{t=this.position,o=this._visitedParent,({done:n,value:e}=this.next())}while(!n&&l(e));n||(this.position=t,this._visitedParent=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const l=this.position,n=this.position.clone(),e=this._visitedParent;if(null===e.parent&&n.offset===e.maxOffset)return{done:!0,value:void 0};if(e===this._boundaryEndParent&&n.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const t=na(n,e),o=t||ea(n,e,t);if(o instanceof Ki)return this.shallow?n.offset++:(n.path.push(0),this._visitedParent=o),this.position=n,Ji("elementStart",o,l,n,1);if(o instanceof Xi){let t;if(this.singleCharacters)t=1;else{let l=o.endOffset;this._boundaryEndParent==e&&this.boundaries.end.offsetl&&(l=this.boundaries.start.offset),t=n.offset-l}const o=n.offset-u.startOffset,i=new $i(u,o-t,t);return n.offset-=t,this.position=n,Ji("text",i,l,n,t)}return n.path.pop(),this.position=n,this._visitedParent=e.parent,Ji("elementStart",e,l,n,1)}}function Ji(l,n,e,t,o){return{done:!1,value:{type:l,item:n,previousPosition:e,nextPosition:t,length:o}}}class la extends Hi{constructor(l,n,e="toNone"){if(super(),!l.is("element")&&!l.is("documentFragment"))throw new b("model-position-root-invalid",l);if(!(n instanceof Array)||0===n.length)throw new b("model-position-path-incorrect-format",l,{path:n});l.is("rootElement")?n=n.slice():(n=[...l.getPath(),...n],l=l.root),this.root=l,this.path=n,this.stickiness=e}get offset(){return this.path[this.path.length-1]}set offset(l){this.path[this.path.length-1]=l}get parent(){let l=this.root;for(let n=0;n1)return!1;if(1===n)return oa(l,this,e);if(-1===n)return oa(this,l,e)}return this.path.length===l.path.length||(this.path.length>l.path.length?ua(this.path,n):ua(l.path,n))}hasSameParentAs(l){return this.root===l.root&&"same"==$(this.getParentPath(),l.getParentPath())}getTransformedByOperation(l){let n;switch(l.type){case"insert":n=this._getTransformedByInsertOperation(l);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(l);break;case"split":n=this._getTransformedBySplitOperation(l);break;case"merge":n=this._getTransformedByMergeOperation(l);break;default:n=la._createAt(this)}return n}_getTransformedByInsertOperation(l){return this._getTransformedByInsertion(l.position,l.howMany)}_getTransformedByMoveOperation(l){return this._getTransformedByMove(l.sourcePosition,l.targetPosition,l.howMany)}_getTransformedBySplitOperation(l){const n=l.movedRange;return n.containsPosition(this)||n.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(l.splitPosition,l.moveTargetPosition):l.graveyardPosition?this._getTransformedByMove(l.graveyardPosition,l.insertionPosition,1):this._getTransformedByInsertion(l.insertionPosition,1)}_getTransformedByMergeOperation(l){const n=l.movedRange;let e;return n.containsPosition(this)||n.start.isEqual(this)?(e=this._getCombined(l.sourcePosition,l.targetPosition),l.sourcePosition.isBefore(l.targetPosition)&&(e=e._getTransformedByDeletion(l.deletionPosition,1))):e=this.isEqual(l.deletionPosition)?la._createAt(l.deletionPosition):this._getTransformedByMove(l.deletionPosition,l.graveyardPosition,1),e}_getTransformedByDeletion(l,n){const e=la._createAt(this);if(this.root!=l.root)return e;if("same"==$(l.getParentPath(),this.getParentPath())){if(l.offsetthis.offset)return null;e.offset-=n}}else if("prefix"==$(l.getParentPath(),this.getParentPath())){const t=l.path.length-1;if(l.offset<=this.path[t]){if(l.offset+n>this.path[t])return null;e.path[t]-=n}}return e}_getTransformedByInsertion(l,n){const e=la._createAt(this);if(this.root!=l.root)return e;if("same"==$(l.getParentPath(),this.getParentPath()))(l.offset=n;){if(l.path[t]+o!==e.maxOffset)return!1;o=1,t--,e=e.parent}return!0}(l,e+1)}function ua(l,n){for(;nn+1;){const n=t.maxOffset-e.offset;0!==n&&l.push(new ia(e,e.getShiftedBy(n))),e.path=e.path.slice(0,-1),e.offset++,t=t.parent}for(;e.path.length<=this.end.path.length;){const n=this.end.path[e.path.length-1],t=n-e.offset;0!==t&&l.push(new ia(e,e.getShiftedBy(t))),e.offset=n,e.path.push(0)}return l}getWalker(l={}){return l.boundaries=this,new Qi(l)}*getItems(l={}){l.boundaries=this,l.ignoreElementEnd=!0;const n=new Qi(l);for(const e of n)yield e.item}*getPositions(l={}){l.boundaries=this;const n=new Qi(l);yield n.position;for(const e of n)yield e.nextPosition}getTransformedByOperation(l){switch(l.type){case"insert":return this._getTransformedByInsertOperation(l);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(l);case"split":return[this._getTransformedBySplitOperation(l)];case"merge":return[this._getTransformedByMergeOperation(l)]}return[new ia(this.start,this.end)]}getTransformedByOperations(l){const n=[new ia(this.start,this.end)];for(const e of l)for(let l=0;l0?new this(e,t):new this(t,e)}static _createIn(l){return new this(la._createAt(l,0),la._createAt(l,l.maxOffset))}static _createOn(l){return this._createFromPositionAndShift(la._createBefore(l),l.offsetSize)}static _createFromRanges(l){if(0===l.length)throw new b("range-create-from-ranges-empty-array",null);if(1==l.length)return l[0].clone();const n=l[0];l.sort((l,n)=>l.start.isAfter(n.start)?1:-1);const e=l.indexOf(n),t=new this(n.start,n.end);if(e>0)for(let o=e-1;l[o].end.isEqual(t.start);o++)t.start=la._createAt(l[o].start);for(let o=e+1;o{if(n.viewPosition)return;const e=this._modelToViewMapping.get(n.modelPosition.parent);if(!e)throw new b("mapping-model-position-view-parent-not-found",this,{modelPosition:n.modelPosition});n.viewPosition=this.findPositionIn(e,n.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(l,n)=>{if(n.modelPosition)return;const e=this.findMappedViewAncestor(n.viewPosition),t=this._viewToModelMapping.get(e),o=this._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,e);n.modelPosition=la._createAt(t,o)},{priority:"low"})}bindElements(l,n){this._modelToViewMapping.set(l,n),this._viewToModelMapping.set(n,l)}unbindViewElement(l,n={}){const e=this.toModelElement(l);if(this._elementToMarkerNames.has(l))for(const t of this._elementToMarkerNames.get(l))this._unboundMarkerNames.add(t);n.defer?this._deferredBindingRemovals.set(l,l.root):(this._viewToModelMapping.delete(l),this._modelToViewMapping.get(e)==l&&this._modelToViewMapping.delete(e))}unbindModelElement(l){const n=this.toViewElement(l);this._modelToViewMapping.delete(l),this._viewToModelMapping.get(n)==l&&this._viewToModelMapping.delete(n)}bindElementToMarker(l,n){const e=this._markerNameToElements.get(n)||new Set;e.add(l);const t=this._elementToMarkerNames.get(l)||new Set;t.add(n),this._markerNameToElements.set(n,e),this._elementToMarkerNames.set(l,t)}unbindElementFromMarkerName(l,n){const e=this._markerNameToElements.get(n);e&&(e.delete(l),0==e.size&&this._markerNameToElements.delete(n));const t=this._elementToMarkerNames.get(l);t&&(t.delete(n),0==t.size&&this._elementToMarkerNames.delete(l))}flushUnboundMarkerNames(){const l=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),l}flushDeferredBindings(){for(const[l,n]of this._deferredBindingRemovals)l.root==n&&this.unbindViewElement(l);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(l){return this._viewToModelMapping.get(l)}toViewElement(l){return this._modelToViewMapping.get(l)}toModelRange(l){return new ia(this.toModelPosition(l.start),this.toModelPosition(l.end))}toViewRange(l){return new lu(this.toViewPosition(l.start),this.toViewPosition(l.end))}toModelPosition(l){const n={viewPosition:l,mapper:this};return this.fire("viewToModelPosition",n),n.modelPosition}toViewPosition(l,n={}){const e={modelPosition:l,mapper:this,isPhantom:n.isPhantom};return this.fire("modelToViewPosition",e),e.viewPosition}markerNameToElements(l){const n=this._markerNameToElements.get(l);if(!n)return null;const e=new Set;for(const t of n)if(t.is("attributeElement"))for(const l of t.getElementsWithSameId())e.add(l);else e.add(t);return e}registerViewToModelLength(l,n){this._viewToModelLengthCallbacks.set(l,n)}findMappedViewAncestor(l){let n=l.parent;for(;!this._viewToModelMapping.has(n);)n=n.parent;return n}_toModelOffset(l,n,e){if(e!=l)return this._toModelOffset(l.parent,l.index,e)+this._toModelOffset(l,n,l);if(l.is("$text"))return n;let t=0;for(let o=0;o1?n[0]+":"+n[1]:n[0]}class da extends(E()){constructor(l){super(),this._conversionApi={dispatcher:this,...l},this._firedEventsMap=new WeakMap}convertChanges(l,n,e){const t=this._createConversionApi(e,l.getRefreshedItems());for(const u of l.getMarkersToRemove())this._convertMarkerRemove(u.name,u.range,t);const o=this._reduceChanges(l.getChanges());for(const u of o)"insert"===u.type?this._convertInsert(ia._createFromPositionAndShift(u.position,u.length),t):"reinsert"===u.type?this._convertReinsert(ia._createFromPositionAndShift(u.position,u.length),t):"remove"===u.type?this._convertRemove(u.position,u.length,u.name,t):this._convertAttribute(u.range,u.attributeKey,u.attributeOldValue,u.attributeNewValue,t);for(const u of t.mapper.flushUnboundMarkerNames()){const l=n.get(u).getRange();this._convertMarkerRemove(u,l,t),this._convertMarkerAdd(u,l,t)}for(const u of l.getMarkersToAdd())this._convertMarkerAdd(u.name,u.range,t);t.mapper.flushDeferredBindings(),t.consumable.verifyAllConsumed("insert")}convert(l,n,e,t={}){const o=this._createConversionApi(e,void 0,t);this._convertInsert(l,o);for(const[u,i]of n)this._convertMarkerAdd(u,i,o);o.consumable.verifyAllConsumed("insert")}convertSelection(l,n,e){const t=Array.from(n.getMarkersAtPosition(l.getFirstPosition())),o=this._createConversionApi(e);if(this._addConsumablesForSelection(o.consumable,l,t),this.fire("selection",{selection:l},o),l.isCollapsed){for(const n of t){const e=n.getRange();if(!ca(l.getFirstPosition(),n,o.mapper))continue;const t={item:l,markerName:n.name,markerRange:e};o.consumable.test(l,"addMarker:"+n.name)&&this.fire(`addMarker:${n.name}`,t,o)}for(const n of l.getAttributeKeys()){const e={item:l,range:l.getFirstRange(),attributeKey:n,attributeOldValue:null,attributeNewValue:l.getAttribute(n)};o.consumable.test(l,"attribute:"+e.attributeKey)&&this.fire(`attribute:${e.attributeKey}:$text`,e,o)}}}_convertInsert(l,n,e={}){e.doNotAddConsumables||this._addConsumablesForInsert(n.consumable,Array.from(l));for(const t of Array.from(l.getWalker({shallow:!0})).map(pa))this._testAndFire("insert",t,n)}_convertRemove(l,n,e,t){this.fire(`remove:${e}`,{position:l,length:n},t)}_convertAttribute(l,n,e,t,o){this._addConsumablesForRange(o.consumable,l,`attribute:${n}`);for(const u of l){const l={item:u.item,range:ia._createFromPositionAndShift(u.previousPosition,u.length),attributeKey:n,attributeOldValue:e,attributeNewValue:t};this._testAndFire(`attribute:${n}`,l,o)}}_convertReinsert(l,n){const e=Array.from(l.getWalker({shallow:!0}));this._addConsumablesForInsert(n.consumable,e);for(const t of e.map(pa))this._testAndFire("insert",{...t,reconversion:!0},n)}_convertMarkerAdd(l,n,e){if("$graveyard"==n.root.rootName)return;const t=`addMarker:${l}`;if(e.consumable.add(n,t),this.fire(t,{markerName:l,markerRange:n},e),e.consumable.consume(n,t)){this._addConsumablesForRange(e.consumable,n,t);for(const o of n.getItems()){if(!e.consumable.test(o,t))continue;const u={item:o,range:ia._createOn(o),markerName:l,markerRange:n};this.fire(t,u,e)}}}_convertMarkerRemove(l,n,e){"$graveyard"!=n.root.rootName&&this.fire(`removeMarker:${l}`,{markerName:l,markerRange:n},e)}_reduceChanges(l){const n={changes:l};return this.fire("reduceChanges",n),n.changes}_addConsumablesForInsert(l,n){for(const e of n){const n=e.item;if(null===l.test(n,"insert")){l.add(n,"insert");for(const e of n.getAttributeKeys())l.add(n,"attribute:"+e)}}return l}_addConsumablesForRange(l,n,e){for(const t of n.getItems())l.add(t,e);return l}_addConsumablesForSelection(l,n,e){l.add(n,"selection");for(const t of e)l.add(n,"addMarker:"+t.name);for(const t of n.getAttributeKeys())l.add(n,"attribute:"+t);return l}_testAndFire(l,n,e){const t=function(l,n){return`${l}:${n.item.is("element")?n.item.name:"$text"}`}(l,n),o=n.item.is("$textProxy")?e.consumable._getSymbolForTextProxy(n.item):n.item,u=this._firedEventsMap.get(e),i=u.get(o);if(i){if(i.has(t))return;i.add(t)}else u.set(o,new Set([t]));this.fire(t,n,e)}_testAndFireAddAttributes(l,n){const e={item:l,range:ia._createOn(l)};for(const t of e.item.getAttributeKeys())e.attributeKey=t,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(t),this._testAndFire(`attribute:${t}`,e,n)}_createConversionApi(l,n=new Set,e={}){const t={...this._conversionApi,consumable:new ra,writer:l,options:e,convertItem:l=>this._convertInsert(ia._createOn(l),t),convertChildren:l=>this._convertInsert(ia._createIn(l),t,{doNotAddConsumables:!0}),convertAttributes:l=>this._testAndFireAddAttributes(l,t),canReuseView:l=>!n.has(t.mapper.toModelElement(l))};return this._firedEventsMap.set(t,new Map),t}}function ca(l,n,e){const t=n.getRange(),o=Array.from(l.getAncestors());return o.shift(),o.reverse(),!o.some(l=>{if(t.containsItem(l))return!!e.toViewElement(l).getCustomProperty("addHighlight")})}function pa(l){return{item:l.item,range:ia._createFromPositionAndShift(l.previousPosition,l.length)}}class fa extends(E(Hi)){constructor(...l){super(),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,l.length&&this.setTo(...l)}get anchor(){if(this._ranges.length>0){const l=this._ranges[this._ranges.length-1];return this._lastRangeBackward?l.end:l.start}return null}get focus(){if(this._ranges.length>0){const l=this._ranges[this._ranges.length-1];return this._lastRangeBackward?l.start:l.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(l){if(this.rangeCount!=l.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(l.anchor)||!this.focus.isEqual(l.focus))return!1;for(const n of this._ranges){let e=!1;for(const t of l._ranges)if(n.isEqual(t)){e=!0;break}if(!e)return!1}return!0}*getRanges(){for(const l of this._ranges)yield new ia(l.start,l.end)}getFirstRange(){let l=null;for(const n of this._ranges)l&&!n.start.isBefore(l.start)||(l=n);return l?new ia(l.start,l.end):null}getLastRange(){let l=null;for(const n of this._ranges)l&&!n.end.isAfter(l.end)||(l=n);return l?new ia(l.start,l.end):null}getFirstPosition(){const l=this.getFirstRange();return l?l.start.clone():null}getLastPosition(){const l=this.getLastRange();return l?l.end.clone():null}setTo(...l){let[n,e,t]=l;if("object"==typeof e&&(t=e,e=void 0),null===n)this._setRanges([]);else if(n instanceof fa)this._setRanges(n.getRanges(),n.isBackward);else if(n&&"function"==typeof n.getRanges)this._setRanges(n.getRanges(),n.isBackward);else if(n instanceof ia)this._setRanges([n],!!t&&!!t.backward);else if(n instanceof la)this._setRanges([new ia(n)]);else if(n instanceof Yi){const l=!!t&&!!t.backward;let o;if("in"==e)o=ia._createIn(n);else if("on"==e)o=ia._createOn(n);else{if(void 0===e)throw new b("model-selection-setto-required-second-parameter",[this,n]);o=new ia(la._createAt(n,e))}this._setRanges([o],l)}else{if(!K(n))throw new b("model-selection-setto-not-selectable",[this,n]);this._setRanges(n,t&&!!t.backward)}}_setRanges(l,n=!1){const e=Array.from(l),t=e.some(n=>{if(!(n instanceof ia))throw new b("model-selection-set-ranges-not-range",[this,l]);return this._ranges.every(l=>!l.isEqual(n))});(e.length!==this._ranges.length||t)&&(this._replaceAllRanges(e),this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0}))}setFocus(l,n){if(null===this.anchor)throw new b("model-selection-setfocus-no-ranges",[this,l]);const e=la._createAt(l,n);if("same"==e.compareWith(this.focus))return;const t=this.anchor;this._ranges.length&&this._popRange(),"before"==e.compareWith(t)?(this._pushRange(new ia(e,t)),this._lastRangeBackward=!0):(this._pushRange(new ia(t,e)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(l){return this._attrs.get(l)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(l){return this._attrs.has(l)}removeAttribute(l){this.hasAttribute(l)&&(this._attrs.delete(l),this.fire("change:attribute",{attributeKeys:[l],directChange:!0}))}setAttribute(l,n){this.getAttribute(l)!==n&&(this._attrs.set(l,n),this.fire("change:attribute",{attributeKeys:[l],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const l=new WeakSet;for(const n of this.getRanges()){const e=ga(n.start,l);e&&va(e,n)&&(yield e);for(const o of n.getWalker()){const e=o.item;"elementEnd"==o.type&&ha(e,l,n)&&(yield e)}const t=ga(n.end,l);t&&!n.end.isTouching(la._createAt(t,0))&&va(t,n)&&(yield t)}}containsEntireContent(l=this.anchor.root){const n=la._createAt(l,0),e=la._createAt(l,"end");return n.isTouching(this.getFirstPosition())&&e.isTouching(this.getLastPosition())}_pushRange(l){this._checkRange(l),this._ranges.push(new ia(l.start,l.end))}_checkRange(l){for(let n=0;n0;)this._popRange()}_popRange(){this._ranges.pop()}}function ma(l,n){return!n.has(l)&&(n.add(l),l.root.document.model.schema.isBlock(l)&&!!l.parent)}function ha(l,n,e){return ma(l,n)&&va(l,e)}function ga(l,n){const e=l.parent.root.document.model.schema,t=l.parent.getAncestors({parentFirst:!0,includeSelf:!0});let o=!1;const u=t.find(l=>!o&&(o=e.isLimit(l),!o&&ma(l,n)));return t.forEach(l=>n.add(l)),u}function va(l,n){const e=function(l){const n=l.root.document.model.schema;let e=l.parent;for(;e;){if(n.isBlock(e))return e;e=e.parent}}(l);return!e||!n.containsRange(ia._createOn(e),!0)}fa.prototype.is=function(l){return"selection"===l||"model:selection"===l};class ba extends(E(ia)){constructor(l,n){super(l,n),(function(){this.listenTo(this.root.document.model,"applyOperation",(l,n)=>{const e=n[0];e.isDocumentOperation&&(function(l){const n=this.getTransformedByOperation(l),e=ia._createFromRanges(n),t=!e.isEqual(this),o=function(l,n){switch(n.type){case"insert":return l.containsPosition(n.position);case"move":case"remove":case"reinsert":case"merge":return l.containsPosition(n.sourcePosition)||l.start.isEqual(n.sourcePosition)||l.containsPosition(n.targetPosition);case"split":return l.containsPosition(n.splitPosition)||l.containsPosition(n.insertionPosition)}return!1}(this,l);let u=null;if(t){"$graveyard"==e.root.rootName&&(u="remove"==l.type?l.sourcePosition:l.deletionPosition);const n=this.toRange();this.start=e.start,this.end=e.end,this.fire("change:range",n,{deletionPosition:u})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:u})}).call(this,e)},{priority:"low"})}).call(this)}detach(){this.stopListening()}toRange(){return new ia(this.start,this.end)}static fromRange(l){return new ba(l.start,l.end)}}ba.prototype.is=function(l){return"liveRange"===l||"model:liveRange"===l||"range"==l||"model:range"===l};const ya="selection:";class xa extends(E(Hi)){constructor(l){super(),this._selection=new Aa(l),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(l){return this._selection.containsEntireContent(l)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(l){return this._selection.getAttribute(l)}hasAttribute(l){return this._selection.hasAttribute(l)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(l){this._selection.observeMarkers(l)}_setFocus(l,n){this._selection.setFocus(l,n)}_setTo(...l){this._selection.setTo(...l)}_setAttribute(l,n){this._selection.setAttribute(l,n)}_removeAttribute(l){this._selection.removeAttribute(l)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(l){this._selection.restoreGravity(l)}static _getStoreAttributeKey(l){return ya+l}static _isStoreAttributeKey(l){return l.startsWith(ya)}}xa.prototype.is=function(l){return"selection"===l||"model:selection"==l||"documentSelection"==l||"model:documentSelection"==l};class Aa extends fa{constructor(l){super(),this.markers=new Et({idProperty:"name"}),this._model=l.model,this._document=l,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",(l,n)=>{const e=n[0];e.isDocumentOperation&&"marker"!=e.type&&"rename"!=e.type&&"noop"!=e.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",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(l,n,e,t)=>{this._updateMarker(n,t)}),this.listenTo(this._document,"change",(l,n)=>{!function(l,n){const e=l.document.differ;for(const t of e.getChanges()){if("insert"!=t.type)continue;const e=t.position.parent;t.length===e.maxOffset&&l.enqueueChange(n,l=>{const n=Array.from(e.getAttributeKeys()).filter(l=>l.startsWith(ya));for(const t of n)l.removeAttribute(t,e)})}}(this._model,n)})}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 l=0;l{if(this._hasChangedRange=!0,n.root==this._document.graveyard){this._selectionRestorePosition=t.deletionPosition;const l=this._ranges.indexOf(n);this._ranges.splice(l,1),n.detach()}}),n}updateMarkers(){if(!this._observedMarkers.size)return;const l=[];let n=!1;for(const t of this._model.markers){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;const e=t.getRange();for(const o of this.getRanges())e.containsRange(o,!o.isCollapsed)&&l.push(t)}const e=Array.from(this.markers);for(const t of l)this.markers.has(t)||(this.markers.add(t),n=!0);for(const t of Array.from(this.markers))l.includes(t)||(this.markers.remove(t),n=!0);n&&this.fire("change:marker",{oldMarkers:e,directChange:!1})}_updateMarker(l,n){const e=l.name.split(":",1)[0];if(!this._observedMarkers.has(e))return;let t=!1;const o=Array.from(this.markers),u=this.markers.has(l);if(n){let e=!1;for(const l of this.getRanges())if(n.containsRange(l,!l.isCollapsed)){e=!0;break}e&&!u?(this.markers.add(l),t=!0):!e&&u&&(this.markers.remove(l),t=!0)}else u&&(this.markers.remove(l),t=!0);t&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateAttributes(l){const n=It(this._getSurroundingAttributes()),e=It(this.getAttributes());if(l)this._attributePriority=new Map,this._attrs=new Map;else for(const[o,u]of this._attributePriority)"low"==u&&(this._attrs.delete(o),this._attributePriority.delete(o));this._setAttributesTo(n);const t=[];for(const[o,u]of this.getAttributes())e.has(o)&&e.get(o)===u||t.push(o);for(const[o]of e)this.hasAttribute(o)||t.push(o);t.length>0&&this.fire("change:attribute",{attributeKeys:t,directChange:!1})}_setAttribute(l,n,e=!0){const t=e?"normal":"low";return("low"!=t||"normal"!=this._attributePriority.get(l))&&(super.getAttribute(l)!==n&&(this._attrs.set(l,n),this._attributePriority.set(l,t),!0))}_removeAttribute(l,n=!0){const e=n?"normal":"low";return!("low"==e&&"normal"==this._attributePriority.get(l)||(this._attributePriority.set(l,e),!super.hasAttribute(l)||(this._attrs.delete(l),0)))}_setAttributesTo(l){const n=new Set;for(const[e,t]of this.getAttributes())l.get(e)!==t&&this._removeAttribute(e,!1);for(const[e,t]of l)this._setAttribute(e,t,!1)&&n.add(e);return n}*getStoredAttributes(){const l=this.getFirstPosition().parent;if(this.isCollapsed&&l.isEmpty)for(const n of l.getAttributeKeys())if(n.startsWith(ya)){const e=n.substr(ya.length);yield[e,l.getAttribute(n)]}}_getSurroundingAttributes(){const l=this.getFirstPosition(),n=this._model.schema;let e=null;if(this.isCollapsed){const t=l.textNode?l.textNode:l.nodeBefore,o=l.textNode?l.textNode:l.nodeAfter;if(this.isGravityOverridden||(e=_a(t)),e||(e=_a(o)),!this.isGravityOverridden&&!e){let l=t;for(;l&&!n.isInline(l)&&!e;)e=_a(l=l.previousSibling)}if(!e){let l=o;for(;l&&!n.isInline(l)&&!e;)e=_a(l=l.nextSibling)}e||(e=this.getStoredAttributes())}else{const l=this.getFirstRange();for(const t of l){if(t.item.is("element")&&n.isObject(t.item))break;if("text"==t.type){e=t.item.getAttributes();break}}}return e}_fixGraveyardSelection(l){const n=this._model.schema.getNearestSelectionRange(l);n&&this._pushRange(n)}}function _a(l){return l instanceof $i||l instanceof Xi?l.getAttributes():null}class Ca{constructor(l){this._dispatchers=l}add(l){for(const n of this._dispatchers)l(n);return this}}const wa=function(l){return Ee(l,5)};class Ra extends Ca{elementToElement(l){return this.add(function(l){const n=Ea(l.model),e=Oa(l.view,"container");return n.attributes.length&&(n.children=!0),t=>{t.on(`insert:${n.name}`,function(l,n=function(l,n,{preflight:e}={}){return e?n.test(l,"insert"):n.consume(l,"insert")}){return(e,t,o)=>{if(!n(t.item,o.consumable,{preflight:!0}))return;const u=l(t.item,o,t);if(!u)return;n(t.item,o.consumable);const i=o.mapper.toViewPosition(t.range.start);o.mapper.bindElements(t.item,u),o.writer.insert(i,u),o.convertAttributes(t.item),Da(u,t.item.getChildren(),o,{reconversion:t.reconversion})}}(e,Na(n)),{priority:l.converterPriority||"normal"}),(n.children||n.attributes.length)&&t.on("reduceChanges",Fa(n),{priority:"low"})}}(l))}elementToStructure(l){return this.add(function(l){const n=Ea(l.model),e=Oa(l.view,"container");return n.children=!0,t=>{if(t._conversionApi.schema.checkChild(n.name,"$text"))throw new b("conversion-element-to-structure-disallowed-text",t,{elementName:n.name});var o,u;t.on(`insert:${n.name}`,(o=e,u=Na(n),(l,n,e)=>{if(!u(n.item,e.consumable,{preflight:!0}))return;const t=new Map;e.writer._registerSlotFactory(function(l,n,e){return(t,o="children")=>{const u=t.createContainerElement("$slot");let i=null;if("children"===o)i=Array.from(l.getChildren());else{if("function"!=typeof o)throw new b("conversion-slot-mode-unknown",e.dispatcher,{modeOrFilter:o});i=Array.from(l.getChildren()).filter(l=>o(l))}return n.set(u,i),u}}(n.item,t,e));const i=o(n.item,e,n);if(e.writer._clearSlotFactory(),!i)return;!function(l,n,e){const t=Array.from(n.values()).flat(),o=new Set(t);if(o.size!=t.length)throw new b("conversion-slot-filter-overlap",e.dispatcher,{element:l});if(o.size!=l.childCount)throw new b("conversion-slot-filter-incomplete",e.dispatcher,{element:l})}(n.item,t,e),u(n.item,e.consumable);const a=e.mapper.toViewPosition(n.range.start);e.mapper.bindElements(n.item,i),e.writer.insert(a,i),e.convertAttributes(n.item),function(l,n,e,t){e.mapper.on("modelToViewPosition",i,{priority:"highest"});let o=null,u=null;for([o,u]of n)Da(l,u,e,t),e.writer.move(e.writer.createRangeIn(o),e.writer.createPositionBefore(o)),e.writer.remove(o);function i(l,n){const e=n.modelPosition.nodeAfter,t=u.indexOf(e);t<0||(n.viewPosition=n.mapper.findPositionIn(o,t))}e.mapper.off("modelToViewPosition",i)}(i,t,e,{reconversion:n.reconversion})}),{priority:l.converterPriority||"normal"}),t.on("reduceChanges",Fa(n),{priority:"low"})}}(l))}attributeToElement(l){return this.add(function(l){let n=(l=wa(l)).model;"string"==typeof n&&(n={key:n});let e=`attribute:${n.key}`;if(n.name&&(e+=":"+n.name),n.values)for(const o of n.values)l.view[o]=Oa(l.view[o],"attribute");else l.view=Oa(l.view,"attribute");const t=Sa(l);return n=>{n.on(e,function(l){return(n,e,t)=>{if(!t.consumable.test(e.item,n.name))return;const o=l(e.attributeOldValue,t,e),u=l(e.attributeNewValue,t,e);if(!o&&!u)return;t.consumable.consume(e.item,n.name);const i=t.writer,a=i.document.selection;if(e.item instanceof fa||e.item instanceof xa)i.wrap(a.getFirstRange(),u);else{let l=t.mapper.toViewRange(e.range);null!==e.attributeOldValue&&o&&(l=i.unwrap(l,o)),null!==e.attributeNewValue&&u&&i.wrap(l,u)}}}(t),{priority:l.converterPriority||"normal"})}}(l))}attributeToAttribute(l){return this.add(function(l){let n=(l=wa(l)).model;"string"==typeof n&&(n={key:n});let e=`attribute:${n.key}`;if(n.name&&(e+=":"+n.name),n.values)for(const o of n.values)l.view[o]=ka(l.view[o]);else l.view=ka(l.view);const t=Sa(l);return n=>{var o;n.on(e,(o=t,(l,n,e)=>{if(!e.consumable.test(n.item,l.name))return;const t=o(n.attributeOldValue,e,n),u=o(n.attributeNewValue,e,n);if(!t&&!u)return;e.consumable.consume(n.item,l.name);const i=e.mapper.toViewElement(n.item),a=e.writer;if(!i)throw new b("conversion-attribute-to-attribute-on-text",e.dispatcher,n);if(null!==n.attributeOldValue&&t)if("class"==t.key){const l=wt(t.value);for(const n of l)a.removeClass(n,i)}else if("style"==t.key){const l=Object.keys(t.value);for(const n of l)a.removeStyle(n,i)}else a.removeAttribute(t.key,i);if(null!==n.attributeNewValue&&u)if("class"==u.key){const l=wt(u.value);for(const n of l)a.addClass(n,i)}else if("style"==u.key){const l=Object.keys(u.value);for(const n of l)a.setStyle(n,u.value[n],i)}else a.setAttribute(u.key,u.value,i)}),{priority:l.converterPriority||"normal"})}}(l))}markerToElement(l){return this.add(function(l){const n=Oa(l.view,"ui");return e=>{var t;e.on(`addMarker:${l.model}`,(t=n,(l,n,e)=>{n.isOpening=!0;const o=t(n,e);n.isOpening=!1;const u=t(n,e);if(!o||!u)return;const i=n.markerRange;if(i.isCollapsed&&!e.consumable.consume(i,l.name))return;for(const t of i)if(!e.consumable.consume(t.item,l.name))return;const a=e.mapper,r=e.writer;r.insert(a.toViewPosition(i.start),o),e.mapper.bindElementToMarker(o,n.markerName),i.isCollapsed||(r.insert(a.toViewPosition(i.end),u),e.mapper.bindElementToMarker(u,n.markerName)),l.stop()}),{priority:l.converterPriority||"normal"}),e.on(`removeMarker:${l.model}`,(l,n,e)=>{const t=e.mapper.markerNameToElements(n.markerName);if(t){for(const l of t)e.mapper.unbindElementFromMarkerName(l,n.markerName),e.writer.clear(e.writer.createRangeOn(l),l);e.writer.clearClonedElementsGroup(n.markerName),l.stop()}},{priority:l.converterPriority||"normal"})}}(l))}markerToHighlight(l){return this.add(function(l){return n=>{var e;n.on(`addMarker:${l.model}`,(e=l.view,(l,n,t)=>{if(!n.item)return;if(!(n.item instanceof fa||n.item instanceof xa||n.item.is("$textProxy")))return;const o=Ia(e,n,t);if(!o)return;if(!t.consumable.consume(n.item,l.name))return;const u=t.writer,i=La(u,o),a=u.document.selection;if(n.item instanceof fa||n.item instanceof xa)u.wrap(a.getFirstRange(),i);else{const l=t.mapper.toViewRange(n.range),e=u.wrap(l,i);for(const o of e.getItems())if(o.is("attributeElement")&&o.isSimilar(i)){t.mapper.bindElementToMarker(o,n.markerName);break}}}),{priority:l.converterPriority||"normal"}),n.on(`addMarker:${l.model}`,function(l){return(n,e,t)=>{if(!e.item)return;if(!(e.item instanceof Ki))return;const o=Ia(l,e,t);if(!o)return;if(!t.consumable.test(e.item,n.name))return;const u=t.mapper.toViewElement(e.item);if(u&&u.getCustomProperty("addHighlight")){t.consumable.consume(e.item,n.name);for(const l of ia._createIn(e.item))t.consumable.consume(l.item,n.name);u.getCustomProperty("addHighlight")(u,o,t.writer),t.mapper.bindElementToMarker(u,e.markerName)}}}(l.view),{priority:l.converterPriority||"normal"}),n.on(`removeMarker:${l.model}`,function(l){return(n,e,t)=>{if(e.markerRange.isCollapsed)return;const o=Ia(l,e,t);if(!o)return;const u=La(t.writer,o),i=t.mapper.markerNameToElements(e.markerName);if(i){for(const l of i)t.mapper.unbindElementFromMarkerName(l,e.markerName),l.is("attributeElement")?t.writer.unwrap(t.writer.createRangeOn(l),u):l.getCustomProperty("removeHighlight")(l,o.id,t.writer);t.writer.clearClonedElementsGroup(e.markerName),n.stop()}}}(l.view),{priority:l.converterPriority||"normal"})}}(l))}markerToData(l){return this.add(function(l){const n=(l=wa(l)).model;let e=l.view;return e||(e=(e=>({group:n,name:e.substr(l.model.length+1)}))),t=>{var o;t.on(`addMarker:${n}`,(o=e,(l,n,e)=>{const t=o(n.markerName,e);if(!t)return;const u=n.markerRange;e.consumable.consume(u,l.name)&&(Ma(u,!1,e,n,t),Ma(u,!0,e,n,t),l.stop())}),{priority:l.converterPriority||"normal"}),t.on(`removeMarker:${n}`,function(l){return(n,e,t)=>{const o=l(e.markerName,t);if(!o)return;const u=t.mapper.markerNameToElements(e.markerName);if(u){for(const l of u)t.mapper.unbindElementFromMarkerName(l,e.markerName),l.is("containerElement")?(i(`data-${o.group}-start-before`,l),i(`data-${o.group}-start-after`,l),i(`data-${o.group}-end-before`,l),i(`data-${o.group}-end-after`,l)):t.writer.clear(t.writer.createRangeOn(l),l);t.writer.clearClonedElementsGroup(e.markerName),n.stop()}function i(l,n){if(n.hasAttribute(l)){const e=new Set(n.getAttribute(l).split(","));e.delete(o.name),0==e.size?t.writer.removeAttribute(l,n):t.writer.setAttribute(l,Array.from(e).join(","),n)}}}}(e),{priority:l.converterPriority||"normal"})}}(l))}}function La(l,n){const e=l.createAttributeElement("span",n.attributes);return n.classes&&e._addClass(n.classes),"number"==typeof n.priority&&(e._priority=n.priority),e._id=n.id,e}function Ma(l,n,e,t,o){const u=n?l.start:l.end,i=u.nodeAfter&&u.nodeAfter.is("element")?u.nodeAfter:null,a=u.nodeBefore&&u.nodeBefore.is("element")?u.nodeBefore:null;if(i||a){let l,u;n&&i||!n&&!a?(l=i,u=!0):(l=a,u=!1);const r=e.mapper.toViewElement(l);if(r)return void function(l,n,e,t,o,u){const i=`data-${u.group}-${n?"start":"end"}-${e?"before":"after"}`,a=l.hasAttribute(i)?l.getAttribute(i).split(","):[];a.unshift(u.name),t.writer.setAttribute(i,a.join(","),l),t.mapper.bindElementToMarker(l,o.markerName)}(r,n,u,e,t,o)}!function(l,n,e,t,o){const u=`${o.group}-${n?"start":"end"}`,i=o.name?{name:o.name}:null,a=e.writer.createUIElement(u,i);e.writer.insert(l,a),e.mapper.bindElementToMarker(a,t.markerName)}(e.mapper.toViewPosition(u),n,e,t,o)}function Ea(l){return"string"==typeof l&&(l={name:l}),l.attributes?Array.isArray(l.attributes)||(l.attributes=[l.attributes]):l.attributes=[],l.children=!!l.children,l}function Oa(l,n){return"function"==typeof l?l:(e,t)=>(function(l,n,e){let t;"string"==typeof l&&(l={name:l});const o=n.writer,u=Object.assign({},l.attributes);if("container"==e)t=o.createContainerElement(l.name,u);else if("attribute"==e){const n={priority:l.priority||pu.DEFAULT_PRIORITY};t=o.createAttributeElement(l.name,u,n)}else t=o.createUIElement(l.name,u);if(l.styles){const n=Object.keys(l.styles);for(const e of n)o.setStyle(e,l.styles[e],t)}if(l.classes){const n=l.classes;if("string"==typeof n)o.addClass(n,t);else for(const l of n)o.addClass(l,t)}return t})(l,t,n)}function Sa(l){return l.model.values?(n,e,t)=>{const o=l.view[n];return o?o(n,e,t):null}:l.view}function ka(l){return"string"==typeof l?n=>({key:l,value:n}):"object"==typeof l?l.value?()=>l:n=>({key:l.key,value:n}):l}function Ia(l,n,e){const t="function"==typeof l?l(n,e):l;return t?(t.priority||(t.priority=10),t.id||(t.id=n.markerName),t):null}function Fa(l){const n=function(l){return(n,e)=>{if(!n.is("element",l.name))return!1;if("attribute"==e.type){if(l.attributes.includes(e.attributeKey))return!0}else if(l.children)return!0;return!1}}(l);return(l,e)=>{const t=[];e.reconvertedElements||(e.reconvertedElements=new Set);for(const o of e.changes){const l="attribute"==o.type?o.range.start.nodeAfter:o.position.parent;if(l&&n(l,o)){if(!e.reconvertedElements.has(l)){e.reconvertedElements.add(l);const n=la._createBefore(l);t.push({type:"remove",name:l.name,position:n,length:1},{type:"reinsert",name:l.name,position:n,length:1})}}else t.push(o)}e.changes=t}}function Na(l){return(n,e,t={})=>{const o=["insert"];for(const u of l.attributes)n.hasAttribute(u)&&o.push(`attribute:${u}`);return!!o.every(l=>e.test(n,l))&&(t.preflight||o.forEach(l=>e.consume(n,l)),!0)}}function Da(l,n,e,t){for(const o of n)za(l.root,o,e,t)||e.convertItem(o)}function za(l,n,e,t){const{writer:o,mapper:u}=e;if(!t.reconversion)return!1;const i=u.toViewElement(n);return!(!i||i.root==l||!e.canReuseView(i)||(o.move(o.createRangeOn(i),u.toViewPosition(la._createBefore(n))),0))}function qa(l){const{schema:n,document:e}=l.model;for(const t of e.getRootNames()){const o=e.getRoot(t);if(o.isEmpty&&!n.checkChild(o,"$text")&&n.checkChild(o,"paragraph"))return l.insertElement("paragraph",o),!0}return!1}function Ta(l,n,e){const t=e.createContext(l);return!!e.checkChild(t,"paragraph")&&!!e.checkChild(t.push("paragraph"),n)}function Pa(l,n){const e=n.createElement("paragraph");return n.insert(e,l),n.createPositionAt(e,0)}class Ba extends Ca{elementToElement(l){return this.add(Va(l))}elementToAttribute(l){return this.add(function(l){Ga(l=wa(l));const n=ja(l,!1),e=Ua(l.view),t=e?`element:${e}`:"element";return e=>{e.on(t,n,{priority:l.converterPriority||"low"})}}(l))}attributeToAttribute(l){return this.add(function(l){let n=null;("string"==typeof(l=wa(l)).view||l.view.key)&&(n=function(l){"string"==typeof l.view&&(l.view={key:l.view});const n=l.view.key;let e;return e="class"==n||"style"==n?{["class"==n?"classes":"styles"]:l.view.value}:{attributes:{[n]:void 0===l.view.value?/[\s\S]*/:l.view.value}},l.view.name&&(e.name=l.view.name),l.view=e,n}(l)),Ga(l,n);const e=ja(l,!0);return n=>{n.on("element",e,{priority:l.converterPriority||"low"})}}(l))}elementToMarker(l){return this.add(function(l){const n=function(l){return(n,e)=>{const t="string"==typeof l?l:l(n,e);return e.writer.createElement("$marker",{"data-name":t})}}(l.model);return Va({...l,model:n})}(l))}dataToMarker(l){return this.add(function(l){(l=wa(l)).model||(l.model=(n=>n?l.view+":"+n:l.view));const n={view:l.view,model:l.model},e=Wa(Ha(n,"start")),t=Wa(Ha(n,"end"));return o=>{o.on(`element:${l.view}-start`,e,{priority:l.converterPriority||"normal"}),o.on(`element:${l.view}-end`,t,{priority:l.converterPriority||"normal"});const u=g.get("low"),i=g.get("highest"),a=g.get(l.converterPriority)/i;o.on("element",function(l){return(n,e,t)=>{const o=`data-${l.view}`;function u(n,o){for(const u of o){const o=l.model(u,t),i=t.writer.createElement("$marker",{"data-name":o});t.writer.insert(i,n),e.modelCursor.isEqual(n)?e.modelCursor=e.modelCursor.getShiftedBy(1):e.modelCursor=e.modelCursor._getTransformedByInsertion(n,1),e.modelRange=e.modelRange._getTransformedByInsertion(n,1)[0]}}(t.consumable.test(e.viewItem,{attributes:o+"-end-after"})||t.consumable.test(e.viewItem,{attributes:o+"-start-after"})||t.consumable.test(e.viewItem,{attributes:o+"-end-before"})||t.consumable.test(e.viewItem,{attributes:o+"-start-before"}))&&(e.modelRange||Object.assign(e,t.convertChildren(e.viewItem,e.modelCursor)),t.consumable.consume(e.viewItem,{attributes:o+"-end-after"})&&u(e.modelRange.end,e.viewItem.getAttribute(o+"-end-after").split(",")),t.consumable.consume(e.viewItem,{attributes:o+"-start-after"})&&u(e.modelRange.end,e.viewItem.getAttribute(o+"-start-after").split(",")),t.consumable.consume(e.viewItem,{attributes:o+"-end-before"})&&u(e.modelRange.start,e.viewItem.getAttribute(o+"-end-before").split(",")),t.consumable.consume(e.viewItem,{attributes:o+"-start-before"})&&u(e.modelRange.start,e.viewItem.getAttribute(o+"-start-before").split(",")))}}(n),{priority:u+a})}}(l))}}function Va(l){const n=Wa(l=wa(l)),e=Ua(l.view),t=e?`element:${e}`:"element";return e=>{e.on(t,n,{priority:l.converterPriority||"normal"})}}function Ua(l){return"string"==typeof l?l:"object"==typeof l&&"string"==typeof l.name?l.name:null}function Wa(l){const n=new oo(l.view);return(e,t,o)=>{const u=n.match(t.viewItem);if(!u)return;const i=u.match;if(i.name=!0,!o.consumable.test(t.viewItem,i))return;const a=function(l,n,e){return l instanceof Function?l(n,e):e.writer.createElement(l)}(l.model,t.viewItem,o);a&&o.safeInsert(a,t.modelCursor)&&(o.consumable.consume(t.viewItem,i),o.convertChildren(t.viewItem,a),o.updateConversionResult(a,t))}}function Ga(l,n=null){const e=null===n||(l=>l.getAttribute(n)),t="object"!=typeof l.model?l.model:l.model.key,o="object"!=typeof l.model||void 0===l.model.value?e:l.model.value;l.model={key:t,value:o}}function ja(l,n){const e=new oo(l.view);return(t,o,u)=>{if(!o.modelRange&&n)return;const i=e.match(o.viewItem);if(!i)return;if(function(l,n){const e="function"==typeof l?l(n):l;return!("object"==typeof e&&!Ua(e))&&(!e.classes&&!e.attributes&&!e.styles)}(l.view,o.viewItem)?i.match.name=!0:delete i.match.name,!u.consumable.test(o.viewItem,i.match))return;const a=l.model.key,r="function"==typeof l.model.value?l.model.value(o.viewItem,u):l.model.value;null!==r&&(o.modelRange||Object.assign(o,u.convertChildren(o.viewItem,o.modelCursor)),function(l,n,e,t){let o=!1;for(const u of Array.from(l.getItems({shallow:e})))t.schema.checkAttribute(u,n.key)&&(o=!0,u.hasAttribute(n.key)||t.writer.setAttribute(n.key,n.value,u));return o}(o.modelRange,{key:a,value:r},n,u)&&(u.consumable.test(o.viewItem,{name:!0})&&(i.match.name=!0),u.consumable.consume(o.viewItem,i.match)))}}function Ha(l,n){return{view:`${l.view}-${n}`,model:(n,e)=>{const t=n.getAttribute("name"),o=l.model(t,e);return e.writer.createElement("$marker",{"data-name":o})}}}class Ya extends(U()){constructor(l,n){super(),this.model=l,this.view=new ji(n),this.mapper=new aa,this.downcastDispatcher=new da({mapper:this.mapper,schema:l.schema});const e=this.model.document,t=e.selection,o=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(e,"change",()=>{this.view.change(l=>{this.downcastDispatcher.convertChanges(e.differ,o,l),this.downcastDispatcher.convertSelection(t,o,l)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(l,n){return(e,t)=>{const o=t.newSelection,u=[];for(const l of o.getRanges())u.push(n.toModelRange(l));const i=l.createSelection(u,{backward:o.isBackward});i.isEqual(l.document.selection)||l.change(l=>{l.setSelection(i)})}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(l,n,e)=>{if(!e.consumable.consume(n.item,l.name))return;const t=e.writer,o=e.mapper.toViewPosition(n.range.start),u=t.createText(n.item.data);t.insert(o,u)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(l,n,e)=>{e.convertAttributes(n.item),n.reconversion||!n.item.is("element")||n.item.isEmpty||e.convertChildren(n.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(l,n,e)=>{const t=e.mapper.toViewPosition(n.position),o=n.position.getShiftedBy(n.length),u=e.mapper.toViewPosition(o,{isPhantom:!0}),i=e.writer.createRange(t,u),a=e.writer.remove(i.getTrimmed());for(const r of e.writer.createRangeIn(a).getItems())e.mapper.unbindViewElement(r,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("selection",(l,n,e)=>{const t=e.writer,o=t.document.selection;for(const u of o.getRanges())u.isCollapsed&&u.end.parent.isAttached()&&e.writer.mergeAttributes(u.start);t.setSelection(null)},{priority:"high"}),this.downcastDispatcher.on("selection",(l,n,e)=>{const t=n.selection;if(t.isCollapsed)return;if(!e.consumable.consume(t,"selection"))return;const o=[];for(const u of t.getRanges())o.push(e.mapper.toViewRange(u));e.writer.setSelection(o,{backward:t.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(l,n,e)=>{const t=n.selection;if(!t.isCollapsed)return;if(!e.consumable.consume(t,"selection"))return;const o=e.writer,u=t.getFirstPosition(),i=e.mapper.toViewPosition(u),a=o.breakAttributes(i);o.setSelection(a)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(l=>{if("$graveyard"==l.rootName)return null;const n=new Ko(this.view.document,l.name);return n.rootName=l.rootName,this.mapper.bindElements(l,n),n})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(l){const n="string"==typeof l?l:l.name,e=this.model.markers.get(n);if(!e)throw new b("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:n});this.model.change(()=>{this.model.markers._refresh(e)})}reconvertItem(l){this.model.change(()=>{this.model.document.differ._refreshItem(l)})}}class Za{constructor(){this._consumables=new Map}add(l,n){let e;l.is("$text")||l.is("documentFragment")?this._consumables.set(l,!0):(this._consumables.has(l)?e=this._consumables.get(l):(e=new $a(l),this._consumables.set(l,e)),e.add(n))}test(l,n){const e=this._consumables.get(l);return void 0===e?null:l.is("$text")||l.is("documentFragment")?e:e.test(n)}consume(l,n){return!!this.test(l,n)&&(l.is("$text")||l.is("documentFragment")?this._consumables.set(l,!1):this._consumables.get(l).consume(n),!0)}revert(l,n){const e=this._consumables.get(l);void 0!==e&&(l.is("$text")||l.is("documentFragment")?this._consumables.set(l,!0):e.revert(n))}static consumablesFromElement(l){const n={element:l,name:!0,attributes:[],classes:[],styles:[]},e=l.getAttributeKeys();for(const u of e)"style"!=u&&"class"!=u&&n.attributes.push(u);const t=l.getClassNames();for(const u of t)n.classes.push(u);const o=l.getStyleNames();for(const u of o)n.styles.push(u);return n}static createFrom(l,n){if(n||(n=new Za),l.is("$text"))return n.add(l),n;l.is("element")&&n.add(l,Za.consumablesFromElement(l)),l.is("documentFragment")&&n.add(l);for(const e of l.getChildren())n=Za.createFrom(e,n);return n}}const Xa=["attributes","classes","styles"];class $a{constructor(l){this.element=l,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(l){l.name&&(this._canConsumeName=!0);for(const n of Xa)n in l&&this._add(n,l[n])}test(l){if(l.name&&!this._canConsumeName)return this._canConsumeName;for(const n of Xa)if(n in l){const e=this._test(n,l[n]);if(!0!==e)return e}return!0}consume(l){l.name&&(this._canConsumeName=!1);for(const n of Xa)n in l&&this._consume(n,l[n])}revert(l){l.name&&(this._canConsumeName=!0);for(const n of Xa)n in l&&this._revert(n,l[n])}_add(l,n){const e=sl(n)?n:[n],t=this._consumables[l];for(const o of e){if("attributes"===l&&("class"===o||"style"===o))throw new b("viewconsumable-invalid-attribute",this);if(t.set(o,!0),"styles"===l)for(const l of this.element.document.stylesProcessor.getRelatedStyles(o))t.set(l,!0)}}_test(l,n){const e=sl(n)?n:[n],t=this._consumables[l];for(const o of e)if("attributes"!==l||"class"!==o&&"style"!==o){const l=t.get(o);if(void 0===l)return null;if(!l)return!1}else{const l="class"==o?"classes":"styles",n=this._test(l,[...this._consumables[l].keys()]);if(!0!==n)return n}return!0}_consume(l,n){const e=sl(n)?n:[n],t=this._consumables[l];for(const o of e)if("attributes"!==l||"class"!==o&&"style"!==o){if(t.set(o,!1),"styles"==l)for(const l of this.element.document.stylesProcessor.getRelatedStyles(o))t.set(l,!1)}else{const l="class"==o?"classes":"styles";this._consume(l,[...this._consumables[l].keys()])}}_revert(l,n){const e=sl(n)?n:[n],t=this._consumables[l];for(const o of e)if("attributes"!==l||"class"!==o&&"style"!==o)!1===t.get(o)&&t.set(o,!0);else{const l="class"==o?"classes":"styles";this._revert(l,[...this._consumables[l].keys()])}}}class Ka extends(U()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(l,n)=>{n[0]=new Qa(n[0])},{priority:"highest"}),this.on("checkChild",(l,n)=>{n[0]=new Qa(n[0]),n[1]=this.getDefinition(n[1])},{priority:"highest"})}register(l,n){if(this._sourceDefinitions[l])throw new b("schema-cannot-register-item-twice",this,{itemName:l});this._sourceDefinitions[l]=[Object.assign({},n)],this._clearCache()}extend(l,n){if(!this._sourceDefinitions[l])throw new b("schema-cannot-extend-missing-item",this,{itemName:l});this._sourceDefinitions[l].push(Object.assign({},n)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(l){let n;return n="string"==typeof l?l:"is"in l&&(l.is("$text")||l.is("$textProxy"))?"$text":l.name,this.getDefinitions()[n]}isRegistered(l){return!!this.getDefinition(l)}isBlock(l){const n=this.getDefinition(l);return!(!n||!n.isBlock)}isLimit(l){const n=this.getDefinition(l);return!(!n||!n.isLimit&&!n.isObject)}isObject(l){const n=this.getDefinition(l);return!!n&&!!(n.isObject||n.isLimit&&n.isSelectable&&n.isContent)}isInline(l){const n=this.getDefinition(l);return!(!n||!n.isInline)}isSelectable(l){const n=this.getDefinition(l);return!(!n||!n.isSelectable&&!n.isObject)}isContent(l){const n=this.getDefinition(l);return!(!n||!n.isContent&&!n.isObject)}checkChild(l,n){return!!n&&this._checkContextMatch(n,l)}checkAttribute(l,n){const e=this.getDefinition(l.last);return!!e&&e.allowAttributes.includes(n)}checkMerge(l,n){if(l instanceof la){const n=l.nodeBefore,e=l.nodeAfter;if(!(n instanceof Ki))throw new b("schema-check-merge-no-element-before",this);if(!(e instanceof Ki))throw new b("schema-check-merge-no-element-after",this);return this.checkMerge(n,e)}for(const e of n.getChildren())if(!this.checkChild(l,e))return!1;return!0}addChildCheck(l){this.on("checkChild",(n,[e,t])=>{if(!t)return;const o=l(e,t);"boolean"==typeof o&&(n.stop(),n.return=o)},{priority:"high"})}addAttributeCheck(l){this.on("checkAttribute",(n,[e,t])=>{const o=l(e,t);"boolean"==typeof o&&(n.stop(),n.return=o)},{priority:"high"})}setAttributeProperties(l,n){this._attributeProperties[l]=Object.assign(this.getAttributeProperties(l),n)}getAttributeProperties(l){return this._attributeProperties[l]||{}}getLimitElement(l){let n;for(n=l instanceof la?l.parent:(l instanceof ia?[l]:Array.from(l.getRanges())).reduce((l,n)=>{const e=n.getCommonAncestor();return l?l.getCommonAncestor(e,{includeSelf:!0}):e},null);!this.isLimit(n)&&n.parent;)n=n.parent;return n}checkAttributeInSelection(l,n){if(l.isCollapsed){const e=[...l.getFirstPosition().getAncestors(),new Xi("",l.getAttributes())];return this.checkAttribute(e,n)}{const e=l.getRanges();for(const l of e)for(const e of l)if(this.checkAttribute(e.item,n))return!0}return!1}*getValidRanges(l,n){l=function*(l){for(const n of l)yield*n.getMinimalFlatRanges()}(l);for(const e of l)yield*this._getValidRangesForRange(e,n)}getNearestSelectionRange(l,n="both"){if(this.checkChild(l,"$text"))return new ia(l);let e,t;const o=l.getAncestors().reverse().find(l=>this.isLimit(l))||l.root;"both"!=n&&"backward"!=n||(e=new Qi({boundaries:ia._createIn(o),startPosition:l,direction:"backward"})),"both"!=n&&"forward"!=n||(t=new Qi({boundaries:ia._createIn(o),startPosition:l}));for(const u of function*(l,n){let e=!1;for(;!e;){if(e=!0,l){const n=l.next();n.done||(e=!1,yield{walker:l,value:n.value})}if(n){const l=n.next();l.done||(e=!1,yield{walker:n,value:l.value})}}}(e,t)){const l=u.walker==e?"elementEnd":"elementStart",n=u.value;if(n.type==l&&this.isObject(n.item))return ia._createOn(n.item);if(this.checkChild(n.nextPosition,"$text"))return new ia(n.nextPosition)}return null}findAllowedParent(l,n){let e=l.parent;for(;e;){if(this.checkChild(e,n))return e;if(this.isLimit(e))return null;e=e.parent}return null}setAllowedAttributes(l,n,e){const t=e.model;for(const[o,u]of Object.entries(n))t.schema.checkAttribute(l,o)&&e.setAttribute(o,u,l)}removeDisallowedAttributes(l,n){for(const e of l)if(e.is("$text"))cr(this,e,n);else{const l=ia._createIn(e).getPositions();for(const e of l)cr(this,e.nodeBefore||e.parent,n)}}getAttributesWithProperty(l,n,e){const t={};for(const[o,u]of l.getAttributes()){const l=this.getAttributeProperties(o);void 0!==l[n]&&(void 0!==e&&e!==l[n]||(t[o]=u))}return t}createContext(l){return new Qa(l)}_clearCache(){this._compiledDefinitions=null}_compile(){const l={},n=this._sourceDefinitions,e=Object.keys(n);for(const t of e)l[t]=Ja(n[t],t);for(const t of e)lr(l,t);for(const t of e)nr(l,t);for(const t of e)er(l,t);for(const t of e)tr(l,t),or(l,t);for(const t of e)ur(l,t),ir(l,t),ar(l,t);this._compiledDefinitions=l}_checkContextMatch(l,n,e=n.length-1){const t=n.getItem(e);if(l.allowIn.includes(t.name)){if(0==e)return!0;{const l=this.getDefinition(t);return this._checkContextMatch(l,n,e-1)}}return!1}*_getValidRangesForRange(l,n){let e=l.start,t=l.start;for(const o of l.getItems({shallow:!0}))o.is("element")&&(yield*this._getValidRangesForRange(ia._createIn(o),n)),this.checkAttribute(o,n)||(e.isEqual(t)||(yield new ia(e,t)),e=la._createAfter(o)),t=la._createAfter(o);e.isEqual(t)||(yield new ia(e,t))}}class Qa{constructor(l){if(l instanceof Qa)return l;let n;n="string"==typeof l?[l]:Array.isArray(l)?l:l.getAncestors({includeSelf:!0}),this._items=n.map(dr)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(l){const n=new Qa([l]);return n._items=[...this._items,...n._items],n}getItem(l){return this._items[l]}*getNames(){yield*this._items.map(l=>l.name)}endsWith(l){return Array.from(this.getNames()).join(" ").endsWith(l)}startsWith(l){return Array.from(this.getNames()).join(" ").startsWith(l)}}function Ja(l,n){const e={name:n,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(l,n){for(const e of l){const l=Object.keys(e).filter(l=>l.startsWith("is"));for(const t of l)n[t]=!!e[t]}}(l,e),rr(l,e,"allowIn"),rr(l,e,"allowContentOf"),rr(l,e,"allowWhere"),rr(l,e,"allowAttributes"),rr(l,e,"allowAttributesOf"),rr(l,e,"allowChildren"),rr(l,e,"inheritTypesFrom"),function(l,n){for(const e of l){const l=e.inheritAllFrom;l&&(n.allowContentOf.push(l),n.allowWhere.push(l),n.allowAttributesOf.push(l),n.inheritTypesFrom.push(l))}}(l,e),e}function lr(l,n){const e=l[n];for(const t of e.allowChildren){const e=l[t];e&&e.allowIn.push(n)}e.allowChildren.length=0}function nr(l,n){for(const e of l[n].allowContentOf)l[e]&&sr(l,e).forEach(l=>{l.allowIn.push(n)});delete l[n].allowContentOf}function er(l,n){for(const e of l[n].allowWhere){const t=l[e];if(t){const e=t.allowIn;l[n].allowIn.push(...e)}}delete l[n].allowWhere}function tr(l,n){for(const e of l[n].allowAttributesOf){const t=l[e];if(t){const e=t.allowAttributes;l[n].allowAttributes.push(...e)}}delete l[n].allowAttributesOf}function or(l,n){const e=l[n];for(const t of e.inheritTypesFrom){const n=l[t];if(n){const l=Object.keys(n).filter(l=>l.startsWith("is"));for(const t of l)t in e||(e[t]=n[t])}}delete e.inheritTypesFrom}function ur(l,n){const e=l[n],t=e.allowIn.filter(n=>l[n]);e.allowIn=Array.from(new Set(t))}function ir(l,n){const e=l[n];for(const t of e.allowIn)l[t].allowChildren.push(n)}function ar(l,n){const e=l[n];e.allowAttributes=Array.from(new Set(e.allowAttributes))}function rr(l,n,e){for(const t of l){const l=t[e];"string"==typeof l?n[e].push(l):Array.isArray(l)&&n[e].push(...l)}}function sr(l,n){const e=l[n];return(t=l,Object.keys(t).map(l=>t[l])).filter(l=>l.allowIn.includes(e.name));var t}function dr(l){return"string"==typeof l||l.is("documentFragment")?{name:"string"==typeof l?l:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:l.is("element")?l.name:"$text",*getAttributeKeys(){yield*l.getAttributeKeys()},getAttribute:n=>l.getAttribute(n)}}function cr(l,n,e){for(const t of n.getAttributeKeys())l.checkAttribute(n,t)||e.removeAttribute(t,n)}class pr extends(E()){constructor(l){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...l,consumable:null,writer:null,store:null,convertItem:(l,n)=>this._convertItem(l,n),convertChildren:(l,n)=>this._convertChildren(l,n),safeInsert:(l,n)=>this._safeInsert(l,n),updateConversionResult:(l,n)=>this._updateConversionResult(l,n),splitToAllowedParent:(l,n)=>this._splitToAllowedParent(l,n),getSplitParts:l=>this._getSplitParts(l),keepEmptyElement:l=>this._keepEmptyElement(l)}}convert(l,n,e=["$root"]){this.fire("viewCleanup",l),this._modelCursor=function(l,n){let e;for(const t of new Qa(l)){const l={};for(const n of t.getAttributeKeys())l[n]=t.getAttribute(n);const o=n.createElement(t.name,l);e&&n.insert(o,e),e=la._createAt(o,0)}return e}(e,n),this.conversionApi.writer=n,this.conversionApi.consumable=Za.createFrom(l),this.conversionApi.store={};const{modelRange:t}=this._convertItem(l,this._modelCursor),o=n.createDocumentFragment();if(t){this._removeEmptyElements();for(const l of Array.from(this._modelCursor.parent.getChildren()))n.append(l,o);o.markers=function(l,n){const e=new Set,t=new Map,o=ia._createIn(l).getItems();for(const u of o)u.is("element","$marker")&&e.add(u);for(const u of e){const l=u.getAttribute("data-name"),e=n.createPositionBefore(u);t.has(l)?t.get(l).end=e.clone():t.set(l,new ia(e.clone())),n.remove(u)}return t}(o,n)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}_convertItem(l,n){const e={viewItem:l,modelCursor:n,modelRange:null};if(l.is("element")?this.fire(`element:${l.name}`,e,this.conversionApi):l.is("$text")?this.fire("text",e,this.conversionApi):this.fire("documentFragment",e,this.conversionApi),e.modelRange&&!(e.modelRange instanceof ia))throw new b("view-conversion-dispatcher-incorrect-result",this);return{modelRange:e.modelRange,modelCursor:e.modelCursor}}_convertChildren(l,n){let e=n.is("position")?n:la._createAt(n,0);const t=new ia(e);for(const o of Array.from(l.getChildren())){const l=this._convertItem(o,e);l.modelRange instanceof ia&&(t.end=l.modelRange.end,e=l.modelCursor)}return{modelRange:t,modelCursor:e}}_safeInsert(l,n){const e=this._splitToAllowedParent(l,n);return!!e&&(this.conversionApi.writer.insert(l,e.position),!0)}_updateConversionResult(l,n){const e=this._getSplitParts(l),t=this.conversionApi.writer;n.modelRange||(n.modelRange=t.createRange(t.createPositionBefore(l),t.createPositionAfter(e[e.length-1])));const o=this._cursorParents.get(l);n.modelCursor=o?t.createPositionAt(o,0):n.modelRange.end}_splitToAllowedParent(l,n){const{schema:e,writer:t}=this.conversionApi;let o=e.findAllowedParent(n,l);if(o){if(o===n.parent)return{position:n};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return Ta(n,l,e)?{position:Pa(n,t)}:null;const u=this.conversionApi.writer.split(n,o),i=[];for(const r of u.range.getWalker())if("elementEnd"==r.type)i.push(r.item);else{const l=i.pop(),n=r.item;this._registerSplitPair(l,n)}const a=u.range.end.parent;return this._cursorParents.set(l,a),{position:u.position,cursorParent:a}}_registerSplitPair(l,n){this._splitParts.has(l)||this._splitParts.set(l,[l]);const e=this._splitParts.get(l);this._splitParts.set(n,e),e.push(n)}_getSplitParts(l){let n;return n=this._splitParts.has(l)?this._splitParts.get(l):[l]}_keepEmptyElement(l){this._emptyElementsToKeep.add(l)}_removeEmptyElements(){let l=!1;for(const n of this._splitParts.keys())n.isEmpty&&!this._emptyElementsToKeep.has(n)&&(this.conversionApi.writer.remove(n),this._splitParts.delete(n),l=!0);l&&this._removeEmptyElements()}}class fr{getHtml(l){const n=document.implementation.createHTMLDocument("").createElement("div");return n.appendChild(l),n.innerHTML}}class mr{constructor(l){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new Ku(l,{renderingMode:"data"}),this.htmlWriter=new fr}toData(l){const n=this.domConverter.viewToDom(l);return this.htmlWriter.getHtml(n)}toView(l){const n=this._toDom(l);return this.domConverter.domToView(n,{skipComments:this.skipComments})}registerRawContentMatcher(l){this.domConverter.registerRawContentMatcher(l)}useFillerType(l){this.domConverter.blockFillerMode="marked"==l?"markedNbsp":"nbsp"}_toDom(l){l.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(l=`${l}`);const n=this.domParser.parseFromString(l,"text/html"),e=n.createDocumentFragment(),t=n.body.childNodes;for(;t.length>0;)e.appendChild(t[0]);return e}}class hr extends(E()){constructor(l,n){super(),this.model=l,this.mapper=new aa,this.downcastDispatcher=new da({mapper:this.mapper,schema:l.schema}),this.downcastDispatcher.on("insert:$text",(l,n,e)=>{if(!e.consumable.consume(n.item,l.name))return;const t=e.writer,o=e.mapper.toViewPosition(n.range.start),u=t.createText(n.item.data);t.insert(o,u)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(l,n,e)=>{e.convertAttributes(n.item),n.reconversion||!n.item.is("element")||n.item.isEmpty||e.convertChildren(n.item)},{priority:"lowest"}),this.upcastDispatcher=new pr({schema:l.schema}),this.viewDocument=new cu(n),this.stylesProcessor=n,this.htmlProcessor=new mr(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new _u(this.viewDocument),this.upcastDispatcher.on("text",(l,n,{schema:e,consumable:t,writer:o})=>{let u=n.modelCursor;if(!t.test(n.viewItem))return;if(!e.checkChild(u,"$text")){if(!Ta(u,"$text",e))return;if(0==n.viewItem.data.trim().length)return;u=Pa(u,o)}t.consume(n.viewItem);const i=o.createText(n.viewItem.data);o.insert(i,u),n.modelRange=o.createRange(u,u.getShiftedBy(i.offsetSize)),n.modelCursor=n.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(l,n,e)=>{if(!n.modelRange&&e.consumable.consume(n.viewItem,{name:!0})){const{modelRange:l,modelCursor:t}=e.convertChildren(n.viewItem,n.modelCursor);n.modelRange=l,n.modelCursor=t}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(l,n,e)=>{if(!n.modelRange&&e.consumable.consume(n.viewItem,{name:!0})){const{modelRange:l,modelCursor:t}=e.convertChildren(n.viewItem,n.modelCursor);n.modelRange=l,n.modelCursor=t}},{priority:"lowest"}),U().prototype.decorate.call(this,"init"),U().prototype.decorate.call(this,"set"),U().prototype.decorate.call(this,"get"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},qa)},{priority:"lowest"})}get(l={}){const{rootName:n="main",trim:e="empty"}=l;if(!this._checkIfRootsExists([n]))throw new b("datacontroller-get-non-existent-root",this);const t=this.model.document.getRoot(n);return"empty"!==e||this.model.hasContent(t,{ignoreWhitespaces:!0})?this.stringify(t,l):""}stringify(l,n={}){const e=this.toView(l,n);return this.processor.toData(e)}toView(l,n={}){const e=this.viewDocument,t=this._viewWriter;this.mapper.clearBindings();const o=ia._createIn(l),u=new Au(e);this.mapper.bindElements(l,u);const i=l.is("documentFragment")?l.markers:function(l){const n=[],e=l.root.document;if(!e)return new Map;const t=ia._createIn(l);for(const o of e.model.markers){const l=o.getRange(),e=l.isCollapsed,u=l.start.isEqual(t.start)||l.end.isEqual(t.end);if(e&&u)n.push([o.name,l]);else{const e=t.getIntersection(l);e&&n.push([o.name,e])}}return n.sort(([l,n],[e,t])=>{if("after"!==n.end.compareWith(t.start))return 1;if("before"!==n.start.compareWith(t.end))return-1;switch(n.start.compareWith(t.start)){case"before":return 1;case"after":return-1;default:switch(n.end.compareWith(t.end)){case"before":return 1;case"after":return-1;default:return e.localeCompare(l)}}}),new Map(n)}(l);return this.downcastDispatcher.convert(o,i,t,n),u}init(l){if(this.model.document.version)throw new b("datacontroller-init-document-not-empty",this);let n={};if("string"==typeof l?n.main=l:n=l,!this._checkIfRootsExists(Object.keys(n)))throw new b("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},l=>{for(const e of Object.keys(n)){const t=this.model.document.getRoot(e);l.insert(this.parse(n[e],t),t,0)}}),Promise.resolve()}set(l,n={}){let e={};if("string"==typeof l?e.main=l:e=l,!this._checkIfRootsExists(Object.keys(e)))throw new b("datacontroller-set-non-existent-root",this);this.model.enqueueChange(n.batchType||{},l=>{l.setSelection(null),l.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const n of Object.keys(e)){const t=this.model.document.getRoot(n);l.remove(l.createRangeIn(t)),l.insert(this.parse(e[n],t),t,0)}})}parse(l,n="$root"){const e=this.processor.toView(l);return this.toModel(e,n)}toModel(l,n="$root"){return this.model.change(e=>this.upcastDispatcher.convert(l,e,n))}addStyleProcessorRules(l){l(this.stylesProcessor)}registerRawContentMatcher(l){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(l),this.htmlProcessor.registerRawContentMatcher(l)}destroy(){this.stopListening()}_checkIfRootsExists(l){for(const n of l)if(!this.model.document.getRootNames().includes(n))return!1;return!0}}class gr{constructor(l,n){this._helpers=new Map,this._downcast=wt(l),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=wt(n),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(l,n){const e=this._downcast.includes(n);if(!this._upcast.includes(n)&&!e)throw new b("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:l,dispatchers:[n],isDowncast:e})}for(l){if(!this._helpers.has(l))throw new b("conversion-for-unknown-group",this);return this._helpers.get(l)}elementToElement(l){this.for("downcast").elementToElement(l);for(const{model:n,view:e}of vr(l))this.for("upcast").elementToElement({model:n,view:e,converterPriority:l.converterPriority})}attributeToElement(l){this.for("downcast").attributeToElement(l);for(const{model:n,view:e}of vr(l))this.for("upcast").elementToAttribute({view:e,model:n,converterPriority:l.converterPriority})}attributeToAttribute(l){this.for("downcast").attributeToAttribute(l);for(const{model:n,view:e}of vr(l))this.for("upcast").attributeToAttribute({view:e,model:n})}_createConversionHelpers({name:l,dispatchers:n,isDowncast:e}){if(this._helpers.has(l))throw new b("conversion-group-exists",this);const t=e?new Ra(n):new Ba(n);this._helpers.set(l,t)}}function*vr(l){if(l.model.values)for(const n of l.model.values){const e={key:l.model.key,value:n},t=l.view[n],o=l.upcastAlso?l.upcastAlso[n]:void 0;yield*br(e,t,o)}else yield*br(l.model,l.view,l.upcastAlso)}function*br(l,n,e){if(yield{model:l,view:n},e)for(const t of wt(e))yield{model:l,view:t}}class yr{constructor(l){this.baseVersion=l,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const l=Object.assign({},this);return l.__className=this.constructor.className,delete l.batch,delete l.isDocumentOperation,l}static get className(){return"Operation"}static fromJSON(l,n){return new this(l.baseVersion)}}function xr(l,n){const e=Cr(n),t=e.reduce((l,n)=>l+n.offsetSize,0),o=l.parent;Rr(l);const u=l.index;return o._insertChild(u,e),wr(o,u+e.length),wr(o,u),new ia(l,l.getShiftedBy(t))}function Ar(l){if(!l.isFlat)throw new b("operation-utils-remove-range-not-flat",this);const n=l.start.parent;Rr(l.start),Rr(l.end);const e=n._removeChildren(l.start.index,l.end.index-l.start.index);return wr(n,l.start.index),e}function _r(l,n){if(!l.isFlat)throw new b("operation-utils-move-range-not-flat",this);const e=Ar(l);return xr(n=n._getTransformedByDeletion(l.start,l.end.offset-l.start.offset),e)}function Cr(l){const n=[];!function l(e){if("string"==typeof e)n.push(new Xi(e));else if(e instanceof $i)n.push(new Xi(e.data,e.getAttributes()));else if(e instanceof Yi)n.push(e);else if(K(e))for(const n of e)l(n)}(l);for(let e=1;el.maxOffset)throw new b("move-operation-nodes-do-not-exist",this);if(l===n&&e=e&&this.targetPosition.path[l]l._clone(!0))),n=new Er(this.position,l,this.baseVersion);return n.shouldReceiveAttributes=this.shouldReceiveAttributes,n}getReversed(){const l=this.position.root.document.graveyard,n=new la(l,[0]);return new Mr(this.position,this.nodes.maxOffset,n,this.baseVersion+1)}_validate(){const l=this.position.parent;if(!l||l.maxOffsetl._clone(!0))),xr(this.position,l)}toJSON(){const l=super.toJSON();return l.position=this.position.toJSON(),l.nodes=this.nodes.toJSON(),l}static get className(){return"InsertOperation"}static fromJSON(l,n){const e=[];for(const o of l.nodes)o.name?e.push(Ki.fromJSON(o)):e.push(Xi.fromJSON(o));const t=new Er(la.fromJSON(l.position,n),e,l.baseVersion);return t.shouldReceiveAttributes=l.shouldReceiveAttributes,t}}class Or extends yr{constructor(l,n,e,t,o,u){super(u),this.name=l,this.oldRange=n?n.clone():null,this.newRange=e?e.clone():null,this.affectsData=o,this._markers=t}get type(){return"marker"}clone(){return new Or(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Or(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const l=super.toJSON();return this.oldRange&&(l.oldRange=this.oldRange.toJSON()),this.newRange&&(l.newRange=this.newRange.toJSON()),delete l._markers,l}static get className(){return"MarkerOperation"}static fromJSON(l,n){return new Or(l.name,l.oldRange?ia.fromJSON(l.oldRange,n):null,l.newRange?ia.fromJSON(l.newRange,n):null,n.model.markers,l.affectsData,l.baseVersion)}}const Sr=function(l,n){return Ni(l,n)};class kr extends yr{constructor(l,n,e,t,o){super(o),this.range=l.clone(),this.key=n,this.oldValue=void 0===e?null:e,this.newValue=void 0===t?null:t}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new kr(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new kr(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const l=super.toJSON();return l.range=this.range.toJSON(),l}_validate(){if(!this.range.isFlat)throw new b("attribute-operation-range-not-flat",this);for(const l of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Sr(l.getAttribute(this.key),this.oldValue))throw new b("attribute-operation-wrong-old-value",this,{item:l,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&l.hasAttribute(this.key))throw new b("attribute-operation-attribute-exists",this,{node:l,key:this.key})}}_execute(){Sr(this.oldValue,this.newValue)||function(l,n,e){Rr(l.start),Rr(l.end);for(const t of l.getItems({shallow:!0})){const l=t.is("$textProxy")?t.textNode:t;null!==e?l._setAttribute(n,e):l._removeAttribute(n),wr(l.parent,l.index)}wr(l.end.parent,l.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(l,n){return new kr(ia.fromJSON(l.range,n),l.key,l.oldValue,l.newValue,l.baseVersion)}}class Ir extends yr{get type(){return"noop"}clone(){return new Ir(this.baseVersion)}getReversed(){return new Ir(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class Fr extends yr{constructor(l,n,e,t){super(t),this.position=l,this.position.stickiness="toNext",this.oldName=n,this.newName=e}get type(){return"rename"}clone(){return new Fr(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Fr(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const l=this.position.nodeAfter;if(!(l instanceof Ki))throw new b("rename-operation-wrong-position",this);if(l.name!==this.oldName)throw new b("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const l=super.toJSON();return l.position=this.position.toJSON(),l}static get className(){return"RenameOperation"}static fromJSON(l,n){return new Fr(la.fromJSON(l.position,n),l.oldName,l.newName,l.baseVersion)}}class Nr extends yr{constructor(l,n,e,t,o){super(o),this.root=l,this.key=n,this.oldValue=e,this.newValue=t}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Nr(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Nr(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new b("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 b("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 b("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 l=super.toJSON();return l.root=this.root.toJSON(),l}static get className(){return"RootAttributeOperation"}static fromJSON(l,n){if(!n.getRoot(l.root))throw new b("rootattribute-operation-fromjson-no-root",this,{rootName:l.root});return new Nr(n.getRoot(l.root),l.key,l.oldValue,l.newValue,l.baseVersion)}}class Dr extends yr{constructor(l,n,e,t,o){super(o),this.sourcePosition=l.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=n,this.targetPosition=e.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=t.clone()}get type(){return"merge"}get deletionPosition(){return new la(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const l=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new ia(this.sourcePosition,l)}clone(){return new Dr(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const l=this.targetPosition._getTransformedByMergeOperation(this),n=this.sourcePosition.path.slice(0,-1),e=new la(this.sourcePosition.root,n)._getTransformedByMergeOperation(this);return new zr(l,this.howMany,e,this.graveyardPosition,this.baseVersion+1)}_validate(){const l=this.sourcePosition.parent,n=this.targetPosition.parent;if(!l.parent)throw new b("merge-operation-source-position-invalid",this);if(!n.parent)throw new b("merge-operation-target-position-invalid",this);if(this.howMany!=l.maxOffset)throw new b("merge-operation-how-many-invalid",this)}_execute(){const l=this.sourcePosition.parent;_r(ia._createIn(l),this.targetPosition),_r(ia._createOn(l),this.graveyardPosition)}toJSON(){const l=super.toJSON();return l.sourcePosition=l.sourcePosition.toJSON(),l.targetPosition=l.targetPosition.toJSON(),l.graveyardPosition=l.graveyardPosition.toJSON(),l}static get className(){return"MergeOperation"}static fromJSON(l,n){const e=la.fromJSON(l.sourcePosition,n),t=la.fromJSON(l.targetPosition,n),o=la.fromJSON(l.graveyardPosition,n);return new this(e,l.howMany,t,o,l.baseVersion)}}class zr extends yr{constructor(l,n,e,t,o){super(o),this.splitPosition=l.clone(),this.splitPosition.stickiness="toNext",this.howMany=n,this.insertionPosition=e,this.graveyardPosition=t?t.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const l=this.insertionPosition.path.slice();return l.push(0),new la(this.insertionPosition.root,l)}get movedRange(){const l=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new ia(this.splitPosition,l)}clone(){return new zr(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const l=this.splitPosition.root.document.graveyard,n=new la(l,[0]);return new Dr(this.moveTargetPosition,this.howMany,this.splitPosition,n,this.baseVersion+1)}_validate(){const l=this.splitPosition.parent,n=this.splitPosition.offset;if(!l||l.maxOffset{if(l.key===n.key&&l.range.start.hasSameParentAs(n.range.start)){const t=l.range.getDifference(n.range).map(n=>new kr(n,l.key,l.oldValue,l.newValue,0)),o=l.range.getIntersection(n.range);return o&&e.aIsStrong&&t.push(new kr(o,n.key,n.newValue,l.newValue,0)),0==t.length?[new Ir(0)]:t}return[l]}),Br(kr,Er,(l,n)=>{if(l.range.start.hasSameParentAs(n.position)&&l.range.containsPosition(n.position)){const e=l.range._getTransformedByInsertion(n.position,n.howMany,!n.shouldReceiveAttributes).map(n=>new kr(n,l.key,l.oldValue,l.newValue,l.baseVersion));if(n.shouldReceiveAttributes){const t=Yr(n,l.key,l.oldValue);t&&e.unshift(t)}return e}return l.range=l.range._getTransformedByInsertion(n.position,n.howMany,!1)[0],[l]}),Br(kr,Dr,(l,n)=>{const e=[];l.range.start.hasSameParentAs(n.deletionPosition)&&(l.range.containsPosition(n.deletionPosition)||l.range.start.isEqual(n.deletionPosition))&&e.push(ia._createFromPositionAndShift(n.graveyardPosition,1));const t=l.range._getTransformedByMergeOperation(n);return t.isCollapsed||e.push(t),e.map(n=>new kr(n,l.key,l.oldValue,l.newValue,l.baseVersion))}),Br(kr,Mr,(l,n)=>{return function(l,n){const e=ia._createFromPositionAndShift(n.sourcePosition,n.howMany);let t=null,o=[];e.containsRange(l,!0)?t=l:l.start.hasSameParentAs(e.start)?(o=l.getDifference(e),t=l.getIntersection(e)):o=[l];const u=[];for(let i of o){i=i._getTransformedByDeletion(n.sourcePosition,n.howMany);const l=n.getMovedRangeStart(),e=i.start.hasSameParentAs(l),t=i._getTransformedByInsertion(l,n.howMany,e);u.push(...t)}return t&&u.push(t._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany,!1)[0]),u}(l.range,n).map(n=>new kr(n,l.key,l.oldValue,l.newValue,l.baseVersion))}),Br(kr,zr,(l,n)=>{if(l.range.end.isEqual(n.insertionPosition))return n.graveyardPosition||l.range.end.offset++,[l];if(l.range.start.hasSameParentAs(n.splitPosition)&&l.range.containsPosition(n.splitPosition)){const e=l.clone();return e.range=new ia(n.moveTargetPosition.clone(),l.range.end._getCombined(n.splitPosition,n.moveTargetPosition)),l.range.end=n.splitPosition.clone(),l.range.end.stickiness="toPrevious",[l,e]}return l.range=l.range._getTransformedBySplitOperation(n),[l]}),Br(Er,kr,(l,n)=>{const e=[l];if(l.shouldReceiveAttributes&&l.position.hasSameParentAs(n.range.start)&&n.range.containsPosition(l.position)){const t=Yr(l,n.key,n.newValue);t&&e.push(t)}return e}),Br(Er,Er,(l,n,e)=>(l.position.isEqual(n.position)&&e.aIsStrong||(l.position=l.position._getTransformedByInsertOperation(n)),[l])),Br(Er,Mr,(l,n)=>(l.position=l.position._getTransformedByMoveOperation(n),[l])),Br(Er,zr,(l,n)=>(l.position=l.position._getTransformedBySplitOperation(n),[l])),Br(Er,Dr,(l,n)=>(l.position=l.position._getTransformedByMergeOperation(n),[l])),Br(Or,Er,(l,n)=>(l.oldRange&&(l.oldRange=l.oldRange._getTransformedByInsertOperation(n)[0]),l.newRange&&(l.newRange=l.newRange._getTransformedByInsertOperation(n)[0]),[l])),Br(Or,Or,(l,n,e)=>{if(l.name==n.name){if(!e.aIsStrong)return[new Ir(0)];l.oldRange=n.newRange?n.newRange.clone():null}return[l]}),Br(Or,Dr,(l,n)=>(l.oldRange&&(l.oldRange=l.oldRange._getTransformedByMergeOperation(n)),l.newRange&&(l.newRange=l.newRange._getTransformedByMergeOperation(n)),[l])),Br(Or,Mr,(l,n,e)=>{if(l.oldRange&&(l.oldRange=ia._createFromRanges(l.oldRange._getTransformedByMoveOperation(n))),l.newRange){if(e.abRelation){const t=ia._createFromRanges(l.newRange._getTransformedByMoveOperation(n));if("left"==e.abRelation.side&&n.targetPosition.isEqual(l.newRange.start))return l.newRange.end=t.end,l.newRange.start.path=e.abRelation.path,[l];if("right"==e.abRelation.side&&n.targetPosition.isEqual(l.newRange.end))return l.newRange.start=t.start,l.newRange.end.path=e.abRelation.path,[l]}l.newRange=ia._createFromRanges(l.newRange._getTransformedByMoveOperation(n))}return[l]}),Br(Or,zr,(l,n,e)=>{if(l.oldRange&&(l.oldRange=l.oldRange._getTransformedBySplitOperation(n)),l.newRange){if(e.abRelation){const t=l.newRange._getTransformedBySplitOperation(n);return l.newRange.start.isEqual(n.splitPosition)&&e.abRelation.wasStartBeforeMergedElement?l.newRange.start=la._createAt(n.insertionPosition):l.newRange.start.isEqual(n.splitPosition)&&!e.abRelation.wasInLeftElement&&(l.newRange.start=la._createAt(n.moveTargetPosition)),l.newRange.end.isEqual(n.splitPosition)&&e.abRelation.wasInRightElement?l.newRange.end=la._createAt(n.moveTargetPosition):l.newRange.end.isEqual(n.splitPosition)&&e.abRelation.wasEndBeforeMergedElement?l.newRange.end=la._createAt(n.insertionPosition):l.newRange.end=t.end,[l]}l.newRange=l.newRange._getTransformedBySplitOperation(n)}return[l]}),Br(Dr,Er,(l,n)=>(l.sourcePosition.hasSameParentAs(n.position)&&(l.howMany+=n.howMany),l.sourcePosition=l.sourcePosition._getTransformedByInsertOperation(n),l.targetPosition=l.targetPosition._getTransformedByInsertOperation(n),[l])),Br(Dr,Dr,(l,n,e)=>{if(l.sourcePosition.isEqual(n.sourcePosition)&&l.targetPosition.isEqual(n.targetPosition)){if(e.bWasUndone){const e=n.graveyardPosition.path.slice();return e.push(0),l.sourcePosition=new la(n.graveyardPosition.root,e),l.howMany=0,[l]}return[new Ir(0)]}if(l.sourcePosition.isEqual(n.sourcePosition)&&!l.targetPosition.isEqual(n.targetPosition)&&!e.bWasUndone&&"splitAtSource"!=e.abRelation){const t="$graveyard"==l.targetPosition.root.rootName,o="$graveyard"==n.targetPosition.root.rootName;if(o&&!t||(!t||o)&&e.aIsStrong){const e=n.targetPosition._getTransformedByMergeOperation(n),t=l.targetPosition._getTransformedByMergeOperation(n);return[new Mr(e,l.howMany,t,0)]}return[new Ir(0)]}return l.sourcePosition.hasSameParentAs(n.targetPosition)&&(l.howMany+=n.howMany),l.sourcePosition=l.sourcePosition._getTransformedByMergeOperation(n),l.targetPosition=l.targetPosition._getTransformedByMergeOperation(n),l.graveyardPosition.isEqual(n.graveyardPosition)&&e.aIsStrong||(l.graveyardPosition=l.graveyardPosition._getTransformedByMergeOperation(n)),[l]}),Br(Dr,Mr,(l,n,e)=>{const t=ia._createFromPositionAndShift(n.sourcePosition,n.howMany);return"remove"==n.type&&!e.bWasUndone&&!e.forceWeakRemove&&l.deletionPosition.hasSameParentAs(n.sourcePosition)&&t.containsPosition(l.sourcePosition)?[new Ir(0)]:(l.sourcePosition.hasSameParentAs(n.targetPosition)&&(l.howMany+=n.howMany),l.sourcePosition.hasSameParentAs(n.sourcePosition)&&(l.howMany-=n.howMany),l.sourcePosition=l.sourcePosition._getTransformedByMoveOperation(n),l.targetPosition=l.targetPosition._getTransformedByMoveOperation(n),l.graveyardPosition.isEqual(n.targetPosition)||(l.graveyardPosition=l.graveyardPosition._getTransformedByMoveOperation(n)),[l])}),Br(Dr,zr,(l,n,e)=>{if(n.graveyardPosition&&(l.graveyardPosition=l.graveyardPosition._getTransformedByDeletion(n.graveyardPosition,1),l.deletionPosition.isEqual(n.graveyardPosition)&&(l.howMany=n.howMany)),l.targetPosition.isEqual(n.splitPosition)){const t=0!=n.howMany,o=n.graveyardPosition&&l.deletionPosition.isEqual(n.graveyardPosition);if(t||o||"mergeTargetNotMoved"==e.abRelation)return l.sourcePosition=l.sourcePosition._getTransformedBySplitOperation(n),[l]}if(l.sourcePosition.isEqual(n.splitPosition)){if("mergeSourceNotMoved"==e.abRelation)return l.howMany=0,l.targetPosition=l.targetPosition._getTransformedBySplitOperation(n),[l];if("mergeSameElement"==e.abRelation||l.sourcePosition.offset>0)return l.sourcePosition=n.moveTargetPosition.clone(),l.targetPosition=l.targetPosition._getTransformedBySplitOperation(n),[l]}return l.sourcePosition.hasSameParentAs(n.splitPosition)&&(l.howMany=n.splitPosition.offset),l.sourcePosition=l.sourcePosition._getTransformedBySplitOperation(n),l.targetPosition=l.targetPosition._getTransformedBySplitOperation(n),[l]}),Br(Mr,Er,(l,n)=>{const e=ia._createFromPositionAndShift(l.sourcePosition,l.howMany)._getTransformedByInsertOperation(n,!1)[0];return l.sourcePosition=e.start,l.howMany=e.end.offset-e.start.offset,l.targetPosition.isEqual(n.position)||(l.targetPosition=l.targetPosition._getTransformedByInsertOperation(n)),[l]}),Br(Mr,Mr,(l,n,e)=>{const t=ia._createFromPositionAndShift(l.sourcePosition,l.howMany),o=ia._createFromPositionAndShift(n.sourcePosition,n.howMany);let u,i=e.aIsStrong,a=!e.aIsStrong;if("insertBefore"==e.abRelation||"insertAfter"==e.baRelation?a=!0:"insertAfter"!=e.abRelation&&"insertBefore"!=e.baRelation||(a=!1),u=l.targetPosition.isEqual(n.targetPosition)&&a?l.targetPosition._getTransformedByDeletion(n.sourcePosition,n.howMany):l.targetPosition._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),Zr(l,n)&&Zr(n,l))return[n.getReversed()];if(t.containsPosition(n.targetPosition)&&t.containsRange(o,!0))return t.start=t.start._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),t.end=t.end._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),Xr([t],u);if(o.containsPosition(l.targetPosition)&&o.containsRange(t,!0))return t.start=t.start._getCombined(n.sourcePosition,n.getMovedRangeStart()),t.end=t.end._getCombined(n.sourcePosition,n.getMovedRangeStart()),Xr([t],u);const r=$(l.sourcePosition.getParentPath(),n.sourcePosition.getParentPath());if("prefix"==r||"extension"==r)return t.start=t.start._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),t.end=t.end._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany),Xr([t],u);"remove"!=l.type||"remove"==n.type||e.aWasUndone||e.forceWeakRemove?"remove"==l.type||"remove"!=n.type||e.bWasUndone||e.forceWeakRemove||(i=!1):i=!0;const s=[],d=t.getDifference(o);for(const p of d){p.start=p.start._getTransformedByDeletion(n.sourcePosition,n.howMany),p.end=p.end._getTransformedByDeletion(n.sourcePosition,n.howMany);const l="same"==$(p.start.getParentPath(),n.getMovedRangeStart().getParentPath()),e=p._getTransformedByInsertion(n.getMovedRangeStart(),n.howMany,l);s.push(...e)}const c=t.getIntersection(o);return null!==c&&i&&(c.start=c.start._getCombined(n.sourcePosition,n.getMovedRangeStart()),c.end=c.end._getCombined(n.sourcePosition,n.getMovedRangeStart()),0===s.length?s.push(c):1==s.length?o.start.isBefore(t.start)||o.start.isEqual(t.start)?s.unshift(c):s.push(c):s.splice(1,0,c)),0===s.length?[new Ir(l.baseVersion)]:Xr(s,u)}),Br(Mr,zr,(l,n,e)=>{let t=l.targetPosition.clone();l.targetPosition.isEqual(n.insertionPosition)&&n.graveyardPosition&&"moveTargetAfter"!=e.abRelation||(t=l.targetPosition._getTransformedBySplitOperation(n));const o=ia._createFromPositionAndShift(l.sourcePosition,l.howMany);if(o.end.isEqual(n.insertionPosition))return n.graveyardPosition||l.howMany++,l.targetPosition=t,[l];if(o.start.hasSameParentAs(n.splitPosition)&&o.containsPosition(n.splitPosition)){let l=new ia(n.splitPosition,o.end);return l=l._getTransformedBySplitOperation(n),Xr([new ia(o.start,n.splitPosition),l],t)}l.targetPosition.isEqual(n.splitPosition)&&"insertAtSource"==e.abRelation&&(t=n.moveTargetPosition),l.targetPosition.isEqual(n.insertionPosition)&&"insertBetween"==e.abRelation&&(t=l.targetPosition);const u=[o._getTransformedBySplitOperation(n)];if(n.graveyardPosition){const t=o.start.isEqual(n.graveyardPosition)||o.containsPosition(n.graveyardPosition);l.howMany>1&&t&&!e.aWasUndone&&u.push(ia._createFromPositionAndShift(n.insertionPosition,1))}return Xr(u,t)}),Br(Mr,Dr,(l,n,e)=>{const t=ia._createFromPositionAndShift(l.sourcePosition,l.howMany);if(n.deletionPosition.hasSameParentAs(l.sourcePosition)&&t.containsPosition(n.sourcePosition))if("remove"!=l.type||e.forceWeakRemove){if(1==l.howMany)return e.bWasUndone?(l.sourcePosition=n.graveyardPosition.clone(),l.targetPosition=l.targetPosition._getTransformedByMergeOperation(n),[l]):[new Ir(0)]}else if(!e.aWasUndone){const e=[];let t=n.graveyardPosition.clone(),o=n.targetPosition._getTransformedByMergeOperation(n);l.howMany>1&&(e.push(new Mr(l.sourcePosition,l.howMany-1,l.targetPosition,0)),t=t._getTransformedByMove(l.sourcePosition,l.targetPosition,l.howMany-1),o=o._getTransformedByMove(l.sourcePosition,l.targetPosition,l.howMany-1));const u=n.deletionPosition._getCombined(l.sourcePosition,l.targetPosition),i=new Mr(t,1,u,0),a=i.getMovedRangeStart().path.slice();a.push(0);const r=new la(i.targetPosition.root,a);o=o._getTransformedByMove(t,u,1);const s=new Mr(o,n.howMany,r,0);return e.push(i),e.push(s),e}const o=ia._createFromPositionAndShift(l.sourcePosition,l.howMany)._getTransformedByMergeOperation(n);return l.sourcePosition=o.start,l.howMany=o.end.offset-o.start.offset,l.targetPosition=l.targetPosition._getTransformedByMergeOperation(n),[l]}),Br(Fr,Er,(l,n)=>(l.position=l.position._getTransformedByInsertOperation(n),[l])),Br(Fr,Dr,(l,n)=>l.position.isEqual(n.deletionPosition)?(l.position=n.graveyardPosition.clone(),l.position.stickiness="toNext",[l]):(l.position=l.position._getTransformedByMergeOperation(n),[l])),Br(Fr,Mr,(l,n)=>(l.position=l.position._getTransformedByMoveOperation(n),[l])),Br(Fr,Fr,(l,n,e)=>{if(l.position.isEqual(n.position)){if(!e.aIsStrong)return[new Ir(0)];l.oldName=n.newName}return[l]}),Br(Fr,zr,(l,n)=>{if("same"==$(l.position.path,n.splitPosition.getParentPath())&&!n.graveyardPosition){const n=new Fr(l.position.getShiftedBy(1),l.oldName,l.newName,0);return[l,n]}return l.position=l.position._getTransformedBySplitOperation(n),[l]}),Br(Nr,Nr,(l,n,e)=>{if(l.root===n.root&&l.key===n.key){if(!e.aIsStrong||l.newValue===n.newValue)return[new Ir(0)];l.oldValue=n.newValue}return[l]}),Br(zr,Er,(l,n)=>(l.splitPosition.hasSameParentAs(n.position)&&l.splitPosition.offset{if(!l.graveyardPosition&&!e.bWasUndone&&l.splitPosition.hasSameParentAs(n.sourcePosition)){const e=n.graveyardPosition.path.slice();e.push(0);const t=new la(n.graveyardPosition.root,e),o=zr.getInsertionPosition(new la(n.graveyardPosition.root,e)),u=new zr(t,0,o,null,0);return l.splitPosition=l.splitPosition._getTransformedByMergeOperation(n),l.insertionPosition=zr.getInsertionPosition(l.splitPosition),l.graveyardPosition=u.insertionPosition.clone(),l.graveyardPosition.stickiness="toNext",[u,l]}return l.splitPosition.hasSameParentAs(n.deletionPosition)&&!l.splitPosition.isAfter(n.deletionPosition)&&l.howMany--,l.splitPosition.hasSameParentAs(n.targetPosition)&&(l.howMany+=n.howMany),l.splitPosition=l.splitPosition._getTransformedByMergeOperation(n),l.insertionPosition=zr.getInsertionPosition(l.splitPosition),l.graveyardPosition&&(l.graveyardPosition=l.graveyardPosition._getTransformedByMergeOperation(n)),[l]}),Br(zr,Mr,(l,n,e)=>{const t=ia._createFromPositionAndShift(n.sourcePosition,n.howMany);if(l.graveyardPosition){const o=t.start.isEqual(l.graveyardPosition)||t.containsPosition(l.graveyardPosition);if(!e.bWasUndone&&o){const e=l.splitPosition._getTransformedByMoveOperation(n),t=l.graveyardPosition._getTransformedByMoveOperation(n),o=t.path.slice();o.push(0);const u=new la(t.root,o);return[new Mr(e,l.howMany,u,0)]}l.graveyardPosition=l.graveyardPosition._getTransformedByMoveOperation(n)}const o=l.splitPosition.isEqual(n.targetPosition);if(o&&("insertAtSource"==e.baRelation||"splitBefore"==e.abRelation))return l.howMany+=n.howMany,l.splitPosition=l.splitPosition._getTransformedByDeletion(n.sourcePosition,n.howMany),l.insertionPosition=zr.getInsertionPosition(l.splitPosition),[l];if(o&&e.abRelation&&e.abRelation.howMany){const{howMany:n,offset:t}=e.abRelation;return l.howMany+=n,l.splitPosition=l.splitPosition.getShiftedBy(t),[l]}if(l.splitPosition.hasSameParentAs(n.sourcePosition)&&t.containsPosition(l.splitPosition)){const e=n.howMany-(l.splitPosition.offset-n.sourcePosition.offset);return l.howMany-=e,l.splitPosition.hasSameParentAs(n.targetPosition)&&l.splitPosition.offset{if(l.splitPosition.isEqual(n.splitPosition)){if(!l.graveyardPosition&&!n.graveyardPosition)return[new Ir(0)];if(l.graveyardPosition&&n.graveyardPosition&&l.graveyardPosition.isEqual(n.graveyardPosition))return[new Ir(0)];if("splitBefore"==e.abRelation)return l.howMany=0,l.graveyardPosition=l.graveyardPosition._getTransformedBySplitOperation(n),[l]}if(l.graveyardPosition&&n.graveyardPosition&&l.graveyardPosition.isEqual(n.graveyardPosition)){const t="$graveyard"==l.splitPosition.root.rootName,o="$graveyard"==n.splitPosition.root.rootName;if(o&&!t||(!t||o)&&e.aIsStrong){const e=[];return n.howMany&&e.push(new Mr(n.moveTargetPosition,n.howMany,n.splitPosition,0)),l.howMany&&e.push(new Mr(l.splitPosition,l.howMany,l.moveTargetPosition,0)),e}return[new Ir(0)]}if(l.graveyardPosition&&(l.graveyardPosition=l.graveyardPosition._getTransformedBySplitOperation(n)),l.splitPosition.isEqual(n.insertionPosition)&&"splitBefore"==e.abRelation)return l.howMany++,[l];if(n.splitPosition.isEqual(l.insertionPosition)&&"splitBefore"==e.baRelation){const e=n.insertionPosition.path.slice();e.push(0);const t=new la(n.insertionPosition.root,e);return[l,new Mr(l.insertionPosition,1,t,0)]}return l.splitPosition.hasSameParentAs(n.splitPosition)&&l.splitPosition.offset{const e=n[0];e.isDocumentOperation&&(function(l){const n=this.getTransformedByOperation(l);if(!this.isEqual(n)){const l=this.toPosition();this.path=n.path,this.root=n.root,this.fire("change",l)}}).call(this,e)},{priority:"low"})}).call(this)}detach(){this.stopListening()}toPosition(){return new la(this.root,this.path.slice(),this.stickiness)}static fromPosition(l,n){return new this(l.root,l.path.slice(),n||l.stickiness)}}$r.prototype.is=function(l){return"livePosition"===l||"model:livePosition"===l||"position"==l||"model:position"===l};class Kr{constructor(l={}){"string"==typeof l&&(l="transparent"===l?{isUndoable:!1}:{},y("batch-constructor-deprecated-string-type"));const{isUndoable:n=!0,isLocal:e=!0,isUndo:t=!1,isTyping:o=!1}=l;this.operations=[],this.isUndoable=n,this.isLocal=e,this.isUndo=t,this.isTyping=o}get type(){return y("batch-type-deprecated"),"default"}get baseVersion(){for(const l of this.operations)if(null!==l.baseVersion)return l.baseVersion;return null}addOperation(l){return l.batch=this,this.operations.push(l),l}}class Qr{constructor(l){this._markerCollection=l,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}bufferOperation(l){const n=l;switch(n.type){case"insert":if(this._isInInsertedElement(n.position.parent))return;this._markInsert(n.position.parent,n.position.offset,n.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const l of n.range.getItems({shallow:!0}))this._isInInsertedElement(l.parent)||this._markAttribute(l);break;case"remove":case"move":case"reinsert":{if(n.sourcePosition.isEqual(n.targetPosition)||n.sourcePosition.getShiftedBy(n.howMany).isEqual(n.targetPosition))return;const l=this._isInInsertedElement(n.sourcePosition.parent),e=this._isInInsertedElement(n.targetPosition.parent);l||this._markRemove(n.sourcePosition.parent,n.sourcePosition.offset,n.howMany),e||this._markInsert(n.targetPosition.parent,n.getMovedRangeStart().offset,n.howMany);break}case"rename":{if(this._isInInsertedElement(n.position.parent))return;this._markRemove(n.position.parent,n.position.offset,1),this._markInsert(n.position.parent,n.position.offset,1);const l=ia._createFromPositionAndShift(n.position,1);for(const n of this._markerCollection.getMarkersIntersectingRange(l)){const l=n.getData();this.bufferMarkerChange(n.name,l,l)}break}case"split":{const l=n.splitPosition.parent;this._isInInsertedElement(l)||this._markRemove(l,n.splitPosition.offset,n.howMany),this._isInInsertedElement(n.insertionPosition.parent)||this._markInsert(n.insertionPosition.parent,n.insertionPosition.offset,1),n.graveyardPosition&&this._markRemove(n.graveyardPosition.parent,n.graveyardPosition.offset,1);break}case"merge":{const l=n.sourcePosition.parent;this._isInInsertedElement(l.parent)||this._markRemove(l.parent,l.startOffset,1);const e=n.graveyardPosition.parent;this._markInsert(e,n.graveyardPosition.offset,1);const t=n.targetPosition.parent;this._isInInsertedElement(t)||this._markInsert(t,n.targetPosition.offset,l.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(l,n,e){const t=this._changedMarkers.get(l);t?(t.newMarkerData=e,null==t.oldMarkerData.range&&null==e.range&&this._changedMarkers.delete(l)):this._changedMarkers.set(l,{newMarkerData:e,oldMarkerData:n})}getMarkersToRemove(){const l=[];for(const[n,e]of this._changedMarkers)null!=e.oldMarkerData.range&&l.push({name:n,range:e.oldMarkerData.range});return l}getMarkersToAdd(){const l=[];for(const[n,e]of this._changedMarkers)null!=e.newMarkerData.range&&l.push({name:n,range:e.newMarkerData.range});return l}getChangedMarkers(){return Array.from(this._changedMarkers).map(([l,n])=>({name:l,data:{oldRange:n.oldMarkerData.range,newRange:n.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0)return!0;for(const{newMarkerData:l,oldMarkerData:n}of this._changedMarkers.values()){if(l.affectsData!==n.affectsData)return!0;if(l.affectsData){const e=l.range&&!n.range,t=!l.range&&n.range,o=l.range&&n.range&&!l.range.isEqual(n.range);if(e||t||o)return!0}}return!1}getChanges(l={}){if(this._cachedChanges)return l.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let n=[];for(const e of this._changesInElement.keys()){const l=this._changesInElement.get(e).sort((l,n)=>l.offset===n.offset?l.type!=n.type?"remove"==l.type?-1:1:0:l.offsetl.position.root!=n.position.root?l.position.root.rootNamel);for(const e of n)delete e.changeCount,"attribute"==e.type&&(delete e.position,delete e.length);return this._changeCount=0,this._cachedChangesWithGraveyard=n,this._cachedChanges=n.filter(ns),l.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_refreshItem(l){if(this._isInInsertedElement(l.parent))return;this._markRemove(l.parent,l.startOffset,l.offsetSize),this._markInsert(l.parent,l.startOffset,l.offsetSize),this._refreshedItems.add(l);const n=ia._createOn(l);for(const e of this._markerCollection.getMarkersIntersectingRange(n)){const l=e.getData();this.bufferMarkerChange(e.name,l,l)}this._cachedChanges=null}_markInsert(l,n,e){const t={type:"insert",offset:n,howMany:e,count:this._changeCount++};this._markChange(l,t)}_markRemove(l,n,e){const t={type:"remove",offset:n,howMany:e,count:this._changeCount++};this._markChange(l,t),this._removeAllNestedChanges(l,n,e)}_markAttribute(l){const n={type:"attribute",offset:l.startOffset,howMany:l.offsetSize,count:this._changeCount++};this._markChange(l.parent,n)}_markChange(l,n){this._makeSnapshot(l);const e=this._getChangesForElement(l);this._handleChange(n,e),e.push(n);for(let t=0;te.offset){if(t>o){const l={type:"attribute",offset:o,howMany:t-o,count:this._changeCount++};this._handleChange(l,n),n.push(l)}l.nodesToHandle=e.offset-l.offset,l.howMany=l.nodesToHandle}else l.offset>=e.offset&&l.offseto?(l.nodesToHandle=t-o,l.offset=o):l.nodesToHandle=0);if("remove"==e.type&&l.offsete.offset){const o={type:"attribute",offset:e.offset,howMany:t-e.offset,count:this._changeCount++};this._handleChange(o,n),n.push(o),l.nodesToHandle=e.offset-l.offset,l.howMany=l.nodesToHandle}"attribute"==e.type&&(l.offset>=e.offset&&t<=o?(l.nodesToHandle=0,l.howMany=0,l.offset=0):l.offset<=e.offset&&t>=o&&(e.howMany=0))}}l.howMany=l.nodesToHandle,delete l.nodesToHandle}_getInsertDiff(l,n,e){return{type:"insert",position:la._createAt(l,n),name:e.name,attributes:new Map(e.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(l,n,e){return{type:"remove",position:la._createAt(l,n),name:e.name,attributes:new Map(e.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(l,n,e){const t=[];e=new Map(e);for(const[o,u]of n){const n=e.has(o)?e.get(o):null;n!==u&&t.push({type:"attribute",position:l.start,range:l.clone(),length:1,attributeKey:o,attributeOldValue:u,attributeNewValue:n,changeCount:this._changeCount++}),e.delete(o)}for(const[o,u]of e)t.push({type:"attribute",position:l.start,range:l.clone(),length:1,attributeKey:o,attributeOldValue:null,attributeNewValue:u,changeCount:this._changeCount++});return t}_isInInsertedElement(l){const n=l.parent;if(!n)return!1;const e=this._changesInElement.get(n),t=l.startOffset;if(e)for(const o of e)if("insert"==o.type&&t>=o.offset&&tt){for(let l=0;lthis._version+1&&this._gaps.set(this._version,l),this._version=l}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(l){if(l.baseVersion!==this.version)throw new b("model-document-history-addoperation-incorrect-version",this,{operation:l,historyVersion:this.version});this._operations.push(l),this._version++,this._baseVersionToOperationIndex.set(l.baseVersion,this._operations.length-1)}getOperations(l,n=this.version){if(!this._operations.length)return[];const e=this._operations[0];void 0===l&&(l=e.baseVersion);let t=n-1;for(const[i,a]of this._gaps)l>i&&li&&tthis.lastOperation.baseVersion)return[];let o=this._baseVersionToOperationIndex.get(l);void 0===o&&(o=0);let u=this._baseVersionToOperationIndex.get(t);return void 0===u&&(u=this._operations.length-1),this._operations.slice(o,u+1)}getOperation(l){const n=this._baseVersionToOperationIndex.get(l);if(void 0!==n)return this._operations[n]}setOperationAsUndone(l,n){this._undoPairs.set(n,l),this._undoneOperations.add(l)}isUndoingOperation(l){return this._undoPairs.has(l)}isUndoneOperation(l){return this._undoneOperations.has(l)}getUndoneOperation(l){return this._undoPairs.get(l)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class ts extends Ki{constructor(l,n,e="main"){super(n),this._document=l,this.rootName=e}get document(){return this._document}toJSON(){return this.rootName}}ts.prototype.is=function(l,n){return n?n===this.name&&("rootElement"===l||"model:rootElement"===l||"element"===l||"model:element"===l):"rootElement"===l||"model:rootElement"===l||"element"===l||"model:element"===l||"node"===l||"model:node"===l};const os="$graveyard";class us extends(E()){constructor(l){super(),this.model=l,this.history=new es,this.selection=new xa(this),this.roots=new Et({idProperty:"rootName"}),this.differ=new Qr(l.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",os),this.listenTo(l,"applyOperation",(l,n)=>{const e=n[0];e.isDocumentOperation&&this.differ.bufferOperation(e)},{priority:"high"}),this.listenTo(l,"applyOperation",(l,n)=>{const e=n[0];e.isDocumentOperation&&this.history.addOperation(e)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(l.markers,"update",(l,n,e,t,o)=>{const u={...n.getData(),range:t};this.differ.bufferMarkerChange(n.name,o,u),null===e&&n.on("change",(l,e)=>{const t=n.getData();this.differ.bufferMarkerChange(n.name,{...t,range:e},t)})})}get version(){return this.history.version}set version(l){this.history.version=l}get graveyard(){return this.getRoot(os)}createRoot(l="$root",n="main"){if(this.roots.get(n))throw new b("model-document-createroot-name-exists",this,{name:n});const e=new ts(this,l,n);return this.roots.add(e),e}destroy(){this.selection.destroy(),this.stopListening()}getRoot(l="main"){return this.roots.get(l)}getRootNames(){return Array.from(this.roots,l=>l.rootName).filter(l=>l!=os)}registerPostFixer(l){this._postFixers.add(l)}toJSON(){const l=lo(this);return l.selection="[engine.model.DocumentSelection]",l.model="[engine.model.Model]",l}_handleChangeBlock(l){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(l),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",l.batch):this.fire("change",l.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const l of this.roots)if(l!==this.graveyard)return l;return this.graveyard}_getDefaultRange(){const l=this._getDefaultRoot(),n=this.model,e=n.schema,t=n.createPositionFromPath(l,[0]);return e.getNearestSelectionRange(t)||n.createRange(t)}_validateSelectionRange(l){return is(l.start)&&is(l.end)}_callPostFixers(l){let n=!1;do{for(const e of this._postFixers)if(this.selection.refresh(),n=e(l))break}while(n)}}function is(l){const n=l.textNode;if(n){const e=n.data,t=l.offset-n.startOffset;return!Ft(e,t)&&!Nt(e,t)}return!0}class as extends(E()){constructor(){super(),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(l){const n=l instanceof rs?l.name:l;return this._markers.has(n)}get(l){return this._markers.get(l)||null}_set(l,n,e=!1,t=!1){const o=l instanceof rs?l.name:l;if(o.includes(","))throw new b("markercollection-incorrect-marker-name",this);const u=this._markers.get(o);if(u){const l=u.getData(),i=u.getRange();let a=!1;return i.isEqual(n)||(u._attachLiveRange(ba.fromRange(n)),a=!0),e!=u.managedUsingOperations&&(u._managedUsingOperations=e,a=!0),"boolean"==typeof t&&t!=u.affectsData&&(u._affectsData=t,a=!0),a&&this.fire(`update:${o}`,u,i,n,l),u}const i=ba.fromRange(n),a=new rs(o,i,e,t);return this._markers.set(o,a),this.fire(`update:${o}`,a,null,n,{...a.getData(),range:null}),a}_remove(l){const n=l instanceof rs?l.name:l,e=this._markers.get(n);return!!e&&(this._markers.delete(n),this.fire(`update:${n}`,e,e.getRange(),null,e.getData()),this._destroyMarker(e),!0)}_refresh(l){const n=l instanceof rs?l.name:l,e=this._markers.get(n);if(!e)throw new b("markercollection-refresh-marker-not-exists",this);const t=e.getRange();this.fire(`update:${n}`,e,t,t,e.getData())}*getMarkersAtPosition(l){for(const n of this)n.getRange().containsPosition(l)&&(yield n)}*getMarkersIntersectingRange(l){for(const n of this)null!==n.getRange().getIntersection(l)&&(yield n)}destroy(){for(const l of this._markers.values())this._destroyMarker(l);this._markers=null,this.stopListening()}*getMarkersGroup(l){for(const n of this._markers.values())n.name.startsWith(l+":")&&(yield n)}_destroyMarker(l){l.stopListening(),l._detachLiveRange()}}class rs extends(E(Hi)){constructor(l,n,e,t){super(),this.name=l,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=e,this._affectsData=t}get managedUsingOperations(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(l){return this._liveRange&&this._detachLiveRange(),l.delegate("change:range").to(this),l.delegate("change:content").to(this),this._liveRange=l,l}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}rs.prototype.is=function(l){return"marker"===l||"model:marker"===l};class ss extends yr{constructor(l,n){super(null),this.sourcePosition=l.clone(),this.howMany=n}get type(){return"detach"}toJSON(){const l=super.toJSON();return l.sourcePosition=this.sourcePosition.toJSON(),l}_validate(){if(this.sourcePosition.root.document)throw new b("detach-operation-on-document-node",this)}_execute(){Ar(ia._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class ds extends Hi{constructor(l){super(),this.markers=new Map,this._children=new Zi,l&&this._insertChild(0,l)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}getAncestors(){return[]}getChild(l){return this._children.getNode(l)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(l){return this._children.getNodeIndex(l)}getChildStartOffset(l){return this._children.getNodeStartOffset(l)}getPath(){return[]}getNodeByPath(l){let n=this;for(const e of l)n=n.getChild(n.offsetToIndex(e));return n}offsetToIndex(l){return this._children.offsetToIndex(l)}toJSON(){const l=[];for(const n of this._children)l.push(n.toJSON());return l}static fromJSON(l){const n=[];for(const e of l)e.name?n.push(Ki.fromJSON(e)):n.push(Xi.fromJSON(e));return new ds(n)}_appendChild(l){this._insertChild(this.childCount,l)}_insertChild(l,n){const e=function(l){return"string"==typeof l?[new Xi(l)]:(K(l)||(l=[l]),Array.from(l).map(l=>"string"==typeof l?new Xi(l):l instanceof $i?new Xi(l.data,l.getAttributes()):l))}(n);for(const t of e)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(l,e)}_removeChildren(l,n=1){const e=this._children._removeNodes(l,n);for(const t of e)t.parent=null;return e}}ds.prototype.is=function(l){return"documentFragment"===l||"model:documentFragment"===l};class cs{constructor(l,n){this.model=l,this.batch=n}createText(l,n){return new Xi(l,n)}createElement(l,n){return new Ki(l,n)}createDocumentFragment(){return new ds}cloneElement(l,n=!0){return l._clone(n)}insert(l,n,e=0){if(this._assertWriterUsedCorrectly(),l instanceof Xi&&""==l.data)return;const t=la._createAt(n,e);if(l.parent){if(gs(l.root,t.root))return void this.move(ia._createOn(l),t);if(l.root.document)throw new b("model-writer-insert-forbidden-move",this);this.remove(l)}const o=t.root.document?t.root.document.version:null,u=new Er(t,l,o);if(l instanceof Xi&&(u.shouldReceiveAttributes=!0),this.batch.addOperation(u),this.model.applyOperation(u),l instanceof ds)for(const[i,a]of l.markers){const l=la._createAt(a.root,0),n={range:new ia(a.start._getCombined(l,t),a.end._getCombined(l,t)),usingOperation:!0,affectsData:!0};this.model.markers.has(i)?this.updateMarker(i,n):this.addMarker(i,n)}}insertText(l,n,e,t){n instanceof ds||n instanceof Ki||n instanceof la?this.insert(this.createText(l),n,e):this.insert(this.createText(l,n),e,t)}insertElement(l,n,e,t){n instanceof ds||n instanceof Ki||n instanceof la?this.insert(this.createElement(l),n,e):this.insert(this.createElement(l,n),e,t)}append(l,n){this.insert(l,n,"end")}appendText(l,n,e){n instanceof ds||n instanceof Ki?this.insert(this.createText(l),n,"end"):this.insert(this.createText(l,n),e,"end")}appendElement(l,n,e){n instanceof ds||n instanceof Ki?this.insert(this.createElement(l),n,"end"):this.insert(this.createElement(l,n),e,"end")}setAttribute(l,n,e){if(this._assertWriterUsedCorrectly(),e instanceof ia){const t=e.getMinimalFlatRanges();for(const e of t)ps(this,l,n,e)}else fs(this,l,n,e)}setAttributes(l,n){for(const[e,t]of It(l))this.setAttribute(e,t,n)}removeAttribute(l,n){if(this._assertWriterUsedCorrectly(),n instanceof ia){const e=n.getMinimalFlatRanges();for(const n of e)ps(this,l,null,n)}else fs(this,l,null,n)}clearAttributes(l){this._assertWriterUsedCorrectly();const n=l=>{for(const n of l.getAttributeKeys())this.removeAttribute(n,l)};if(l instanceof ia)for(const e of l.getItems())n(e);else n(l)}move(l,n,e){if(this._assertWriterUsedCorrectly(),!(l instanceof ia))throw new b("writer-move-invalid-range",this);if(!l.isFlat)throw new b("writer-move-range-not-flat",this);const t=la._createAt(n,e);if(t.isEqual(l.start))return;if(this._addOperationForAffectedMarkers("move",l),!gs(l.root,t.root))throw new b("writer-move-different-document",this);const o=l.root.document?l.root.document.version:null,u=new Mr(l.start,l.end.offset-l.start.offset,t,o);this.batch.addOperation(u),this.model.applyOperation(u)}remove(l){this._assertWriterUsedCorrectly();const n=(l instanceof ia?l:ia._createOn(l)).getMinimalFlatRanges().reverse();for(const e of n)this._addOperationForAffectedMarkers("move",e),hs(e.start,e.end.offset-e.start.offset,this.batch,this.model)}merge(l){this._assertWriterUsedCorrectly();const n=l.nodeBefore,e=l.nodeAfter;if(this._addOperationForAffectedMarkers("merge",l),!(n instanceof Ki))throw new b("writer-merge-no-element-before",this);if(!(e instanceof Ki))throw new b("writer-merge-no-element-after",this);l.root.document?this._merge(l):this._mergeDetached(l)}createPositionFromPath(l,n,e){return this.model.createPositionFromPath(l,n,e)}createPositionAt(l,n){return this.model.createPositionAt(l,n)}createPositionAfter(l){return this.model.createPositionAfter(l)}createPositionBefore(l){return this.model.createPositionBefore(l)}createRange(l,n){return this.model.createRange(l,n)}createRangeIn(l){return this.model.createRangeIn(l)}createRangeOn(l){return this.model.createRangeOn(l)}createSelection(...l){return this.model.createSelection(...l)}_mergeDetached(l){const n=l.nodeBefore,e=l.nodeAfter;this.move(ia._createIn(e),la._createAt(n,"end")),this.remove(e)}_merge(l){const n=la._createAt(l.nodeBefore,"end"),e=la._createAt(l.nodeAfter,0),t=l.root.document.graveyard,o=new la(t,[0]),u=l.root.document.version,i=new Dr(e,l.nodeAfter.maxOffset,n,o,u);this.batch.addOperation(i),this.model.applyOperation(i)}rename(l,n){if(this._assertWriterUsedCorrectly(),!(l instanceof Ki))throw new b("writer-rename-not-element-instance",this);const e=l.root.document?l.root.document.version:null,t=new Fr(la._createBefore(l),l.name,n,e);this.batch.addOperation(t),this.model.applyOperation(t)}split(l,n){this._assertWriterUsedCorrectly();let e,t,o=l.parent;if(!o.parent)throw new b("writer-split-element-no-parent",this);if(n||(n=o.parent),!l.parent.getAncestors({includeSelf:!0}).includes(n))throw new b("writer-split-invalid-limit-element",this);do{const n=o.root.document?o.root.document.version:null,u=o.maxOffset-l.offset,i=zr.getInsertionPosition(l),a=new zr(l,u,i,null,n);this.batch.addOperation(a),this.model.applyOperation(a),e||t||(e=o,t=l.parent.nextSibling),o=(l=this.createPositionAfter(l.parent)).parent}while(o!==n);return{position:l,range:new ia(la._createAt(e,"end"),la._createAt(t,0))}}wrap(l,n){if(this._assertWriterUsedCorrectly(),!l.isFlat)throw new b("writer-wrap-range-not-flat",this);const e=n instanceof Ki?n:new Ki(n);if(e.childCount>0)throw new b("writer-wrap-element-not-empty",this);if(null!==e.parent)throw new b("writer-wrap-element-attached",this);this.insert(e,l.start);const t=new ia(l.start.getShiftedBy(1),l.end.getShiftedBy(1));this.move(t,la._createAt(e,0))}unwrap(l){if(this._assertWriterUsedCorrectly(),null===l.parent)throw new b("writer-unwrap-element-no-parent",this);this.move(ia._createIn(l),this.createPositionAfter(l)),this.remove(l)}addMarker(l,n){if(this._assertWriterUsedCorrectly(),!n||"boolean"!=typeof n.usingOperation)throw new b("writer-addmarker-no-usingoperation",this);const e=n.usingOperation,t=n.range,o=void 0!==n.affectsData&&n.affectsData;if(this.model.markers.has(l))throw new b("writer-addmarker-marker-exists",this);if(!t)throw new b("writer-addmarker-no-range",this);return e?(ms(this,l,null,t,o),this.model.markers.get(l)):this.model.markers._set(l,t,e,o)}updateMarker(l,n){this._assertWriterUsedCorrectly();const e="string"==typeof l?l:l.name,t=this.model.markers.get(e);if(!t)throw new b("writer-updatemarker-marker-not-exists",this);if(!n)return y("writer-updatemarker-reconvert-using-editingcontroller",{markerName:e}),void this.model.markers._refresh(t);const o="boolean"==typeof n.usingOperation,u="boolean"==typeof n.affectsData,i=u?n.affectsData:t.affectsData;if(!o&&!n.range&&!u)throw new b("writer-updatemarker-wrong-options",this);const a=t.getRange(),r=n.range?n.range:a;o&&n.usingOperation!==t.managedUsingOperations?n.usingOperation?ms(this,e,null,r,i):(ms(this,e,a,null,i),this.model.markers._set(e,r,void 0,i)):t.managedUsingOperations?ms(this,e,a,r,i):this.model.markers._set(e,r,void 0,i)}removeMarker(l){this._assertWriterUsedCorrectly();const n="string"==typeof l?l:l.name;if(!this.model.markers.has(n))throw new b("writer-removemarker-no-marker",this);const e=this.model.markers.get(n);e.managedUsingOperations?ms(this,n,e.getRange(),null,e.affectsData):this.model.markers._remove(n)}setSelection(...l){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...l)}setSelectionFocus(l,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(l,n)}setSelectionAttribute(l,n){if(this._assertWriterUsedCorrectly(),"string"==typeof l)this._setSelectionAttribute(l,n);else for(const[e,t]of It(l))this._setSelectionAttribute(e,t)}removeSelectionAttribute(l){if(this._assertWriterUsedCorrectly(),"string"==typeof l)this._removeSelectionAttribute(l);else for(const n of l)this._removeSelectionAttribute(n)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(l){this.model.document.selection._restoreGravity(l)}_setSelectionAttribute(l,n){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const t=xa._getStoreAttributeKey(l);this.setAttribute(t,n,e.anchor.parent)}e._setAttribute(l,n)}_removeSelectionAttribute(l){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const e=xa._getStoreAttributeKey(l);this.removeAttribute(e,n.anchor.parent)}n._removeAttribute(l)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new b("writer-incorrect-use",this)}_addOperationForAffectedMarkers(l,n){for(const e of this.model.markers){if(!e.managedUsingOperations)continue;const t=e.getRange();let o=!1;if("move"===l){const l=n;o=l.containsPosition(t.start)||l.start.isEqual(t.start)||l.containsPosition(t.end)||l.end.isEqual(t.end)}else{const l=n,e=l.nodeBefore,u=l.nodeAfter,i=t.start.parent==e&&t.start.isAtEnd,a=t.end.parent==u&&0==t.end.offset,r=t.end.nodeAfter==u,s=t.start.nodeAfter==u;o=i||a||r||s}o&&this.updateMarker(e.name,{range:t})}}}function ps(l,n,e,t){const o=l.model,u=o.document;let i,a,r,s=t.start;for(const c of t.getWalker({shallow:!0}))r=c.item.getAttribute(n),i&&a!=r&&(a!=e&&d(),s=i),i=c.nextPosition,a=r;function d(){const t=new ia(s,i),r=t.root.document?u.version:null,d=new kr(t,n,a,e,r);l.batch.addOperation(d),o.applyOperation(d)}i instanceof la&&i!=s&&a!=e&&d()}function fs(l,n,e,t){const o=l.model,u=o.document,i=t.getAttribute(n);let a,r;if(i!=e){if(t.root===t){const l=t.document?u.version:null;r=new Nr(t,n,i,e,l)}else{const o=(a=new ia(la._createBefore(t),l.createPositionAfter(t))).root.document?u.version:null;r=new kr(a,n,i,e,o)}l.batch.addOperation(r),o.applyOperation(r)}}function ms(l,n,e,t,o){const u=l.model,i=u.document,a=new Or(n,e,t,u.markers,!!o,i.version);l.batch.addOperation(a),u.applyOperation(a)}function hs(l,n,e,t){let o;if(l.root.document){const e=t.document,u=new la(e.graveyard,[0]);o=new Mr(l,n,u,e.version)}else o=new ss(l,n);e.addOperation(o),t.applyOperation(o)}function gs(l,n){return l===n||l instanceof ts&&n instanceof ts}function vs(l,n){return l.isCollapsed?function(l,n){const e=l.start,t=n.getNearestSelectionRange(e);if(!t){const l=e.getAncestors().reverse().find(l=>n.isObject(l));return l?ia._createOn(l):null}if(!t.isCollapsed)return t;const o=t.start;return e.isEqual(o)?null:new ia(o)}(l,n):function(l,n){const{start:e,end:t}=l,o=n.checkChild(e,"$text"),u=n.checkChild(t,"$text"),i=n.getLimitElement(e),a=n.getLimitElement(t);if(i===a){if(o&&u)return null;if(function(l,n,e){const t=l.nodeAfter&&!e.isLimit(l.nodeAfter)||e.checkChild(l,"$text"),o=n.nodeBefore&&!e.isLimit(n.nodeBefore)||e.checkChild(n,"$text");return t||o}(e,t,n)){const l=e.nodeAfter&&n.isSelectable(e.nodeAfter)?null:n.getNearestSelectionRange(e,"forward"),o=t.nodeBefore&&n.isSelectable(t.nodeBefore)?null:n.getNearestSelectionRange(t,"backward"),u=l?l.start:e,i=o?o.end:t;return new ia(u,i)}}const r=i&&!i.is("rootElement"),s=a&&!a.is("rootElement");if(r||s){const l=e.nodeAfter&&t.nodeBefore&&e.nodeAfter.parent===t.nodeBefore.parent,o=r&&(!l||!ys(e.nodeAfter,n)),u=s&&(!l||!ys(t.nodeBefore,n));let d=e,c=t;return o&&(d=la._createBefore(bs(i,n))),u&&(c=la._createAfter(bs(a,n))),new ia(d,c)}return null}(l,n)}function bs(l,n){let e=l,t=e;for(;n.isLimit(t)&&t.parent;)e=t,t=t.parent;return e}function ys(l,n){return l&&n.isSelectable(l)}function xs(l,n,e={}){if(n.isCollapsed)return;const t=n.getFirstRange();if("$graveyard"==t.root.rootName)return;const o=l.schema;l.change(l=>{if(!e.doNotResetEntireContent&&function(l,n){const e=l.getLimitElement(n);if(!n.containsEntireContent(e))return!1;const t=n.getFirstRange();return t.start.parent!=t.end.parent&&l.checkChild(e,"paragraph")}(o,n))return void function(l,n){const e=l.model.schema.getLimitElement(n);l.remove(l.createRangeIn(e)),_s(l,l.createPositionAt(e,0),n)}(l,n);const u={};if(!e.doNotAutoparagraph){const l=n.getSelectedElement();l&&Object.assign(u,o.getAttributesWithProperty(l,"copyOnReplace",!0))}const[i,a]=function(l){const n=l.root.document.model,e=l.start;let t=l.end;if(n.hasContent(l,{ignoreMarkers:!0})){const e=function(l){const n=l.parent,e=n.root.document.model.schema,t=n.getAncestors({parentFirst:!0,includeSelf:!0});for(const o of t){if(e.isLimit(o))return null;if(e.isBlock(o))return o}}(t);if(e&&t.isTouching(n.createPositionAt(e,0))){const e=n.createSelection(l);n.modifySelection(e,{direction:"backward"});const o=e.getLastPosition(),u=n.createRange(o,t);n.hasContent(u,{ignoreMarkers:!0})||(t=o)}}return[$r.fromPosition(e,"toPrevious"),$r.fromPosition(t,"toNext")]}(t);i.isTouching(a)||l.remove(l.createRange(i,a)),e.leaveUnmerged||(function(l,n,e){const t=l.model;if(!As(l.model.schema,n,e))return;const[o,u]=function(l,n){const e=l.getAncestors(),t=n.getAncestors();let o=0;for(;e[o]&&e[o]==t[o];)o++;return[e[o],t[o]]}(n,e);o&&u&&(!t.hasContent(o,{ignoreMarkers:!0})&&t.hasContent(u,{ignoreMarkers:!0})?function l(n,e,t,o){const u=e.parent,i=t.parent;if(u!=o&&i!=o){for(e=n.createPositionAfter(u),(t=n.createPositionBefore(i)).isEqual(e)||n.insert(u,t);e.parent.isEmpty;){const l=e.parent;e=n.createPositionBefore(l),n.remove(l)}t=n.createPositionBefore(i),function(l,n){const e=n.nodeBefore,t=n.nodeAfter;e.name!=t.name&&l.rename(e,t.name),l.clearAttributes(e),l.setAttributes(Object.fromEntries(t.getAttributes()),e),l.merge(n)}(n,t),As(n.model.schema,e,t)&&l(n,e,t,o)}}(l,n,e,o.parent):function l(n,e,t,o){const u=e.parent,i=t.parent;if(u!=o&&i!=o){for(e=n.createPositionAfter(u),(t=n.createPositionBefore(i)).isEqual(e)||n.insert(i,e),n.merge(e);t.parent.isEmpty;){const l=t.parent;t=n.createPositionBefore(l),n.remove(l)}As(n.model.schema,e,t)&&l(n,e,t,o)}}(l,n,e,o.parent))}(l,i,a),o.removeDisallowedAttributes(i.parent.getChildren(),l)),Cs(l,n,i),!e.doNotAutoparagraph&&function(l,n){const e=l.checkChild(n,"$text"),t=l.checkChild(n,"paragraph");return!e&&t}(o,i)&&_s(l,i,n,u),i.detach(),a.detach()})}function As(l,n,e){const t=n.parent,o=e.parent;return t!=o&&!l.isLimit(t)&&!l.isLimit(o)&&function(l,n,e){const t=new ia(l,n);for(const o of t.getWalker())if(e.isLimit(o.item))return!1;return!0}(n,e,l)}function _s(l,n,e,t={}){const o=l.createElement("paragraph");l.model.schema.setAllowedAttributes(o,t,l),l.insert(o,n),Cs(l,e,l.createPositionAt(o,0))}function Cs(l,n,e){n instanceof xa?l.setSelection(e):n.setTo(e)}function ws(l,n){const e=[];Array.from(l.getItems({direction:"backward"})).map(l=>n.createRangeOn(l)).filter(n=>(n.start.isAfter(l.start)||n.start.isEqual(l.start))&&(n.end.isBefore(l.end)||n.end.isEqual(l.end))).forEach(l=>{e.push(l.start.parent),n.remove(l)}),e.forEach(l=>{let e=l;for(;e.parent&&e.isEmpty;){const l=n.createRangeOn(e);e=e.parent,n.remove(l)}})}class Rs{constructor(l,n,e){this.model=l,this.writer=n,this.position=e,this.canMergeWith=new Set([this.position.parent]),this.schema=l.schema,this._documentFragment=n.createDocumentFragment(),this._documentFragmentPosition=n.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(l){for(const n of Array.from(l))this._handleNode(n);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(l){const n=this.writer.createPositionAfter(this._lastNode),e=this.writer.createPositionAfter(l);if(e.isAfter(n)){if(this._lastNode=l,this.position.parent!=l||!this.position.isAtEnd)throw new b("insertcontent-invalid-insertion-position",this);this.position=e,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?ia._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new ia(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(l){if(this.schema.isObject(l))return void this._handleObject(l);let n=this._checkAndAutoParagraphToAllowedPosition(l);n||(n=this._checkAndSplitToAllowedPosition(l))?(this._appendToFragment(l),this._firstNode||(this._firstNode=l),this._lastNode=l):this._handleDisallowedNode(l)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const l=$r.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=l.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=l.toPosition(),l.detach()}_handleObject(l){this._checkAndSplitToAllowedPosition(l)?this._appendToFragment(l):this._tryAutoparagraphing(l)}_handleDisallowedNode(l){l.is("element")?this.handleNodes(l.getChildren()):this._tryAutoparagraphing(l)}_appendToFragment(l){if(!this.schema.checkChild(this.position,l))throw new b("insertcontent-wrong-position",this,{node:l,position:this.position});this.writer.insert(l,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(l.offsetSize),this.schema.isObject(l)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=l:this._nodeToSelect=null,this._filterAttributesOf.push(l)}_setAffectedBoundaries(l){this._affectedStart||(this._affectedStart=$r.fromPosition(l,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(l)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=$r.fromPosition(l,"toNext"))}_mergeOnLeft(){const l=this._firstNode;if(!(l instanceof Ki))return;if(!this._canMergeLeft(l))return;const n=$r._createBefore(l);n.stickiness="toNext";const e=$r.fromPosition(this.position,"toNext");this._affectedStart.isEqual(n)&&(this._affectedStart.detach(),this._affectedStart=$r._createAt(n.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=n.nodeBefore,this._lastNode=n.nodeBefore),this.writer.merge(n),n.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=$r._createAt(n.nodeBefore,"end","toNext")),this.position=e.toPosition(),e.detach(),this._filterAttributesOf.push(this.position.parent),n.detach()}_mergeOnRight(){const l=this._lastNode;if(!(l instanceof Ki))return;if(!this._canMergeRight(l))return;const n=$r._createAfter(l);if(n.stickiness="toNext",!this.position.isEqual(n))throw new b("insertcontent-invalid-insertion-position",this);this.position=la._createAt(n.nodeBefore,"end");const e=$r.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(n)&&(this._affectedEnd.detach(),this._affectedEnd=$r._createAt(n.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=n.nodeBefore,this._lastNode=n.nodeBefore),this.writer.merge(n),n.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=$r._createAt(n.nodeBefore,0,"toPrevious")),this.position=e.toPosition(),e.detach(),this._filterAttributesOf.push(this.position.parent),n.detach()}_canMergeLeft(l){const n=l.previousSibling;return n instanceof Ki&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,l)}_canMergeRight(l){const n=l.nextSibling;return n instanceof Ki&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(l,n)}_tryAutoparagraphing(l){const n=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,n)&&this.schema.checkChild(n,l)&&(n._appendChild(l),this._handleNode(n))}_checkAndAutoParagraphToAllowedPosition(l){if(this.schema.checkChild(this.position.parent,l))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",l))return!1;this._insertPartialFragment();const n=this.writer.createElement("paragraph");return this.writer.insert(n,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=n,this.position=this.writer.createPositionAt(n,0),!0}_checkAndSplitToAllowedPosition(l){const n=this._getAllowedIn(this.position.parent,l);if(!n)return!1;for(n!=this.position.parent&&this._insertPartialFragment();n!=this.position.parent;)if(this.position.isAtStart){const l=this.position.parent;this.position=this.writer.createPositionBefore(l),l.isEmpty&&l.parent===n&&this.writer.remove(l)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const l=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=l,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(l,n){return this.schema.checkChild(l,n)?l:this.schema.isLimit(l)?null:this._getAllowedIn(l.parent,n)}}function Ls(l,n,e="auto"){const t=l.getSelectedElement();if(t&&n.schema.isObject(t)&&!n.schema.isInline(t))return"before"==e||"after"==e?n.createRange(n.createPositionAt(t,e)):n.createRangeOn(t);const o=Ot(l.getSelectedBlocks());if(!o)return n.createRange(l.focus);if(o.isEmpty)return n.createRange(n.createPositionAt(o,0));const u=n.createPositionAfter(o);return l.focus.isTouching(u)?n.createRange(u):n.createRange(n.createPositionBefore(o))}function Ms(l,n){const{isForward:e,walker:t,unit:o,schema:u,treatEmojiAsSingleUnit:i}=l,{type:a,item:r,nextPosition:s}=n;if("text"==a)return"word"===l.unit?function(l,n){let e=l.position.textNode;for(e||(e=n?l.position.nodeAfter:l.position.nodeBefore);e&&e.is("$text");){const t=l.position.offset-e.startOffset;if(Ss(e,t,n))e=n?l.position.nodeAfter:l.position.nodeBefore;else{if(Os(e.data,t,n))break;l.next()}}return l.position}(t,e):function(l,n,e){const t=l.position.textNode;if(t){const o=t.data;let u=l.position.offset-t.startOffset;for(;Ft(o,u)||"character"==n&&Nt(o,u)||e&&zt(o,u);)l.next(),u=l.position.offset-t.startOffset}return l.position}(t,o,i);if(a==(e?"elementStart":"elementEnd")){if(u.isSelectable(r))return la._createAt(r,e?"after":"before");if(u.checkChild(s,"$text"))return s}else{if(u.isLimit(r))return void t.skip(()=>!0);if(u.checkChild(s,"$text"))return s}}function Es(l,n){const e=l.root,t=la._createAt(e,n?"end":0);return n?new ia(l,t):new ia(t,l)}function Os(l,n,e){const t=n+(e?0:-1);return' ,.?!:;"-()'.includes(l.charAt(t))}function Ss(l,n,e){return n===(e?l.offsetSize:0)}class ks extends(U()){constructor(){var l;super(),this.markers=new as,this.document=new us(this),this.schema=new Ka,this._pendingChanges=[],this._currentWriter=null,["insertContent","insertObject","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(l=>this.decorate(l)),this.on("applyOperation",(l,n)=>{n[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((l,n)=>{if("$marker"===n.name)return!0}),(l=this).document.registerPostFixer(n=>(function(l,n){const e=n.document.selection,t=n.schema,o=[];let u=!1;for(const i of e.getRanges()){const l=vs(i,t);l&&!l.isEqual(i)?(o.push(l),u=!0):o.push(i)}return u&&l.setSelection(function(l){const n=[...o],e=new Set;let t=1;for(;t!e.has(n))}(),{backward:e.isBackward}),!1})(n,l)),this.document.registerPostFixer(qa)}change(l){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Kr,callback:l}),this._runPendingChanges()[0]):l(this._currentWriter)}catch(l){b.rethrowUnexpectedError(l,this)}}enqueueChange(l,n){try{l?"function"==typeof l?(n=l,l=new Kr):l instanceof Kr||(l=new Kr(l)):l=new Kr,this._pendingChanges.push({batch:l,callback:n}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(l){b.rethrowUnexpectedError(l,this)}}applyOperation(l){l._execute()}insertContent(l,n,e){return function(l,n,e,t){return l.change(o=>{let u;(u=e?e instanceof fa||e instanceof xa?e:o.createSelection(e,t):l.document.selection).isCollapsed||l.deleteContent(u,{doNotAutoparagraph:!0});const i=new Rs(l,o,u.anchor),a=[];let r;if(n.is("documentFragment")){if(n.markers.size){const l=[];for(const[e,t]of n.markers){const{start:n,end:o}=t,u=n.isEqual(o);l.push({position:n,name:e,isCollapsed:u},{position:o,name:e,isCollapsed:u})}l.sort(({position:l},{position:n})=>l.isBefore(n)?1:-1);for(const{position:e,name:t,isCollapsed:u}of l){let l=null,i=null;const r=e.parent===n&&e.isAtStart,s=e.parent===n&&e.isAtEnd;r||s?u&&(i=r?"start":"end"):(l=o.createElement("$marker"),o.insert(l,e)),a.push({name:t,element:l,collapsed:i})}}r=n.getChildren()}else r=[n];i.handleNodes(r);let s=i.getSelectionRange();if(n.is("documentFragment")&&a.length){const l=s?ba.fromRange(s):null,n={};for(let e=a.length-1;e>=0;e--){const{name:l,element:t,collapsed:u}=a[e],r=!n[l];if(r&&(n[l]=[]),t){const e=o.createPositionAt(t,"before");n[l].push(e),o.remove(t)}else{const e=i.getAffectedRange();if(!e){u&&n[l].push(i.position);continue}u?n[l].push(e[u]):n[l].push(r?e.start:e.end)}}for(const[e,[t,u]]of Object.entries(n))t&&u&&t.root===u.root&&o.addMarker(e,{usingOperation:!0,affectsData:!0,range:new ia(t,u)});l&&(s=l.toRange(),l.detach())}s&&(u instanceof xa?o.setSelection(s):u.setTo(s));const d=i.getAffectedRange()||l.createRange(u.anchor);return i.destroy(),d})}(this,l,n,e)}insertObject(l,n,e,t){return function(l,n,e,t,o={}){if(!l.schema.isObject(n))throw new b("insertobject-element-not-an-object",l,{object:n});let u,i=u=e?e instanceof fa||e instanceof xa?e:l.createSelection(e,t):l.document.selection;o.findOptimalPosition&&l.schema.isBlock(n)&&(i=l.createSelection(Ls(u,l,o.findOptimalPosition)));const a=Ot(u.getSelectedBlocks()),r={};return a&&Object.assign(r,l.schema.getAttributesWithProperty(a,"copyOnReplace",!0)),l.change(e=>{i.isCollapsed||l.deleteContent(i,{doNotAutoparagraph:!0});let t=n;const u=i.anchor.parent;!l.schema.checkChild(u,n)&&l.schema.checkChild(u,"paragraph")&&l.schema.checkChild("paragraph",n)&&(t=e.createElement("paragraph"),e.insert(n,t)),l.schema.setAllowedAttributes(t,r,e);const a=l.insertContent(t,i);return a.isCollapsed||o.setSelection&&function(l,n,e,t){const o=l.model;if("on"==e)return void l.setSelection(n,"on");if("after"!=e)throw new b("insertobject-invalid-place-parameter-value",o);let u=n.nextSibling;o.schema.isInline(n)?l.setSelection(n,"after"):(!(u&&o.schema.checkChild(u,"$text"))&&o.schema.checkChild(n.parent,"paragraph")&&(u=l.createElement("paragraph"),o.schema.setAllowedAttributes(u,t,l),o.insertContent(u,l.createPositionAfter(n))),u&&l.setSelection(u,0))}(e,n,o.setSelection,r),a})}(this,l,n,e,t)}deleteContent(l,n){xs(this,l,n)}modifySelection(l,n){!function(l,n,e={}){const t=l.schema,o="backward"!=e.direction,u=e.unit?e.unit:"character",i=!!e.treatEmojiAsSingleUnit,a=n.focus,r=new Qi({boundaries:Es(a,o),singleCharacters:!0,direction:o?"forward":"backward"}),s={walker:r,schema:t,isForward:o,unit:u,treatEmojiAsSingleUnit:i};let d;for(;d=r.next();){if(d.done)return;const e=Ms(s,d.value);if(e)return void(n instanceof xa?l.change(l=>{l.setSelectionFocus(e)}):n.setFocus(e))}}(this,l,n)}getSelectedContent(l){return function(l,n){return l.change(l=>{const e=l.createDocumentFragment(),t=n.getFirstRange();if(!t||t.isCollapsed)return e;const o=t.start.root,u=t.start.getCommonPath(t.end),i=o.getNodeByPath(u);let a;const r=(a=t.start.parent==t.end.parent?t:l.createRange(l.createPositionAt(i,t.start.path[u.length]),l.createPositionAt(i,t.end.path[u.length]+1))).end.offset-a.start.offset;for(const n of a.getItems({shallow:!0}))n.is("$textProxy")?l.appendText(n.data,n.getAttributes(),e):l.append(l.cloneElement(n,!0),e);if(a!=t){const n=t._getTransformedByMove(a.start,l.createPositionAt(e,0),r)[0],o=l.createRange(l.createPositionAt(e,0),n.start);ws(l.createRange(n.end,l.createPositionAt(e,"end")),l),ws(o,l)}return e})}(this,l)}hasContent(l,n={}){const e=l instanceof ia?l:ia._createIn(l);if(e.isCollapsed)return!1;const{ignoreWhitespaces:t=!1,ignoreMarkers:o=!1}=n;if(!o)for(const u of this.markers.getMarkersIntersectingRange(e))if(u.affectsData)return!0;for(const u of e.getItems())if(this.schema.isContent(u)){if(!u.is("$textProxy"))return!0;if(!t)return!0;if(-1!==u.data.search(/\S/))return!0}return!1}createPositionFromPath(l,n,e){return new la(l,n,e)}createPositionAt(l,n){return la._createAt(l,n)}createPositionAfter(l){return la._createAfter(l)}createPositionBefore(l){return la._createBefore(l)}createRange(l,n){return new ia(l,n)}createRangeIn(l){return ia._createIn(l)}createRangeOn(l){return ia._createOn(l)}createSelection(...l){return new fa(...l)}createBatch(l){return new Kr(l)}createOperationFromJSON(l){return Tr.fromJSON(l,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const l=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const n=this._pendingChanges[0].batch;this._currentWriter=new cs(this,n);const e=this._pendingChanges[0].callback(this._currentWriter);l.push(e),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return l}}class Is extends oi{constructor(l){super(l),this.domEventType="click"}onDomEvent(l){this.fire(l.type,l)}}class Fs extends oi{constructor(l){super(l),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(l){this.fire(l.type,l)}}class Ns{constructor(l){this.document=l}createDocumentFragment(l){return new Au(this.document,l)}createElement(l,n,e){return new jo(this.document,l,n,e)}createText(l){return new eo(this.document,l)}clone(l,n=!1){return l._clone(n)}appendChild(l,n){return n._appendChild(l)}insertChild(l,n,e){return e._insertChild(l,n)}removeChildren(l,n,e){return e._removeChildren(l,n)}remove(l){const n=l.parent;return n?this.removeChildren(n.getChildIndex(l),1,n):[]}replace(l,n){const e=l.parent;if(e){const t=e.getChildIndex(l);return this.removeChildren(t,1,e),this.insertChild(t,n,e),!0}return!1}unwrapElement(l){const n=l.parent;if(n){const e=n.getChildIndex(l);this.remove(l),this.insertChild(e,l.getChildren(),n)}}rename(l,n){const e=new jo(this.document,l,n.getAttributes(),n.getChildren());return this.replace(n,e)?e:null}setAttribute(l,n,e){e._setAttribute(l,n)}removeAttribute(l,n){n._removeAttribute(l)}addClass(l,n){n._addClass(l)}removeClass(l,n){n._removeClass(l)}setStyle(l,n,e){xl(l)&&void 0===e?n._setStyle(l):e._setStyle(l,n)}removeStyle(l,n){n._removeStyle(l)}setCustomProperty(l,n,e){e._setCustomProperty(l,n)}removeCustomProperty(l,n){return n._removeCustomProperty(l)}createPositionAt(l,n){return Jo._createAt(l,n)}createPositionAfter(l){return Jo._createAfter(l)}createPositionBefore(l){return Jo._createBefore(l)}createRange(l,n){return new lu(l,n)}createRangeOn(l){return lu._createOn(l)}createRangeIn(l){return lu._createIn(l)}createSelection(...l){return new eu(...l)}}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","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);class Ds{constructor(){this._commands=new Map}add(l,n){this._commands.set(l,n)}get(l){return this._commands.get(l)}execute(l,...n){const e=this.get(l);if(!e)throw new b("commandcollection-command-not-found",this,{commandName:l});return e.execute(...n)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const l of this.commands())l.destroy()}}class zs extends kt{constructor(l){super(),this.editor=l}set(l,n,e={}){if("string"==typeof n){const l=n;n=((n,e)=>{this.editor.execute(l),e()})}super.set(l,n,e)}}class qs extends(U()){constructor(l={}){super();const n=this.constructor,e=l.language||n.defaultConfig&&n.defaultConfig.language;this._context=l.context||new Wt({language:e}),this._context._addEditor(this,!l.context);const t=Array.from(n.builtinPlugins||[]);this.config=new ke(l,n.defaultConfig),this.config.define("plugins",t),this.config.define(this._context._getEditorConfig()),this.plugins=new Ut(this,t,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new Ds,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new ks;const o=new Uo;this.data=new hr(this.model,o),this.editing=new Ya(this.model,o),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new gr([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 zs(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(l){throw new b("editor-isreadonly-has-no-setter")}enableReadOnlyMode(l){if("string"!=typeof l&&"symbol"!=typeof l)throw new b("editor-read-only-lock-id-invalid",null,{lockId:l});this._readOnlyLocks.has(l)||(this._readOnlyLocks.add(l),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(l){if("string"!=typeof l&&"symbol"!=typeof l)throw new b("editor-read-only-lock-id-invalid",null,{lockId:l});this._readOnlyLocks.has(l)&&(this._readOnlyLocks.delete(l),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const l=this.config,n=l.get("plugins"),e=l.get("removePlugins")||[],t=l.get("extraPlugins")||[],o=l.get("substitutePlugins")||[];return this.plugins.init(n.concat(t),e,o)}destroy(){let l=Promise.resolve();return"initializing"==this.state&&(l=new Promise(l=>this.once("ready",l))),l.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(l,...n){try{return this.commands.execute(l,...n)}catch(l){b.rethrowUnexpectedError(l,this)}}focus(){this.editing.view.focus()}}class Ts{constructor(l){this.editor=l,this._components=new Map}*names(){for(const l of this._components.values())yield l.originalName}add(l,n){this._components.set(Ps(l),{callback:n,originalName:l})}create(l){if(!this.has(l))throw new b("componentfactory-item-missing",this,{name:l});return this._components.get(Ps(l)).callback(this.editor.locale)}has(l){return this._components.has(Ps(l))}}function Ps(l){return String(l).toLowerCase()}class Bs extends Et{constructor(l=[]){super(l,{idProperty:"viewUid"}),this.on("add",(l,n,e)=>{this._renderViewIntoCollectionParent(n,e)}),this.on("remove",(l,n)=>{n.element&&this._parentElement&&n.element.remove()}),this._parentElement=null}destroy(){this.map(l=>l.destroy())}setParent(l){this._parentElement=l;for(const n of this)this._renderViewIntoCollectionParent(n)}delegate(...l){if(!l.length||!l.every(l=>"string"==typeof l))throw new b("ui-viewcollection-delegate-wrong-events",this);return{to:n=>{for(const e of this)for(const t of l)e.delegate(t).to(n);this.on("add",(e,t)=>{for(const o of l)t.delegate(o).to(n)}),this.on("remove",(e,t)=>{for(const o of l)t.stopDelegating(o,n)})}}}_renderViewIntoCollectionParent(l,n){l.isRendered||l.render(),l.element&&this._parentElement&&this._parentElement.insertBefore(l.element,this._parentElement.children[n])}}class Vs extends(E()){constructor(l){super(),Object.assign(this,Ks($s(l))),this._isRendered=!1,this._revertData=null}render(){const l=this._renderNode({intoFragment:!0});return this._isRendered=!0,l}apply(l){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:l,intoFragment:!1,isApplying:!0,revertData:this._revertData}),l}revert(l){if(!this._revertData)throw new b("ui-template-revert-not-applied",[this,l]);this._revertTemplateFromNode(l,this._revertData)}*getViews(){yield*function*l(n){if(n.children)for(const e of n.children)ed(e)?yield e:td(e)&&(yield*l(e))}(this)}static bind(l,n){return{to:(e,t)=>new Ws({eventNameOrFunction:e,attribute:e,observable:l,emitter:n,callback:t}),if:(e,t,o)=>new Gs({observable:l,emitter:n,attribute:e,valueIfTrue:t,callback:o})}}static extend(l,n){if(l._isRendered)throw new b("template-extend-render",[this,l]);!function l(n,e){if(e.attributes&&(n.attributes||(n.attributes={}),ld(n.attributes,e.attributes)),e.eventListeners&&(n.eventListeners||(n.eventListeners={}),ld(n.eventListeners,e.eventListeners)),e.text&&n.text.push(...e.text),e.children&&e.children.length){if(n.children.length!=e.children.length)throw new b("ui-template-extend-children-mismatch",n);let t=0;for(const o of e.children)l(n.children[t++],o)}}(l,Ks($s(n)))}_renderNode(l){let n;if(n=l.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new b("ui-template-wrong-syntax",this);return this.text?this._renderText(l):this._renderElement(l)}_renderElement(l){let n=l.node;return n||(n=l.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(l),this._renderElementChildren(l),this._setUpListeners(l),n}_renderText(l){let n=l.node;return n?l.revertData.text=n.textContent:n=l.node=document.createTextNode(""),js(this.text)?this._bindToObservable({schema:this.text,updater:Ys(n),data:l}):n.textContent=this.text.join(""),n}_renderAttributes(l){if(!this.attributes)return;const n=l.node,e=l.revertData;for(const t in this.attributes){const o=n.getAttribute(t),u=this.attributes[t];e&&(e.attributes[t]=o);const i=ud(u)?u[0].ns:null;if(js(u)){const a=ud(u)?u[0].value:u;e&&id(t)&&a.unshift(o),this._bindToObservable({schema:a,updater:Zs(n,t,i),data:l})}else if("style"==t&&"string"!=typeof u[0])this._renderStyleAttribute(u[0],l);else{e&&o&&id(t)&&u.unshift(o);const l=u.map(l=>l&&l.value||l).reduce((l,n)=>l.concat(n),[]).reduce(Js,"");nd(l)||n.setAttributeNS(i,t,l)}}}_renderStyleAttribute(l,n){const e=n.node;for(const t in l){const o=l[t];js(o)?this._bindToObservable({schema:[o],updater:Xs(e,t),data:n}):e.style[t]=o}}_renderElementChildren(l){const n=l.node,e=l.intoFragment?document.createDocumentFragment():n,t=l.isApplying;let o=0;for(const u of this.children)if(od(u)){if(!t){u.setParent(n);for(const l of u)e.appendChild(l.element)}}else if(ed(u))t||(u.isRendered||u.render(),e.appendChild(u.element));else if(Ne(u))e.appendChild(u);else if(t){const n={children:[],bindings:[],attributes:{}};l.revertData.children.push(n),u._renderNode({intoFragment:!1,node:e.childNodes[o++],isApplying:!0,revertData:n})}else e.appendChild(u.render());l.intoFragment&&n.appendChild(e)}_setUpListeners(l){if(this.eventListeners)for(const n in this.eventListeners){const e=this.eventListeners[n].map(e=>{const[t,o]=n.split("@");return e.activateDomEventListener(t,o,l)});l.revertData&&l.revertData.bindings.push(e)}}_bindToObservable({schema:l,updater:n,data:e}){const t=e.revertData;Hs(l,n,e);const o=l.filter(l=>!nd(l)).filter(l=>l.observable).map(t=>t.activateAttributeListener(l,n,e));t&&t.bindings.push(o)}_revertTemplateFromNode(l,n){for(const t of n.bindings)for(const l of t)l();if(n.text)return void(l.textContent=n.text);const e=l;for(const t in n.attributes){const l=n.attributes[t];null===l?e.removeAttribute(t):e.setAttribute(t,l)}for(let t=0;tHs(l,n,e);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,t),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,t)}}}class Ws extends Us{constructor(l){super(l),this.eventNameOrFunction=l.eventNameOrFunction}activateDomEventListener(l,n,e){const t=(l,e)=>{n&&!e.target.matches(n)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(e):this.observable.fire(this.eventNameOrFunction,e))};return this.emitter.listenTo(e.node,l,t),()=>{this.emitter.stopListening(e.node,l,t)}}}class Gs extends Us{constructor(l){super(l),this.valueIfTrue=l.valueIfTrue}getValue(l){return!nd(super.getValue(l))&&(this.valueIfTrue||!0)}}function js(l){return!!l&&(l.value&&(l=l.value),Array.isArray(l)?l.some(js):l instanceof Us)}function Hs(l,n,{node:e}){const t=function(l,n){return l.map(l=>l instanceof Us?l.getValue(n):l)}(l,e);let o;nd(o=1==l.length&&l[0]instanceof Gs?t[0]:t.reduce(Js,""))?n.remove():n.set(o)}function Ys(l){return{set(n){l.textContent=n},remove(){l.textContent=""}}}function Zs(l,n,e){return{set(t){l.setAttributeNS(e,n,t)},remove(){l.removeAttributeNS(e,n)}}}function Xs(l,n){return{set(e){l.style[n]=e},remove(){l.style[n]=null}}}function $s(l){return Oe(l,l=>{if(l&&(l instanceof Us||td(l)||ed(l)||od(l)))return l})}function Ks(l){if("string"==typeof l?l=function(l){return{text:[l]}}(l):l.text&&function(l){l.text=wt(l.text)}(l),l.on&&(l.eventListeners=function(l){for(const n in l)Qs(l,n);return l}(l.on),delete l.on),!l.text){l.attributes&&function(l){for(const n in l)l[n].value&&(l[n].value=wt(l[n].value)),Qs(l,n)}(l.attributes);const n=[];if(l.children)if(od(l.children))n.push(l.children);else for(const e of l.children)td(e)||ed(e)||Ne(e)?n.push(e):n.push(new Vs(e));l.children=n}return l}function Qs(l,n){l[n]=wt(l[n])}function Js(l,n){return nd(n)?l:nd(l)?n:`${l} ${n}`}function ld(l,n){for(const e in n)l[e]?l[e].push(...n[e]):l[e]=n[e]}function nd(l){return!l&&0!==l}function ed(l){return l instanceof rd}function td(l){return l instanceof Vs}function od(l){return l instanceof Bs}function ud(l){return D(l[0])&&l[0].ns}function id(l){return"class"==l||"style"==l}var ad=o(4793);Ht()(ad.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ad.Z.locals;class rd extends(qe(U())){constructor(l){super(),this.element=null,this.isRendered=!1,this.locale=l,this.t=l&&l.t,this._viewCollections=new Et,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(n,e)=>{e.locale=l,e.t=l&&l.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Vs.bind(this,this)}createCollection(l){const n=new Bs(l);return this._viewCollections.add(n),n}registerChild(l){K(l)||(l=[l]);for(const n of l)this._unboundChildren.add(n)}deregisterChild(l){K(l)||(l=[l]);for(const n of l)this._unboundChildren.remove(n)}setTemplate(l){this.template=new Vs(l)}extendTemplate(l){Vs.extend(this.template,l)}render(){if(this.isRendered)throw new b("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(l=>l.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}var sd=o(8793);Ht()(sd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),sd.Z.locals;const dd=Qe("px"),cd=Ve.document.body;class pd extends rd{constructor(l){super(l);const n=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",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",n.to("position",l=>`ck-balloon-panel_${l}`),n.if("isVisible","ck-balloon-panel_visible"),n.if("withArrow","ck-balloon-panel_with-arrow"),n.to("class")],style:{top:n.to("top",dd),left:n.to("left",dd)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(l){this.show();const n=pd.defaultPositions,e=Object.assign({},{element:this.element,positions:[n.southArrowNorth,n.southArrowNorthMiddleWest,n.southArrowNorthMiddleEast,n.southArrowNorthWest,n.southArrowNorthEast,n.northArrowSouth,n.northArrowSouthMiddleWest,n.northArrowSouthMiddleEast,n.northArrowSouthWest,n.northArrowSouthEast,n.viewportStickyNorth],limiter:cd,fitInViewport:!0},l),t=pd._getOptimalPosition(e),o=parseInt(t.left),u=parseInt(t.top),i=t.name,a=t.config||{},{withArrow:r=!0}=a;this.top=u,this.left=o,this.position=i,this.withArrow=r}pin(l){this.unpin(),this._pinWhenIsVisibleCallback=(()=>{this.isVisible?this._startPinning(l):this._stopPinning()}),this._startPinning(l),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(l){this.attachTo(l);const n=fd(l.target),e=l.limiter?fd(l.limiter):cd;this.listenTo(Ve.document,"scroll",(t,o)=>{const u=o.target,i=n&&u.contains(n),a=e&&u.contains(e);!i&&!a&&n&&e||this.attachTo(l)},{useCapture:!0}),this.listenTo(Ve.window,"resize",()=>{this.attachTo(l)})}_stopPinning(){this.stopListening(Ve.document,"scroll"),this.stopListening(Ve.window,"resize")}}function fd(l){return Se(l)?l:Ge(l)?l.commonAncestorContainer:"function"==typeof l?fd(l()):null}function md(l={}){const{sideOffset:n=pd.arrowSideOffset,heightOffset:e=pd.arrowHeightOffset,stickyVerticalOffset:t=pd.stickyVerticalOffset,config:o}=l;return{northWestArrowSouthWest:(l,e)=>({top:u(l,e),left:l.left-n,name:"arrow_sw",...o&&{config:o}}),northWestArrowSouthMiddleWest:(l,e)=>({top:u(l,e),left:l.left-.25*e.width-n,name:"arrow_smw",...o&&{config:o}}),northWestArrowSouth:(l,n)=>({top:u(l,n),left:l.left-n.width/2,name:"arrow_s",...o&&{config:o}}),northWestArrowSouthMiddleEast:(l,e)=>({top:u(l,e),left:l.left-.75*e.width+n,name:"arrow_sme",...o&&{config:o}}),northWestArrowSouthEast:(l,e)=>({top:u(l,e),left:l.left-e.width+n,name:"arrow_se",...o&&{config:o}}),northArrowSouthWest:(l,e)=>({top:u(l,e),left:l.left+l.width/2-n,name:"arrow_sw",...o&&{config:o}}),northArrowSouthMiddleWest:(l,e)=>({top:u(l,e),left:l.left+l.width/2-.25*e.width-n,name:"arrow_smw",...o&&{config:o}}),northArrowSouth:(l,n)=>({top:u(l,n),left:l.left+l.width/2-n.width/2,name:"arrow_s",...o&&{config:o}}),northArrowSouthMiddleEast:(l,e)=>({top:u(l,e),left:l.left+l.width/2-.75*e.width+n,name:"arrow_sme",...o&&{config:o}}),northArrowSouthEast:(l,e)=>({top:u(l,e),left:l.left+l.width/2-e.width+n,name:"arrow_se",...o&&{config:o}}),northEastArrowSouthWest:(l,e)=>({top:u(l,e),left:l.right-n,name:"arrow_sw",...o&&{config:o}}),northEastArrowSouthMiddleWest:(l,e)=>({top:u(l,e),left:l.right-.25*e.width-n,name:"arrow_smw",...o&&{config:o}}),northEastArrowSouth:(l,n)=>({top:u(l,n),left:l.right-n.width/2,name:"arrow_s",...o&&{config:o}}),northEastArrowSouthMiddleEast:(l,e)=>({top:u(l,e),left:l.right-.75*e.width+n,name:"arrow_sme",...o&&{config:o}}),northEastArrowSouthEast:(l,e)=>({top:u(l,e),left:l.right-e.width+n,name:"arrow_se",...o&&{config:o}}),southWestArrowNorthWest:l=>({top:i(l),left:l.left-n,name:"arrow_nw",...o&&{config:o}}),southWestArrowNorthMiddleWest:(l,e)=>({top:i(l),left:l.left-.25*e.width-n,name:"arrow_nmw",...o&&{config:o}}),southWestArrowNorth:(l,n)=>({top:i(l),left:l.left-n.width/2,name:"arrow_n",...o&&{config:o}}),southWestArrowNorthMiddleEast:(l,e)=>({top:i(l),left:l.left-.75*e.width+n,name:"arrow_nme",...o&&{config:o}}),southWestArrowNorthEast:(l,e)=>({top:i(l),left:l.left-e.width+n,name:"arrow_ne",...o&&{config:o}}),southArrowNorthWest:l=>({top:i(l),left:l.left+l.width/2-n,name:"arrow_nw",...o&&{config:o}}),southArrowNorthMiddleWest:(l,e)=>({top:i(l),left:l.left+l.width/2-.25*e.width-n,name:"arrow_nmw",...o&&{config:o}}),southArrowNorth:(l,n)=>({top:i(l),left:l.left+l.width/2-n.width/2,name:"arrow_n",...o&&{config:o}}),southArrowNorthMiddleEast:(l,e)=>({top:i(l),left:l.left+l.width/2-.75*e.width+n,name:"arrow_nme",...o&&{config:o}}),southArrowNorthEast:(l,e)=>({top:i(l),left:l.left+l.width/2-e.width+n,name:"arrow_ne",...o&&{config:o}}),southEastArrowNorthWest:l=>({top:i(l),left:l.right-n,name:"arrow_nw",...o&&{config:o}}),southEastArrowNorthMiddleWest:(l,e)=>({top:i(l),left:l.right-.25*e.width-n,name:"arrow_nmw",...o&&{config:o}}),southEastArrowNorth:(l,n)=>({top:i(l),left:l.right-n.width/2,name:"arrow_n",...o&&{config:o}}),southEastArrowNorthMiddleEast:(l,e)=>({top:i(l),left:l.right-.75*e.width+n,name:"arrow_nme",...o&&{config:o}}),southEastArrowNorthEast:(l,e)=>({top:i(l),left:l.right-e.width+n,name:"arrow_ne",...o&&{config:o}}),westArrowEast:(l,n)=>({top:l.top+l.height/2-n.height/2,left:l.left-n.width-e,name:"arrow_e",...o&&{config:o}}),eastArrowWest:(l,n)=>({top:l.top+l.height/2-n.height/2,left:l.right+e,name:"arrow_w",...o&&{config:o}}),viewportStickyNorth:(l,n,e)=>l.getIntersection(e)?{top:e.top+t,left:l.left+l.width/2-n.width/2,name:"arrowless",config:{withArrow:!1,...o}}:null};function u(l,n){return l.top-n.height-e}function i(l){return l.bottom+e}}pd.arrowSideOffset=25,pd.arrowHeightOffset=10,pd.stickyVerticalOffset=20,pd._getOptimalPosition=tt,pd.defaultPositions=md();var hd=o(3332);Ht()(hd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hd.Z.locals;const gd="ck-tooltip";class vd extends(qe()){constructor(l){if(super(),vd._editors.add(l),vd._instance)return vd._instance;vd._instance=this,this.tooltipTextView=new rd(l.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new pd(l.locale),this.balloonPanelView.class=gd,this.balloonPanelView.content.add(this.tooltipTextView),this._resizeObserver=null,this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._pinTooltipDebounced=vi(this._pinTooltip,600),this.listenTo(Ve.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Ve.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Ve.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Ve.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Ve.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(l){const n=l.ui.view&&l.ui.view.body;vd._editors.delete(l),this.stopListening(l.ui),n&&n.has(this.balloonPanelView)&&n.remove(this.balloonPanelView),vd._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),vd._instance=null)}static getPositioningFunctions(l){const n=vd.defaultBalloonPositions;return{s:[n.southArrowNorth,n.southArrowNorthEast,n.southArrowNorthWest],n:[n.northArrowSouth],e:[n.eastArrowWest],w:[n.westArrowEast],sw:[n.southArrowNorthEast],se:[n.southArrowNorthWest]}[l]}_onEnterOrFocus(l,{target:n}){const e=bd(n);var t;e&&e!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(e,{text:(t=e).dataset.ckeTooltipText,position:t.dataset.ckeTooltipPosition||"s",cssClass:t.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(l,{target:n,relatedTarget:e}){if("mouseleave"===l.name){if(!Se(n))return;if(this._currentElementWithTooltip&&n!==this._currentElementWithTooltip)return;const l=bd(n),t=bd(e);l&&l!==t&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&n!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(l,{target:n}){this._currentElementWithTooltip&&(n.contains(this.balloonPanelView.element)&&n.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(l,{text:n,position:e,cssClass:t}){const o=Ot(vd._editors.values()).ui.view.body;o.has(this.balloonPanelView)||o.add(this.balloonPanelView),this.tooltipTextView.text=n,this.balloonPanelView.pin({target:l,positions:vd.getPositioningFunctions(e)}),this._resizeObserver=new Ke(l,()=>{et(l)||this._unpinTooltip()}),this.balloonPanelView.class=[gd,t].filter(l=>l).join(" ");for(const u of vd._editors)this.listenTo(u.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=l,this._currentTooltipPosition=e}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const l of vd._editors)this.stopListening(l.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){et(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:vd.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}}function bd(l){return Se(l)?l.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}vd.defaultBalloonPositions=md({heightOffset:5,sideOffset:13}),vd._editors=new Set,vd._instance=null;class yd extends(U()){constructor(l){super(),this.editor=l,this.componentFactory=new Ts(l),this.focusTracker=new St,this.tooltipManager=new vd(l),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.isReady=!1,this.once("ready",()=>{this.isReady=!0}),this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this.listenTo(l.editing.view.document,"layoutChanged",()=>this.update()),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor);for(const l of this._editableElementsMap.values())l.ckeditorInstance=null;this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(l,n){this._editableElementsMap.set(l,n),n.ckeditorInstance||(n.ckeditorInstance=this.editor),this.focusTracker.add(n);const e=()=>{this.editor.editing.view.getDomRoot(l)||this.editor.keystrokes.listenTo(n)};this.isReady?e():this.once("ready",e)}getEditableElement(l="main"){return this._editableElementsMap.get(l)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(l,n={}){l.isRendered?(this.focusTracker.add(l.element),this.editor.keystrokes.listenTo(l.element)):l.once("render",()=>{this.focusTracker.add(l.element),this.editor.keystrokes.listenTo(l.element)}),this._focusableToolbarDefinitions.push({toolbarView:l,options:n})}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}_readViewportOffsetFromConfig(){const l=this.editor,n=l.config.get("ui.viewportOffset");if(n)return n;const e=l.config.get("toolbar.viewportTopOffset");return e?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:e}):{top:0}}_initFocusTracking(){const l=this.editor,n=l.editing.view;let e,t;l.keystrokes.set("Alt+F10",(l,o)=>{const u=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(u)&&!Array.from(n.domRoots.values()).includes(u)&&(e=u);const i=this._getCurrentFocusedToolbarDefinition();i&&t||(t=this._getFocusableCandidateToolbarDefinitions());for(let n=0;n{const o=this._getCurrentFocusedToolbarDefinition();o&&(e?(e.focus(),e=null):l.editing.view.focus(),o.options.afterBlur&&o.options.afterBlur(),t())})}_getFocusableCandidateToolbarDefinitions(){const l=[];for(const n of this._focusableToolbarDefinitions){const{toolbarView:e,options:t}=n;(et(e.element)||t.beforeFocus)&&l.push(n)}return l.sort((l,n)=>xd(l)-xd(n)),l}_getCurrentFocusedToolbarDefinition(){for(const l of this._focusableToolbarDefinitions)if(l.toolbarView.element&&l.toolbarView.element.contains(this.focusTracker.focusedElement))return l;return null}_focusFocusableCandidateToolbar(l){const{toolbarView:n,options:{beforeFocus:e}}=l;return e&&e(),!!et(n.element)&&(n.focus(),!0)}}function xd(l){const{toolbarView:n,options:e}=l;let t=10;return et(n.element)&&t--,e.isContextual&&t--,t}function Ad(l){return class extends l{setData(l){this.data.set(l)}getData(l){return this.data.get(l)}}}{const l=Ad(Object);Ad.setData=l.prototype.setData,Ad.getData=l.prototype.getData}function _d(l){return class extends l{updateSourceElement(l=this.data.get()){if(!this.sourceElement)throw new b("editor-missing-sourceelement",this);const n=this.config.get("updateSourceElementOnDestroy"),e=this.sourceElement instanceof HTMLTextAreaElement;!function(l,n){l instanceof HTMLTextAreaElement&&(l.value=n),l.innerHTML=n}(this.sourceElement,n||e?l:"")}}}_d.updateSourceElement=_d(Object).prototype.updateSourceElement;class Cd extends Gt{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Et({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(l){if("string"!=typeof l)throw new b("pendingactions-add-invalid-message",this);const n=new(U());return n.set("message",l),this._actions.add(n),this.hasAny=!0,n}remove(l){this._actions.remove(l),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const wd={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',image:'',lowVision:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:''};function Rd({emitter:l,activator:n,callback:e,contextElements:t}){l.listenTo(document,"mousedown",(l,o)=>{if(!n())return;const u="function"==typeof o.composedPath?o.composedPath():[];for(const n of t)if(n.contains(o.target)||u.includes(n))return;e()})}function Ld(l){const n=l;n.set("_isCssTransitionsDisabled",!1),n.disableCssTransitions=(()=>{n._isCssTransitionsDisabled=!0}),n.enableCssTransitions=(()=>{n._isCssTransitionsDisabled=!1}),n.extendTemplate({attributes:{class:[n.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function Md({view:l}){l.listenTo(l.element,"submit",(n,e)=>{e.preventDefault(),l.fire("submit")},{useCapture:!0})}class Ed extends Bs{constructor(l,n=[]){super(n),this.locale=l}attachToDom(){this._bodyCollectionContainer=new Vs({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let l=document.querySelector(".ck-body-wrapper");l||(l=pl(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(l)),l.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const l=document.querySelector(".ck-body-wrapper");l&&0==l.childElementCount&&l.remove()}}var Od=o(6574);Ht()(Od.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Od.Z.locals;class Sd extends rd{constructor(){super();const l=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon","ck-reset_all-excluded",l.if("isColorInherited","ck-icon_inherit-color")],viewBox:l.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 l=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),n=l.getAttribute("viewBox");n&&(this.viewBox=n);for(const{name:e,value:t}of Array.from(l.attributes))Sd.presentationalAttributeNames.includes(e)&&this.element.setAttribute(e,t);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;l.childNodes.length>0;)this.element.appendChild(l.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(l=>{l.style.fill=this.fillColor})}}Sd.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];var kd=o(4906);Ht()(kd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),kd.Z.locals;class Id extends rd{constructor(l){super(l);const n=this.bindTemplate,e=h();this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._createLabelView(e),this.iconView=new Sd,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));const o={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",l=>!l),n.if("isVisible","ck-hidden",l=>!l),n.to("isOn",l=>l?"ck-on":"ck-off"),n.if("withText","ck-button_with-text"),n.if("withKeystroke","ck-button_with-keystroke")],type:n.to("type",l=>l||"button"),tabindex:n.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${e}`,"aria-disabled":n.if("isEnabled",!0,l=>!l),"aria-pressed":n.to("isOn",l=>!!this.isToggleable&&String(!!l)),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to(l=>{this.isEnabled?this.fire("execute"):l.preventDefault()})}};t.isSafari&&(o.on.mousedown=n.to(l=>{this.focus(),l.preventDefault()})),this.setTemplate(o)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createLabelView(l){const n=new rd,e=this.bindTemplate;return n.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:e.to("labelStyle"),id:`ck-editor__aria-label_${l}`},children:[{text:this.bindTemplate.to("label")}]}),n}_createKeystrokeView(){const l=new rd;return l.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",l=>_t(l))}]}),l}_getTooltipString(l,n,e){return l?"string"==typeof l?l:(e&&(e=_t(e)),l instanceof Function?l(n,e):`${n}${e?` (${e})`:""}`):""}}var Fd=o(5332);Ht()(Fd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fd.Z.locals;class Nd extends Id{constructor(l){super(l),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const l=new rd;return l.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),l}}var Dd=o(6781);Ht()(Dd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Dd.Z.locals;const zd='';class qd extends Id{constructor(l){super(l),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",l=>String(l))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const l=new Sd;return l.content=zd,l.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),l}}var Td=o(7686);Ht()(Td.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Td.Z.locals;class Pd extends rd{constructor(l){super(l);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),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 kt,this.focusTracker=new St,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",l=>!l),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",(l,n)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),n())}),this.keystrokes.set("arrowleft",(l,n)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),n())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const l=new Id;return l.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),l.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),l.delegate("execute").to(this),l}_createArrowView(){const l=new Id,n=l.bindTemplate;return l.icon=zd,l.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":n.to("isOn"),"aria-haspopup":!0,"aria-expanded":n.to("isOn",l=>String(l))}}),l.bind("isEnabled").to(this),l.bind("label").to(this),l.bind("tooltip").to(this),l.delegate("execute").to(this,"open"),l}}class Bd extends rd{constructor(l){super(l);const n=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",n.to("position",l=>`ck-dropdown__panel_${l}`),n.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:n.to(l=>l.preventDefault())}})}focus(){if(this.children.length){const l=this.children.first;"function"==typeof l.focus?l.focus():y("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const l=this.children.last;"function"==typeof l.focusLast?l.focusLast():l.focus()}}}var Vd=o(5485);Ht()(Vd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vd.Z.locals;class Ud extends rd{constructor(l,n,e){super(l);const t=this.bindTemplate;this.buttonView=n,this.panelView=e,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new kt,this.focusTracker=new St,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",t.to("class"),t.if("isEnabled","ck-disabled",l=>!l)],id:t.to("id"),"aria-describedby":t.to("ariaDescribedById")},children:[n,e]}),n.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":t.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(l,n,e)=>{e&&("auto"===this.panelPosition?this.panelView.position=Ud._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 l=(l,n)=>{this.isOpen&&(this.isOpen=!1,n())};this.keystrokes.set("arrowdown",(l,n)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,n())}),this.keystrokes.set("arrowright",(l,n)=>{this.isOpen&&n()}),this.keystrokes.set("arrowleft",l),this.keystrokes.set("esc",l)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:l,north:n,southEast:e,southWest:t,northEast:o,northWest:u,southMiddleEast:i,southMiddleWest:a,northMiddleEast:r,northMiddleWest:s}=Ud.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[e,t,i,a,l,o,u,r,s,n]:[t,e,a,i,l,u,o,s,r,n]}}Ud.defaultPanelPositions={south:(l,n)=>({top:l.bottom,left:l.left-(n.width-l.width)/2,name:"s"}),southEast:l=>({top:l.bottom,left:l.left,name:"se"}),southWest:(l,n)=>({top:l.bottom,left:l.left-n.width+l.width,name:"sw"}),southMiddleEast:(l,n)=>({top:l.bottom,left:l.left-(n.width-l.width)/4,name:"sme"}),southMiddleWest:(l,n)=>({top:l.bottom,left:l.left-3*(n.width-l.width)/4,name:"smw"}),north:(l,n)=>({top:l.top-n.height,left:l.left-(n.width-l.width)/2,name:"n"}),northEast:(l,n)=>({top:l.top-n.height,left:l.left,name:"ne"}),northWest:(l,n)=>({top:l.top-n.height,left:l.left-n.width+l.width,name:"nw"}),northMiddleEast:(l,n)=>({top:l.top-n.height,left:l.left-(n.width-l.width)/4,name:"nme"}),northMiddleWest:(l,n)=>({top:l.top-n.height,left:l.left-3*(n.width-l.width)/4,name:"nmw"})},Ud._getOptimalPosition=tt;class Wd{constructor(l){if(this.focusables=l.focusables,this.focusTracker=l.focusTracker,this.keystrokeHandler=l.keystrokeHandler,this.actions=l.actions,l.actions&&l.keystrokeHandler)for(const n in l.actions){let e=l.actions[n];"string"==typeof e&&(e=[e]);for(const t of e)l.keystrokeHandler.set(t,(l,e)=>{this[n](),e()})}}get first(){return this.focusables.find(Gd)||null}get last(){return this.focusables.filter(Gd).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let l=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((n,e)=>{const t=n.element===this.focusTracker.focusedElement;return t&&(l=e),t}),l)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(l){l&&l.focus()}_getFocusableItem(l){const n=this.current,e=this.focusables.length;if(!e)return null;if(null===n)return this[1===l?"first":"last"];let t=(n+e+l)%e;do{const n=this.focusables.get(t);if(Gd(n))return n;t=(t+e+l)%e}while(t!==n);return null}}function Gd(l){return!(!l.focus||!et(l.element))}class jd extends rd{constructor(l){super(l),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Hd extends rd{constructor(l){super(l),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function Yd(l){return Array.isArray(l)?{items:l,removeItems:[]}:l?Object.assign({items:[],removeItems:[]},l):{items:[],removeItems:[]}}var Zd=o(5542);Ht()(Zd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Zd.Z.locals;const{threeVerticalDots:Xd}=wd,$d={alignLeft:wd.alignLeft,bold:wd.bold,importExport:wd.importExport,paragraph:wd.paragraph,plus:wd.plus,text:wd.text,threeVerticalDots:wd.threeVerticalDots};class Kd extends rd{constructor(l,n){super(l);const e=this.bindTemplate,t=this.t;this.options=n||{},this.set("ariaLabel",t("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new St,this.keystrokes=new kt,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Qd(l),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const o="rtl"===l.uiLanguageDirection;this._focusCycler=new Wd({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[o?"arrowright":"arrowleft","arrowup"],focusNext:[o?"arrowleft":"arrowright","arrowdown"]}});const u=["ck","ck-toolbar",e.to("class"),e.if("isCompact","ck-toolbar_compact")];var i;this.options.shouldGroupWhenFull&&this.options.isFloating&&u.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:u,role:"toolbar","aria-label":e.to("ariaLabel"),style:{maxWidth:e.to("maxWidth")}},children:this.children,on:{mousedown:(i=this,i.bindTemplate.to(l=>{l.target===i.element&&l.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new lc(this):new Jd(this)}render(){super.render();for(const l of this.items)this.focusTracker.add(l.element);this.items.on("add",(l,n)=>{this.focusTracker.add(n.element)}),this.items.on("remove",(l,n)=>{this.focusTracker.remove(n.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(l,n,e){const t=Yd(l),o=e||t.removeItems,u=this._cleanItemsConfiguration(t.items,n,o).map(l=>D(l)?this._createNestedToolbarDropdown(l,n,o):"|"===l?new jd:"-"===l?new Hd:n.create(l)).filter(l=>!!l);this.items.addMany(u)}_cleanItemsConfiguration(l,n,e){const t=l.filter((l,t,o)=>"|"===l||-1===e.indexOf(l)&&("-"===l?!this.options.shouldGroupWhenFull||(y("toolbarview-line-break-ignored-when-grouping-items",o),!1):!(!D(l)&&!n.has(l)&&(y("toolbarview-item-unavailable",{item:l}),1))));return this._cleanSeparatorsAndLineBreaks(t)}_cleanSeparatorsAndLineBreaks(l){const n=l=>"-"!==l&&"|"!==l,e=l.length,t=l.findIndex(n);if(-1===t)return[];const o=e-l.slice().reverse().findIndex(n);return l.slice(t,o).filter((l,e,t)=>!!n(l)||!(e>0&&t[e-1]===l))}_createNestedToolbarDropdown(l,n,e){let{label:t,icon:o,items:u,tooltip:i=!0,withText:a=!1}=l;if(!(u=this._cleanItemsConfiguration(u,n,e)).length)return null;const r=ac(this.locale);return t||y("toolbarview-nested-toolbar-dropdown-missing-label",l),r.class="ck-toolbar__nested-toolbar-dropdown",r.buttonView.set({label:t,tooltip:i,withText:!!a}),!1!==o?r.buttonView.icon=$d[o]||o||Xd:r.buttonView.withText=!0,rc(r,[]),r.toolbarView.fillFromConfig(u,n,e),r}}class Qd extends rd{constructor(l){super(l),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Jd{constructor(l){const n=l.bindTemplate;l.set("isVertical",!1),l.itemsView.children.bindTo(l.items).using(l=>l),l.focusables.bindTo(l.items).using(l=>l),l.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class lc{constructor(l){this.view=l,this.viewChildren=l.children,this.viewFocusables=l.focusables,this.viewItemsView=l.itemsView,this.viewFocusTracker=l.focusTracker,this.viewLocale=l.locale,this.ungroupedItems=l.createCollection(),this.groupedItems=l.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,l.itemsView.children.bindTo(this.ungroupedItems).using(l=>l),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),l.children.on("change",this._updateFocusCycleableItems.bind(this)),l.items.on("change",(l,n)=>{const e=n.index,t=Array.from(n.added);for(const o of n.removed)e>=this.ungroupedItems.length?this.groupedItems.remove(o):this.ungroupedItems.remove(o);for(let o=e;othis.ungroupedItems.length?this.groupedItems.add(l,o-this.ungroupedItems.length):this.ungroupedItems.add(l,o)}this._updateGrouping()}),l.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(l){this.viewElement=l.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(l)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!et(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const l=this.groupedItems.length;let n;for(;this._areItemsOverflowing;)this._groupLastItem(),n=!0;if(!n&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==l&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const l=this.viewElement,n=this.viewLocale.uiLanguageDirection,e=new Ye(l.lastChild),t=new Ye(l);if(!this.cachedPadding){const e=Ve.window.getComputedStyle(l),t="ltr"===n?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(e[t])}return"ltr"===n?e.right>t.right-this.cachedPadding:e.left{l&&l===n.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),l=n.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(l){l.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new jd),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 l=this.viewLocale,n=l.t,e=ac(l);return e.class="ck-toolbar__grouped-dropdown",e.panelPosition="ltr"===l.uiLanguageDirection?"sw":"se",rc(e,[]),e.buttonView.set({label:n("Show more items"),tooltip:!0,tooltipPosition:"rtl"===l.uiLanguageDirection?"se":"sw",icon:Xd}),e.toolbarView.items.bindTo(this.groupedItems).using(l=>l),e}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(l=>{this.viewFocusables.add(l)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var nc=o(1046);Ht()(nc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),nc.Z.locals;class ec extends rd{constructor(l){super(l),this.items=this.createCollection(),this.focusTracker=new St,this.keystrokes=new kt,this._focusCycler=new Wd({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 l of this.items)this.focusTracker.add(l.element);this.items.on("add",(l,n)=>{this.focusTracker.add(n.element)}),this.items.on("remove",(l,n)=>{this.focusTracker.remove(n.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class tc extends rd{constructor(l){super(l);const n=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",n.if("isVisible","ck-hidden",l=>!l)]},children:this.children})}focus(){this.children.first.focus()}}class oc extends rd{constructor(l){super(l),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var uc=o(7339);Ht()(uc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uc.Z.locals;var ic=o(3949);function ac(l,n=qd){const e=new n(l),t=new Bd(l),o=new Ud(l,e,t);return e.bind("isEnabled").to(o),e instanceof Pd?e.arrowView.bind("isOn").to(o,"isOpen"):e.bind("isOn").to(o,"isOpen"),function(l){(function(l){l.on("render",()=>{Rd({emitter:l,activator:()=>l.isOpen,callback:()=>{l.isOpen=!1},contextElements:[l.element]})})})(l),function(l){l.on("execute",n=>{n.source instanceof Nd||(l.isOpen=!1)})}(l),function(l){l.focusTracker.on("change:isFocused",(n,e,t)=>{l.isOpen&&!t&&(l.isOpen=!1)})}(l),function(l){l.keystrokes.set("arrowdown",(n,e)=>{l.isOpen&&(l.panelView.focus(),e())}),l.keystrokes.set("arrowup",(n,e)=>{l.isOpen&&(l.panelView.focusLast(),e())})}(l),function(l){l.on("change:isOpen",(n,e,t)=>{t||l.panelView.element.contains(Ve.document.activeElement)&&l.buttonView.focus()})}(l),function(l){l.on("change:isOpen",(n,e,t)=>{t&&l.panelView.focus()},{priority:"low"})}(l)}(o),o}function rc(l,n,e={}){const t=l.locale,o=t.t,u=l.toolbarView=new Kd(t);u.set("ariaLabel",o("Dropdown toolbar")),l.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),n.map(l=>u.items.add(l)),e.enableActiveItemFocusOnDropdownOpen&&dc(l,()=>u.items.find(l=>l.isOn)),l.panelView.children.add(u),u.items.delegate("execute").to(l)}function sc(l,n){const e=l.locale,t=l.listView=new ec(e);t.items.bindTo(n).using(l=>{if("separator"===l.type)return new oc(e);if("button"===l.type||"switchbutton"===l.type){const n=new tc(e);let t;return(t="button"===l.type?new Id(e):new Nd(e)).bind(...Object.keys(l.model)).to(l.model),t.delegate("execute").to(n),n.children.add(t),n}return null}),l.panelView.children.add(t),t.items.delegate("execute").to(l),dc(l,()=>t.items.find(l=>l instanceof tc&&l.children.first.isOn))}function dc(l,n){l.on("change:isOpen",()=>{if(!l.isOpen)return;const e=n();e&&("function"==typeof e.focus?e.focus():y("ui-dropdown-focus-child-on-open-child-missing-focus",{view:e}))},{priority:g.low-10})}Ht()(ic.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ic.Z.locals;var cc=o(9688);Ht()(cc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cc.Z.locals;class pc extends rd{constructor(l){super(l),this.body=new Ed(l)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var fc=o(3662);Ht()(fc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),fc.Z.locals;class mc extends rd{constructor(l){super(l),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${h()}`;const n=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:n.to("for")},children:[{text:n.to("text")}]})}}class hc extends pc{constructor(l){super(l),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:l.uiLanguageDirection,lang:l.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 l=this.t,n=new mc;return n.text=l("Rich Text Editor"),n.extendTemplate({attributes:{class:"ck-voice-label"}}),n}}class gc extends rd{constructor(l,n,e){super(l),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:l.contentLanguage,dir:l.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=e,this._hasExternalElement=!!this._editableElement,this._editingView=n}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 l=this._editingView;function n(n){l.change(e=>{const t=l.document.getRoot(n.name);e.addClass(n.isFocused?"ck-focused":"ck-blurred",t),e.removeClass(n.isFocused?"ck-blurred":"ck-focused",t)})}l.isRenderingInProgress?function e(t){l.once("change:isRenderingInProgress",(l,o,u)=>{u?e(t):n(t)})}(this):n(this)}}class vc extends gc{constructor(l,n,e,t={}){super(l,n,e);const o=l.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=t.label||(()=>o("Editor editing area: %0",this.name))}render(){super.render();const l=this._editingView;l.change(n=>{const e=l.document.getRoot(this.name);n.setAttribute("aria-label",this._generateLabel(this),e)})}}var bc=o(8847);Ht()(bc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bc.Z.locals;var yc=o(4879);Ht()(yc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),yc.Z.locals;class xc extends rd{constructor(l){super(l),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new St,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0),this.set("inputMode","text");const n=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",n.if("isFocused","ck-input_focused"),n.if("isEmpty","ck-input-text_empty"),n.if("hasError","ck-error")],id:n.to("id"),placeholder:n.to("placeholder"),readonly:n.to("isReadOnly"),inputmode:n.to("inputMode"),"aria-invalid":n.if("hasError",!0),"aria-describedby":n.to("ariaDescribedById")},on:{input:n.to((...l)=>{this.fire("input",...l),this._updateIsEmpty()}),change:n.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(l,n,e)=>{this._setDomElementValue(e),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(l){this.element.value=l||0===l?l:""}}class Ac extends xc{constructor(l){super(l),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var _c=o(2577);Ht()(_c.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_c.Z.locals;class Cc extends rd{constructor(l,n){super(l);const e=`ck-labeled-field-view-${h()}`,t=`ck-labeled-field-view-status-${h()}`;this.fieldView=n(this,e,t),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(e),this.statusView=this._createStatusView(t),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(l,n)=>l||n);const o=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",o.to("class"),o.if("isEnabled","ck-disabled",l=>!l),o.if("isEmpty","ck-labeled-field-view_empty"),o.if("isFocused","ck-labeled-field-view_focused"),o.if("placeholder","ck-labeled-field-view_placeholder"),o.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(l){const n=new mc(this.locale);return n.for=l,n.bind("text").to(this,"label"),n}_createStatusView(l){const n=new rd(this.locale),e=this.bindTemplate;return n.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",e.if("errorText","ck-labeled-field-view__status_error"),e.if("_statusText","ck-hidden",l=>!l)],id:l,role:e.if("errorText","alert")},children:[{text:e.to("_statusText")}]}),n}focus(){this.fieldView.focus()}}function wc(l,n,e){const t=new Ac(l.locale);return t.set({id:n,ariaDescribedById:e}),t.bind("isReadOnly").to(l,"isEnabled",l=>!l),t.bind("hasError").to(l,"errorText",l=>!!l),t.on("input",()=>{l.errorText=null}),l.bind("isEmpty","isFocused","placeholder").to(t),t}class Rc extends Gt{static get pluginName(){return"Notification"}init(){this.on("show:warning",(l,n)=>{window.alert(n.message)},{priority:"lowest"})}showSuccess(l,n={}){this._showNotification({message:l,type:"success",namespace:n.namespace,title:n.title})}showInfo(l,n={}){this._showNotification({message:l,type:"info",namespace:n.namespace,title:n.title})}showWarning(l,n={}){this._showNotification({message:l,type:"warning",namespace:n.namespace,title:n.title})}_showNotification(l){const n=l.namespace?`show:${l.type}:${l.namespace}`:`show:${l.type}`;this.fire(n,{message:l.message,type:l.type,title:l.title||""})}}class Lc extends(U()){constructor(l,n){super(),n&&ei(this,n),l&&this.set(l)}}var Mc=o(4650);Ht()(Mc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Mc.Z.locals;var Ec=o(7676);Ht()(Ec.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ec.Z.locals;const Oc=Qe("px");class Sc extends qt{static get pluginName(){return"ContextualBalloon"}constructor(l){super(l),this.positionLimiter=(()=>{const l=this.editor.editing.view,n=l.document.selection.editableElement;return n?l.domConverter.mapViewToDom(n.root):null}),this.set("visibleView",null),this.view=new pd(l.locale),l.ui.view.body.add(this.view),l.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()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(l){return Array.from(this._viewToStack.keys()).includes(l)}add(l){if(this.hasView(l.view))throw new b("contextualballoon-add-view-exist",[this,l]);const n=l.stackId||"main";if(!this._idToStack.has(n))return this._idToStack.set(n,new Map([[l.view,l]])),this._viewToStack.set(l.view,this._idToStack.get(n)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!l.singleViewMode||this.showStack(n));const e=this._idToStack.get(n);l.singleViewMode&&this.showStack(n),e.set(l.view,l),this._viewToStack.set(l.view,e),e===this._visibleStack&&this._showView(l)}remove(l){if(!this.hasView(l))throw new b("contextualballoon-remove-view-not-exist",[this,l]);const n=this._viewToStack.get(l);this._singleViewMode&&this.visibleView===l&&(this._singleViewMode=!1),this.visibleView===l&&(1===n.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(n.values())[n.size-2])),1===n.size?(this._idToStack.delete(this._getStackId(n)),this._numberOfStacks=this._idToStack.size):n.delete(l),this._viewToStack.delete(l)}updatePosition(l){l&&(this._visibleStack.get(this.visibleView).position=l),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(l){this.visibleStack=l;const n=this._idToStack.get(l);if(!n)throw new b("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==n&&this._showView(Array.from(n.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(l){return Array.from(this._idToStack.entries()).find(n=>n[1]===l)[0]}_showNextStack(){const l=Array.from(this._idToStack.values());let n=l.indexOf(this._visibleStack)+1;l[n]||(n=0),this.showStack(this._getStackId(l[n]))}_showPrevStack(){const l=Array.from(this._idToStack.values());let n=l.indexOf(this._visibleStack)-1;l[n]||(n=l.length-1),this.showStack(this._getStackId(l[n]))}_createRotatorView(){const l=new kc(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(l),l.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(l,n)=>!n&&l>1),l.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),l.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(l,e)=>{if(e<2)return"";const t=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return n("%0 of %1",[t,e])}),l.buttonNextView.on("execute",()=>{l.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),l.buttonPrevView.on("execute",()=>{l.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),l}_createFakePanelsView(){const l=new Ic(this.editor.locale,this.view);return l.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(l,n)=>!n&&l>=2?Math.min(l-1,2):0),l.listenTo(this.view,"change:top",()=>l.updatePosition()),l.listenTo(this.view,"change:left",()=>l.updatePosition()),this.editor.ui.view.body.add(l),l}_showView({view:l,balloonClassName:n="",withArrow:e=!0,singleViewMode:t=!1}){this.view.class=n,this.view.withArrow=e,this._rotatorView.showView(l),this.visibleView=l,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),t&&(this._singleViewMode=!0)}_getBalloonPosition(){let l=Array.from(this._visibleStack.values()).pop().position;return l&&(l.limiter||(l=Object.assign({},l,{limiter:this.positionLimiter})),l=Object.assign({},l,{viewportOffsetConfig:this.editor.ui.viewportOffset})),l}}class kc extends rd{constructor(l){super(l);const n=l.t,e=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new St,this.buttonPrevView=this._createButtonView(n("Previous"),''),this.buttonNextView=this._createButtonView(n("Next"),''),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",e.to("isNavigationVisible",l=>l?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:e.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(l){this.hideView(),this.content.add(l)}hideView(){this.content.clear()}_createButtonView(l,n){const e=new Id(this.locale);return e.set({label:l,icon:n,tooltip:!0}),e}}class Ic extends rd{constructor(l,n){super(l);const e=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=n,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",e.to("numberOfPanels",l=>l?"":"ck-hidden")],style:{top:e.to("top",Oc),left:e.to("left",Oc),width:e.to("width",Oc),height:e.to("height",Oc)}},children:this.content}),this.on("change:numberOfPanels",(l,n,e,t)=>{e>t?this._addPanels(e-t):this._removePanels(t-e),this.updatePosition()})}_addPanels(l){for(;l--;){const l=new rd;l.setTemplate({tag:"div"}),this.content.add(l),this.registerChild(l)}}_removePanels(l){for(;l--;){const l=this.content.last;this.content.remove(l),this.deregisterChild(l),l.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:l,left:n}=this._balloonPanelView,{width:e,height:t}=new Ye(this._balloonPanelView.element);Object.assign(this,{top:l,left:n,width:e,height:t})}}}var Fc=o(5868);Ht()(Fc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fc.Z.locals;const Nc=Qe("px");class Dc extends rd{constructor(l){super(l);const n=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 Vs({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:n.to("isSticky",l=>l?"block":"none"),height:n.to("isSticky",l=>l?Nc(this._panelRect.height):null)}}}).render(),this._contentPanel=new Vs({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",n.if("isSticky","ck-sticky-panel__content_sticky"),n.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:n.to("isSticky",l=>l?Nc(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:n.to("_hasViewportTopOffset",l=>l?Nc(this.viewportTopOffset):null),bottom:n.to("_isStickyToTheLimiter",l=>l?Nc(this.limiterBottomOffset):null),marginLeft:n.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(Ve.window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const l=this._panelRect=this._contentPanel.getBoundingClientRect();let n;this.limiterElement?(n=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&n.topl||0),l.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(l.toolbar)}_initPlaceholder(){const l=this.editor,n=l.editing.view,e=n.document.getRoot(),t=l.sourceElement,o=l.config.get("placeholder")||t&&"textarea"===t.tagName.toLowerCase()&&t.getAttribute("placeholder");o&&Xt({view:n,element:e,text:o,isDirectHost:!1,keepOnFocus:!0})}}var Pc=o(3143);Ht()(Pc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Pc.Z.locals;class Bc extends hc{constructor(l,n,e={}){super(l),this.stickyPanel=new Dc(l),this.toolbar=new Kd(l,{shouldGroupWhenFull:e.shouldToolbarGroupWhenFull}),this.editable=new vc(l,n)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Vc extends(Ad(_d(qs))){constructor(l,n={}){if(!Uc(l)&&void 0!==n.initialData)throw new b("editor-create-initial-data",null);super(n),void 0===this.config.get("initialData")&&this.config.set("initialData",function(l){return Uc(l)?(n=l)instanceof HTMLTextAreaElement?n.value:n.innerHTML:l;var n}(l)),Uc(l)&&(this.sourceElement=l),this.model.document.createRoot();const e=!this.config.get("toolbar.shouldNotGroupWhenFull"),t=new Bc(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:e});this.ui=new Tc(this,t),function(l){if(!Ll(l.updateSourceElement))throw new b("attachtoform-missing-elementapi-interface",l);const n=l.sourceElement;if(n&&"textarea"===n.tagName.toLowerCase()&&n.form){let e;const t=n.form,o=()=>l.updateSourceElement();Ll(t.submit)&&(e=t.submit,t.submit=(()=>{o(),e.apply(t)})),t.addEventListener("submit",o),l.on("destroy",()=>{t.removeEventListener("submit",o),e&&(t.submit=e)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(l,n={}){return new Promise(e=>{const t=new this(l,n);e(t.initPlugins().then(()=>t.ui.init(Uc(l)?l:null)).then(()=>t.data.init(t.config.get("initialData"))).then(()=>t.fire("ready")).then(()=>t))})}}function Uc(l){return Se(l)}class Wc extends oi{constructor(l){super(l);const n=this.document;function e(l){return(e,t)=>{t.preventDefault();const o=t.dropRange?[t.dropRange]:null,u=new f(n,l);n.fire(u,{dataTransfer:t.dataTransfer,method:e.name,targetRanges:o,target:t.target}),u.stop.called&&t.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(n,"paste",e("clipboardInput"),{priority:"low"}),this.listenTo(n,"drop",e("clipboardInput"),{priority:"low"}),this.listenTo(n,"dragover",e("dragging"),{priority:"low"})}onDomEvent(l){const n={dataTransfer:new Vi("clipboardData"in l?l.clipboardData:l.dataTransfer)};"drop"!=l.type&&"dragover"!=l.type||(n.dropRange=function(l,n){const e=n.target.ownerDocument,t=n.clientX,o=n.clientY;let u;return e.caretRangeFromPoint&&e.caretRangeFromPoint(t,o)?u=e.caretRangeFromPoint(t,o):n.rangeParent&&((u=e.createRange()).setStart(n.rangeParent,n.rangeOffset),u.collapse(!0)),u?l.domConverter.domRangeToView(u):null}(this.view,l)),this.fire(l.type,l,n)}}const Gc=["figcaption","li"];class jc extends qt{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Wc),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const l=this.editor,n=l.model,e=l.editing.view,t=e.document;this.listenTo(t,"clipboardInput",n=>{l.isReadOnly&&n.stop()},{priority:"highest"}),this.listenTo(t,"clipboardInput",(l,n)=>{const t=n.dataTransfer;let o;if(n.content)o=n.content;else{let l="";t.getData("text/html")?l=function(l){return t.getData("text/html").replace(/(\s+)<\/span>/g,(l,n)=>1==n.length?" ":n).replace(//g,"")}():t.getData("text/plain")&&(((u=(u=t.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"
").replace(/\r?\n/g,"
").replace(/\t/g," ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).includes("
")||u.includes("
"))&&(u=`
${u}
`),l=u),o=this.editor.data.htmlProcessor.toView(l)}var u;const i=new f(this,"inputTransformation");this.fire(i,{content:o,dataTransfer:t,targetRanges:n.targetRanges,method:n.method}),i.stop.called&&l.stop(),e.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(l,e)=>{if(e.content.isEmpty)return;const t=this.editor.data.toModel(e.content,"$clipboardHolder");0!=t.childCount&&(l.stop(),n.change(()=>{this.fire("contentInsertion",{content:t,method:e.method,dataTransfer:e.dataTransfer,targetRanges:e.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(l,e)=>{e.resultRange=n.insertContent(e.content)},{priority:"low"})}_setupCopyCut(){const l=this.editor,n=l.model.document,e=l.editing.view.document,t=(t,o)=>{const u=o.dataTransfer;o.preventDefault();const i=l.data.toView(l.model.getSelectedContent(n.selection));e.fire("clipboardOutput",{dataTransfer:u,content:i,method:t.name})};this.listenTo(e,"copy",t,{priority:"low"}),this.listenTo(e,"cut",(n,e)=>{l.isReadOnly?e.preventDefault():t(n,e)},{priority:"low"}),this.listenTo(e,"clipboardOutput",(e,t)=>{t.content.isEmpty||(t.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(t.content)),t.dataTransfer.setData("text/plain",function l(n){let e="";if(n.is("$text")||n.is("$textProxy"))e=n.data;else if(n.is("element","img")&&n.hasAttribute("alt"))e=n.getAttribute("alt");else if(n.is("element","br"))e="\n";else{let t=null;for(const o of n.getChildren()){const n=l(o);t&&(t.is("containerElement")||o.is("containerElement"))&&(Gc.includes(t.name)||Gc.includes(o.name)?e+="\n":e+="\n\n"),e+=n,t=o}}return e}(t.content))),"cut"==t.method&&l.model.deleteContent(n.selection)},{priority:"low"})}}class Hc{constructor(l,n=20){this._batch=null,this.model=l,this._size=0,this.limit=n,this._isLocked=!1,this._changeCallback=((l,n)=>{n.isLocal&&n.isUndoable&&n!==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({isTyping:!0})),this._batch}get size(){return this._size}input(l){this._size+=l,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}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(l=!1){this.isLocked&&!l||(this._batch=null,this._size=0)}}class Yc extends Pt{constructor(l,n){super(l),this._buffer=new Hc(l.model,n)}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(l={}){const n=this.editor.model,e=n.document,t=l.text||"",o=t.length;let u=e.selection;l.selection?u=l.selection:l.range&&(u=n.createSelection(l.range));const i=l.resultRange;n.enqueueChange(this._buffer.batch,l=>{this._buffer.lock(),n.deleteContent(u),t&&n.insertContent(l.createText(t,e.selection.getAttributes()),u),i?l.setSelection(i):u.is("documentSelection")||l.setSelection(u),this._buffer.unlock(),this._buffer.input(o)})}}const Zc=["insertText","insertReplacementText"];class Xc extends ni{constructor(l){super(l),t.isAndroid&&Zc.push("insertCompositionText");const n=l.document;n.on("beforeinput",(e,t)=>{if(!this.isEnabled)return;const{data:o,targetRanges:u,inputType:i,domEvent:a}=t;if(!Zc.includes(i))return;const r=new f(n,"insertText");n.fire(r,new ti(l,a,{text:o,selection:l.createSelection(u)})),r.stop.called&&e.stop()}),n.on("compositionend",(e,{data:o,domEvent:u})=>{this.isEnabled&&!t.isAndroid&&o&&n.fire("insertText",new ti(l,u,{text:o,selection:n.selection}))},{priority:"lowest"})}observe(){}}class $c extends qt{static get pluginName(){return"Input"}init(){const l=this.editor,n=l.model,e=l.editing.view,o=n.document.selection;e.addObserver(Xc);const u=new Yc(l,l.config.get("typing.undoStep")||20);l.commands.add("insertText",u),l.commands.add("input",u),this.listenTo(e.document,"insertText",(o,u)=>{e.document.isComposing||u.preventDefault();const{text:i,selection:a,resultRange:r}=u,s=Array.from(a.getRanges()).map(n=>l.editing.mapper.toModelRange(n));let d=i;if(t.isAndroid){const l=Array.from(s[0].getItems()).reduce((l,n)=>l+(n.is("$textProxy")?n.data:""),"");l&&(l.length<=d.length?d.startsWith(l)&&(d=d.substring(l.length),s[0].start=s[0].start.getShiftedBy(l.length)):l.startsWith(d)&&(s[0].start=s[0].start.getShiftedBy(d.length),d=""))}const c={text:d,selection:n.createSelection(s)};r&&(c.resultRange=l.editing.mapper.toModelRange(r)),l.execute("insertText",c)}),t.isAndroid?this.listenTo(e.document,"keydown",(l,t)=>{!o.isCollapsed&&229==t.keyCode&&e.document.isComposing&&Kc(n,u)}):this.listenTo(e.document,"compositionstart",()=>{o.isCollapsed||Kc(n,u)})}}function Kc(l,n){if(!n.isEnabled)return;const e=n.buffer;e.lock(),l.enqueueChange(e.batch,()=>{l.deleteContent(l.document.selection)}),e.unlock()}class Qc extends Pt{constructor(l,n){super(l),this.direction=n,this._buffer=new Hc(l.model,l.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(l={}){const n=this.editor.model,e=n.document;n.enqueueChange(this._buffer.batch,t=>{this._buffer.lock();const o=t.createSelection(l.selection||e.selection),u=l.sequence||1,i=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:this.direction,unit:l.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(u))return void this._replaceEntireContentWithParagraph(t);if(this._shouldReplaceFirstBlockWithParagraph(o,u))return void this.editor.execute("paragraph",{selection:o});if(o.isCollapsed)return;let a=0;o.getFirstRange().getMinimalFlatRanges().forEach(l=>{a+=X(l.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),n.deleteContent(o,{doNotResetEntireContent:i,direction:this.direction}),this._buffer.input(a),t.setSelection(o),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(l){if(l>1)return!1;const n=this.editor.model,e=n.document.selection,t=n.schema.getLimitElement(e);if(!e.isCollapsed||!e.containsEntireContent(t))return!1;if(!n.schema.checkChild(t,"paragraph"))return!1;const o=t.getChild(0);return!o||!o.is("element","paragraph")}_replaceEntireContentWithParagraph(l){const n=this.editor.model,e=n.document.selection,t=n.schema.getLimitElement(e),o=l.createElement("paragraph");l.remove(l.createRangeIn(t)),l.insert(o,t),l.setSelection(o,0)}_shouldReplaceFirstBlockWithParagraph(l,n){const e=this.editor.model;if(n>1||"backward"!=this.direction)return!1;if(!l.isCollapsed)return!1;const t=l.getFirstPosition(),o=e.schema.getLimitElement(t),u=o.getChild(0);return t.parent==u&&!!l.containsEntireContent(u)&&!!e.schema.checkChild(o,"paragraph")&&"paragraph"!=u.name}}const Jc="selection",lp="backward",np="forward",ep={deleteContent:{unit:Jc,direction:lp},deleteContentBackward:{unit:"codePoint",direction:lp},deleteWordBackward:{unit:"word",direction:lp},deleteHardLineBackward:{unit:Jc,direction:lp},deleteSoftLineBackward:{unit:Jc,direction:lp},deleteContentForward:{unit:"character",direction:np},deleteWordForward:{unit:"word",direction:np},deleteHardLineForward:{unit:Jc,direction:np},deleteSoftLineForward:{unit:Jc,direction:np}};class tp extends ni{constructor(l){super(l);const n=l.document;let e=0;n.on("keydown",()=>{e++}),n.on("keyup",()=>{e=0}),n.on("beforeinput",(o,u)=>{if(!this.isEnabled)return;const{targetRanges:i,domEvent:a,inputType:r}=u,s=ep[r];if(!s)return;const d={direction:s.direction,unit:s.unit,sequence:e};d.unit==Jc&&(d.selectionToRemove=l.createSelection(i[0])),t.isAndroid&&"deleteContentBackward"===r&&(d.sequence=1,1!=i.length||i[0].start.parent==i[0].end.parent&&i[0].start.offset+1==i[0].end.offset||(d.unit=Jc,d.selectionToRemove=l.createSelection(i)));const c=new ou(n,"delete",i[0]);n.fire(c,new ti(l,a,d)),c.stop.called&&o.stop()}),t.isBlink&&function(l){const n=l.view,e=n.document;let t=null,o=!1;function u(l){return l==bt.backspace||l==bt.delete}function i(l){return l==bt.backspace?lp:np}e.on("keydown",(l,{keyCode:n})=>{t=n,o=!1}),e.on("keyup",(a,{keyCode:r,domEvent:s})=>{const d=e.selection,c=l.isEnabled&&r==t&&u(r)&&!d.isCollapsed&&!o;if(t=null,c){const l=d.getFirstRange(),t=new ou(e,"delete",l),o={unit:Jc,direction:i(r),selectionToRemove:d};e.fire(t,new ti(n,s,o))}}),e.on("beforeinput",(l,{inputType:n})=>{const e=ep[n];u(t)&&e&&e.direction==i(t)&&(o=!0)},{priority:"high"}),e.on("beforeinput",(l,{inputType:n,data:e})=>{t==bt.delete&&"insertText"==n&&"\x7f"==e&&l.stop()},{priority:"high"})}(this)}observe(){}}class op extends qt{static get pluginName(){return"Delete"}init(){const l=this.editor,n=l.editing.view,e=n.document,t=l.model.document;n.addObserver(tp),this._undoOnBackspace=!1;const o=new Qc(l,"forward");l.commands.add("deleteForward",o),l.commands.add("forwardDelete",o),l.commands.add("delete",new Qc(l,"backward")),this.listenTo(e,"delete",(t,o)=>{e.isComposing||o.preventDefault();const{direction:u,sequence:i,selectionToRemove:a,unit:r}=o,s="forward"===u?"deleteForward":"delete",d={sequence:i};if("selection"==r){const n=Array.from(a.getRanges()).map(n=>l.editing.mapper.toModelRange(n));d.selection=l.model.createSelection(n)}else d.unit=r;l.execute(s,d),n.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(e,"delete",(n,e)=>{this._undoOnBackspace&&"backward"==e.direction&&1==e.sequence&&"codePoint"==e.unit&&(this._undoOnBackspace=!1,l.execute("undo"),e.preventDefault(),n.stop())},{context:"$capture"}),this.listenTo(t,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class up extends qt{static get requires(){return[$c,op]}static get pluginName(){return"Typing"}}function ip(l,n){let e=l.start;return{text:Array.from(l.getItems()).reduce((l,t)=>t.is("$text")||t.is("$textProxy")?l+t.data:(e=n.createPositionAfter(t),""),""),range:n.createRange(e,l.end)}}class ap extends(U()){constructor(l,n){super(),this.model=l,this.testCallback=n,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(l.document.selection),this.stopListening(l.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const l=this.model.document;this.listenTo(l.selection,"change:range",(n,{directChange:e})=>{e&&(l.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(l,"change:data",(l,n)=>{!n.isUndo&&n.isLocal&&this._evaluateTextBeforeSelection("data",{batch:n})})}_evaluateTextBeforeSelection(l,n={}){const e=this.model,t=e.document.selection,o=e.createRange(e.createPositionAt(t.focus.parent,0),t.focus),{text:u,range:i}=ip(o,e),a=this.testCallback(u);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){const e=Object.assign(n,{text:u,range:i});"object"==typeof a&&Object.assign(e,a),this.fire(`matched:${l}`,e)}}}class rp extends qt{static get pluginName(){return"TwoStepCaretMovement"}constructor(l){super(l),this.attributes=new Set,this._overrideUid=null}init(){const l=this.editor,n=l.model,e=l.editing.view,t=l.locale,o=n.document.selection;this.listenTo(e.document,"arrowKey",(l,n)=>{if(!o.isCollapsed)return;if(n.shiftKey||n.altKey||n.ctrlKey)return;const e=n.keyCode==bt.arrowright,u=n.keyCode==bt.arrowleft;if(!e&&!u)return;const i=t.contentLanguageDirection;let a=!1;!0===(a="ltr"===i&&e||"rtl"===i&&u?this._handleForwardMovement(n):this._handleBackwardMovement(n))&&l.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(l,n)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!n.directChange&&pp(o.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(l){this.attributes.add(l)}_handleForwardMovement(l){const n=this.attributes,e=this.editor.model.document.selection,t=e.getFirstPosition();return!(this._isGravityOverridden||t.isAtStart&&sp(e,n)||!pp(t,n)||(cp(l),this._overrideGravity(),0))}_handleBackwardMovement(l){const n=this.attributes,e=this.editor.model,t=e.document.selection,o=t.getFirstPosition();return this._isGravityOverridden?(cp(l),this._restoreGravity(),dp(e,n,o),!0):o.isAtStart?!!sp(t,n)&&(cp(l),dp(e,n,o),!0):!!function(l,n){return pp(o.getShiftedBy(-1),n)}(0,n)&&(o.isAtEnd&&!sp(t,n)&&pp(o,n)?(cp(l),dp(e,n,o),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(l=>l.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(l=>{l.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function sp(l,n){for(const e of n)if(l.hasAttribute(e))return!0;return!1}function dp(l,n,e){const t=e.nodeBefore;l.change(l=>{t?l.setSelectionAttribute(t.getAttributes()):l.removeSelectionAttribute(n)})}function cp(l){l.preventDefault()}function pp(l,n){const{nodeBefore:e,nodeAfter:t}=l;for(const o of n){const l=e?e.getAttribute(o):void 0;if((t?t.getAttribute(o):void 0)!==l)return!0}return!1}var fp=/[\\^$.*+?()[\]{}|]/g,mp=RegExp(fp.source);const hp=function(l){return(l=yo(l))&&mp.test(l)?l.replace(fp,"\\$&"):l},gp={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:_p('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:_p("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:_p("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:_p('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:_p('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:_p("'"),to:[null,"\u201a",null,"\u2019"]}},vp={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},bp=["symbols","mathematical","typography","quotes"];function yp(l){return"string"==typeof l?new RegExp(`(${hp(l)})$`):l}function xp(l){return"string"==typeof l?()=>[l]:l instanceof Array?()=>l:l}function Ap(l){return(l.textNode?l.textNode:l.nodeAfter).getAttributes()}function _p(l){return new RegExp(`(^|\\s)(${l})([^${l}]*)(${l})$`)}function Cp(l,n,e,t){return t.createRange(wp(l,n,e,!0,t),wp(l,n,e,!1,t))}function wp(l,n,e,t,o){let u=l.textNode||(t?l.nodeBefore:l.nodeAfter),i=null;for(;u&&u.getAttribute(n)==e;)i=u,u=t?u.previousSibling:u.nextSibling;return i?o.createPositionAt(i,t?"before":"after"):l}function*Rp(l,n){for(const e of n)e&&l.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class Lp extends Pt{execute(){this.editor.model.change(l=>{this.enterBlock(l),this.fire("afterExecute",{writer:l})})}enterBlock(l){const n=this.editor.model,e=n.document.selection,t=n.schema,o=e.isCollapsed,u=e.getFirstRange(),i=u.start.parent,a=u.end.parent;if(t.isLimit(i)||t.isLimit(a))return o||i!=a||n.deleteContent(e),!1;if(o){const n=Rp(l.model.schema,e.getAttributes());return Mp(l,u.start),l.setSelectionAttribute(n),!0}{const t=!(u.start.isAtStart&&u.end.isAtEnd),o=i==a;if(n.deleteContent(e,{leaveUnmerged:t}),t){if(o)return Mp(l,e.focus),!0;l.setSelection(a,0)}}return!1}}function Mp(l,n){l.split(n),l.setSelection(n.parent.nextSibling,0)}const Ep={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Op extends ni{constructor(l){super(l);const n=this.document;n.on("beforeinput",(e,t)=>{if(!this.isEnabled)return;const o=t.domEvent,u=Ep[t.inputType];if(!u)return;const i=new ou(n,"enter",t.targetRanges[0]);n.fire(i,new ti(l,o,{isSoft:u.isSoft})),i.stop.called&&e.stop()})}observe(){}}class Sp extends qt{static get pluginName(){return"Enter"}init(){const l=this.editor,n=l.editing.view,e=n.document;n.addObserver(Op),l.commands.add("enter",new Lp(l)),this.listenTo(e,"enter",(t,o)=>{e.isComposing||o.preventDefault(),o.isSoft||(l.execute("enter"),n.scrollToTheSelection())},{priority:"low"})}}class kp extends Pt{execute(){const l=this.editor.model,n=l.document;l.change(e=>{!function(l,n,e){const t=e.isCollapsed,o=e.getFirstRange(),u=o.start.parent,i=o.end.parent,a=u==i;if(t){const t=Rp(l.schema,e.getAttributes());Ip(l,n,o.end),n.removeSelectionAttribute(e.getAttributeKeys()),n.setSelectionAttribute(t)}else{const t=!(o.start.isAtStart&&o.end.isAtEnd);l.deleteContent(e,{leaveUnmerged:t}),a?Ip(l,n,e.focus):t&&n.setSelection(i,0)}}(l,e,n.selection),this.fire("afterExecute",{writer:e})})}refresh(){const l=this.editor.model,n=l.document;this.isEnabled=function(l,n){if(n.rangeCount>1)return!1;const e=n.anchor;if(!e||!l.checkChild(e,"softBreak"))return!1;const t=n.getFirstRange(),o=t.start.parent,u=t.end.parent;return!Fp(o,l)&&!Fp(u,l)||o===u}(l.schema,n.selection)}}function Ip(l,n,e){const t=n.createElement("softBreak");l.insertContent(t,e),n.setSelection(t,"after")}function Fp(l,n){return!l.is("rootElement")&&(n.isLimit(l)||Fp(l.parent,n))}class Np extends qt{static get pluginName(){return"ShiftEnter"}init(){const l=this.editor,n=l.model.schema,e=l.conversion,t=l.editing.view,o=t.document;n.register("softBreak",{allowWhere:"$text",isInline:!0}),e.for("upcast").elementToElement({model:"softBreak",view:"br"}),e.for("downcast").elementToElement({model:"softBreak",view:(l,{writer:n})=>n.createEmptyElement("br")}),t.addObserver(Op),l.commands.add("shiftEnter",new kp(l)),this.listenTo(o,"enter",(n,e)=>{o.isComposing||e.preventDefault(),e.isSoft&&(l.execute("shiftEnter"),t.scrollToTheSelection())},{priority:"low"})}}class Dp extends(E()){constructor(){super(),this._stack=[]}add(l,n){const e=this._stack,t=e[0];this._insertDescriptor(l);const o=e[0];t===o||zp(t,o)||this.fire("change:top",{oldDescriptor:t,newDescriptor:o,writer:n})}remove(l,n){const e=this._stack,t=e[0];this._removeDescriptor(l);const o=e[0];t===o||zp(t,o)||this.fire("change:top",{oldDescriptor:t,newDescriptor:o,writer:n})}_insertDescriptor(l){const n=this._stack,e=n.findIndex(n=>n.id===l.id);if(zp(l,n[e]))return;e>-1&&n.splice(e,1);let t=0;for(;n[t]&&qp(n[t],l);)t++;n.splice(t,0,l)}_removeDescriptor(l){const n=this._stack,e=n.findIndex(n=>n.id===l);e>-1&&n.splice(e,1)}}function zp(l,n){return l&&n&&l.priority==n.priority&&Tp(l.classes)==Tp(n.classes)}function qp(l,n){return l.priority>n.priority||!(l.priorityTp(n.classes)}function Tp(l){return Array.isArray(l)?l.sort().join(","):l}const Pp='',Bp="ck-widget_selected";function Vp(l){return!!l.is("element")&&!!l.getCustomProperty("widget")}function Up(l,n,e={}){if(!l.is("containerElement"))throw new b("widget-to-widget-wrong-element-type",null,{element:l});return n.setAttribute("contenteditable","false",l),n.addClass("ck-widget",l),n.setCustomProperty("widget",!0,l),l.getFillerOffset=Hp,n.setCustomProperty("widgetLabel",[],l),e.label&&function(l,n){l.getCustomProperty("widgetLabel").push(n)}(l,e.label),e.hasSelectionHandle&&function(l,n){const e=n.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(l){const n=this.toDomElement(l),e=new Sd;return e.set("content",Pp),e.render(),n.appendChild(e.element),n});n.insert(n.createPositionAt(l,0),e),n.addClass(["ck-widget_with-selection-handle"],l)}(l,n),Wp(l,n),l}function Wp(l,n,e=function(l,n,e){if(n.classes&&e.addClass(wt(n.classes),l),n.attributes)for(const t in n.attributes)e.setAttribute(t,n.attributes[t],l)},t=function(l,n,e){if(n.classes&&e.removeClass(wt(n.classes),l),n.attributes)for(const t in n.attributes)e.removeAttribute(t,l)}){const o=new Dp;o.on("change:top",(n,o)=>{o.oldDescriptor&&t(l,o.oldDescriptor,o.writer),o.newDescriptor&&e(l,o.newDescriptor,o.writer)}),n.setCustomProperty("addHighlight",(l,n,e)=>o.add(n,e),l),n.setCustomProperty("removeHighlight",(l,n,e)=>o.remove(n,e),l)}function Gp(l,n,e={}){return n.addClass(["ck-editor__editable","ck-editor__nested-editable"],l),n.setAttribute("role","textbox",l),e.label&&n.setAttribute("aria-label",e.label,l),n.setAttribute("contenteditable",l.isReadOnly?"false":"true",l),l.on("change:isReadOnly",(e,t,o)=>{n.setAttribute("contenteditable",o?"false":"true",l)}),l.on("change:isFocused",(e,t,o)=>{o?n.addClass("ck-editor__nested-editable_focused",l):n.removeClass("ck-editor__nested-editable_focused",l)}),Wp(l,n),l}function jp(l,n){const e=l.getSelectedElement();if(e){const t=Xp(l);if(t)return n.createRange(n.createPositionAt(e,t))}return Ls(l,n)}function Hp(){return null}const Yp="widget-type-around";function Zp(l,n,e){return!!l&&Vp(l)&&!e.isInline(n)}function Xp(l){return l.getAttribute(Yp)}var $p=o(4921);Ht()($p.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$p.Z.locals;const Kp=["before","after"],Qp=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,Jp="ck-widget__type-around_disabled";class lf extends qt{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Sp,op]}constructor(l){super(l),this._currentFakeCaretModelElement=null}init(){const l=this.editor,n=l.editing.view;this.on("change:isEnabled",(e,t,o)=>{n.change(l=>{for(const e of n.document.roots)o?l.removeClass(Jp,e):l.addClass(Jp,e)}),o||l.model.change(l=>{l.removeSelectionAttribute(Yp)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(l,n){const e=this.editor,t=e.editing.view,o=e.model.schema.getAttributesWithProperty(l,"copyOnReplace",!0);e.execute("insertParagraph",{position:e.model.createPositionAt(l,n),attributes:o}),t.focus(),t.scrollToTheSelection()}_listenToIfEnabled(l,n,e,t){this.listenTo(l,n,(...l)=>{this.isEnabled&&e(...l)},t)}_insertParagraphAccordingToFakeCaretPosition(){const l=this.editor.model.document.selection,n=Xp(l);if(!n)return!1;const e=l.getSelectedElement();return this._insertParagraph(e,n),!0}_enableTypeAroundUIInjection(){const l=this.editor,n=l.model.schema,e=l.locale.t,t={before:e("Insert paragraph before block"),after:e("Insert paragraph after block")};l.editing.downcastDispatcher.on("insert",(l,o,u)=>{const i=u.mapper.toViewElement(o.item);i&&Zp(i,o.item,n)&&(!function(l,n,e){const t=l.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(l){const e=this.toDomElement(l);return function(l,n){for(const e of Kp){const t=new Vs({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${e}`],title:n[e],"aria-hidden":"true"},children:[l.ownerDocument.importNode(Qp,!0)]});l.appendChild(t.render())}}(e,n),function(l){const n=new Vs({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});l.appendChild(n.render())}(e),e});l.insert(l.createPositionAt(e,"end"),t)}(u.writer,t,i),i.getCustomProperty("widgetLabel").push(()=>this.isEnabled?e("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const l=this.editor,n=l.model,e=n.document.selection,t=n.schema,o=l.editing.view;function u(l){return`ck-widget_type-around_show-fake-caret_${l}`}this._listenToIfEnabled(o.document,"arrowKey",(l,n)=>{this._handleArrowKeyPress(l,n)},{context:[Vp,"$text"],priority:"high"}),this._listenToIfEnabled(e,"change:range",(n,e)=>{e.directChange&&l.model.change(l=>{l.removeSelectionAttribute(Yp)})}),this._listenToIfEnabled(n.document,"change:data",()=>{const n=e.getSelectedElement();n&&Zp(l.editing.mapper.toViewElement(n),n,t)||l.model.change(l=>{l.removeSelectionAttribute(Yp)})}),this._listenToIfEnabled(l.editing.downcastDispatcher,"selection",(l,n,e)=>{const o=e.writer;if(this._currentFakeCaretModelElement){const l=e.mapper.toViewElement(this._currentFakeCaretModelElement);l&&(o.removeClass(Kp.map(u),l),this._currentFakeCaretModelElement=null)}const i=n.selection.getSelectedElement();if(!i)return;const a=e.mapper.toViewElement(i);if(!Zp(a,i,t))return;const r=Xp(n.selection);r&&(o.addClass(u(r),a),this._currentFakeCaretModelElement=i)}),this._listenToIfEnabled(l.ui.focusTracker,"change:isFocused",(n,e,t)=>{t||l.model.change(l=>{l.removeSelectionAttribute(Yp)})})}_handleArrowKeyPress(l,n){const e=this.editor,t=e.model,o=t.document.selection,u=t.schema,i=e.editing.view,a=function(l,n){const e=Ct(l,n);return"down"===e||"right"===e}(n.keyCode,e.locale.contentLanguageDirection),r=i.document.selection.getSelectedElement();let s;Zp(r,e.editing.mapper.toModelElement(r),u)?s=this._handleArrowKeyPressOnSelectedWidget(a):o.isCollapsed?s=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):n.shiftKey||(s=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),s&&(n.preventDefault(),l.stop())}_handleArrowKeyPressOnSelectedWidget(l){const n=this.editor.model,e=Xp(n.document.selection);return n.change(n=>e?e!==(l?"after":"before")&&(n.removeSelectionAttribute(Yp),!0):(n.setSelectionAttribute(Yp,l?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(l){const n=this.editor,e=n.model,t=e.schema,o=n.plugins.get("Widget"),u=o._getObjectElementNextToSelection(l);return!!Zp(n.editing.mapper.toViewElement(u),u,t)&&(e.change(n=>{o._setSelectionOverElement(u),n.setSelectionAttribute(Yp,l?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(l){const n=this.editor,e=n.model,t=e.schema,o=n.editing.mapper,u=e.document.selection,i=l?u.getLastPosition().nodeBefore:u.getFirstPosition().nodeAfter;return!!Zp(o.toViewElement(i),i,t)&&(e.change(n=>{n.setSelection(i,"on"),n.setSelectionAttribute(Yp,l?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const l=this.editor,n=l.editing.view;this._listenToIfEnabled(n.document,"mousedown",(e,t)=>{const o=t.domTarget.closest(".ck-widget__type-around__button");if(!o)return;const u=function(l){return o.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(),i=function(l,n){const e=l.closest(".ck-widget");return n.mapDomToView(e)}(o,n.domConverter),a=l.editing.mapper.toModelElement(i);this._insertParagraph(a,u),t.preventDefault(),e.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const l=this.editor,n=l.model.document.selection,e=l.editing.view;this._listenToIfEnabled(e.document,"enter",(e,t)=>{if("atTarget"!=e.eventPhase)return;const o=n.getSelectedElement(),u=l.editing.mapper.toViewElement(o),i=l.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:Zp(u,o,i)&&(this._insertParagraph(o,t.isSoft?"before":"after"),a=!0),a&&(t.preventDefault(),e.stop())},{context:Vp})}_enableInsertingParagraphsOnTypingKeystroke(){const l=this.editor.editing.view.document;this._listenToIfEnabled(l,"insertText",(n,e)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(e.selection=l.selection)},{priority:"high"}),t.isAndroid?this._listenToIfEnabled(l,"keydown",(l,n)=>{229==n.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(l,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const l=this.editor,n=l.editing.view,e=l.model,t=e.schema;this._listenToIfEnabled(n.document,"delete",(n,o)=>{if("atTarget"!=n.eventPhase)return;const u=Xp(e.document.selection);if(!u)return;const i=o.direction,a=e.document.selection.getSelectedElement(),r="forward"==i;if("before"===u===r)l.execute("delete",{selection:e.createSelection(a,"on")});else{const n=t.getNearestSelectionRange(e.createPositionAt(a,u),i);if(n)if(n.isCollapsed){const o=e.createSelection(n.start);if(e.modifySelection(o,{direction:i}),o.focus.isEqual(n.start)){const l=function(l,n){let e=n;for(const t of n.getAncestors({parentFirst:!0})){if(t.childCount>1||l.isLimit(t))break;e=t}return e}(t,n.start.parent);e.deleteContent(e.createSelection(l,"on"),{doNotAutoparagraph:!0})}else e.change(e=>{e.setSelection(n),l.execute(r?"deleteForward":"delete")})}else e.change(e=>{e.setSelection(n),l.execute(r?"deleteForward":"delete")})}o.preventDefault(),n.stop()},{context:Vp})}_enableInsertContentIntegration(){const l=this.editor,n=this.editor.model,e=n.document.selection;this._listenToIfEnabled(l.model,"insertContent",(l,[t,o])=>{if(o&&!o.is("documentSelection"))return;const u=Xp(e);return u?(l.stop(),n.change(l=>{const o=e.getSelectedElement(),i=n.createPositionAt(o,u),a=l.createSelection(i),r=n.insertContent(t,a);return l.setSelection(a),r})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const l=this.editor,n=this.editor.model.document.selection;this._listenToIfEnabled(l.model,"insertObject",(l,e)=>{const[,t,,o={}]=e;if(t&&!t.is("documentSelection"))return;const u=Xp(n);u&&(o.findOptimalPosition=u,e[3]=o)},{priority:"high"})}_enableDeleteContentIntegration(){const l=this.editor,n=this.editor.model.document.selection;this._listenToIfEnabled(l.model,"deleteContent",(l,[e])=>{e&&!e.is("documentSelection")||Xp(n)&&l.stop()},{priority:"high"})}}function nf(l,n,e){const t=l.schema,o=l.createRangeIn(n.root),u="forward"==e?"elementStart":"elementEnd";for(const{previousPosition:i,item:a,type:r}of o.getWalker({startPosition:n,direction:e})){if(t.isLimit(a)&&!t.isInline(a))return i;if(r==u&&t.isBlock(a))return null}return null}function ef(l,n,e){const t="backward"==e?n.end:n.start;if(l.checkChild(t,"$text"))return t;for(const{nextPosition:o}of n.getWalker({direction:e}))if(l.checkChild(o,"$text"))return o;return null}var tf=o(3488);Ht()(tf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tf.Z.locals;class of extends qt{static get pluginName(){return"Widget"}static get requires(){return[lf,op]}init(){const l=this.editor,n=l.editing.view,e=n.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(n,e,t)=>{const o=t.writer,u=e.selection;if(u.isCollapsed)return;const i=u.getSelectedElement();if(!i)return;const a=l.editing.mapper.toViewElement(i);var r;Vp(a)&&t.consumable.consume(u,"selection")&&o.setSelection(o.createRangeOn(a),{fake:!0,label:(r=a,r.getCustomProperty("widgetLabel").reduce((l,n)=>"function"==typeof n?l?l+". "+n():n():l?l+". "+n:n,""))})}),this.editor.editing.downcastDispatcher.on("selection",(l,n,e)=>{this._clearPreviouslySelectedWidgets(e.writer);const t=e.writer,o=t.document.selection;let u=null;for(const i of o.getRanges())for(const l of i){const n=l.item;Vp(n)&&!uf(n,u)&&(t.addClass(Bp,n),this._previouslySelected.add(n),u=n)}},{priority:"low"}),n.addObserver(Fs),this.listenTo(e,"mousedown",(...l)=>this._onMousedown(...l)),this.listenTo(e,"arrowKey",(...l)=>{this._handleSelectionChangeOnArrowKeyPress(...l)},{context:[Vp,"$text"]}),this.listenTo(e,"arrowKey",(...l)=>{this._preventDefaultOnArrowKeyPress(...l)},{context:"$root"}),this.listenTo(e,"arrowKey",function(l){const n=l.model;return(e,t)=>{const o=t.keyCode==bt.arrowup,u=t.keyCode==bt.arrowdown,i=t.shiftKey,a=n.document.selection;if(!o&&!u)return;const r=u;if(i&&function(l,n){return!l.isCollapsed&&l.isBackward==n}(a,r))return;const s=function(l,n,e){const t=l.model;if(e){const l=n.isCollapsed?n.focus:n.getLastPosition(),e=nf(t,l,"forward");if(!e)return null;const o=t.createRange(l,e),u=ef(t.schema,o,"backward");return u?t.createRange(l,u):null}{const l=n.isCollapsed?n.focus:n.getFirstPosition(),e=nf(t,l,"backward");if(!e)return null;const o=t.createRange(e,l),u=ef(t.schema,o,"forward");return u?t.createRange(u,l):null}}(l,a,r);if(s){if(s.isCollapsed){if(a.isCollapsed)return;if(i)return}(s.isCollapsed||function(l,n,e){const t=l.model,o=l.view.domConverter;if(e){const l=t.createSelection(n.start);t.modifySelection(l),l.focus.isAtEnd||n.start.isEqual(l.focus)||(n=t.createRange(l.focus,n.end))}const u=l.mapper.toViewRange(n),i=o.viewRangeToDom(u),a=Ye.getDomRangeRects(i);let r;for(const s of a)if(void 0!==r){if(Math.round(s.top)>=r)return!1;r=Math.max(r,Math.round(s.bottom))}else r=Math.round(s.bottom);return!0}(l,s,r))&&(n.change(l=>{const e=r?s.end:s.start;if(i){const t=n.createSelection(a.anchor);t.setFocus(e),l.setSelection(t)}else l.setSelection(e)}),e.stop(),t.preventDefault(),t.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(e,"delete",(l,n)=>{this._handleDelete("forward"==n.direction)&&(n.preventDefault(),l.stop())},{context:"$root"})}_onMousedown(l,n){const e=this.editor,o=e.editing.view,u=o.document;let i=n.target;if(function(l){let n=i;for(;n;){if(n.is("editableElement")&&!n.is("rootElement"))return!0;if(Vp(n))return!1;n=n.parent}return!1}()){if((t.isSafari||t.isGecko)&&n.domEvent.detail>=3){const l=e.editing.mapper,t=i.is("attributeElement")?i.findAncestor(l=>!l.is("attributeElement")):i,o=l.toModelElement(t);n.preventDefault(),this.editor.model.change(l=>{l.setSelection(o,"in")})}return}if(!Vp(i)&&!(i=i.findAncestor(Vp)))return;t.isAndroid&&n.preventDefault(),u.isFocused||o.focus();const a=e.editing.mapper.toModelElement(i);this._setSelectionOverElement(a)}_handleSelectionChangeOnArrowKeyPress(l,n){const e=n.keyCode,t=this.editor.model,o=t.schema,u=t.document.selection,i=u.getSelectedElement(),a=Ct(e,this.editor.locale.contentLanguageDirection),r="down"==a||"right"==a,s="up"==a||"down"==a;if(i&&o.isObject(i)){const e=r?u.getLastPosition():u.getFirstPosition(),i=o.getNearestSelectionRange(e,r?"forward":"backward");return void(i&&(t.change(l=>{l.setSelection(i)}),n.preventDefault(),l.stop()))}if(!u.isCollapsed&&!n.shiftKey){const e=u.getFirstPosition(),i=u.getLastPosition(),a=e.nodeAfter,s=i.nodeBefore;return void((a&&o.isObject(a)||s&&o.isObject(s))&&(t.change(l=>{l.setSelection(r?i:e)}),n.preventDefault(),l.stop()))}if(!u.isCollapsed)return;const d=this._getObjectElementNextToSelection(r);if(d&&o.isObject(d)){if(o.isInline(d)&&s)return;this._setSelectionOverElement(d),n.preventDefault(),l.stop()}}_preventDefaultOnArrowKeyPress(l,n){const e=this.editor.model,t=e.schema,o=e.document.selection.getSelectedElement();o&&t.isObject(o)&&(n.preventDefault(),l.stop())}_handleDelete(l){if(this.editor.isReadOnly)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const e=this._getObjectElementNextToSelection(l);return e?(this.editor.model.change(l=>{let t=n.anchor.parent;for(;t.isEmpty;){const n=t;t=n.parent,l.remove(n)}this._setSelectionOverElement(e)}),!0):void 0}_setSelectionOverElement(l){this.editor.model.change(n=>{n.setSelection(n.createRangeOn(l))})}_getObjectElementNextToSelection(l){const n=this.editor.model,e=n.schema,t=n.document.selection,o=n.createSelection(t);if(n.modifySelection(o,{direction:l?"forward":"backward"}),o.isEqual(t))return null;const u=l?o.focus.nodeBefore:o.focus.nodeAfter;return u&&e.isObject(u)?u:null}_clearPreviouslySelectedWidgets(l){for(const n of this._previouslySelected)l.removeClass(Bp,n);this._previouslySelected.clear()}}function uf(l,n){return!!n&&Array.from(l.getAncestors()).includes(n)}class af extends qt{static get requires(){return[Sc]}static get pluginName(){return"WidgetToolbarRepository"}init(){const l=this.editor;if(l.plugins.has("BalloonToolbar")){const n=l.plugins.get("BalloonToolbar");this.listenTo(n,"show",n=>{(function(l){const n=l.getSelectedElement();return!(!n||!Vp(n))})(l.editing.view.document.selection)&&n.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(l.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(l.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const l of this._toolbarDefinitions.values())l.view.destroy()}register(l,{ariaLabel:n,items:e,getRelatedElement:t,balloonClassName:o="ck-toolbar-container"}){if(!e.length)return void y("widget-toolbar-no-items",{toolbarId:l});const u=this.editor,i=u.t,a=new Kd(u.locale);if(a.ariaLabel=n||i("Widget toolbar"),this._toolbarDefinitions.has(l))throw new b("widget-toolbar-duplicated",this,{toolbarId:l});a.fillFromConfig(e,u.ui.componentFactory);const r={view:a,getRelatedElement:t,balloonClassName:o};u.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{const l=t(u.editing.view.document.selection);l&&this._showToolbar(r,l)},afterBlur:()=>{this._hideToolbar(r)}}),this._toolbarDefinitions.set(l,r)}_updateToolbarsVisibility(){let l=0,n=null,e=null;for(const t of this._toolbarDefinitions.values()){const o=t.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&o)if(this.editor.ui.focusTracker.isFocused){const u=o.getAncestors().length;u>l&&(l=u,n=o,e=t)}else this._isToolbarVisible(t)&&this._hideToolbar(t);else this._isToolbarInBalloon(t)&&this._hideToolbar(t)}e&&this._showToolbar(e,n)}_hideToolbar(l){this._balloon.remove(l.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(l,n){this._isToolbarVisible(l)?rf(this.editor,n):this._isToolbarInBalloon(l)||(this._balloon.add({view:l.view,position:sf(this.editor,n),balloonClassName:l.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const l of this._toolbarDefinitions.values())if(this._isToolbarVisible(l)){const n=l.getRelatedElement(this.editor.editing.view.document.selection);rf(this.editor,n)}}))}_isToolbarVisible(l){return this._balloon.visibleView===l.view}_isToolbarInBalloon(l){return this._balloon.hasView(l.view)}}function rf(l,n){const e=l.plugins.get("ContextualBalloon"),t=sf(l,n);e.updatePosition(t)}function sf(l,n){const e=l.editing.view,t=pd.defaultPositions;return{target:e.domConverter.mapViewToDom(n),positions:[t.northArrowSouth,t.northArrowSouthWest,t.northArrowSouthEast,t.southArrowNorth,t.southArrowNorthWest,t.southArrowNorthEast,t.viewportStickyNorth]}}var df=o(8506);Ht()(df.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),df.Z.locals;const cf=function(l,n,e){var t=!0,o=!0;if("function"!=typeof l)throw new TypeError("Expected a function");return D(e)&&(t="leading"in e?!!e.leading:t,o="trailing"in e?!!e.trailing:o),vi(l,n,{leading:t,maxWait:n,trailing:o})};var pf=o(903);Ht()(pf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),pf.Z.locals;class ff extends qt{static get pluginName(){return"DragDrop"}static get requires(){return[jc,of]}init(){const l=this.editor,n=l.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=cf(l=>this._updateDropMarker(l),40),this._removeDropMarkerDelayed=gf(()=>this._removeDropMarker(),40),this._clearDraggableAttributesDelayed=gf(()=>this._clearDraggableAttributes(),40),n.addObserver(Wc),n.addObserver(Fs),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(l,"change:isReadOnly",(l,n,e)=>{e?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(l,n,e)=>{e||this._finalizeDragging(!1)}),t.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 l=this.editor,n=l.model,e=n.document,o=l.editing.view,u=o.document;this.listenTo(u,"dragstart",(t,o)=>{const i=e.selection;if(o.target&&o.target.is("editableElement"))return void o.preventDefault();const a=o.target?vf(o.target):null;if(a){const e=l.editing.mapper.toModelElement(a);this._draggedRange=ba.fromRange(n.createRangeOn(e)),l.plugins.has("WidgetToolbarRepository")&&l.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!u.selection.isCollapsed){const l=u.selection.getSelectedElement();l&&Vp(l)||(this._draggedRange=ba.fromRange(i.getFirstRange()))}if(!this._draggedRange)return void o.preventDefault();this._draggingUid=h(),o.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",o.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const r=n.createSelection(this._draggedRange.toRange()),s=l.data.toView(n.getSelectedContent(r));u.fire("clipboardOutput",{dataTransfer:o.dataTransfer,content:s,method:"dragstart"}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(u,"dragend",(l,n)=>{this._finalizeDragging(!n.dataTransfer.isCanceled&&"move"==n.dataTransfer.dropEffect)},{priority:"low"}),this.listenTo(u,"dragenter",()=>{this.isEnabled&&o.focus()}),this.listenTo(u,"dragleave",()=>{this._removeDropMarkerDelayed()}),this.listenTo(u,"dragging",(n,e)=>{if(!this.isEnabled)return void(e.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const o=mf(l,e.targetRanges,e.target);this._draggedRange||(e.dataTransfer.dropEffect="copy"),t.isGecko||("copy"==e.dataTransfer.effectAllowed?e.dataTransfer.dropEffect="copy":["all","copyMove"].includes(e.dataTransfer.effectAllowed)&&(e.dataTransfer.dropEffect="move")),o&&this._updateDropMarkerThrottled(o)},{priority:"low"})}_setupClipboardInputIntegration(){const l=this.editor,n=l.editing.view.document;this.listenTo(n,"clipboardInput",(n,e)=>{if("drop"!=e.method)return;const t=mf(l,e.targetRanges,e.target);return this._removeDropMarker(),t?(this._draggedRange&&this._draggingUid!=e.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==hf(e.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(t,!0)?(this._finalizeDragging(!1),void n.stop()):void(e.targetRanges=[l.editing.mapper.toViewRange(t)])):(this._finalizeDragging(!1),void n.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const l=this.editor.plugins.get(jc);l.on("contentInsertion",(l,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const e=n.targetRanges.map(l=>this.editor.editing.mapper.toModelRange(l));this.editor.model.change(l=>l.setSelection(e))},{priority:"high"}),l.on("contentInsertion",(l,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const e="move"==hf(n.dataTransfer),t=!n.resultRange||!n.resultRange.isCollapsed;this._finalizeDragging(t&&e)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const l=this.editor,n=l.editing.view,e=n.document;this.listenTo(e,"mousedown",(o,u)=>{if(t.isAndroid||!u)return;this._clearDraggableAttributesDelayed.cancel();let i=vf(u.target);if(t.isBlink&&!l.isReadOnly&&!i&&!e.selection.isCollapsed){const l=e.selection.getSelectedElement();l&&Vp(l)||(i=e.selection.editableElement)}i&&(n.change(l=>{l.setAttribute("draggable","true",i)}),this._draggableElement=l.editing.mapper.toModelElement(i))}),this.listenTo(e,"mouseup",()=>{t.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const l=this.editor.editing;l.view.change(n=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&n.removeAttribute("draggable",l.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_setupDropMarker(){const l=this.editor;l.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),l.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(n,{writer:e})=>{if(l.model.schema.checkChild(n.markerRange.start,"$text"))return e.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(l){const n=this.toDomElement(l);return n.append("\u2060",l.createElement("span"),"\u2060"),n})}})}_updateDropMarker(l){const n=this.editor,e=n.model.markers;n.model.change(n=>{e.has("drop-target")?e.get("drop-target").getRange().isEqual(l)||n.updateMarker("drop-target",{range:l}):n.addMarker("drop-target",{range:l,usingOperation:!1,affectsData:!1})})}_removeDropMarker(){const l=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),l.markers.has("drop-target")&&l.change(l=>{l.removeMarker("drop-target")})}_finalizeDragging(l){const n=this.editor,e=n.model;this._removeDropMarker(),this._clearDraggableAttributes(),n.plugins.has("WidgetToolbarRepository")&&n.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(l&&this.isEnabled&&e.deleteContent(e.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function mf(l,n,e){const o=l.model,u=l.editing.mapper;let i=null;const a=n?n[0].start:null;if(e.is("uiElement")&&(e=e.parent),i=function(l,n){const e=l.model,t=l.editing.mapper;if(Vp(n))return e.createRangeOn(t.toModelElement(n));if(!n.is("editableElement")){const l=n.findAncestor(l=>Vp(l)||l.is("editableElement"));if(Vp(l))return e.createRangeOn(t.toModelElement(l))}return null}(l,e))return i;const r=function(l,n){const e=l.editing.mapper,t=l.editing.view,o=e.toModelElement(n);if(o)return o;const u=t.createPositionBefore(n),i=e.findMappedViewAncestor(u);return e.toModelElement(i)}(l,e),s=a?u.toModelPosition(a):null;return s?(i=function(l,n,e){const t=l.model;if(!t.schema.checkChild(e,"$block"))return null;const o=t.createPositionAt(e,0),u=n.path.slice(0,o.path.length),i=t.createPositionFromPath(n.root,u).nodeAfter;return i&&t.schema.isObject(i)?t.createRangeOn(i):null}(l,s,r))||((i=o.schema.getNearestSelectionRange(s,t.isGecko?"forward":"backward"))||function(l,n){const e=l.model;let t=n;for(;t;){if(e.schema.isObject(t))return e.createRangeOn(t);t=t.parent}return null}(l,s.parent)):function(l,n){const e=l.model,t=e.schema,o=e.createPositionAt(n,0);return t.getNearestSelectionRange(o,"forward")}(l,r)}function hf(l){return t.isGecko?l.dropEffect:["all","copyMove"].includes(l.effectAllowed)?"move":"copy"}function gf(l,n){let e;function t(...o){t.cancel(),e=setTimeout(()=>l(...o),n)}return t.cancel=(()=>{clearTimeout(e)}),t}function vf(l){if(l.is("editableElement"))return null;if(l.hasClass("ck-widget__selection-handle"))return l.findAncestor(Vp);if(Vp(l))return l;const n=l.findAncestor(l=>Vp(l)||l.is("editableElement"));return Vp(n)?n:null}class bf extends qt{static get pluginName(){return"PastePlainText"}static get requires(){return[jc]}init(){const l=this.editor,n=l.model,e=l.editing.view,t=e.document,o=n.document.selection;let u=!1;e.addObserver(Wc),this.listenTo(t,"keydown",(l,n)=>{u=n.shiftKey}),l.plugins.get(jc).on("contentInsertion",(l,e)=>{(u||function(l,n){if(l.childCount>1)return!1;const e=l.getChild(0);return!n.isObject(e)&&0==Array.from(e.getAttributeKeys()).length}(e.content,n.schema))&&n.change(l=>{const t=Array.from(o.getAttributes()).filter(([l])=>n.schema.getAttributeProperties(l).isFormatting);o.isCollapsed||n.deleteContent(o,{doNotAutoparagraph:!0}),t.push(...o.getAttributes());const u=l.createRangeIn(e.content);for(const n of u.getItems())n.is("$textProxy")&&l.setAttributes(t,n)})})}}class yf extends qt{static get pluginName(){return"Clipboard"}static get requires(){return[jc,ff,bf]}}class xf extends Pt{constructor(l){super(l),this.affectsData=!1}execute(){const l=this.editor.model,n=l.document.selection;let e=l.schema.getLimitElement(n);if(n.containsEntireContent(e)||!Af(l.schema,e))do{if(!(e=e.parent))return}while(!Af(l.schema,e));l.change(l=>{l.setSelection(e,"in")})}}function Af(l,n){return l.isLimit(n)&&(l.checkChild(n,"$text")||l.checkChild(n,"paragraph"))}const _f=At("Ctrl+A");class Cf extends qt{static get pluginName(){return"SelectAllEditing"}init(){const l=this.editor,n=l.editing.view.document;l.commands.add("selectAll",new xf(l)),this.listenTo(n,"keydown",(n,e)=>{xt(e)===_f&&(l.execute("selectAll"),e.preventDefault())})}}class wf extends qt{static get pluginName(){return"SelectAllUI"}init(){const l=this.editor;l.ui.componentFactory.add("selectAll",n=>{const e=l.commands.get("selectAll"),t=new Id(n),o=n.t;return t.set({label:o("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),t.bind("isEnabled").to(e,"isEnabled"),this.listenTo(t,"execute",()=>{l.execute("selectAll"),l.editing.view.focus()}),t})}}class Rf extends qt{static get requires(){return[Cf,wf]}static get pluginName(){return"SelectAll"}}class Lf extends Pt{constructor(l){super(l),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(l.data,"set",(l,n)=>{n[1]={...n[1]};const e=n[1];e.batchType||(e.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(l.data,"set",(l,n)=>{n[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}addBatch(l){const n=this.editor.model.document.selection,e={ranges:n.hasOwnRange?Array.from(n.getRanges()):[],isBackward:n.isBackward};this._stack.push({batch:l,selection:e}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(l,n,e){const t=this.editor.model,o=t.document,u=[],i=l.map(l=>l.getTransformedByOperations(e)),a=i.flat();for(const r of i){const l=r.filter(l=>l.root!=o.graveyard).filter(l=>!Ef(l,a));l.length&&(Mf(l),u.push(l[0]))}u.length&&t.change(l=>{l.setSelection(u,{backward:n})})}_undo(l,n){const e=this.editor.model,t=e.document;this._createdBatches.add(n);const o=l.operations.slice().filter(l=>l.isDocumentOperation);o.reverse();for(const u of o){const l=u.baseVersion+1,o=Array.from(t.history.getOperations(l)),i=Wr([u.getReversed()],o,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const a of i)n.addOperation(a),e.applyOperation(a),t.history.setOperationAsUndone(u,a)}}}function Mf(l){l.sort((l,n)=>l.start.isBefore(n.start)?-1:1);for(let n=1;nn!==l&&n.containsRange(l,!0))}class Of extends Lf{execute(l=null){const n=l?this._stack.findIndex(n=>n.batch==l):this._stack.length-1,e=this._stack.splice(n,1)[0],t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,()=>{this._undo(e.batch,t);const l=this.editor.model.document.history.getOperations(e.batch.baseVersion);this._restoreSelection(e.selection.ranges,e.selection.isBackward,l),this.fire("revert",e.batch,t)}),this.refresh()}}class Sf extends Lf{execute(){const l=this._stack.pop(),n=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(n,()=>{const e=l.batch.operations[l.batch.operations.length-1].baseVersion+1,t=this.editor.model.document.history.getOperations(e);this._restoreSelection(l.selection.ranges,l.selection.isBackward,t),this._undo(l.batch,n)}),this.refresh()}}class kf extends qt{static get pluginName(){return"UndoEditing"}constructor(l){super(l),this._batchRegistry=new WeakSet}init(){const l=this.editor;this._undoCommand=new Of(l),this._redoCommand=new Sf(l),l.commands.add("undo",this._undoCommand),l.commands.add("redo",this._redoCommand),this.listenTo(l.model,"applyOperation",(l,n)=>{const e=n[0];if(!e.isDocumentOperation)return;const t=e.batch,o=this._redoCommand._createdBatches.has(t),u=this._undoCommand._createdBatches.has(t);this._batchRegistry.has(t)||(this._batchRegistry.add(t),t.isUndoable&&(o?this._undoCommand.addBatch(t):u||(this._undoCommand.addBatch(t),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(l,n,e)=>{this._redoCommand.addBatch(e)}),l.keystrokes.set("CTRL+Z","undo"),l.keystrokes.set("CTRL+Y","redo"),l.keystrokes.set("CTRL+SHIFT+Z","redo")}}const If='',Ff='';class Nf extends qt{static get pluginName(){return"UndoUI"}init(){const l=this.editor,n=l.locale,e=l.t,t="ltr"==n.uiLanguageDirection?If:Ff,o="ltr"==n.uiLanguageDirection?Ff:If;this._addButton("undo",e("Undo"),"CTRL+Z",t),this._addButton("redo",e("Redo"),"CTRL+Y",o)}_addButton(l,n,e,t){const o=this.editor;o.ui.componentFactory.add(l,u=>{const i=o.commands.get(l),a=new Id(u);return a.set({label:n,icon:t,keystroke:e,tooltip:!0}),a.bind("isEnabled").to(i,"isEnabled"),this.listenTo(a,"execute",()=>{o.execute(l),o.editing.view.focus()}),a})}}class Df extends qt{static get requires(){return[kf,Nf]}static get pluginName(){return"Undo"}}class zf extends(U()){constructor(){super();const l=new window.FileReader;this._reader=l,this._data=void 0,this.set("loaded",0),l.onprogress=(l=>{this.loaded=l.loaded})}get error(){return this._reader.error}get data(){return this._data}read(l){const n=this._reader;return this.total=l.size,new Promise((e,t)=>{n.onload=(()=>{const l=n.result;this._data=l,e(l)}),n.onerror=(()=>{t("error")}),n.onabort=(()=>{t("aborted")}),this._reader.readAsDataURL(l)})}abort(){this._reader.abort()}}class qf extends qt{static get pluginName(){return"FileRepository"}static get requires(){return[Cd]}init(){this.loaders=new Et,this.loaders.on("change",()=>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",(l,n)=>n?l/n*100:0)}getLoader(l){return this._loadersMap.get(l)||null}createLoader(l){if(!this.createUploadAdapter)return y("filerepository-no-upload-adapter"),null;const n=new Tf(Promise.resolve(l),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(l,n),l instanceof Promise&&n.file.then(l=>{this._loadersMap.set(l,n)}).catch(()=>{}),n.on("change:uploaded",()=>{let l=0;for(const n of this.loaders)l+=n.uploaded;this.uploaded=l}),n.on("change:uploadTotal",()=>{let l=0;for(const n of this.loaders)n.uploadTotal&&(l+=n.uploadTotal);this.uploadTotal=l}),n}destroyLoader(l){const n=l instanceof Tf?l:this.getLoader(l);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((l,e)=>{l===n&&this._loadersMap.delete(e)})}_updatePendingAction(){const l=this.editor.plugins.get(Cd);if(this.loaders.length){if(!this._pendingAction){const n=this.editor.t,e=l=>`${n("Upload in progress")} ${parseInt(l)}%.`;this._pendingAction=l.add(e(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",e)}}else l.remove(this._pendingAction),this._pendingAction=null}}class Tf extends(U()){constructor(l,n){super(),this.id=h(),this._filePromiseWrapper=this._createFilePromiseWrapper(l),this._adapter=n(this),this._reader=new zf,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(l,n)=>n?l/n*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(l=>this._filePromiseWrapper?l:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new b("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(l=>this._reader.read(l)).then(l=>{if("reading"!==this.status)throw this.status;return this.status="idle",l}).catch(l=>{if("aborted"===l)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:l})}upload(){if("idle"!=this.status)throw new b("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(l=>(this.uploadResponse=l,this.status="idle",l)).catch(l=>{if("aborted"===this.status)throw"aborted";throw this.status="error",l})}abort(){const l=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==l?this._reader.abort():"uploading"==l&&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(l){const n={};return n.promise=new Promise((e,t)=>{n.rejecter=t,n.isFulfilled=!1,l.then(l=>{n.isFulfilled=!0,e(l)}).catch(l=>{n.isFulfilled=!0,t(l)})}),n}}class Pf extends rd{constructor(l){super(l),this.buttonView=new Id(l),this._fileInputView=new Bf(l),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 Bf extends rd{constructor(l){super(l),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const n=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:n.to("acceptedType"),multiple:n.to("allowMultipleFiles")},on:{change:n.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const Vf="ckCsrfToken",Uf="abcdefghijklmnopqrstuvwxyz0123456789";class Wf{constructor(l,n,e){this.loader=l,this.url=n,this.t=e}upload(){return this.loader.file.then(l=>new Promise((n,e)=>{this._initRequest(),this._initListeners(n,e,l),this._sendRequest(l)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const l=this.xhr=new XMLHttpRequest;l.open("POST",this.url,!0),l.responseType="json"}_initListeners(l,n,e){const t=this.xhr,o=this.loader,u=(0,this.t)("Cannot upload file:")+` ${e.name}.`;t.addEventListener("error",()=>n(u)),t.addEventListener("abort",()=>n()),t.addEventListener("load",()=>{const e=t.response;if(!e||!e.uploaded)return n(e&&e.error&&e.error.message?e.error.message:u);l({default:e.url})}),t.upload&&t.upload.addEventListener("progress",l=>{l.lengthComputable&&(o.uploadTotal=l.total,o.uploaded=l.loaded)})}_sendRequest(l){const n=new FormData;n.append("upload",l),n.append("ckCsrfToken",function(){let l=function(l){l=l.toLowerCase();const n=document.cookie.split(";");for(const e of n){const n=e.split("=");if(decodeURIComponent(n[0].trim().toLowerCase())===l)return decodeURIComponent(n[1])}return null}(Vf);var n,e;return l&&40==l.length||(l=function(l){let n="";const e=new Uint8Array(40);window.crypto.getRandomValues(e);for(let t=0;t.5?l.toUpperCase():l}return n}(),n=Vf,e=l,document.cookie=encodeURIComponent(n)+"="+encodeURIComponent(e)+";path=/"),l}()),this.xhr.send(n)}}function Gf(l,n,e,t){let o,u=null;"function"==typeof t?o=t:(u=l.commands.get(t),o=(()=>{l.execute(t)})),l.model.document.on("change:data",(i,a)=>{if(u&&!u.isEnabled||!n.isEnabled)return;const r=Ot(l.model.document.selection.getRanges());if(!r.isCollapsed)return;if(a.isUndo||!a.isLocal)return;const s=Array.from(l.model.document.differ.getChanges()),d=s[0];if(1!=s.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;const c=d.position.parent;if(c.is("element","codeBlock"))return;if(c.is("element","listItem")&&"function"!=typeof t&&!["numberedList","bulletedList","todoList"].includes(t))return;if(u&&!0===u.value)return;const p=c.getChild(0),f=l.model.createRangeOn(p);if(!f.containsRange(r)&&!r.end.isEqual(f.end))return;const m=e.exec(p.data.substr(0,r.end.offset));m&&l.model.enqueueChange(n=>{const e=n.createPositionAt(c,0),t=n.createPositionAt(c,m[0].length),u=new ba(e,t);if(!1!==o({match:m})){n.remove(u);const e=l.model.document.selection.getFirstRange(),t=n.createRangeIn(c);!c.isEmpty||t.isEqual(e)||t.containsRange(e,!0)||n.remove(c)}u.detach(),l.model.enqueueChange(()=>{l.plugins.get("Delete").requestUndoOnBackspace()})})})}function jf(l,n,e,t){let o,u;e instanceof RegExp?o=e:u=e,u=u||(l=>{let n;const e=[],t=[];for(;null!==(n=o.exec(l))&&!(n&&n.length<4);){let{index:l,1:o,2:u,3:i}=n;const a=o+u+i,r=[l+=n[0].length-a.length,l+o.length],s=[l+o.length+u.length,l+o.length+u.length+i.length];e.push(r),e.push(s),t.push([l+o.length,l+o.length+u.length])}return{remove:e,format:t}}),l.model.document.on("change:data",(e,o)=>{if(o.isUndo||!o.isLocal||!n.isEnabled)return;const i=l.model,a=i.document.selection;if(!a.isCollapsed)return;const r=Array.from(i.document.differ.getChanges()),s=r[0];if(1!=r.length||"insert"!==s.type||"$text"!=s.name||1!=s.length)return;const d=a.focus,c=d.parent,{text:p,range:f}=function(l,n){let e=l.start;return{text:Array.from(l.getItems()).reduce((l,t)=>!t.is("$text")&&!t.is("$textProxy")||t.getAttribute("code")?(e=n.createPositionAfter(t),""):l+t.data,""),range:n.createRange(e,l.end)}}(i.createRange(i.createPositionAt(c,0),d),i),m=u(p),h=Hf(f.start,m.format,i),g=Hf(f.start,m.remove,i);h.length&&g.length&&i.enqueueChange(n=>{if(!1!==t(n,h)){for(const l of g.reverse())n.remove(l);i.enqueueChange(()=>{l.plugins.get("Delete").requestUndoOnBackspace()})}})})}function Hf(l,n,e){return n.filter(l=>void 0!==l[0]&&void 0!==l[1]).map(n=>e.createRange(l.getShiftedBy(n[0]),l.getShiftedBy(n[1])))}function Yf(l,n){return(e,t)=>{if(!l.commands.get(n).isEnabled)return!1;const o=l.model.schema.getValidRanges(t,n);for(const l of o)e.setAttribute(n,!0,l);e.removeSelectionAttribute(n)}}class Zf extends Pt{constructor(l,n){super(l),this.attributeKey=n}refresh(){const l=this.editor.model,n=l.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=l.schema.checkAttributeInSelection(n.selection,this.attributeKey)}execute(l={}){const n=this.editor.model,e=n.document.selection,t=void 0===l.forceValue?!this.value:l.forceValue;n.change(l=>{if(e.isCollapsed)t?l.setSelectionAttribute(this.attributeKey,!0):l.removeSelectionAttribute(this.attributeKey);else{const o=n.schema.getValidRanges(e.getRanges(),this.attributeKey);for(const n of o)t?l.setAttribute(this.attributeKey,t,n):l.removeAttribute(this.attributeKey,n)}})}_getValueFromFirstAllowedNode(){const l=this.editor.model,n=l.schema,e=l.document.selection;if(e.isCollapsed)return e.hasAttribute(this.attributeKey);for(const t of e.getRanges())for(const l of t.getItems())if(n.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey);return!1}}const Xf="bold";class $f extends qt{static get pluginName(){return"BoldEditing"}init(){const l=this.editor;l.model.schema.extend("$text",{allowAttributes:Xf}),l.model.schema.setAttributeProperties(Xf,{isFormatting:!0,copyOnEnter:!0}),l.conversion.attributeToElement({model:Xf,view:"strong",upcastAlso:["b",l=>{const n=l.getStyle("font-weight");return n?"bold"==n||Number(n)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),l.commands.add(Xf,new Zf(l,Xf)),l.keystrokes.set("CTRL+B",Xf)}}const Kf="bold";class Qf extends qt{static get pluginName(){return"BoldUI"}init(){const l=this.editor,n=l.t;l.ui.componentFactory.add(Kf,e=>{const t=l.commands.get(Kf),o=new Id(e);return o.set({label:n("Bold"),icon:wd.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(t,"value","isEnabled"),this.listenTo(o,"execute",()=>{l.execute(Kf),l.editing.view.focus()}),o})}}const Jf="italic";class lm extends qt{static get pluginName(){return"ItalicEditing"}init(){const l=this.editor;l.model.schema.extend("$text",{allowAttributes:Jf}),l.model.schema.setAttributeProperties(Jf,{isFormatting:!0,copyOnEnter:!0}),l.conversion.attributeToElement({model:Jf,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),l.commands.add(Jf,new Zf(l,Jf)),l.keystrokes.set("CTRL+I",Jf)}}const nm="italic";class em extends qt{static get pluginName(){return"ItalicUI"}init(){const l=this.editor,n=l.t;l.ui.componentFactory.add(nm,e=>{const t=l.commands.get(nm),o=new Id(e);return o.set({label:n("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(t,"value","isEnabled"),this.listenTo(o,"execute",()=>{l.execute(nm),l.editing.view.focus()}),o})}}class tm extends Pt{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(l={}){const n=this.editor.model,e=n.schema,t=n.document.selection,o=Array.from(t.getSelectedBlocks()),u=void 0===l.forceValue?!this.value:l.forceValue;n.change(l=>{if(u){const n=o.filter(l=>om(l)||im(e,l));this._applyQuote(l,n)}else this._removeQuote(l,o.filter(om))})}_getValue(){const l=Ot(this.editor.model.document.selection.getSelectedBlocks());return!(!l||!om(l))}_checkEnabled(){if(this.value)return!0;const l=this.editor.model.document.selection,n=this.editor.model.schema,e=Ot(l.getSelectedBlocks());return!!e&&im(n,e)}_removeQuote(l,n){um(l,n).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd)return void l.unwrap(n.start.parent);if(n.start.isAtStart){const e=l.createPositionBefore(n.start.parent);return void l.move(n,e)}n.end.isAtEnd||l.split(n.end);const e=l.createPositionAfter(n.end.parent);l.move(n,e)})}_applyQuote(l,n){const e=[];um(l,n).reverse().forEach(n=>{let t=om(n.start);t||(t=l.createElement("blockQuote"),l.wrap(n,t)),e.push(t)}),e.reverse().reduce((n,e)=>n.nextSibling==e?(l.merge(l.createPositionAfter(n)),n):e)}}function om(l){return"blockQuote"==l.parent.name?l.parent:null}function um(l,n){let e,t=0;const o=[];for(;t{const t=l.model.document.differ.getChanges();for(const l of t)if("insert"==l.type){const t=l.position.nodeAfter;if(!t)continue;if(t.is("element","blockQuote")&&t.isEmpty)return e.remove(t),!0;if(t.is("element","blockQuote")&&!n.checkChild(l.position,t))return e.unwrap(t),!0;if(t.is("element")){const l=e.createRangeIn(t);for(const t of l.getItems())if(t.is("element","blockQuote")&&!n.checkChild(e.createPositionBefore(t),t))return e.unwrap(t),!0}}else if("remove"==l.type){const n=l.position.parent;if(n.is("element","blockQuote")&&n.isEmpty)return e.remove(n),!0}return!1});const e=this.editor.editing.view.document,t=l.model.document.selection,o=l.commands.get("blockQuote");this.listenTo(e,"enter",(n,e)=>{t.isCollapsed&&o.value&&t.getLastPosition().parent.isEmpty&&(l.execute("blockQuote"),l.editing.view.scrollToTheSelection(),e.preventDefault(),n.stop())},{context:"blockquote"}),this.listenTo(e,"delete",(n,e)=>{if("backward"!=e.direction||!t.isCollapsed||!o.value)return;const u=t.getLastPosition().parent;u.isEmpty&&!u.previousSibling&&(l.execute("blockQuote"),l.editing.view.scrollToTheSelection(),e.preventDefault(),n.stop())},{context:"blockquote"})}}var rm=o(3062);Ht()(rm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),rm.Z.locals;class sm extends qt{static get pluginName(){return"BlockQuoteUI"}init(){const l=this.editor,n=l.t;l.ui.componentFactory.add("blockQuote",e=>{const t=l.commands.get("blockQuote"),o=new Id(e);return o.set({label:n("Block quote"),icon:wd.quote,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(t,"value","isEnabled"),this.listenTo(o,"execute",()=>{l.execute("blockQuote"),l.editing.view.focus()}),o})}}class dm extends qt{static get pluginName(){return"CKBoxUI"}afterInit(){const l=this.editor;if(!l.commands.get("ckbox"))return;const n=l.t;l.ui.componentFactory.add("ckbox",e=>{const t=l.commands.get("ckbox"),o=new Id(e);return o.set({label:n("Open file manager"),icon:'',tooltip:!0}),o.bind("isOn","isEnabled").to(t,"value","isEnabled"),o.on("execute",()=>{l.execute("ckbox")}),o})}}function cm({token:l,id:n,origin:e,width:t,extension:o}){const u=pm(l),i=function(l){const n=[10*l/100,80],e=Math.floor(Math.max(...n)),t=[Math.min(l,4e3)];let o=t[0];for(;o-e>=e;)o-=e,t.unshift(o);return t}(t);return{imageFallbackUrl:fm({environmentId:u,id:n,origin:e,width:t,extension:"bmp"===o||"tiff"===o||"jpg"===o?"jpeg":o}),imageSources:[{srcset:i.map(l=>`${fm({environmentId:u,id:n,origin:e,width:l,extension:"webp"})} ${l}w`).join(","),sizes:`(max-width: ${t}px) 100vw, ${t}px`,type:"image/webp"}]}}function pm(l){const[,n]=l.value.split(".");return JSON.parse(atob(n)).aud}function fm({environmentId:l,id:n,origin:e,width:t,extension:o}){return new URL(`${l}/assets/${n}/images/${t}.${o}`,e).toString()}class mm extends Pt{constructor(l){super(l),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const l=this.editor.commands.get("insertImage"),n=this.editor.commands.get("link");return!(!l.isEnabled&&!n.isEnabled)}_prepareOptions(){const l=this.editor.config.get("ckbox");return{theme:l.theme,language:l.language,tokenUrl:l.tokenUrl,serviceOrigin:l.serviceOrigin,assetsOrigin:l.assetsOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:l=>this.fire("ckbox:choose",l)}}}_initListeners(){const l=this.editor,n=l.model,e=!l.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=pl(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)}),this.on("ckbox:choose",(t,o)=>{if(!this.isEnabled)return;const u=l.commands.get("insertImage"),i=l.commands.get("link"),a=l.plugins.get("CKBoxEditing"),r=function({assets:l,origin:n,token:e,isImageAllowed:t,isLinkAllowed:o}){return l.map(l=>({id:l.data.id,type:gm(l)?"image":"link",attributes:hm(l,e,n)})).filter(l=>"image"===l.type?t:o)}({assets:o,origin:l.config.get("ckbox.assetsOrigin"),token:a.getToken(),isImageAllowed:u.isEnabled,isLinkAllowed:i.isEnabled});0!==r.length&&n.change(l=>{for(const n of r){const t=n===r[r.length-1];this._insertAsset(n,t,l),e&&(setTimeout(()=>this._chosenAssets.delete(n),1e3),this._chosenAssets.add(n))}})}),this.listenTo(l,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(l,n,e){const t=this.editor.model.document.selection;e.removeSelectionAttribute("linkHref"),"image"===l.type?this._insertImage(l):this._insertLink(l,e),n||e.setSelection(t.getLastPosition())}_insertImage(l){const n=this.editor,{imageFallbackUrl:e,imageSources:t,imageTextAlternative:o}=l.attributes;n.execute("insertImage",{source:{src:e,sources:t,alt:o}})}_insertLink(l,n){const e=this.editor,t=e.model,o=t.document.selection,{linkName:u,linkHref:i}=l.attributes;if(o.isCollapsed){const l=It(o.getAttributes()),e=n.createText(u,l),i=t.insertContent(e);n.setSelection(i)}e.execute("link",i)}}function hm(l,n,e){if(gm(l)){const{imageFallbackUrl:t,imageSources:o}=cm({token:n,origin:e,id:l.data.id,width:l.data.metadata.width,extension:l.data.extension});return{imageFallbackUrl:t,imageSources:o,imageTextAlternative:l.data.metadata.description||""}}return{linkName:l.data.name,linkHref:vm(l,n,e)}}function gm(l){const n=l.data.metadata;return!!n&&n.width&&n.height}function vm(l,n,e){const t=pm(n),o=new URL(`${t}/assets/${l.data.id}/file`,e);return o.searchParams.set("download","true"),o.toString()}class bm extends qt{static get requires(){return["ImageUploadEditing","ImageUploadProgress",qf,Am]}static get pluginName(){return"CKBoxUploadAdapter"}async afterInit(){const l=this.editor,n=!!l.config.get("ckbox"),e=!!window.CKBox;if(!n&&!e)return;const t=l.plugins.get(qf),o=l.plugins.get(Am);t.createUploadAdapter=(n=>new ym(n,o.getToken(),l));const u=!l.config.get("ckbox.ignoreDataId"),i=l.plugins.get("ImageUploadEditing");u&&i.on("uploadComplete",(n,{imageElement:e,data:t})=>{l.model.change(l=>{l.setAttribute("ckboxImageId",t.ckboxImageId,e)})})}}class ym{constructor(l,n,e){this.loader=l,this.token=n,this.editor=e,this.controller=new AbortController,this.serviceOrigin=e.config.get("ckbox.serviceOrigin"),this.assetsOrigin=e.config.get("ckbox.assetsOrigin")}async getAvailableCategories(l=0){const n=new URL("categories",this.serviceOrigin);return n.searchParams.set("limit",50..toString()),n.searchParams.set("offset",l.toString()),this._sendHttpRequest({url:n}).then(async n=>{if(n.totalCount-(l+50)>0){const e=await this.getAvailableCategories(l+50);return[...n.items,...e]}return n.items}).catch(()=>{this.controller.signal.throwIfAborted(),x("ckbox-fetch-category-http-error")})}async getCategoryIdForFile(l){const n=xm(l.name),e=await this.getAvailableCategories();if(!e)return null;const t=this.editor.config.get("ckbox.defaultUploadCategories");if(t){const l=Object.keys(t).find(l=>t[l].includes(n));if(l){const n=e.find(n=>n.id===l||n.name===l);return n?n.id:null}}const o=e.find(l=>l.extensions.includes(n));return o?o.id:null}async upload(){const l=this.editor.t,n=l("Cannot determine a category for the uploaded file."),e=await this.loader.file,t=await this.getCategoryIdForFile(e);if(!t)return Promise.reject(n);const o=new URL("assets",this.serviceOrigin),u=new FormData;u.append("categoryId",t),u.append("file",e);const i={method:"POST",url:o,data:u,onUploadProgress:l=>{l.lengthComputable&&(this.loader.uploadTotal=l.total,this.loader.uploaded=l.loaded)}};return this._sendHttpRequest(i).then(async l=>{const n=await this._getImageWidth(),t=xm(e.name),o=cm({token:this.token,id:l.id,origin:this.assetsOrigin,width:n,extension:t});return{ckboxImageId:l.id,default:o.imageFallbackUrl,sources:o.imageSources}}).catch(()=>{const n=l("Cannot upload file:")+` ${e.name}.`;return Promise.reject(n)})}abort(){this.controller.abort()}_sendHttpRequest(l){const{url:n,data:e,onUploadProgress:t}=l,o=l.method||"GET",u=this.controller.signal,i=new XMLHttpRequest;i.open(o,n.toString(),!0),i.setRequestHeader("Authorization",this.token.value),i.setRequestHeader("CKBox-Version","CKEditor 5"),i.responseType="json";const a=()=>{i.abort()};return new Promise((l,n)=>{u.addEventListener("abort",a),i.addEventListener("loadstart",()=>{u.addEventListener("abort",a)}),i.addEventListener("loadend",()=>{u.removeEventListener("abort",a)}),i.addEventListener("error",()=>{n()}),i.addEventListener("abort",()=>{n()}),i.addEventListener("load",async()=>{const e=i.response;return!e||e.statusCode>=400?n(e&&e.message):l(e)}),t&&i.upload.addEventListener("progress",l=>{t(l)}),i.send(e)})}_getImageWidth(){return new Promise(l=>{const n=new Image;n.onload=(()=>{URL.revokeObjectURL(n.src),l(n.width)}),n.src=this.loader.data})}}function xm(l){return l.match(/\.(?[^.]+)$/).groups.ext}class Am extends qt{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",bm]}async init(){const l=this.editor,n=!!l.config.get("ckbox"),e=!!window.CKBox;if(!n&&!e)return;this._initConfig();const t=l.plugins.get("CloudServicesCore"),o=l.config.get("ckbox.tokenUrl"),u=l.config.get("cloudServices.tokenUrl");this._token=o===u?l.plugins.get("CloudServices").token:await t.createToken(o).init(),l.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),e&&l.commands.add("ckbox",new mm(l))}getToken(){return this._token}_initConfig(){const l=this.editor;if(l.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",assetsOrigin:"https://ckbox.cloud",defaultUploadCategories:null,ignoreDataId:!1,language:l.locale.uiLanguage,theme:"default",tokenUrl:l.config.get("cloudServices.tokenUrl")}),!l.config.get("ckbox.tokenUrl"))throw new b("ckbox-plugin-missing-token-url",this);l.plugins.has("ImageBlockEditing")||l.plugins.has("ImageInlineEditing")||x("ckbox-plugin-image-feature-missing",l)}_initSchema(){const l=this.editor.model.schema;l.extend("$text",{allowAttributes:"ckboxLinkId"}),l.isRegistered("imageBlock")&&l.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),l.isRegistered("imageInline")&&l.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),l.addAttributeCheck((l,n)=>{if(!l.last.getAttribute("linkHref")&&"ckboxLinkId"===n)return!1})}_initConversion(){const l=this.editor;l.conversion.for("downcast").add(l=>{l.on("attribute:ckboxLinkId:imageBlock",(l,n,e)=>{const{writer:t,mapper:o,consumable:u}=e;if(!u.consume(n.item,l.name))return;const i=[...o.toViewElement(n.item).getChildren()].find(l=>"a"===l.name);i&&(n.item.hasAttribute("ckboxLinkId")?t.setAttribute("data-ckbox-resource-id",n.item.getAttribute("ckboxLinkId"),i):t.removeAttribute("data-ckbox-resource-id",i))},{priority:"low"}),l.on("attribute:ckboxLinkId",(l,n,e)=>{const{writer:t,mapper:o,consumable:u}=e;if(u.consume(n.item,l.name)){if(n.attributeOldValue){const l=Cm(t,n.attributeOldValue);t.unwrap(o.toViewRange(n.range),l)}if(n.attributeNewValue){const l=Cm(t,n.attributeNewValue);if(n.item.is("selection")){const n=t.document.selection;t.wrap(n.getFirstRange(),l)}else t.wrap(o.toViewRange(n.range),l)}}},{priority:"low"})}),l.conversion.for("upcast").add(l=>{l.on("element:a",(l,n,e)=>{const{writer:t,consumable:o}=e;if(!n.viewItem.getAttribute("href"))return;if(!o.consume(n.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const u=n.viewItem.getAttribute("data-ckbox-resource-id");if(u)if(n.modelRange)for(let i of n.modelRange.getItems())i.is("$textProxy")&&(i=i.textNode),wm(i)&&t.setAttribute("ckboxLinkId",u,i);else{const l=n.modelCursor.nodeBefore||n.modelCursor.parent;t.setAttribute("ckboxLinkId",u,l)}},{priority:"low"})}),l.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),l.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:l=>l.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){const l=this.editor,n=l.model,e=n.document.selection;n.document.registerPostFixer(function(l){return n=>{let e=!1;const t=l.model,o=l.commands.get("ckbox");if(!o)return e;for(const l of t.document.differ.getChanges()){if("insert"!==l.type&&"attribute"!==l.type)continue;const t="insert"===l.type?new ia(l.position,l.position.getShiftedBy(l.length)):l.range,u="attribute"===l.type&&"linkHref"===l.attributeKey&&null===l.attributeNewValue;for(const l of t.getItems()){if(u&&l.hasAttribute("ckboxLinkId")){n.removeAttribute("ckboxLinkId",l),e=!0;continue}const t=_m(l,o._chosenAssets);for(const o of t){const t="image"===o.type?"ckboxImageId":"ckboxLinkId";o.id!==l.getAttribute(t)&&(n.setAttribute(t,o.id,l),e=!0)}}}return e}}(l)),n.document.registerPostFixer(function(l){return n=>{!l.hasAttribute("linkHref")&&l.hasAttribute("ckboxLinkId")&&n.removeSelectionAttribute("ckboxLinkId")}}(e))}}function _m(l,n){const e=l.is("element","imageInline")||l.is("element","imageBlock"),t=l.hasAttribute("linkHref");return[...n].filter(n=>"image"===n.type&&e?n.attributes.imageFallbackUrl===l.getAttribute("src"):"link"===n.type&&t?n.attributes.linkHref===l.getAttribute("linkHref"):void 0)}function Cm(l,n){const e=l.createAttributeElement("a",{"data-ckbox-resource-id":n},{priority:5});return l.setCustomProperty("link",!0,e),e}function wm(l){return!!l.is("$text")||!(!l.is("element","imageInline")&&!l.is("element","imageBlock"))}class Rm extends qt{static get pluginName(){return"CKFinderUI"}init(){const l=this.editor,n=l.ui.componentFactory,e=l.t;n.add("ckfinder",n=>{const t=l.commands.get("ckfinder"),o=new Id(n);return o.set({label:e("Insert image or file"),icon:'',tooltip:!0}),o.bind("isEnabled").to(t),o.on("execute",()=>{l.execute("ckfinder"),l.editing.view.focus()}),o})}}class Lm extends Pt{constructor(l){super(l),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const l=this.editor.commands.get("insertImage"),n=this.editor.commands.get("link");this.isEnabled=l.isEnabled||n.isEnabled}execute(){const l=this.editor,n=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=n&&"modal"!=n)throw new b("ckfinder-unknown-openermethod",l);const e=this.editor.config.get("ckfinder.options")||{};e.chooseFiles=!0;const t=e.onInit;e.language||(e.language=l.locale.uiLanguage),e.onInit=(n=>{t&&t(n),n.on("files:choose",e=>{const t=e.data.files.toArray(),o=t.filter(l=>!l.isImage()),u=t.filter(l=>l.isImage());for(const n of o)l.execute("link",n.getUrl());const i=[];for(const l of u){const e=l.getUrl();i.push(e||n.request("file:getProxyUrl",{file:l}))}i.length&&Mm(l,i)}),n.on("file:choose:resizedImage",n=>{const e=n.data.resizedUrl;if(e)Mm(l,[e]);else{const n=l.plugins.get("Notification"),e=l.locale.t;n.showWarning(e("Could not obtain resized image URL."),{title:e("Selecting resized image failed"),namespace:"ckfinder"})}})}),window.CKFinder[n](e)}}function Mm(l,n){if(l.commands.get("insertImage").isEnabled)l.execute("insertImage",{source:n});else{const n=l.plugins.get("Notification"),e=l.locale.t;n.showWarning(e("Could not insert image at the current position."),{title:e("Inserting image failed"),namespace:"ckfinder"})}}class Em extends qt{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Rc,"LinkEditing"]}init(){const l=this.editor;if(!l.plugins.has("ImageBlockEditing")&&!l.plugins.has("ImageInlineEditing"))throw new b("ckfinder-missing-image-plugin",l);l.commands.add("ckfinder",new Lm(l))}}class Om extends qt{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",qf]}init(){const l=this.editor,n=l.plugins.get("CloudServices"),e=n.token,t=n.uploadUrl;e&&(this._uploadGateway=l.plugins.get("CloudServicesCore").createUploadGateway(e,t),l.plugins.get(qf).createUploadAdapter=(l=>new Sm(this._uploadGateway,l)))}}class Sm{constructor(l,n){this.uploadGateway=l,this.loader=n}upload(){return this.loader.file.then(l=>(this.fileUploader=this.uploadGateway.upload(l),this.fileUploader.on("progress",(l,n)=>{this.loader.uploadTotal=n.total,this.loader.uploaded=n.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class km extends Pt{refresh(){const l=this.editor.model,n=Ot(l.document.selection.getSelectedBlocks());this.value=!!n&&n.is("element","paragraph"),this.isEnabled=!!n&&Im(n,l.schema)}execute(l={}){const n=this.editor.model,e=n.document;n.change(t=>{const o=(l.selection||e.selection).getSelectedBlocks();for(const l of o)!l.is("element","paragraph")&&Im(l,n.schema)&&t.rename(l,"paragraph")})}}function Im(l,n){return n.checkChild(l.parent,"paragraph")&&!n.isObject(l)}class Fm extends Pt{execute(l){const n=this.editor.model,e=l.attributes;let t=l.position;n.change(l=>{const o=l.createElement("paragraph");if(e&&n.schema.setAllowedAttributes(o,e,l),!n.schema.checkChild(t.parent,o)){const e=n.schema.findAllowedParent(t,o);if(!e)return;t=l.split(t,e).position}n.insertContent(o,t),l.setSelection(o,"in")})}}class Nm extends qt{static get pluginName(){return"Paragraph"}init(){const l=this.editor,n=l.model;l.commands.add("paragraph",new km(l)),l.commands.add("insertParagraph",new Fm(l)),n.schema.register("paragraph",{inheritAllFrom:"$block"}),l.conversion.elementToElement({model:"paragraph",view:"p"}),l.conversion.for("upcast").elementToElement({model:(l,{writer:n})=>Nm.paragraphLikeElements.has(l.name)?l.isEmpty?null:n.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}Nm.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class Dm extends Pt{constructor(l,n){super(l),this.modelElements=n}refresh(){const l=Ot(this.editor.model.document.selection.getSelectedBlocks());this.value=!!l&&this.modelElements.includes(l.name)&&l.name,this.isEnabled=!!l&&this.modelElements.some(n=>zm(l,n,this.editor.model.schema))}execute(l){const n=this.editor.model,e=n.document,t=l.value;n.change(l=>{const o=Array.from(e.selection.getSelectedBlocks()).filter(l=>zm(l,t,n.schema));for(const n of o)n.is("element",t)||l.rename(n,t)})}}function zm(l,n,e){return e.checkChild(l.parent,n)&&!e.isObject(l)}const qm="paragraph";class Tm extends qt{static get pluginName(){return"HeadingEditing"}constructor(l){super(l),l.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Nm]}init(){const l=this.editor,n=l.config.get("heading.options"),e=[];for(const t of n)t.model!==qm&&(l.model.schema.register(t.model,{inheritAllFrom:"$block"}),l.conversion.elementToElement(t),e.push(t.model));this._addDefaultH1Conversion(l),l.commands.add("heading",new Dm(l,e))}afterInit(){const l=this.editor,n=l.commands.get("enter"),e=l.config.get("heading.options");n&&this.listenTo(n,"afterExecute",(n,t)=>{const o=l.model.document.selection.getFirstPosition().parent;e.some(l=>o.is("element",l.model))&&!o.is("element",qm)&&0===o.childCount&&t.writer.rename(o,qm)})}_addDefaultH1Conversion(l){l.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:g.get("low")+1})}}var Pm=o(8733);Ht()(Pm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Pm.Z.locals;class Bm extends qt{static get pluginName(){return"HeadingUI"}init(){const l=this.editor,n=l.t,e=function(l){const n=l.t,e={Paragraph:n("Paragraph"),"Heading 1":n("Heading 1"),"Heading 2":n("Heading 2"),"Heading 3":n("Heading 3"),"Heading 4":n("Heading 4"),"Heading 5":n("Heading 5"),"Heading 6":n("Heading 6")};return l.config.get("heading.options").map(l=>{const n=e[l.title];return n&&n!=l.title&&(l.title=n),l})}(l),t=n("Choose heading"),o=n("Heading");l.ui.componentFactory.add("heading",n=>{const u={},i=new Et,a=l.commands.get("heading"),r=l.commands.get("paragraph"),s=[a];for(const l of e){const n={type:"button",model:new Lc({label:l.title,class:l.class,withText:!0})};"paragraph"===l.model?(n.model.bind("isOn").to(r,"value"),n.model.set("commandName","paragraph"),s.push(r)):(n.model.bind("isOn").to(a,"value",n=>n===l.model),n.model.set({commandName:"heading",commandValue:l.model})),i.add(n),u[l.model]=l.title}const d=ac(n);return sc(d,i),d.buttonView.set({isOn:!1,withText:!0,tooltip:o}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(s,"isEnabled",(...l)=>l.some(l=>l)),d.buttonView.bind("label").to(a,"value",r,"value",(l,n)=>{const e=l||n&&"paragraph";return u[e]?u[e]:t}),this.listenTo(d,"execute",n=>{l.execute(n.source.commandName,n.source.commandValue?{value:n.source.commandValue}:void 0),l.editing.view.focus()}),d})}}class Vm extends Pt{refresh(){const l=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!l,this.isEnabled&&l.hasAttribute("alt")?this.value=l.getAttribute("alt"):this.value=!1}execute(l){const n=this.editor,e=n.plugins.get("ImageUtils"),t=n.model,o=e.getClosestSelectedImageElement(t.document.selection);t.change(n=>{n.setAttribute("alt",l.newValue,o)})}}function Um(l){return l.createContainerElement("figure",{class:"image"},[l.createEmptyElement("img"),l.createSlot()])}function Wm(l,n){const e=l.plugins.get("ImageUtils"),t=l.plugins.has("ImageInlineEditing")&&l.plugins.has("ImageBlockEditing");return l=>e.isInlineImageView(l)?t&&("block"==l.getStyle("display")||l.findAncestor(e.isBlockImageView)?"imageBlock":"imageInline")!==n?null:o(l):null;function o(l){const n={name:!0};return l.hasAttribute("src")&&(n.attributes=["src"]),n}}function Gm(l,n){const e=Ot(n.getSelectedBlocks());return!e||l.isObject(e)||e.isEmpty&&"listItem"!=e.name?"imageBlock":"imageInline"}class jm extends qt{static get pluginName(){return"ImageUtils"}isImage(l){return this.isInlineImage(l)||this.isBlockImage(l)}isInlineImageView(l){return!!l&&l.is("element","img")}isBlockImageView(l){return!!l&&l.is("element","figure")&&l.hasClass("image")}insertImage(l={},n=null,e=null){const t=this.editor,o=t.model,u=o.document.selection;e=Hm(t,n||u,e),l={...Object.fromEntries(u.getAttributes()),...l};for(const i in l)o.schema.checkAttribute(e,i)||delete l[i];return o.change(t=>{const u=t.createElement(e,l);return o.insertObject(u,n,null,{setSelection:"on",findOptimalPosition:!n&&"imageInline"!=e}),u.parent?u:null})}getClosestSelectedImageWidget(l){const n=l.getFirstPosition();if(!n)return null;const e=l.getSelectedElement();if(e&&this.isImageWidget(e))return e;let t=n.parent;for(;t;){if(t.is("element")&&this.isImageWidget(t))return t;t=t.parent}return null}getClosestSelectedImageElement(l){const n=l.getSelectedElement();return this.isImage(n)?n:l.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){const l=this.editor.model.document.selection;return function(l,n){if("imageBlock"==Hm(l,n)){const e=function(l,n){const e=jp(l,n).start.parent;return e.isEmpty&&!e.is("element","$root")?e.parent:e}(n,l.model);if(l.model.schema.checkChild(e,"imageBlock"))return!0}else if(l.model.schema.checkChild(n.focus,"imageInline"))return!0;return!1}(this.editor,l)&&function(l){return[...l.focus.getAncestors()].every(l=>!l.is("element","imageBlock"))}(l)}toImageWidget(l,n,e){return n.setCustomProperty("image",!0,l),Up(l,n,{label:()=>{const n=this.findViewImgElement(l).getAttribute("alt");return n?`${n} ${e}`:e}})}isImageWidget(l){return!!l.getCustomProperty("image")&&Vp(l)}isBlockImage(l){return!!l&&l.is("element","imageBlock")}isInlineImage(l){return!!l&&l.is("element","imageInline")}findViewImgElement(l){if(this.isInlineImageView(l))return l;const n=this.editor.editing.view;for(const{item:e}of n.createRangeIn(l))if(this.isInlineImageView(e))return e}}function Hm(l,n,e){const t=l.model.schema,o=l.config.get("image.insert.type");return l.plugins.has("ImageBlockEditing")?l.plugins.has("ImageInlineEditing")?e||("inline"===o?"imageInline":"block"===o?"imageBlock":n.is("selection")?Gm(t,n):t.checkChild(n,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class Ym extends qt{static get requires(){return[jm]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Vm(this.editor))}}var Zm=o(1905);Ht()(Zm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Zm.Z.locals;var Xm=o(6764);Ht()(Xm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Xm.Z.locals;class $m extends rd{constructor(l){super(l);const n=this.locale.t;this.focusTracker=new St,this.keystrokes=new kt,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(n("Save"),wd.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),wd.cancel,"ck-button-cancel","cancel"),this._focusables=new Bs,this._focusCycler=new Wd({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]}),Ld(this)}render(){super.render(),this.keystrokes.listenTo(this.element),Md({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(l=>{this._focusables.add(l),this.focusTracker.add(l.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(l,n,e,t){const o=new Id(this.locale);return o.set({label:l,icon:n,tooltip:!0}),o.extendTemplate({attributes:{class:e}}),t&&o.delegate("execute").to(this,t),o}_createLabeledInputView(){const l=this.locale.t,n=new Cc(this.locale,wc);return n.label=l("Text alternative"),n}}function Km(l){const n=l.editing.view,e=pd.defaultPositions,t=l.plugins.get("ImageUtils");return{target:n.domConverter.mapViewToDom(t.getClosestSelectedImageWidget(n.document.selection)),positions:[e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast,e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.viewportStickyNorth]}}class Qm extends qt{static get requires(){return[Sc]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const l=this.editor,n=l.t;l.ui.componentFactory.add("imageTextAlternative",e=>{const t=l.commands.get("imageTextAlternative"),o=new Id(e);return o.set({label:n("Change image text alternative"),icon:wd.lowVision,tooltip:!0}),o.bind("isEnabled").to(t,"isEnabled"),o.bind("isOn").to(t,"value",l=>!!l),this.listenTo(o,"execute",()=>{this._showForm()}),o})}_createForm(){const l=this.editor,n=l.editing.view.document,e=l.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new $m(l.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{l.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",(l,n)=>{this._hideForm(!0),n()}),this.listenTo(l.ui,"update",()=>{e.getClosestSelectedImageWidget(n.selection)?this._isVisible&&function(l){const n=l.plugins.get("ContextualBalloon");if(l.plugins.get("ImageUtils").getClosestSelectedImageWidget(l.editing.view.document.selection)){const e=Km(l);n.updatePosition(e)}}(l):this._hideForm(!0)}),Rd({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const l=this.editor,n=l.commands.get("imageTextAlternative"),e=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Km(l)}),e.fieldView.value=e.fieldView.element.value=n.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(l){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),l&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class Jm extends qt{static get requires(){return[Ym,Qm]}static get pluginName(){return"ImageTextAlternative"}}function lh(l,n){return l=>{l.on(`attribute:srcset:${n}`,e)};function e(n,e,t){if(!t.consumable.consume(e.item,n.name))return;const o=t.writer,u=t.mapper.toViewElement(e.item),i=l.findViewImgElement(u);if(null===e.attributeNewValue){const l=e.attributeOldValue;l.data&&(o.removeAttribute("srcset",i),o.removeAttribute("sizes",i),l.width&&o.removeAttribute("width",i))}else{const l=e.attributeNewValue;l.data&&(o.setAttribute("srcset",l.data,i),o.setAttribute("sizes","100vw",i),l.width&&o.setAttribute("width",l.width,i))}}}function nh(l,n,e){return l=>{l.on(`attribute:${e}:${n}`,t)};function t(n,e,t){if(!t.consumable.consume(e.item,n.name))return;const o=t.writer,u=t.mapper.toViewElement(e.item),i=l.findViewImgElement(u);o.setAttribute(e.attributeKey,e.attributeNewValue||"",i)}}class eh extends ni{observe(l){this.listenTo(l,"load",(l,n)=>{const e=n.target;this.checkShouldIgnoreEventFromTarget(e)||"IMG"==e.tagName&&this._fireEvents(n)},{useCapture:!0})}_fireEvents(l){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",l))}}class th extends Pt{constructor(l){super(l);const n=l.config.get("image.insert.type");l.plugins.has("ImageBlockEditing")||"block"===n&&y("image-block-plugin-required"),l.plugins.has("ImageInlineEditing")||"inline"===n&&y("image-inline-plugin-required")}refresh(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}execute(l){const n=wt(l.source),e=this.editor.model.document.selection,t=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(e.getAttributes());n.forEach((l,n)=>{const u=e.getSelectedElement();if("string"==typeof l&&(l={src:l}),n&&u&&t.isImage(u)){const n=this.editor.model.createPositionAfter(u);t.insertImage({...l,...o},n)}else t.insertImage({...l,...o})})}}class oh extends qt{static get requires(){return[jm]}static get pluginName(){return"ImageEditing"}init(){const l=this.editor,n=l.conversion;l.editing.view.addObserver(eh),n.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:l=>{const n={data:l.getAttribute("srcset")};return l.hasAttribute("width")&&(n.width=l.getAttribute("width")),n}}});const e=new th(l);l.commands.add("insertImage",e),l.commands.add("imageInsert",e)}}class uh extends Pt{constructor(l,n){super(l),this._modelElementName=n}refresh(){const l=this.editor.plugins.get("ImageUtils"),n=l.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=l.isInlineImage(n):this.isEnabled=l.isBlockImage(n)}execute(){const l=this.editor,n=this.editor.model,e=l.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(n.document.selection),o=Object.fromEntries(t.getAttributes());return o.src||o.uploadId?n.change(l=>{const u=Array.from(n.markers).filter(l=>l.getRange().containsItem(t)),i=e.insertImage(o,n.createSelection(t,"on"),this._modelElementName);if(!i)return null;const a=l.createRangeOn(i);for(const n of u){const e=n.getRange(),t="$graveyard"!=e.root.rootName?e.getJoined(a,!0):a;l.updateMarker(n,{range:t})}return{oldElement:t,newElement:i}}):null}}class ih extends qt{static get requires(){return[oh,jm,jc]}static get pluginName(){return"ImageBlockEditing"}init(){const l=this.editor;l.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),l.plugins.has("ImageInlineEditing")&&(l.commands.add("imageTypeBlock",new uh(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const l=this.editor,n=l.t,e=l.conversion,t=l.plugins.get("ImageUtils");e.for("dataDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:n})=>Um(n)}),e.for("editingDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:e})=>t.toImageWidget(Um(e),e,n("image widget"))}),e.for("downcast").add(nh(t,"imageBlock","src")).add(nh(t,"imageBlock","alt")).add(lh(t,"imageBlock")),e.for("upcast").elementToElement({view:Wm(l,"imageBlock"),model:(l,{writer:n})=>n.createElement("imageBlock",l.hasAttribute("src")?{src:l.getAttribute("src")}:null)}).add(function(l){return l=>{l.on("element:figure",n)};function n(n,e,t){if(!t.consumable.test(e.viewItem,{name:!0,classes:"image"}))return;const o=l.findViewImgElement(e.viewItem);if(!o||!t.consumable.test(o,{name:!0}))return;t.consumable.consume(e.viewItem,{name:!0,classes:"image"});const u=Ot(t.convertItem(o,e.modelCursor).modelRange.getItems());u?(t.convertChildren(e.viewItem,u),t.updateConversionResult(u,e)):t.consumable.revert(e.viewItem,{name:!0,classes:"image"})}}(t))}_setupClipboardIntegration(){const l=this.editor,n=l.model,e=l.editing.view,t=l.plugins.get("ImageUtils");this.listenTo(l.plugins.get("ClipboardPipeline"),"inputTransformation",(o,u)=>{const i=Array.from(u.content.getChildren());let a;if(!i.every(t.isInlineImageView))return;a=u.targetRanges?l.editing.mapper.toModelRange(u.targetRanges[0]):n.document.selection.getFirstRange();const r=n.createSelection(a);if("imageBlock"===Gm(n.schema,r)){const l=new Ns(e.document),n=i.map(n=>l.createElement("figure",{class:"image"},n));u.content=l.createDocumentFragment(n)}})}}var ah=o(3508);Ht()(ah.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ah.Z.locals;class rh extends qt{static get requires(){return[ih,of,Jm]}static get pluginName(){return"ImageBlock"}}class sh extends qt{static get requires(){return[oh,jm,jc]}static get pluginName(){return"ImageInlineEditing"}init(){const l=this.editor,n=l.model.schema;n.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),n.addChildCheck((l,n)=>{if(l.endsWith("caption")&&"imageInline"===n.name)return!1}),this._setupConversion(),l.plugins.has("ImageBlockEditing")&&(l.commands.add("imageTypeInline",new uh(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const l=this.editor,n=l.t,e=l.conversion,t=l.plugins.get("ImageUtils");e.for("dataDowncast").elementToElement({model:"imageInline",view:(l,{writer:n})=>n.createEmptyElement("img")}),e.for("editingDowncast").elementToStructure({model:"imageInline",view:(l,{writer:e})=>t.toImageWidget(function(l){return l.createContainerElement("span",{class:"image-inline"},l.createEmptyElement("img"))}(e),e,n("image widget"))}),e.for("downcast").add(nh(t,"imageInline","src")).add(nh(t,"imageInline","alt")).add(lh(t,"imageInline")),e.for("upcast").elementToElement({view:Wm(l,"imageInline"),model:(l,{writer:n})=>n.createElement("imageInline",l.hasAttribute("src")?{src:l.getAttribute("src")}:null)})}_setupClipboardIntegration(){const l=this.editor,n=l.model,e=l.editing.view,t=l.plugins.get("ImageUtils");this.listenTo(l.plugins.get("ClipboardPipeline"),"inputTransformation",(o,u)=>{const i=Array.from(u.content.getChildren());let a;if(!i.every(t.isBlockImageView))return;a=u.targetRanges?l.editing.mapper.toModelRange(u.targetRanges[0]):n.document.selection.getFirstRange();const r=n.createSelection(a);if("imageInline"===Gm(n.schema,r)){const l=new Ns(e.document),n=i.map(n=>1===n.childCount?(Array.from(n.getAttributes()).forEach(e=>l.setAttribute(...e,t.findViewImgElement(n))),n.getChild(0)):n);u.content=l.createDocumentFragment(n)}})}}class dh extends qt{static get requires(){return[sh,of,Jm]}static get pluginName(){return"ImageInline"}}class ch extends Pt{refresh(){const l=this.editor,n=l.plugins.get("ImageCaptionUtils");if(!l.plugins.has(ih))return this.isEnabled=!1,void(this.value=!1);const e=l.model.document.selection,t=e.getSelectedElement();if(!t){const l=n.getCaptionFromModelSelection(e);return this.isEnabled=!!l,void(this.value=!!l)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(t),this.isEnabled?this.value=!!n.getCaptionFromImageModelElement(t):this.value=!1}execute(l={}){const{focusCaptionOnShow:n}=l;this.editor.model.change(l=>{this.value?this._hideImageCaption(l):this._showImageCaption(l,n)})}_showImageCaption(l,n){const e=this.editor.model.document.selection,t=this.editor.plugins.get("ImageCaptionEditing");let o=e.getSelectedElement();const u=t._getSavedCaption(o);this.editor.plugins.get("ImageUtils").isInlineImage(o)&&(this.editor.execute("imageTypeBlock"),o=e.getSelectedElement());const i=u||l.createElement("caption");l.append(i,o),n&&l.setSelection(i,"in")}_hideImageCaption(l){const n=this.editor,e=n.model.document.selection,t=n.plugins.get("ImageCaptionEditing"),o=n.plugins.get("ImageCaptionUtils");let u,i=e.getSelectedElement();i?u=o.getCaptionFromImageModelElement(i):i=(u=o.getCaptionFromModelSelection(e)).parent,t._saveCaption(i,u),l.setSelection(i,"on"),l.remove(u)}}class ph extends qt{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[jm]}getCaptionFromImageModelElement(l){for(const n of l.getChildren())if(n&&n.is("element","caption"))return n;return null}getCaptionFromModelSelection(l){const n=this.editor.plugins.get("ImageUtils"),e=l.getFirstPosition().findAncestor("caption");return e&&n.isBlockImage(e.parent)?e:null}matchImageCaptionViewElement(l){const n=this.editor.plugins.get("ImageUtils");return"figcaption"==l.name&&n.isBlockImageView(l.parent)?{name:!0}:null}}class fh extends qt{static get requires(){return[jm,ph]}static get pluginName(){return"ImageCaptionEditing"}constructor(l){super(l),this._savedCaptionsMap=new WeakMap}init(){const l=this.editor,n=l.model.schema;n.isRegistered("caption")?n.extend("caption",{allowIn:"imageBlock"}):n.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),l.commands.add("toggleImageCaption",new ch(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const l=this.editor,n=l.editing.view,e=l.plugins.get("ImageUtils"),t=l.plugins.get("ImageCaptionUtils"),o=l.t;l.conversion.for("upcast").elementToElement({view:l=>t.matchImageCaptionViewElement(l),model:"caption"}),l.conversion.for("dataDowncast").elementToElement({model:"caption",view:(l,{writer:n})=>e.isBlockImage(l.parent)?n.createContainerElement("figcaption"):null}),l.conversion.for("editingDowncast").elementToElement({model:"caption",view:(l,{writer:t})=>{if(!e.isBlockImage(l.parent))return null;const u=t.createEditableElement("figcaption");t.setCustomProperty("imageCaption",!0,u),Xt({view:n,element:u,text:o("Enter image caption"),keepOnFocus:!0});const i=l.parent.getAttribute("alt");return Gp(u,t,{label:i?o("Caption for image: %0",[i]):o("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const l=this.editor,n=l.plugins.get("ImageUtils"),e=l.plugins.get("ImageCaptionUtils"),t=l.commands.get("imageTypeInline"),o=l.commands.get("imageTypeBlock"),u=l=>{if(!l.return)return;const{oldElement:t,newElement:o}=l.return;if(!t)return;if(n.isBlockImage(t)){const l=e.getCaptionFromImageModelElement(t);if(l)return void this._saveCaption(o,l)}const u=this._getSavedCaption(t);u&&this._saveCaption(o,u)};t&&this.listenTo(t,"execute",u,{priority:"low"}),o&&this.listenTo(o,"execute",u,{priority:"low"})}_getSavedCaption(l){const n=this._savedCaptionsMap.get(l);return n?Ki.fromJSON(n):null}_saveCaption(l,n){this._savedCaptionsMap.set(l,n.toJSON())}_registerCaptionReconversion(){const l=this.editor,n=l.model,e=l.plugins.get("ImageUtils"),t=l.plugins.get("ImageCaptionUtils");n.document.on("change:data",()=>{const o=n.document.differ.getChanges();for(const n of o){if("alt"!==n.attributeKey)continue;const o=n.range.start.nodeAfter;if(e.isBlockImage(o)){const n=t.getCaptionFromImageModelElement(o);if(!n)return;l.editing.reconvertItem(n)}}})}}class mh extends qt{static get requires(){return[ph]}static get pluginName(){return"ImageCaptionUI"}init(){const l=this.editor,n=l.editing.view,e=l.plugins.get("ImageCaptionUtils"),t=l.t;l.ui.componentFactory.add("toggleImageCaption",o=>{const u=l.commands.get("toggleImageCaption"),i=new Id(o);return i.set({icon:wd.caption,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(u,"value","isEnabled"),i.bind("label").to(u,"value",l=>t(l?"Toggle caption off":"Toggle caption on")),this.listenTo(i,"execute",()=>{l.execute("toggleImageCaption",{focusCaptionOnShow:!0});const t=e.getCaptionFromModelSelection(l.model.document.selection);if(t){const e=l.editing.mapper.toViewElement(t);n.scrollToTheSelection(),n.change(l=>{l.addClass("image__caption_highlighted",e)})}l.editing.view.focus()}),i})}}var hh=o(2640);Ht()(hh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hh.Z.locals;class gh extends Pt{constructor(l,n){super(l),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(n.map(l=>{if(l.isDefault)for(const n of l.modelElements)this._defaultStyles[n]=l.name;return[l.name,l]}))}refresh(){const l=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!l,this.isEnabled?l.hasAttribute("imageStyle")?this.value=l.getAttribute("imageStyle"):this.value=this._defaultStyles[l.name]:this.value=!1}execute(l={}){const n=this.editor,e=n.model,t=n.plugins.get("ImageUtils");e.change(n=>{const o=l.value;let u=t.getClosestSelectedImageElement(e.document.selection);o&&this.shouldConvertImageType(o,u)&&(this.editor.execute(t.isBlockImage(u)?"imageTypeInline":"imageTypeBlock"),u=t.getClosestSelectedImageElement(e.document.selection)),!o||this._styles.get(o).isDefault?n.removeAttribute("imageStyle",u):n.setAttribute("imageStyle",o,u)})}shouldConvertImageType(l,n){return!this._styles.get(l).modelElements.includes(n.name)}}const{objectFullWidth:vh,objectInline:bh,objectLeft:yh,objectRight:xh,objectCenter:Ah,objectBlockLeft:_h,objectBlockRight:Ch}=wd,wh={get inline(){return{name:"inline",title:"In line",icon:bh,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:yh,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:_h,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Ah,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:xh,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Ch,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:Ah,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:xh,modelElements:["imageBlock"],className:"image-style-side"}}},Rh={full:vh,left:_h,right:Ch,center:Ah,inlineLeft:yh,inlineRight:xh,inline:bh},Lh=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Mh(l){y("image-style-configuration-definition-invalid",l)}const Eh={normalizeStyles:function(l){return(l.configuredStyles.options||[]).map(l=>(function(l){return"string"==typeof(l="string"==typeof l?wh[l]?{...wh[l]}:{name:l}:function(l,n){const e={...n};for(const t in l)Object.prototype.hasOwnProperty.call(n,t)||(e[t]=l[t]);return e}(wh[l.name],l)).icon&&(l.icon=Rh[l.icon]||l.icon),l})(l)).filter(n=>(function(l,{isBlockPluginLoaded:n,isInlinePluginLoaded:e}){const{modelElements:t,name:o}=l;if(!(t&&t.length&&o))return Mh({style:l}),!1;{const o=[n?"imageBlock":null,e?"imageInline":null];if(!t.some(l=>o.includes(l)))return y("image-style-missing-dependency",{style:l,missingPlugins:t.map(l=>"imageBlock"===l?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0})(n,l))},getDefaultStylesConfiguration:function(l,n){return l&&n?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:l?{options:["block","side"]}:n?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(l){return l.has("ImageBlockEditing")&&l.has("ImageInlineEditing")?[...Lh]:[]},warnInvalidStyle:Mh,DEFAULT_OPTIONS:wh,DEFAULT_ICONS:Rh,DEFAULT_DROPDOWN_DEFINITIONS:Lh};function Oh(l,n){for(const e of n)if(e.name===l)return e}class Sh extends qt{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[jm]}init(){const{normalizeStyles:l,getDefaultStylesConfiguration:n}=Eh,e=this.editor,t=e.plugins.has("ImageBlockEditing"),o=e.plugins.has("ImageInlineEditing");e.config.define("image.styles",n(t,o)),this.normalizedStyles=l({configuredStyles:e.config.get("image.styles"),isBlockPluginLoaded:t,isInlinePluginLoaded:o}),this._setupConversion(t,o),this._setupPostFixer(),e.commands.add("imageStyle",new gh(e,this.normalizedStyles))}_setupConversion(l,n){const e=this.editor,t=e.model.schema,o=(u=this.normalizedStyles,(l,n,e)=>{if(!e.consumable.consume(n.item,l.name))return;const t=Oh(n.attributeNewValue,u),o=Oh(n.attributeOldValue,u),i=e.mapper.toViewElement(n.item),a=e.writer;o&&a.removeClass(o.className,i),t&&a.addClass(t.className,i)});var u;const i=function(l){const n={imageInline:l.filter(l=>!l.isDefault&&l.modelElements.includes("imageInline")),imageBlock:l.filter(l=>!l.isDefault&&l.modelElements.includes("imageBlock"))};return(l,e,t)=>{if(!e.modelRange)return;const o=e.viewItem,u=Ot(e.modelRange.getItems());if(u&&t.schema.checkAttribute(u,"imageStyle"))for(const i of n[u.name])t.consumable.consume(o,{classes:i.className})&&t.writer.setAttribute("imageStyle",i.name,u)}}(this.normalizedStyles);e.editing.downcastDispatcher.on("attribute:imageStyle",o),e.data.downcastDispatcher.on("attribute:imageStyle",o),l&&(t.extend("imageBlock",{allowAttributes:"imageStyle"}),e.data.upcastDispatcher.on("element:figure",i,{priority:"low"})),n&&(t.extend("imageInline",{allowAttributes:"imageStyle"}),e.data.upcastDispatcher.on("element:img",i,{priority:"low"}))}_setupPostFixer(){const l=this.editor,n=l.model.document,e=l.plugins.get(jm),t=new Map(this.normalizedStyles.map(l=>[l.name,l]));n.registerPostFixer(l=>{let o=!1;for(const u of n.differ.getChanges())if("insert"==u.type||"attribute"==u.type&&"imageStyle"==u.attributeKey){let n="insert"==u.type?u.position.nodeAfter:u.range.start.nodeAfter;if(n&&n.is("element","paragraph")&&n.childCount>0&&(n=n.getChild(0)),!e.isImage(n))continue;const i=n.getAttribute("imageStyle");if(!i)continue;const a=t.get(i);a&&a.modelElements.includes(n.name)||(l.removeAttribute("imageStyle",n),o=!0)}return o})}}var kh=o(5083);Ht()(kh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),kh.Z.locals;class Ih extends qt{static get requires(){return[Sh]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const l=this.editor.t;return{"Wrap text":l("Wrap text"),"Break text":l("Break text"),"In line":l("In line"),"Full size image":l("Full size image"),"Side image":l("Side image"),"Left aligned image":l("Left aligned image"),"Centered image":l("Centered image"),"Right aligned image":l("Right aligned image")}}init(){const l=this.editor.plugins,n=this.editor.config.get("image.toolbar")||[],e=Fh(l.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const o of e)this._createButton(o);const t=Fh([...n.filter(D),...Eh.getDefaultDropdownDefinitions(l)],this.localizedDefaultStylesTitles);for(const o of t)this._createDropdown(o,e)}_createDropdown(l,n){const e=this.editor.ui.componentFactory;e.add(l.name,t=>{let o;const{defaultItem:u,items:i,title:a}=l,r=i.filter(l=>n.find(({name:n})=>Nh(n)===l)).map(l=>{const n=e.create(l);return l===u&&(o=n),n});i.length!==r.length&&Eh.warnInvalidStyle({dropdown:l});const s=ac(t,Pd),d=s.buttonView,c=d.arrowView;return rc(s,r,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:Dh(a,o.label),class:null,tooltip:!0}),c.unbind("label"),c.set({label:a}),d.bind("icon").toMany(r,"isOn",(...l)=>{const n=l.findIndex(ko);return n<0?o.icon:r[n].icon}),d.bind("label").toMany(r,"isOn",(...l)=>{const n=l.findIndex(ko);return Dh(a,n<0?o.label:r[n].label)}),d.bind("isOn").toMany(r,"isOn",(...l)=>l.some(ko)),d.bind("class").toMany(r,"isOn",(...l)=>l.some(ko)?"ck-splitbutton_flatten":null),d.on("execute",()=>{r.some(({isOn:l})=>l)?s.isOpen=!s.isOpen:o.fire("execute")}),s.bind("isEnabled").toMany(r,"isEnabled",(...l)=>l.some(ko)),this.listenTo(s,"execute",()=>{this.editor.editing.view.focus()}),s})}_createButton(l){const n=l.name;this.editor.ui.componentFactory.add(Nh(n),e=>{const t=this.editor.commands.get("imageStyle"),o=new Id(e);return o.set({label:l.title,icon:l.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(t,"isEnabled"),o.bind("isOn").to(t,"value",l=>l===n),o.on("execute",this._executeCommand.bind(this,n)),o})}_executeCommand(l){this.editor.execute("imageStyle",{value:l}),this.editor.editing.view.focus()}}function Fh(l,n){for(const e of l)n[e.title]&&(e.title=n[e.title]);return l}function Nh(l){return`imageStyle:${l}`}function Dh(l,n){return(l?l+": ":"")+n}function zh(l){const n=l.map(l=>l.replace("+","\\+"));return new RegExp(`^image\\/(${n.join("|")})$`)}function qh(l){return new Promise((n,e)=>{const t=l.getAttribute("src");fetch(t).then(l=>l.blob()).then(l=>{const e=Th(l,t),o=e.replace("image/",""),u=new File([l],`image.${o}`,{type:e});n(u)}).catch(l=>l&&"TypeError"===l.name?function(l){return function(l){return new Promise((n,e)=>{const t=Ve.document.createElement("img");t.addEventListener("load",()=>{const l=Ve.document.createElement("canvas");l.width=t.width,l.height=t.height,l.getContext("2d").drawImage(t,0,0),l.toBlob(l=>l?n(l):e())}),t.addEventListener("error",()=>e()),t.src=l})}(l).then(n=>{const e=Th(n,l),t=e.replace("image/","");return new File([n],`image.${t}`,{type:e})})}(t).then(n).catch(e):e(l))})}function Th(l,n){return l.type?l.type:n.match(/data:(image\/\w+);base64/)?n.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class Ph extends qt{static get pluginName(){return"ImageUploadUI"}init(){const l=this.editor,n=l.t,e=e=>{const t=new Pf(e),o=l.commands.get("uploadImage"),u=l.config.get("image.upload.types"),i=zh(u);return t.set({acceptedType:u.map(l=>`image/${l}`).join(","),allowMultipleFiles:!0}),t.buttonView.set({label:n("Insert image"),icon:wd.image,tooltip:!0}),t.buttonView.bind("isEnabled").to(o),t.on("done",(n,e)=>{const t=Array.from(e).filter(l=>i.test(l.type));t.length&&(l.execute("uploadImage",{file:t}),l.editing.view.focus())}),t};l.ui.componentFactory.add("uploadImage",e),l.ui.componentFactory.add("imageUpload",e)}}var Bh=o(3689);Ht()(Bh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bh.Z.locals;var Vh=o(4036);Ht()(Vh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vh.Z.locals;var Uh=o(3773);Ht()(Uh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Uh.Z.locals;class Wh extends qt{static get pluginName(){return"ImageUploadProgress"}constructor(l){super(l),this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const l=this.editor;l.plugins.has("ImageBlockEditing")&&l.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",(...l)=>this.uploadStatusChange(...l)),l.plugins.has("ImageInlineEditing")&&l.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",(...l)=>this.uploadStatusChange(...l))}uploadStatusChange(l,n,e){const t=this.editor,o=n.item,u=o.getAttribute("uploadId");if(!e.consumable.consume(n.item,l.name))return;const i=t.plugins.get("ImageUtils"),a=t.plugins.get(qf),r=u?n.attributeNewValue:null,s=this.placeholder,d=t.editing.mapper.toViewElement(o),c=e.writer;if("reading"==r)return Gh(d,c),void jh(i,s,d,c);if("uploading"==r){const l=a.loaders.get(u);return Gh(d,c),void(l?(Hh(d,c),function(l,n,e,t){const o=function(l){const n=l.createUIElement("div",{class:"ck-progress-bar"});return l.setCustomProperty("progressBar",!0,n),n}(n);n.insert(n.createPositionAt(l,"end"),o),e.on("change:uploadedPercent",(l,n,e)=>{t.change(l=>{l.setStyle("width",e+"%",o)})})}(d,c,l,t.editing.view),function(l,n,e,t){if(t.data){const o=l.findViewImgElement(n);e.setAttribute("src",t.data,o)}}(i,d,c,l)):jh(i,s,d,c))}"complete"==r&&a.loaders.get(u)&&function(l,n,e){const t=n.createUIElement("div",{class:"ck-image-upload-complete-icon"});n.insert(n.createPositionAt(l,"end"),t),setTimeout(()=>{e.change(l=>l.remove(l.createRangeOn(t)))},3e3)}(d,c,t.editing.view),Zh(d,c,"progressBar"),Hh(d,c),function(l,n){c.removeClass("ck-appear",l)}(d)}}function Gh(l,n){l.hasClass("ck-appear")||n.addClass("ck-appear",l)}function jh(l,n,e,t){e.hasClass("ck-image-upload-placeholder")||t.addClass("ck-image-upload-placeholder",e);const o=l.findViewImgElement(e);o.getAttribute("src")!==n&&t.setAttribute("src",n,o),Yh(e,"placeholder")||t.insert(t.createPositionAfter(o),function(l){const n=l.createUIElement("div",{class:"ck-upload-placeholder-loader"});return l.setCustomProperty("placeholder",!0,n),n}(t))}function Hh(l,n){l.hasClass("ck-image-upload-placeholder")&&n.removeClass("ck-image-upload-placeholder",l),Zh(l,n,"placeholder")}function Yh(l,n){for(const e of l.getChildren())if(e.getCustomProperty(n))return e}function Zh(l,n,e){const t=Yh(l,e);t&&n.remove(n.createRangeOn(t))}class Xh extends Pt{refresh(){const l=this.editor,n=l.plugins.get("ImageUtils"),e=l.model.document.selection.getSelectedElement();this.isEnabled=n.isImageAllowed()||n.isImage(e)}execute(l){const n=wt(l.file),e=this.editor.model.document.selection,t=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(e.getAttributes());n.forEach((l,n)=>{const u=e.getSelectedElement();if(n&&u&&t.isImage(u)){const n=this.editor.model.createPositionAfter(u);this._uploadImage(l,o,n)}else this._uploadImage(l,o)})}_uploadImage(l,n,e){const t=this.editor,o=t.plugins.get(qf).createLoader(l),u=t.plugins.get("ImageUtils");o&&u.insertImage({...n,uploadId:o.id},e)}}class $h extends qt{static get requires(){return[qf,Rc,jc,jm]}static get pluginName(){return"ImageUploadEditing"}constructor(l){super(l),l.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const l=this.editor,n=l.model.document,e=l.conversion,t=l.plugins.get(qf),o=l.plugins.get("ImageUtils"),u=zh(l.config.get("image.upload.types")),i=new Xh(l);l.commands.add("uploadImage",i),l.commands.add("imageUpload",i),e.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(l.editing.view.document,"clipboardInput",(n,e)=>{if(t=e.dataTransfer,Array.from(t.types).includes("text/html")&&""!==t.getData("text/html"))return;var t;const o=Array.from(e.dataTransfer.files).filter(l=>!!l&&u.test(l.type));o.length&&(n.stop(),l.model.change(n=>{e.targetRanges&&n.setSelection(e.targetRanges.map(n=>l.editing.mapper.toModelRange(n))),l.model.enqueueChange(()=>{l.execute("uploadImage",{file:o})})}))}),this.listenTo(l.plugins.get("ClipboardPipeline"),"inputTransformation",(n,e)=>{const u=Array.from(l.editing.view.createRangeIn(e.content)).filter(l=>(function(l,n){return!(!l.isInlineImageView(n)||!n.getAttribute("src"))&&(n.getAttribute("src").match(/^data:image\/\w+;base64,/g)||n.getAttribute("src").match(/^blob:/g))})(o,l.item)&&!l.item.getAttribute("uploadProcessed")).map(l=>({promise:qh(l.item),imageElement:l.item}));if(!u.length)return;const i=new Ns(l.editing.view.document);for(const l of u){i.setAttribute("uploadProcessed",!0,l.imageElement);const n=t.createLoader(l.promise);n&&(i.setAttribute("src","",l.imageElement),i.setAttribute("uploadId",n.id,l.imageElement))}}),l.editing.view.document.on("dragover",(l,n)=>{n.preventDefault()}),n.on("change",()=>{const e=n.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),o=new Set;for(const n of e)if("insert"==n.type&&"$text"!=n.name){const e=n.position.nodeAfter,u="$graveyard"==n.position.root.rootName;for(const n of Kh(l,e)){const l=n.getAttribute("uploadId");if(!l)continue;const e=t.loaders.get(l);e&&(u?o.has(l)||e.abort():(o.add(l),this._uploadImageElements.set(l,n),"idle"==e.status&&this._readAndUpload(e)))}}}),this.on("uploadComplete",(l,{imageElement:n,data:e})=>{const t=e.urls?e.urls:e;this.editor.model.change(l=>{l.setAttribute("src",t.default,n),this._parseAndSetSrcsetAttributeOnImage(t,n,l)})},{priority:"low"})}afterInit(){const l=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&l.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&l.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(l){const n=this.editor,e=n.model,o=n.locale.t,u=n.plugins.get(qf),i=n.plugins.get(Rc),a=n.plugins.get("ImageUtils"),r=this._uploadImageElements;return e.enqueueChange({isUndoable:!1},n=>{n.setAttribute("uploadStatus","reading",r.get(l.id))}),l.read().then(()=>{const o=l.upload(),u=r.get(l.id);if(t.isSafari){const l=n.editing.mapper.toViewElement(u),e=a.findViewImgElement(l);n.editing.view.once("render",()=>{if(!e.parent)return;const l=n.editing.view.domConverter.mapViewToDom(e.parent);if(!l)return;const t=l.style.display;l.style.display="none",l._ckHack=l.offsetHeight,l.style.display=t})}return e.enqueueChange({isUndoable:!1},l=>{l.setAttribute("uploadStatus","uploading",u)}),o}).then(n=>{e.enqueueChange({isUndoable:!1},e=>{const t=r.get(l.id);e.setAttribute("uploadStatus","complete",t),this.fire("uploadComplete",{data:n,imageElement:t})}),s()}).catch(n=>{if("error"!==l.status&&"aborted"!==l.status)throw n;"error"==l.status&&n&&i.showWarning(n,{title:o("Upload failed"),namespace:"upload"}),e.enqueueChange({isUndoable:!1},n=>{n.remove(r.get(l.id))}),s()});function s(){e.enqueueChange({isUndoable:!1},n=>{const e=r.get(l.id);n.removeAttribute("uploadId",e),n.removeAttribute("uploadStatus",e),r.delete(l.id)}),u.destroyLoader(l)}}_parseAndSetSrcsetAttributeOnImage(l,n,e){let t=0;const o=Object.keys(l).filter(l=>{const n=parseInt(l,10);if(!isNaN(n))return t=Math.max(t,n),!0}).map(n=>`${l[n]} ${n}w`).join(", ");""!=o&&e.setAttribute("srcset",{data:o,width:t},n)}}function Kh(l,n){const e=l.plugins.get("ImageUtils");return Array.from(l.model.createRangeOn(n)).filter(l=>e.isImage(l.item)).map(l=>l.item)}class Qh extends qt{static get pluginName(){return"IndentEditing"}init(){const l=this.editor;l.commands.add("indent",new Vt(l)),l.commands.add("outdent",new Vt(l))}}const Jh='',lg='';class ng extends qt{static get pluginName(){return"IndentUI"}init(){const l=this.editor,n=l.locale,e=l.t,t="ltr"==n.uiLanguageDirection?Jh:lg,o="ltr"==n.uiLanguageDirection?lg:Jh;this._defineButton("indent",e("Increase indent"),t),this._defineButton("outdent",e("Decrease indent"),o)}_defineButton(l,n,e){const t=this.editor;t.ui.componentFactory.add(l,o=>{const u=t.commands.get(l),i=new Id(o);return i.set({label:n,icon:e,tooltip:!0}),i.bind("isOn","isEnabled").to(u,"value","isEnabled"),this.listenTo(i,"execute",()=>{t.execute(l),t.editing.view.focus()}),i})}}class eg{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(l){Array.isArray(l)?l.forEach(l=>this._definitions.add(l)):this._definitions.add(l)}getDispatcher(){return l=>{l.on("attribute:linkHref",(l,n,e)=>{if(!e.consumable.test(n.item,"attribute:linkHref"))return;if(!n.item.is("selection")&&!e.schema.isInline(n.item))return;const t=e.writer,o=t.document.selection;for(const u of this._definitions){const l=t.createAttributeElement("a",u.attributes,{priority:5});u.classes&&t.addClass(u.classes,l);for(const n in u.styles)t.setStyle(n,u.styles[n],l);t.setCustomProperty("link",!0,l),u.callback(n.attributeNewValue)?n.item.is("selection")?t.wrap(o.getFirstRange(),l):t.wrap(e.mapper.toViewRange(n.range),l):t.unwrap(e.mapper.toViewRange(n.range),l)}},{priority:"high"})}}getDispatcherForLinkedImage(){return l=>{l.on("attribute:linkHref:imageBlock",(l,n,{writer:e,mapper:t})=>{const o=t.toViewElement(n.item),u=Array.from(o.getChildren()).find(l=>"a"===l.name);for(const i of this._definitions){const l=It(i.attributes);if(i.callback(n.attributeNewValue)){for(const[n,t]of l)"class"===n?e.addClass(t,u):e.setAttribute(n,t,u);i.classes&&e.addClass(i.classes,u);for(const l in i.styles)e.setStyle(l,i.styles[l],u)}else{for(const[n,t]of l)"class"===n?e.removeClass(t,u):e.removeAttribute(n,u);i.classes&&e.removeClass(i.classes,u);for(const l in i.styles)e.removeStyle(l,u)}}})}}}var tg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const og=function(l){return tg.test(l)};var ug="\\ud800-\\udfff",ig="["+ug+"]",ag="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rg="\\ud83c[\\udffb-\\udfff]",sg="[^"+ug+"]",dg="(?:\\ud83c[\\udde6-\\uddff]){2}",cg="[\\ud800-\\udbff][\\udc00-\\udfff]",pg="(?:"+ag+"|"+rg+")?",fg="[\\ufe0e\\ufe0f]?",mg=fg+pg+"(?:\\u200d(?:"+[sg,dg,cg].join("|")+")"+fg+pg+")*",hg="(?:"+[sg+ag+"?",ag,dg,cg,ig].join("|")+")",gg=RegExp(rg+"(?="+rg+")|"+hg+mg,"g");const vg=function(l){return og(l)?function(l){return l.match(gg)||[]}(l):function(l){return l.split("")}(l)},bg=function(l){return function(l){l=yo(l);var n=og(l)?vg(l):void 0,e=n?n[0]:l.charAt(0),t=n?function(l,n,e){var t=l.length;return e=void 0===e?t:e,!n&&e>=t?l:Co(l,n,e)}(n,1).join(""):l.slice(1);return e.toUpperCase()+t}}(),yg=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,xg=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Ag=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,_g=/^((\w+:(\/{2,})?)|(\W))/i,Cg="Ctrl+K";function wg(l,{writer:n}){const e=n.createAttributeElement("a",{href:l},{priority:5});return n.setCustomProperty("link",!0,e),e}function Rg(l){return function(l){return l.replace(yg,"").match(xg)}(l=String(l))?l:"#"}function Lg(l,n){return!!l&&n.checkAttribute(l.name,"linkHref")}function Mg(l,n){const e=(t=l,Ag.test(t)?"mailto:":n);var t;const o=!!e&&!Eg(l);return l&&o?e+l:l}function Eg(l){return _g.test(l)}function Og(l){window.open(l,"_blank","noopener")}class Sg extends Pt{constructor(l){super(l),this.manualDecorators=new Et,this.automaticDecorators=new eg}restoreManualDecoratorStates(){for(const l of this.manualDecorators)l.value=this._getDecoratorStateFromModel(l.id)}refresh(){const l=this.editor.model,n=l.document.selection,e=n.getSelectedElement()||Ot(n.getSelectedBlocks());Lg(e,l.schema)?(this.value=e.getAttribute("linkHref"),this.isEnabled=l.schema.checkAttribute(e,"linkHref")):(this.value=n.getAttribute("linkHref"),this.isEnabled=l.schema.checkAttributeInSelection(n,"linkHref"));for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}execute(l,n={}){const e=this.editor.model,t=e.document.selection,o=[],u=[];for(const i in n)n[i]?o.push(i):u.push(i);e.change(n=>{if(t.isCollapsed){const i=t.getFirstPosition();if(t.hasAttribute("linkHref")){const a=Cp(i,"linkHref",t.getAttribute("linkHref"),e);n.setAttribute("linkHref",l,a),o.forEach(l=>{n.setAttribute(l,!0,a)}),u.forEach(l=>{n.removeAttribute(l,a)}),n.setSelection(n.createPositionAfter(a.end.nodeBefore))}else if(""!==l){const u=It(t.getAttributes());u.set("linkHref",l),o.forEach(l=>{u.set(l,!0)});const{end:a}=e.insertContent(n.createText(l,u),i);n.setSelection(a)}["linkHref",...o,...u].forEach(l=>{n.removeSelectionAttribute(l)})}else{const i=e.schema.getValidRanges(t.getRanges(),"linkHref"),a=[];for(const l of t.getSelectedBlocks())e.schema.checkAttribute(l,"linkHref")&&a.push(n.createRangeOn(l));const r=a.slice();for(const l of i)this._isRangeToUpdate(l,a)&&r.push(l);for(const e of r)n.setAttribute("linkHref",l,e),o.forEach(l=>{n.setAttribute(l,!0,e)}),u.forEach(l=>{n.removeAttribute(l,e)})}})}_getDecoratorStateFromModel(l){const n=this.editor.model,e=n.document.selection,t=e.getSelectedElement();return Lg(t,n.schema)?t.getAttribute(l):e.getAttribute(l)}_isRangeToUpdate(l,n){for(const e of n)if(e.containsRange(l))return!1;return!0}}class kg extends Pt{refresh(){const l=this.editor.model,n=l.document.selection,e=n.getSelectedElement();Lg(e,l.schema)?this.isEnabled=l.schema.checkAttribute(e,"linkHref"):this.isEnabled=l.schema.checkAttributeInSelection(n,"linkHref")}execute(){const l=this.editor,n=this.editor.model,e=n.document.selection,t=l.commands.get("link");n.change(l=>{const o=e.isCollapsed?[Cp(e.getFirstPosition(),"linkHref",e.getAttribute("linkHref"),n)]:n.schema.getValidRanges(e.getRanges(),"linkHref");for(const n of o)if(l.removeAttribute("linkHref",n),t)for(const e of t.manualDecorators)l.removeAttribute(e.id,n)})}}class Ig{constructor({id:l,label:n,attributes:e,classes:t,styles:o,defaultValue:u}){this.id=l,this.set("value"),this.defaultValue=u,this.label=n,this.attributes=e,this.classes=t,this.styles=o}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}c(Ig,U);var Fg=o(9773);Ht()(Fg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fg.Z.locals;const Ng="automatic",Dg=/^(https?:)?\/\//;class zg extends qt{static get pluginName(){return"LinkEditing"}static get requires(){return[rp,$c,jc]}constructor(l){super(l),l.config.define("link",{addTargetToExternalLinks:!1})}init(){const l=this.editor;l.model.schema.extend("$text",{allowAttributes:"linkHref"}),l.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:wg}),l.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(l,n)=>wg(Rg(l),n)}),l.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:l=>l.getAttribute("href")}}),l.commands.add("link",new Sg(l)),l.commands.add("unlink",new kg(l));const n=function(l,n){const e={"Open in a new tab":l("Open in a new tab"),Downloadable:l("Downloadable")};return n.forEach(l=>(l.label&&e[l.label]&&(l.label=e[l.label]),l)),n}(l.t,function(l){const n=[];if(l)for(const[e,t]of Object.entries(l)){const l=Object.assign({},t,{id:`link${bg(e)}`});n.push(l)}return n}(l.config.get("link.decorators")));this._enableAutomaticDecorators(n.filter(l=>l.mode===Ng)),this._enableManualDecorators(n.filter(l=>"manual"===l.mode)),l.plugins.get(rp).registerAttribute("linkHref"),function(l,n,e,t){const o=l.editing.view,u=new Set;o.document.registerPostFixer(e=>{const o=l.model.document.selection;let i=!1;if(o.hasAttribute(n)){const a=Cp(o.getFirstPosition(),n,o.getAttribute(n),l.model),r=l.editing.mapper.toViewRange(a);for(const l of r.getItems())l.is("element","a")&&!l.hasClass(t)&&(e.addClass(t,l),u.add(l),i=!0)}return i}),l.conversion.for("editingDowncast").add(l=>{function n(){o.change(l=>{for(const n of u.values())l.removeClass(t,n),u.delete(n)})}l.on("insert",n,{priority:"highest"}),l.on("remove",n,{priority:"highest"}),l.on("attribute",n,{priority:"highest"}),l.on("selection",n,{priority:"highest"})})}(l,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(l){const n=this.editor,e=n.commands.get("link").automaticDecorators;n.config.get("link.addTargetToExternalLinks")&&e.add({id:"linkIsExternal",mode:Ng,callback:l=>Dg.test(l),attributes:{target:"_blank",rel:"noopener noreferrer"}}),e.add(l),e.length&&n.conversion.for("downcast").add(e.getDispatcher())}_enableManualDecorators(l){if(!l.length)return;const n=this.editor,e=n.commands.get("link").manualDecorators;l.forEach(l=>{n.model.schema.extend("$text",{allowAttributes:l.id}),l=new Ig(l),e.add(l),n.conversion.for("downcast").attributeToElement({model:l.id,view:(n,{writer:e,schema:t},{item:o})=>{if((o.is("selection")||t.isInline(o))&&n){const n=e.createAttributeElement("a",l.attributes,{priority:5});l.classes&&e.addClass(l.classes,n);for(const t in l.styles)e.setStyle(t,l.styles[t],n);return e.setCustomProperty("link",!0,n),n}}}),n.conversion.for("upcast").elementToAttribute({view:{name:"a",...l._createPattern()},model:{key:l.id}})})}_enableLinkOpen(){const l=this.editor,n=l.editing.view.document;this.listenTo(n,"click",(l,n)=>{if(!(t.isMac?n.domEvent.metaKey:n.domEvent.ctrlKey))return;let e=n.domTarget;if("a"!=e.tagName.toLowerCase()&&(e=e.closest("a")),!e)return;const o=e.getAttribute("href");o&&(l.stop(),n.preventDefault(),Og(o))},{context:"$capture"}),this.listenTo(n,"keydown",(n,e)=>{const t=l.commands.get("link").value;t&&e.keyCode===bt.enter&&e.altKey&&(n.stop(),Og(t))})}_enableInsertContentSelectionAttributesFixer(){const l=this.editor.model,n=l.document.selection;this.listenTo(l,"insertContent",()=>{const e=n.anchor.nodeBefore,t=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&e&&e.hasAttribute("linkHref")&&(t&&t.hasAttribute("linkHref")||l.change(n=>{qg(n,Pg(l.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const l=this.editor,n=l.model;l.editing.view.addObserver(Fs);let e=!1;this.listenTo(l.editing.view.document,"mousedown",()=>{e=!0}),this.listenTo(l.editing.view.document,"selectionChange",()=>{if(!e)return;e=!1;const l=n.document.selection;if(!l.isCollapsed)return;if(!l.hasAttribute("linkHref"))return;const t=l.getFirstPosition(),o=Cp(t,"linkHref",l.getAttribute("linkHref"),n);(t.isTouching(o.start)||t.isTouching(o.end))&&n.change(l=>{qg(l,Pg(n.schema))})})}_enableTypingOverLink(){const l=this.editor,n=l.editing.view;let e,t;this.listenTo(n.document,"delete",()=>{t=!0},{priority:"high"}),this.listenTo(l.model,"deleteContent",()=>{const n=l.model.document.selection;n.isCollapsed||(t?t=!1:Tg(l)&&function(l){const n=l.document.selection,e=n.getFirstPosition(),t=n.getLastPosition(),o=e.nodeAfter;return!!o&&(!!o.is("$text")&&(!!o.hasAttribute("linkHref")&&(o===(t.textNode||t.nodeBefore)||Cp(e,"linkHref",o.getAttribute("linkHref"),l).containsRange(l.createRange(e,t),!0))))}(l.model)&&(e=n.getAttributes()))},{priority:"high"}),this.listenTo(l.model,"insertContent",(n,[o])=>{t=!1,Tg(l)&&e&&(l.model.change(l=>{for(const[n,t]of e)l.setAttribute(n,t,o)}),e=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const l=this.editor,n=l.model,e=n.document.selection,t=l.editing.view;let o=!1,u=!1;this.listenTo(t.document,"delete",(l,n)=>{u="backward"===n.direction},{priority:"high"}),this.listenTo(n,"deleteContent",()=>{o=!1;const l=e.getFirstPosition(),t=e.getAttribute("linkHref");if(!t)return;const u=Cp(l,"linkHref",t,n);o=u.containsPosition(l)||u.end.isEqual(l)},{priority:"high"}),this.listenTo(n,"deleteContent",()=>{u&&(u=!1,o||l.model.enqueueChange(l=>{qg(l,Pg(n.schema))}))},{priority:"low"})}}function qg(l,n){l.removeSelectionAttribute("linkHref");for(const e of n)l.removeSelectionAttribute(e)}function Tg(l){return l.model.change(l=>l.batch).isTyping}function Pg(l){return l.getDefinition("$text").allowAttributes.filter(l=>l.startsWith("link"))}var Bg=o(7754);Ht()(Bg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bg.Z.locals;class Vg extends rd{constructor(l,n){super(l);const e=l.t;this.focusTracker=new St,this.keystrokes=new kt,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(e("Save"),wd.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),wd.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(n),this.children=this._createFormChildren(n.manualDecorators),this._focusables=new Bs,this._focusCycler=new Wd({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const t=["ck","ck-link-form","ck-responsive-form"];n.manualDecorators.length&&t.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:t,tabindex:"-1"},children:this.children}),Ld(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((l,n)=>(l[n.name]=n.isOn,l),{})}render(){super.render(),Md({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(l=>{this._focusables.add(l),this.focusTracker.add(l.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const l=this.locale.t,n=new Cc(this.locale,wc);return n.label=l("Link URL"),n}_createButton(l,n,e,t){const o=new Id(this.locale);return o.set({label:l,icon:n,tooltip:!0}),o.extendTemplate({attributes:{class:e}}),t&&o.delegate("execute").to(this,t),o}_createManualDecoratorSwitches(l){const n=this.createCollection();for(const e of l.manualDecorators){const t=new Nd(this.locale);t.set({name:e.id,label:e.label,withText:!0}),t.bind("isOn").toMany([e,l],"value",(l,n)=>void 0===n&&void 0===l?e.defaultValue:l),t.on("execute",()=>{e.set("value",!t.isOn)}),n.add(t)}return n}_createFormChildren(l){const n=this.createCollection();if(n.add(this.urlInputView),l.length){const l=new rd;l.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(l=>({tag:"li",children:[l],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),n.add(l)}return n.add(this.saveButtonView),n.add(this.cancelButtonView),n}}var Ug=o(2347);Ht()(Ug.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ug.Z.locals;class Wg extends rd{constructor(l){super(l);const n=l.t;this.focusTracker=new St,this.keystrokes=new kt,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(n("Unlink"),'',"unlink"),this.editButtonView=this._createButton(n("Edit link"),wd.pencil,"edit"),this.set("href"),this._focusables=new Bs,this._focusCycler=new Wd({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(l=>{this._focusables.add(l),this.focusTracker.add(l.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(l,n,e){const t=new Id(this.locale);return t.set({label:l,icon:n,tooltip:!0}),t.delegate("execute").to(this,e),t}_createPreviewButton(){const l=new Id(this.locale),n=this.bindTemplate,e=this.t;return l.set({withText:!0,tooltip:e("Open link in new tab")}),l.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:n.to("href",l=>l&&Rg(l)),target:"_blank",rel:"noopener noreferrer"}}),l.bind("label").to(this,"href",l=>l||e("This link has no URL")),l.bind("isEnabled").to(this,"href",l=>!!l),l.template.tag="a",l.template.eventListeners={},l}}const Gg="link-ui";class jg extends qt{static get requires(){return[Sc]}static get pluginName(){return"LinkUI"}init(){const l=this.editor;l.editing.view.addObserver(Is),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=l.plugins.get(Sc),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),l.conversion.for("editingDowncast").markerToHighlight({model:Gg,view:{classes:["ck-fake-link-selection"]}}),l.conversion.for("editingDowncast").markerToElement({model:Gg,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const l=this.editor,n=new Wg(l.locale),e=l.commands.get("link"),t=l.commands.get("unlink");return n.bind("href").to(e,"value"),n.editButtonView.bind("isEnabled").to(e),n.unlinkButtonView.bind("isEnabled").to(t),this.listenTo(n,"edit",()=>{this._addFormView()}),this.listenTo(n,"unlink",()=>{l.execute("unlink"),this._hideUI()}),n.keystrokes.set("Esc",(l,n)=>{this._hideUI(),n()}),n.keystrokes.set(Cg,(l,n)=>{this._addFormView(),n()}),n}_createFormView(){const l=this.editor,n=l.commands.get("link"),e=l.config.get("link.defaultProtocol"),t=new Vg(l.locale,n);return t.urlInputView.fieldView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",l=>!l),t.saveButtonView.bind("isEnabled").to(n),this.listenTo(t,"submit",()=>{const{value:n}=t.urlInputView.fieldView.element,o=Mg(n,e);l.execute("link",o,t.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(t,"cancel",()=>{this._closeFormView()}),t.keystrokes.set("Esc",(l,n)=>{this._closeFormView(),n()}),t}_createToolbarLinkButton(){const l=this.editor,n=l.commands.get("link"),e=l.t;l.keystrokes.set(Cg,(l,e)=>{e(),n.isEnabled&&this._showUI(!0)}),l.ui.componentFactory.add("link",l=>{const t=new Id(l);return t.isEnabled=!0,t.label=e("Link"),t.icon='',t.keystroke=Cg,t.tooltip=!0,t.isToggleable=!0,t.bind("isEnabled").to(n,"isEnabled"),t.bind("isOn").to(n,"value",l=>!!l),this.listenTo(t,"execute",()=>this._showUI(!0)),t})}_enableUserBalloonInteractions(){const l=this.editor.editing.view.document;this.listenTo(l,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(l,n)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),n())},{priority:"high"}),this.editor.keystrokes.set("Esc",(l,n)=>{this._isUIVisible&&(this._hideUI(),n())}),Rd({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 l=this.editor.commands.get("link");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=l.value||""}_closeFormView(){const l=this.editor.commands.get("link");l.restoreManualDecoratorStates(),void 0!==l.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(l=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),l&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),l&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const l=this.editor;this.stopListening(l.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),l.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const l=this.editor,n=l.editing.view.document;let e=this._getSelectedLinkElement(),t=u();const o=()=>{const l=this._getSelectedLinkElement(),n=u();e&&!l||!e&&n!==t?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),e=l,t=n};function u(){return n.selection.focus.getAncestors().reverse().find(l=>l.is("element"))}this.listenTo(l.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}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 l=this.editor.editing.view,n=this.editor.model,e=l.document;let t=null;if(n.markers.has(Gg)){const n=Array.from(this.editor.editing.mapper.markerNameToElements(Gg)),e=l.createRange(l.createPositionBefore(n[0]),l.createPositionAfter(n[n.length-1]));t=l.domConverter.viewRangeToDom(e)}else t=(()=>{const n=this._getSelectedLinkElement();return n?l.domConverter.mapViewToDom(n):l.domConverter.viewRangeToDom(e.selection.getFirstRange())});return{target:t}}_getSelectedLinkElement(){const l=this.editor.editing.view,n=l.document.selection,e=n.getSelectedElement();if(n.isCollapsed||e&&Vp(e))return Hg(n.getFirstPosition());{const e=n.getFirstRange().getTrimmed(),t=Hg(e.start),o=Hg(e.end);return t&&t==o&&l.createRangeIn(t).getTrimmed().isEqual(e)?t:null}}_showFakeVisualSelection(){const l=this.editor.model;l.change(n=>{const e=l.document.selection.getFirstRange();if(l.markers.has(Gg))n.updateMarker(Gg,{range:e});else if(e.start.isAtEnd){const t=e.start.getLastMatchingPosition(({item:n})=>!l.schema.isContent(n),{boundaries:e});n.addMarker(Gg,{usingOperation:!1,affectsData:!1,range:n.createRange(t,e.end)})}else n.addMarker(Gg,{usingOperation:!1,affectsData:!1,range:e})})}_hideFakeVisualSelection(){const l=this.editor.model;l.markers.has(Gg)&&l.change(l=>{l.removeMarker(Gg)})}}function Hg(l){return l.getAncestors().find(l=>{return(n=l).is("attributeElement")&&!!n.getCustomProperty("link");var n})}const Yg=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 Zg extends qt{static get requires(){return[op]}static get pluginName(){return"AutoLink"}init(){const l=this.editor.model.document.selection;l.on("change:range",()=>{this.isEnabled=!l.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const l=this.editor,n=new ap(l.model,l=>{if(!function(l){return l.length>4&&" "===l[l.length-1]&&" "!==l[l.length-2]}(l))return;const n=Xg(l.substr(0,l.length-1));return n?{url:n}:void 0});n.on("matched:data",(n,e)=>{const{batch:t,range:o,url:u}=e;if(!t.isTyping)return;const i=o.end.getShiftedBy(-1),a=i.getShiftedBy(-u.length),r=l.model.createRange(a,i);this._applyAutoLink(u,r)}),n.bind("isEnabled").to(this)}_enableEnterHandling(){const l=this.editor,n=l.model,e=l.commands.get("enter");e&&e.on("execute",()=>{const l=n.document.selection.getFirstPosition();if(!l.parent.previousSibling)return;const e=n.createRangeIn(l.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(e)})}_enableShiftEnterHandling(){const l=this.editor,n=l.model,e=l.commands.get("shiftEnter");e&&e.on("execute",()=>{const l=n.document.selection.getFirstPosition(),e=n.createRange(n.createPositionAt(l.parent,0),l.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(e)})}_checkAndApplyAutoLinkOnRange(l){const n=this.editor.model,{text:e,range:t}=ip(l,n),o=Xg(e);if(o){const l=n.createRange(t.end.getShiftedBy(-o.length),t.end);this._applyAutoLink(o,l)}}_applyAutoLink(l,n){const e=this.editor.model,t=Mg(l,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(l,n){return n.schema.checkAttributeInSelection(n.createSelection(l),"linkHref")}(n,e)&&Eg(t)&&!function(l){const n=l.start.nodeAfter;return n&&n.hasAttribute("linkHref")}(n)&&this._persistAutoLink(t,n)}_persistAutoLink(l,n){const e=this.editor.model,t=this.editor.plugins.get("Delete");e.enqueueChange(o=>{o.setAttribute("linkHref",l,n),e.enqueueChange(()=>{t.requestUndoOnBackspace()})})}}function Xg(l){const n=Yg.exec(l);return n?n[2]:null}class $g extends Pt{constructor(l,n){super(l),this.type=n}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(l={}){const n=this.editor.model,e=n.document,t=Array.from(e.selection.getSelectedBlocks()).filter(l=>Qg(l,n.schema)),o=void 0!==l.forceValue?!l.forceValue:this.value;n.change(l=>{if(o){let n=t[t.length-1].nextSibling,e=Number.POSITIVE_INFINITY,o=[];for(;n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){const l=n.getAttribute("listIndent");l=e;)u>o.getAttribute("listIndent")&&(u=o.getAttribute("listIndent")),o.getAttribute("listIndent")==u&&l[n?"unshift":"push"](o),o=o[n?"previousSibling":"nextSibling"]}}function Qg(l,n){return n.checkChild(l.parent,"listItem")&&!n.isObject(l)}class Jg extends Pt{constructor(l,n){super(l),this._indentBy="forward"==n?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const l=this.editor.model,n=l.document;let e=Array.from(n.selection.getSelectedBlocks());l.change(l=>{const n=e[e.length-1];let t=n.nextSibling;for(;t&&"listItem"==t.name&&t.getAttribute("listIndent")>n.getAttribute("listIndent");)e.push(t),t=t.nextSibling;this._indentBy<0&&(e=e.reverse());for(const o of e){const n=o.getAttribute("listIndent")+this._indentBy;n<0?l.rename(o,"paragraph"):l.setAttribute("listIndent",n,o)}this.fire("_executeCleanup",e)})}_checkEnabled(){const l=Ot(this.editor.model.document.selection.getSelectedBlocks());if(!l||!l.is("element","listItem"))return!1;if(this._indentBy>0){const n=l.getAttribute("listIndent"),e=l.getAttribute("listType");let t=l.previousSibling;for(;t&&t.is("element","listItem")&&t.getAttribute("listIndent")>=n;){if(t.getAttribute("listIndent")==n)return t.getAttribute("listType")==e;t=t.previousSibling}return!1}return!0}}function lv(l,n,e,t){const o=n.parent,u=e.mapper,i=e.writer;let a=u.toViewPosition(t.createPositionBefore(l));const r=tv(l.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:l.getAttribute("listIndent")}),s=l.previousSibling;if(r&&r.getAttribute("listIndent")==l.getAttribute("listIndent")){const l=u.toViewElement(r);a=i.breakContainer(i.createPositionAfter(l))}else if(s&&"listItem"==s.name){a=u.toViewPosition(t.createPositionAt(s,"end"));const l=u.findMappedViewAncestor(a),n=function(l){for(const n of l.getChildren())if("ul"==n.name||"ol"==n.name)return n;return null}(l);a=n?i.createPositionBefore(n):i.createPositionAt(l,"end")}else a=u.toViewPosition(t.createPositionBefore(l));if(a=ev(a),i.insert(a,o),s&&"listItem"==s.name){const l=u.toViewElement(s),e=i.createRange(i.createPositionAt(l,0),a).getWalker({ignoreElementEnd:!0});for(const t of e)if(t.item.is("element","li")){const l=i.breakContainer(i.createPositionBefore(t.item)),o=t.item.parent,u=i.createPositionAt(n,"end");nv(i,u.nodeBefore,u.nodeAfter),i.move(i.createRangeOn(o),u),e.position=l}}else{const e=o.nextSibling;if(e&&(e.is("element","ul")||e.is("element","ol"))){let t=null;for(const n of e.getChildren()){const e=u.toModelElement(n);if(!(e&&e.getAttribute("listIndent")>l.getAttribute("listIndent")))break;t=n}t&&(i.breakContainer(i.createPositionAfter(t)),i.move(i.createRangeOn(t.parent),i.createPositionAt(n,"end")))}}nv(i,o,o.nextSibling),nv(i,o.previousSibling,o)}function nv(l,n,e){return!n||!e||"ul"!=n.name&&"ol"!=n.name||n.name!=e.name||n.getAttribute("class")!==e.getAttribute("class")?null:l.mergeContainers(l.createPositionAfter(n))}function ev(l){return l.getLastMatchingPosition(l=>l.item.is("uiElement"))}function tv(l,n){const e=!!n.sameIndent,t=!!n.smallerIndent,o=n.listIndent;let u=l;for(;u&&"listItem"==u.name;){const l=u.getAttribute("listIndent");if(e&&o==l||t&&o>l)return u;u="forward"===n.direction?u.nextSibling:u.previousSibling}return null}function ov(l,n,e,t){l.ui.componentFactory.add(n,o=>{const u=l.commands.get(n),i=new Id(o);return i.set({label:e,icon:t,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(u,"value","isEnabled"),i.on("execute",()=>{l.execute(n),l.editing.view.focus()}),i})}function uv(l,n){const e=[],t=l.parent,o={ignoreElementEnd:!1,startPosition:l,shallow:!0,direction:n},u=t.getAttribute("listIndent"),i=[...new Qi(o)].filter(l=>l.item.is("element")).map(l=>l.item);for(const a of i){if(!a.is("element","listItem"))break;if(a.getAttribute("listIndent")u)){if(a.getAttribute("listType")!==t.getAttribute("listType"))break;if(a.getAttribute("listStyle")!==t.getAttribute("listStyle"))break;if(a.getAttribute("listReversed")!==t.getAttribute("listReversed"))break;if(a.getAttribute("listStart")!==t.getAttribute("listStart"))break;"backward"===n?e.unshift(a):e.push(a)}}return e}const iv=["disc","circle","square"],av=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function rv(){const l=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||l?0:Zo.call(this)}class sv extends qt{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(l){return function(l){return iv.includes(l)?"bulleted":av.includes(l)?"numbered":null}(l)}getSelectedListItems(l){return function(l){let n=[...l.document.selection.getSelectedBlocks()].filter(l=>l.is("element","listItem")).map(n=>{const e=l.change(l=>l.createPositionAt(n,0));return[...uv(e,"backward"),...uv(e,"forward")]}).flat();return n=[...new Set(n)]}(l)}getSiblingNodes(l,n){return uv(l,n)}}function dv(l){return(n,e,t)=>{const o=t.consumable;if(!o.test(e.item,"insert")||!o.test(e.item,"attribute:listType")||!o.test(e.item,"attribute:listIndent"))return;o.consume(e.item,"insert"),o.consume(e.item,"attribute:listType"),o.consume(e.item,"attribute:listIndent");const u=e.item;lv(u,function(l,n){const e=n.mapper,t=n.writer,o="numbered"==l.getAttribute("listType")?"ol":"ul",u=function(l){const n=t.createContainerElement("li");return n.getFillerOffset=rv,n}(),i=t.createContainerElement(o,null);return t.insert(t.createPositionAt(i,0),u),e.bindElements(l,u),u}(u,t),t,l)}}function cv(l,n,e){if(!e.consumable.test(n.item,l.name))return;const t=e.mapper.toViewElement(n.item),o=e.writer;o.breakContainer(o.createPositionBefore(t)),o.breakContainer(o.createPositionAfter(t));const u=t.parent,i="numbered"==n.attributeNewValue?"ol":"ul";o.rename(i,u)}function pv(l,n,e){e.consumable.consume(n.item,l.name);const t=e.mapper.toViewElement(n.item).parent,o=e.writer;nv(o,t,t.nextSibling),nv(o,t.previousSibling,t)}function fv(l,n,e){if(e.consumable.test(n.item,l.name)&&"listItem"!=n.item.name){let l=e.mapper.toViewPosition(n.range.start);const t=e.writer,o=[];for(;("ul"==l.parent.name||"ol"==l.parent.name)&&"li"==(l=t.breakContainer(l)).parent.name;){const n=l,e=t.createPositionAt(l.parent,"end");if(!n.isEqual(e)){const l=t.remove(t.createRange(n,e));o.push(l)}l=t.createPositionAfter(l.parent)}if(o.length>0){for(let n=0;n0){const n=nv(t,e,e.nextSibling);n&&n.parent==e&&l.offset--}}nv(t,l.nodeBefore,l.nodeAfter)}}}function mv(l,n,e){const t=e.mapper.toViewPosition(n.position),o=t.nodeBefore,u=t.nodeAfter;nv(e.writer,o,u)}function hv(l,n,e){if(e.consumable.consume(n.viewItem,{name:!0})){const l=e.writer,t=l.createElement("listItem"),o=function(l){let n=0,e=l.parent;for(;e;){if(e.is("element","li"))n++;else{const l=e.previousSibling;l&&l.is("element","li")&&n++}e=e.parent}return n}(n.viewItem);l.setAttribute("listIndent",o,t);const u=n.viewItem.parent&&"ol"==n.viewItem.parent.name?"numbered":"bulleted";if(l.setAttribute("listType",u,t),!e.safeInsert(t,n.modelCursor))return;const i=function(l,n,e){const{writer:t,schema:o}=e;let u=t.createPositionAfter(l);for(const i of n)if("ul"==i.name||"ol"==i.name)u=e.convertItem(i,u).modelCursor;else{const n=e.convertItem(i,t.createPositionAt(l,"end")),a=n.modelRange.start.nodeAfter;a&&a.is("element")&&!o.checkChild(l,a.name)&&(l=n.modelCursor.parent.is("element","listItem")?n.modelCursor.parent:xv(n.modelCursor),u=t.createPositionAfter(l))}return u}(t,n.viewItem.getChildren(),e);n.modelRange=l.createRange(n.modelCursor,i),e.updateConversionResult(t,n)}}function gv(l,n,e){if(e.consumable.test(n.viewItem,{name:!0})){const l=Array.from(n.viewItem.getChildren());for(const n of l)!n.is("element","li")&&!_v(n)&&n._remove()}}function vv(l,n,e){if(e.consumable.test(n.viewItem,{name:!0})){if(0===n.viewItem.childCount)return;const l=[...n.viewItem.getChildren()];let e=!1;for(const n of l)e&&!_v(n)&&n._remove(),_v(n)&&(e=!0)}}function bv(l){return(n,e)=>{if(e.isPhantom)return;const t=e.modelPosition.nodeBefore;if(t&&t.is("element","listItem")){const n=e.mapper.toViewElement(t),o=n.getAncestors().find(_v),u=l.createPositionAt(n,0).getWalker();for(const l of u){if("elementStart"==l.type&&l.item.is("element","li")){e.viewPosition=l.previousPosition;break}if("elementEnd"==l.type&&l.item==o){e.viewPosition=l.nextPosition;break}}}}}function yv(l,[n,e,t]){let o,u=n.is("documentFragment")?n.getChild(0):n;if(o=e?this.createSelection(e,t):this.document.selection,u&&u.is("element","listItem")){const l=o.getFirstPosition();let n=null;if(l.parent.is("element","listItem")?n=l.parent:l.nodeBefore&&l.nodeBefore.is("element","listItem")&&(n=l.nodeBefore),n){const l=n.getAttribute("listIndent");if(l>0)for(;u&&u.is("element","listItem");)u._setAttribute("listIndent",u.getAttribute("listIndent")+l),u=u.nextSibling}}}function xv(l){const n=new Qi({startPosition:l});let e;do{e=n.next()}while(!e.value.item.is("element","listItem"));return e.value.item}function Av(l,n,e,t,o,u){const i=tv(n.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:l,foo:"b"}),a=o.mapper,r=o.writer,s=i?i.getAttribute("listIndent"):null;let d;if(i)if(s==l){const l=a.toViewElement(i).parent;d=r.createPositionAfter(l)}else{const l=u.createPositionAt(i,"end");d=a.toViewPosition(l)}else d=e;d=ev(d);for(const c of[...t.getChildren()])_v(c)&&(d=r.move(r.createRangeOn(c),d).end,nv(r,c,c.nextSibling),nv(r,c.previousSibling,c))}function _v(l){return l.is("element","ol")||l.is("element","ul")}class Cv extends qt{static get pluginName(){return"ListEditing"}static get requires(){return[Sp,op,sv]}init(){const l=this.editor;l.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const n=l.data,e=l.editing;var t;l.model.document.registerPostFixer(n=>(function(l,n){const e=l.document.differ.getChanges(),t=new Map;let o=!1;for(const r of e)if("insert"==r.type&&"listItem"==r.name)u(r.position);else if("insert"==r.type&&"listItem"!=r.name){if("$text"!=r.name){const e=r.position.nodeAfter;e.hasAttribute("listIndent")&&(n.removeAttribute("listIndent",e),o=!0),e.hasAttribute("listType")&&(n.removeAttribute("listType",e),o=!0),e.hasAttribute("listStyle")&&(n.removeAttribute("listStyle",e),o=!0),e.hasAttribute("listReversed")&&(n.removeAttribute("listReversed",e),o=!0),e.hasAttribute("listStart")&&(n.removeAttribute("listStart",e),o=!0);for(const n of Array.from(l.createRangeIn(e)).filter(l=>l.item.is("element","listItem")))u(n.previousPosition)}u(r.position.getShiftedBy(r.length))}else"remove"==r.type&&"listItem"==r.name?u(r.position):("attribute"==r.type&&"listIndent"==r.attributeKey||"attribute"==r.type&&"listType"==r.attributeKey)&&u(r.range.start);for(const r of t.values())i(r),a(r);return o;function u(l){const n=l.nodeBefore;if(n&&n.is("element","listItem")){let l=n;if(t.has(l))return;for(let n=l.previousSibling;n&&n.is("element","listItem");n=l.previousSibling)if(l=n,t.has(l))return;t.set(n,l)}else{const n=l.nodeAfter;n&&n.is("element","listItem")&&t.set(n,n)}}function i(l){let e=0,t=null;for(;l&&l.is("element","listItem");){const u=l.getAttribute("listIndent");if(u>e){let i;null===t?(t=u-e,i=e):(t>u&&(t=u),i=u-t),n.setAttribute("listIndent",i,l),o=!0}else t=null,e=l.getAttribute("listIndent")+1;l=l.nextSibling}}function a(l){let e=[],t=null;for(;l&&l.is("element","listItem");){const u=l.getAttribute("listIndent");if(t&&t.getAttribute("listIndent")>u&&(e=e.slice(0,u+1)),0!=u)if(e[u]){const t=e[u];l.getAttribute("listType")!=t&&(n.setAttribute("listType",t,l),o=!0)}else e[u]=l.getAttribute("listType");t=l,l=l.nextSibling}}})(l.model,n)),e.mapper.registerViewToModelLength("li",wv),n.mapper.registerViewToModelLength("li",wv),e.mapper.on("modelToViewPosition",bv(e.view)),e.mapper.on("viewToModelPosition",(t=l.model,(l,n)=>{const e=n.viewPosition,o=e.parent,u=n.mapper;if("ul"==o.name||"ol"==o.name){if(e.isAtEnd){const l=u.toModelElement(e.nodeBefore),o=u.getModelLength(e.nodeBefore);n.modelPosition=t.createPositionBefore(l).getShiftedBy(o)}else{const l=u.toModelElement(e.nodeAfter);n.modelPosition=t.createPositionBefore(l)}l.stop()}else if("li"==o.name&&e.nodeBefore&&("ul"==e.nodeBefore.name||"ol"==e.nodeBefore.name)){const i=u.toModelElement(o);let a=1,r=e.nodeBefore;for(;r&&_v(r);)a+=u.getModelLength(r),r=r.previousSibling;n.modelPosition=t.createPositionBefore(i).getShiftedBy(a),l.stop()}})),n.mapper.on("modelToViewPosition",bv(e.view)),l.conversion.for("editingDowncast").add(n=>{n.on("insert",fv,{priority:"high"}),n.on("insert:listItem",dv(l.model)),n.on("attribute:listType:listItem",cv,{priority:"high"}),n.on("attribute:listType:listItem",pv,{priority:"low"}),n.on("attribute:listIndent:listItem",function(l){return(n,e,t)=>{if(!t.consumable.consume(e.item,"attribute:listIndent"))return;const o=t.mapper.toViewElement(e.item),u=t.writer;u.breakContainer(u.createPositionBefore(o)),u.breakContainer(u.createPositionAfter(o));const i=o.parent,a=i.previousSibling,r=u.createRangeOn(i);u.remove(r),a&&a.nextSibling&&nv(u,a,a.nextSibling),Av(e.attributeOldValue+1,e.range.start,r.start,o,t,l),lv(e.item,o,t,l);for(const l of e.item.getChildren())t.consumable.consume(l,"insert")}}(l.model)),n.on("remove:listItem",function(l){return(n,e,t)=>{const o=t.mapper.toViewPosition(e.position).getLastMatchingPosition(l=>!l.item.is("element","li")).nodeAfter,u=t.writer;u.breakContainer(u.createPositionBefore(o)),u.breakContainer(u.createPositionAfter(o));const i=o.parent,a=i.previousSibling,r=u.createRangeOn(i),s=u.remove(r);a&&a.nextSibling&&nv(u,a,a.nextSibling),Av(t.mapper.toModelElement(o).getAttribute("listIndent")+1,e.position,r.start,o,t,l);for(const l of u.createRangeIn(s).getItems())t.mapper.unbindViewElement(l);n.stop()}}(l.model)),n.on("remove",mv,{priority:"low"})}),l.conversion.for("dataDowncast").add(n=>{n.on("insert",fv,{priority:"high"}),n.on("insert:listItem",dv(l.model))}),l.conversion.for("upcast").add(l=>{l.on("element:ul",gv,{priority:"high"}),l.on("element:ol",gv,{priority:"high"}),l.on("element:li",vv,{priority:"high"}),l.on("element:li",hv)}),l.model.on("insertContent",yv,{priority:"high"}),l.commands.add("numberedList",new $g(l,"numbered")),l.commands.add("bulletedList",new $g(l,"bulleted")),l.commands.add("indentList",new Jg(l,"forward")),l.commands.add("outdentList",new Jg(l,"backward"));const o=e.view.document;this.listenTo(o,"enter",(l,n)=>{const e=this.editor.model.document,t=e.selection.getLastPosition().parent;e.selection.isCollapsed&&"listItem"==t.name&&t.isEmpty&&(this.editor.execute("outdentList"),n.preventDefault(),l.stop())},{context:"li"}),this.listenTo(o,"delete",(l,n)=>{if("backward"!==n.direction)return;const e=this.editor.model.document.selection;if(!e.isCollapsed)return;const t=e.getFirstPosition();if(!t.isAtStart)return;const o=t.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(this.editor.execute("outdentList"),n.preventDefault(),l.stop()))},{context:"li"}),this.listenTo(l.editing.view.document,"tab",(n,e)=>{const t=e.shiftKey?"outdentList":"indentList";this.editor.commands.get(t).isEnabled&&(l.execute(t),e.stopPropagation(),e.preventDefault(),n.stop())},{context:"li"})}afterInit(){const l=this.editor.commands,n=l.get("indent"),e=l.get("outdent");n&&n.registerChildCommand(l.get("indentList")),e&&e.registerChildCommand(l.get("outdentList"))}}function wv(l){let n=1;for(const e of l.getChildren())if("ul"==e.name||"ol"==e.name)for(const l of e.getChildren())n+=wv(l);return n}class Rv extends qt{static get pluginName(){return"ListUI"}init(){const l=this.editor.t;ov(this.editor,"numberedList",l("Numbered List"),''),ov(this.editor,"bulletedList",l("Bulleted List"),'')}}function Lv(l,n){return l=>{l.on("attribute:url:media",e)};function e(e,t,o){if(!o.consumable.consume(t.item,e.name))return;const u=t.attributeNewValue,i=o.writer,a=o.mapper.toViewElement(t.item),r=[...a.getChildren()].find(l=>l.getCustomProperty("media-content"));i.remove(r);const s=l.getMediaViewElement(i,u,n);i.insert(i.createPositionAt(a,0),s)}}function Mv(l,n,e,t){return l.createContainerElement("figure",{class:"media"},[n.getMediaViewElement(l,e,t),l.createSlot()])}function Ev(l){const n=l.getSelectedElement();return n&&n.is("element","media")?n:null}function Ov(l,n,e,t){l.change(o=>{const u=o.createElement("media",{url:n});l.insertObject(u,e,null,{setSelection:"on",findOptimalPosition:t})})}class Sv extends Pt{refresh(){const l=this.editor.model,n=l.document.selection,e=Ev(n);this.value=e?e.getAttribute("url"):null,this.isEnabled=function(l){const n=l.getSelectedElement();return!!n&&"media"===n.name}(n)||function(l,n){let e=jp(l,n).start.parent;return e.isEmpty&&!n.schema.isLimit(e)&&(e=e.parent),n.schema.checkChild(e,"media")}(n,l)}execute(l){const n=this.editor.model,e=n.document.selection,t=Ev(e);t?n.change(n=>{n.setAttribute("url",l,t)}):Ov(n,l,e,!0)}}class kv{constructor(l,n){const e=n.providers,t=n.extraProviders||[],o=new Set(n.removeProviders),u=e.concat(t).filter(l=>{const n=l.name;return n?!o.has(n):(y("media-embed-no-provider-name",{provider:l}),!1)});this.locale=l,this.providerDefinitions=u}hasMedia(l){return!!this._getMedia(l)}getMediaViewElement(l,n,e){return this._getMedia(n).getViewElement(l,e)}_getMedia(l){if(!l)return new Iv(this.locale);l=l.trim();for(const n of this.providerDefinitions){const e=n.html,t=wt(n.url);for(const n of t){const t=this._getUrlMatches(l,n);if(t)return new Iv(this.locale,l,t,e)}}return null}_getUrlMatches(l,n){let e=l.match(n);if(e)return e;let t=l.replace(/^https?:\/\//,"");return(e=t.match(n))||((e=(t=t.replace(/^www\./,"")).match(n))||null)}}class Iv{constructor(l,n,e,t){this.url=this._getValidUrl(n),this._locale=l,this._match=e,this._previewRenderer=t}getViewElement(l,n){const e={};let t;if(n.renderForEditingView||n.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(e["data-oembed-url"]=this.url),n.renderForEditingView&&(e.class="ck-media__wrapper");const o=this._getPreviewHtml(n);t=l.createRawElement("div",e,(l,n)=>{n.setContentOf(l,o)})}else this.url&&(e.url=this.url),t=l.createEmptyElement(n.elementName,e);return l.setCustomProperty("media-content",!0,t),t}_getPreviewHtml(l){return this._previewRenderer?this._previewRenderer(this._match):this.url&&l.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const l=new Sd,n=this._locale.t;return l.content='',l.viewBox="0 0 64 42",new Vs({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[l]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":n("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(l){return l?l.match(/^https?/)?l:"https://"+l:null}}var Fv=o(7442);Ht()(Fv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fv.Z.locals;class Nv extends qt{static get pluginName(){return"MediaEmbedEditing"}constructor(l){super(l),l.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:l=>``},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:l=>``},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:l=>{const n=l[1],e=l[2];return``}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:l=>``},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new kv(l.locale,l.config.get("mediaEmbed"))}init(){const l=this.editor,n=l.model.schema,e=l.t,t=l.conversion,o=l.config.get("mediaEmbed.previewsInData"),u=l.config.get("mediaEmbed.elementName"),i=this.registry;l.commands.add("mediaEmbed",new Sv(l)),n.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),t.for("dataDowncast").elementToStructure({model:"media",view:(l,{writer:n})=>{const e=l.getAttribute("url");return Mv(n,i,e,{elementName:u,renderMediaPreview:e&&o})}}),t.for("dataDowncast").add(Lv(i,{elementName:u,renderMediaPreview:o})),t.for("editingDowncast").elementToStructure({model:"media",view:(l,{writer:n})=>{const t=l.getAttribute("url");return function(l,n,e){return n.setCustomProperty("media",!0,l),Up(l,n,{label:e})}(Mv(n,i,t,{elementName:u,renderForEditingView:!0}),n,e("media widget"))}}),t.for("editingDowncast").add(Lv(i,{elementName:u,renderForEditingView:!0})),t.for("upcast").elementToElement({view:l=>["oembed",u].includes(l.name)&&l.getAttribute("url")?{name:!0}:null,model:(l,{writer:n})=>{const e=l.getAttribute("url");if(i.hasMedia(e))return n.createElement("media",{url:e})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(l,{writer:n})=>{const e=l.getAttribute("data-oembed-url");if(i.hasMedia(e))return n.createElement("media",{url:e})}}).add(l=>{l.on("element:figure",function(l,n,e){if(!e.consumable.consume(n.viewItem,{name:!0,classes:"media"}))return;const{modelRange:t,modelCursor:o}=e.convertChildren(n.viewItem,n.modelCursor);n.modelRange=t,n.modelCursor=o,Ot(t.getItems())||e.consumable.revert(n.viewItem,{name:!0,classes:"media"})})})}}const Dv=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class zv extends qt{static get requires(){return[yf,op,Df]}static get pluginName(){return"AutoMediaEmbed"}constructor(l){super(l),this._timeoutId=null,this._positionToInsert=null}init(){const l=this.editor,n=l.model.document;this.listenTo(l.plugins.get("ClipboardPipeline"),"inputTransformation",()=>{const l=n.selection.getFirstRange(),e=$r.fromPosition(l.start);e.stickiness="toPrevious";const t=$r.fromPosition(l.end);t.stickiness="toNext",n.once("change:data",()=>{this._embedMediaBetweenPositions(e,t),e.detach(),t.detach()},{priority:"high"})}),l.commands.get("undo").on("execute",()=>{this._timeoutId&&(Ve.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(l,n){const e=this.editor,t=e.plugins.get(Nv).registry,o=new ba(l,n),u=o.getWalker({ignoreElementEnd:!0});let i="";for(const a of u)a.item.is("$textProxy")&&(i+=a.item.data);(i=i.trim()).match(Dv)&&t.hasMedia(i)&&e.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=$r.fromPosition(l),this._timeoutId=Ve.window.setTimeout(()=>{e.model.change(l=>{let n;this._timeoutId=null,l.remove(o),o.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(n=this._positionToInsert),Ov(e.model,i,n,!1),this._positionToInsert.detach(),this._positionToInsert=null}),e.plugins.get("Delete").requestUndoOnBackspace()},100)):o.detach()}}var qv=o(9292);Ht()(qv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),qv.Z.locals;class Tv extends rd{constructor(l,n){super(n);const e=n.t;this.focusTracker=new St,this.keystrokes=new kt,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(e("Save"),wd.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",l=>!!l),this.cancelButtonView=this._createButton(e("Cancel"),wd.cancel,"ck-button-cancel","cancel"),this._focusables=new Bs,this._focusCycler=new Wd({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=l,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),Ld(this)}render(){super.render(),Md({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(l=>{this._focusables.add(l),this.focusTracker.add(l.element)}),this.keystrokes.listenTo(this.element);const l=l=>l.stopPropagation();this.keystrokes.set("arrowright",l),this.keystrokes.set("arrowleft",l),this.keystrokes.set("arrowup",l),this.keystrokes.set("arrowdown",l),this.listenTo(this.urlInputView.element,"selectstart",(l,n)=>{n.stopPropagation()},{priority:"high"})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(l){this.urlInputView.fieldView.element.value=l.trim()}isValid(){this.resetFormStatus();for(const l of this._validators){const n=l(this);if(n)return this.urlInputView.errorText=n,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const l=this.locale.t,n=new Cc(this.locale,wc),e=n.fieldView;return this._urlInputViewInfoDefault=l("Paste the media URL in the input."),this._urlInputViewInfoTip=l("Tip: Paste the URL into the content to embed faster."),n.label=l("Media URL"),n.infoText=this._urlInputViewInfoDefault,e.on("input",()=>{n.infoText=e.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=e.element.value.trim()}),n}_createButton(l,n,e,t){const o=new Id(this.locale);return o.set({label:l,icon:n,tooltip:!0}),o.extendTemplate({attributes:{class:e}}),t&&o.delegate("execute").to(this,t),o}}class Pv extends qt{static get requires(){return[Nv]}static get pluginName(){return"MediaEmbedUI"}init(){const l=this.editor,n=l.commands.get("mediaEmbed"),e=l.plugins.get(Nv).registry;l.ui.componentFactory.add("mediaEmbed",t=>{const o=ac(t),u=new Tv(function(l,n){return[n=>{if(!n.url.length)return l("The URL must not be empty.")},e=>{if(!n.hasMedia(e.url))return l("This media URL is not supported.")}]}(l.t,e),l.locale);return this._setUpDropdown(o,u,n,l),this._setUpForm(o,u,n),o})}_setUpDropdown(l,n,e){const t=this.editor,o=t.t,u=l.buttonView;l.bind("isEnabled").to(e),l.panelView.children.add(n),u.set({label:o("Insert media"),icon:'',tooltip:!0}),u.on("open",()=>{n.disableCssTransitions(),n.url=e.value||"",n.urlInputView.fieldView.select(),n.enableCssTransitions()},{priority:"low"}),l.on("submit",()=>{n.isValid()&&(t.execute("mediaEmbed",n.url),t.editing.view.focus())}),l.on("change:isOpen",()=>n.resetFormStatus()),l.on("cancel",()=>{t.editing.view.focus()})}_setUpForm(l,n,e){n.delegate("submit","cancel").to(l),n.urlInputView.bind("value").to(e,"value"),n.urlInputView.bind("isReadOnly").to(e,"isEnabled",l=>!l)}}var Bv=o(4652);function Vv(l,n,e,{blockElements:t,inlineObjectElements:o}){let u=e.createPositionAt(l,"forward"==n?"after":"before");return u=u.getLastMatchingPosition(({item:l})=>l.is("element")&&!t.includes(l.name)&&!o.includes(l.name),{direction:n}),"forward"==n?u.nodeAfter:u.nodeBefore}function Uv(l,n){return!!l&&l.is("element")&&n.includes(l.name)}function Wv(l){if(l.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(l){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 l;default:return null}}function Gv(l,n,e){const t=n.parent,o=e.createElement(l.type),u=t.getChildIndex(n)+1;return e.insertChild(u,o,t),l.style&&e.setStyle("list-style-type",l.style,o),l.startIndex&&l.startIndex>1&&e.setAttribute("start",l.startIndex,o),o}function jv(l){const n={},e=l.getStyle("mso-list");if(e){const l=e.match(/(^|\s{1,100})l(\d+)/i),t=e.match(/\s{0,100}lfo(\d+)/i),o=e.match(/\s{0,100}level(\d+)/i);l&&t&&o&&(n.id=l[2],n.order=t[1],n.indent=o[1])}return n}Ht()(Bv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bv.Z.locals;const Hv=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class Yv{constructor(l){this.document=l}isActive(l){return Hv.test(l)}execute(l){const n=new Ns(this.document),{body:e}=l._parsedData;!function(l,n){for(const e of l.getChildren())if(e.is("element","b")&&"normal"===e.getStyle("font-weight")){const t=l.getChildIndex(e);n.remove(e),n.insertChild(t,e.getChildren(),l)}}(e,n),function(l,n){for(const e of n.createRangeIn(l)){const l=e.item;if(l.is("element","li")){const e=l.getChild(0);e&&e.is("element","p")&&n.unwrapElement(e)}}}(e,n),function(l,n){const e=new cu(n.document.stylesProcessor),t=new Ku(e,{renderingMode:"data"}),o=t.blockElements,u=t.inlineObjectElements,i=[];for(const a of n.createRangeIn(l)){const l=a.item;if(l.is("element","br")){const e=Vv(l,"forward",n,{blockElements:o,inlineObjectElements:u}),t=Vv(l,"backward",n,{blockElements:o,inlineObjectElements:u}),a=Uv(e,o);(Uv(t,o)||a)&&i.push(l)}}for(const a of i)a.hasClass("Apple-interchange-newline")?n.remove(a):n.replace(a,n.createElement("p"))}(e,n),l.content=e}}function Zv(l){return btoa(l.match(/\w{2}/g).map(l=>String.fromCharCode(parseInt(l,16))).join(""))}const Xv=//i,$v=/xmlns:o="urn:schemas-microsoft-com/i;class Kv{constructor(l){this.document=l}isActive(l){return Xv.test(l)||$v.test(l)}execute(l){const{body:n,stylesString:e}=l._parsedData;(function(l,n){if(!l.childCount)return;const e=new Ns(l.document),t=function(l,n){const e=n.createRangeIn(l),t=new oo({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[];for(const u of e)if("elementStart"===u.type&&t.match(u.item)){const l=jv(u.item);o.push({element:u.item,id:l.id,order:l.order,indent:l.indent})}return o}(l,e);if(!t.length)return;let o=null,u=1;t.forEach((l,i)=>{const a=function(l,n){if(!l)return!0;if(l.id!==n.id)return n.indent-l.indent!=1;const e=n.element.previousSibling;return!e||!((t=e).is("element","ol")||t.is("element","ul"));var t}(t[i-1],l),r=(d=l,(s=a?null:t[i-1])?d.indent-s.indent:d.indent-1);var s,d;if(a&&(o=null,u=1),!o||0!==r){const t=function(l,n){const e=/mso-level-number-format:([^;]{0,100});/gi,t=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,o=new RegExp(`@list l${l.id}:level${l.indent}\\s*({[^}]*)`,"gi").exec(n);let u="decimal",i="ol",a=null;if(o&&o[1]){const n=e.exec(o[1]);if(n&&n[1]&&(i="bullet"!==(u=n[1].trim())&&"image"!==u?"ol":"ul"),"bullet"===u){const n=function(l){const n=function(l){if(l.getChild(0).is("$text"))return null;for(const n of l.getChildren()){if(!n.is("element","span"))continue;const l=n.getChild(0);return l.is("$text")?l:l.getChild(0)}}(l);if(!n)return null;const e=n._data;return"o"===e?"circle":"\xb7"===e?"disc":"\xa7"===e?"square":null}(l.element);n&&(u=n)}else{const l=t.exec(o[1]);l&&l[1]&&(a=parseInt(l[1]))}}return{type:i,startIndex:a,style:Wv(u)}}(l,n);if(o){if(l.indent>u){const l=o.getChild(o.childCount-1),n=l.getChild(l.childCount-1);o=Gv(t,n,e),u+=1}else if(l.indentl.indexOf(n)>-1)?u.push(n):n.getAttribute("src")||u.push(n)}for(const i of u)e.remove(i)}(function(l,n){const e=n.createRangeIn(l),t=new oo({name:/v:(.+)/}),o=[];for(const u of e){if("elementStart"!=u.type)continue;const l=u.item,n=l.previousSibling&&l.previousSibling.name||null;t.match(l)&&l.getAttribute("o:gfxdata")&&"v:shapetype"!==n&&o.push(u.item.getAttribute("id"))}return o}(l,e),l,e),function(l,n){const e=n.createRangeIn(l),t=new oo({name:/v:(.+)/}),o=[];for(const u of e)"elementStart"==u.type&&t.match(u.item)&&o.push(u.item);for(const u of o)n.remove(u)}(l,e);const t=function(l,n){const e=n.createRangeIn(l),t=new oo({name:"img"}),o=[];for(const u of e)t.match(u.item)&&u.item.getAttribute("src").startsWith("file://")&&o.push(u.item);return o}(l,e);t.length&&function(l,n,e){if(l.length===n.length)for(let t=0;t(\s+)<\/span>/g,(l,n)=>1===n.length?" ":Array(n.length+1).join("\xa0 ").substr(0,n.length))}function Jv(l,n,e,t,o=1){n>o?t.setAttribute(l,n,e):t.removeAttribute(l,e)}function lb(l,n,e={}){const t=l.createElement("tableCell",e);return l.insertElement("paragraph",t),l.insert(t,n),t}function nb(l,n){const e=n.parent.parent,t=parseInt(e.getAttribute("headingColumns")||0),{column:o}=l.getCellLocation(n);return!!t&&o{n.on(`element:${l}`,(l,n,e)=>{if(n.modelRange&&n.viewItem.isEmpty){const l=n.modelRange.start.nodeAfter,t=e.writer.createPositionAt(l,0);e.writer.insertElement("paragraph",t)}},{priority:"low"})}}function tb(l){let n=0,e=0;const t=Array.from(l.getChildren()).filter(l=>"th"===l.name||"td"===l.name);for(;e1||o>1)&&this._recordSpans(e,o,t),this._shouldSkipSlot()||(n=this._formatOutValue(e)),this._nextCellAtColumn=this._column+t}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,n||this.next()}skipRow(l){this._skipRows.add(l)}_advanceToNextRow(){return this._row++,this._rowIndex++,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(l,n=this._row,e=this._column){return{done:!1,value:new ub(this,l,n,e)}}_shouldSkipSlot(){const l=this._skipRows.has(this._row),n=this._rowthis._endColumn;return l||n||e||t}_getSpanned(){const l=this._spannedCells.get(this._row);return l&&l.get(this._column)||null}_recordSpans(l,n,e){const t={cell:l,row:this._row,column:this._column};for(let o=this._row;o{const o=e.getAttribute("headingRows")||0,u=[];o>0&&u.push(t.createContainerElement("thead",null,t.createSlot(l=>l.is("element","tableRow")&&l.indexl.is("element","tableRow")&&l.index>=o)));const i=t.createContainerElement("figure",{class:"table"},[t.createContainerElement("table",null,u),t.createSlot(l=>!l.is("element","tableRow"))]);return n.asWidget?function(l,n){return n.setCustomProperty("table",!0,l),Up(l,n,{hasSelectionHandle:!0})}(i,t):i}}function ab(l={}){return(n,{writer:e})=>{const t=n.parent,o=t.parent,u=o.getChildIndex(t),i=new ob(o,{row:u}),a=o.getAttribute("headingRows")||0,r=o.getAttribute("headingColumns")||0;for(const s of i)if(s.cell==n){const n=s.row{if(n.parent.is("element","tableCell")&&sb(n))return l.asWidget?e.createContainerElement("span",{class:"ck-table-bogus-paragraph"}):(t.consume(n,"insert"),void o.bindElements(n,o.toViewElement(n.parent)))}}function sb(l){return 1==l.parent.childCount&&![...l.getAttributeKeys()].length}class db extends Pt{refresh(){const l=this.editor.model,n=l.document.selection,e=l.schema;this.isEnabled=function(l,n){const e=l.getFirstPosition().parent,t=e===e.root?e:e.parent;return n.checkChild(t,"table")}(n,e)}execute(l={}){const n=this.editor.model,e=this.editor.plugins.get("TableUtils"),t=this.editor.config.get("table"),o=t.defaultHeadings.rows,u=t.defaultHeadings.columns;void 0===l.headingRows&&o&&(l.headingRows=o),void 0===l.headingColumns&&u&&(l.headingColumns=u),n.change(t=>{const o=e.createTable(t,l);n.insertObject(o,null,null,{findOptimalPosition:"auto"}),t.setSelection(t.createPositionAt(o.getNodeByPath([0,0,0]),0))})}}class cb extends Pt{constructor(l,n={}){super(l),this.order=n.order||"below"}refresh(){const l=this.editor.model.document.selection,n=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(l).length;this.isEnabled=n}execute(){const l=this.editor,n=l.model.document.selection,e=l.plugins.get("TableUtils"),t="above"===this.order,o=e.getSelectionAffectedTableCells(n),u=e.getRowIndexes(o),i=t?u.first:u.last,a=o[0].findAncestor("table");e.insertRows(a,{at:t?i:i+1,copyStructureFromAbove:!t})}}class pb extends Pt{constructor(l,n={}){super(l),this.order=n.order||"right"}refresh(){const l=this.editor.model.document.selection,n=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(l).length;this.isEnabled=n}execute(){const l=this.editor,n=l.model.document.selection,e=l.plugins.get("TableUtils"),t="left"===this.order,o=e.getSelectionAffectedTableCells(n),u=e.getColumnIndexes(o),i=t?u.first:u.last,a=o[0].findAncestor("table");e.insertColumns(a,{columns:1,at:t?i:i+1})}}class fb extends Pt{constructor(l,n={}){super(l),this.direction=n.direction||"horizontally"}refresh(){const l=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===l.length}execute(){const l=this.editor.plugins.get("TableUtils"),n=l.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?l.splitCellHorizontally(n,2):l.splitCellVertically(n,2)}}function mb(l,n,e){const{startRow:t,startColumn:o,endRow:u,endColumn:i}=n,a=e.createElement("table"),r=u-t+1;for(let d=0;d0&&Jv("headingRows",u-e,l,o,0);const i=parseInt(n.getAttribute("headingColumns")||0);i>0&&Jv("headingColumns",i-t,l,o,0)}(a,l,t,o,e),a}function hb(l,n,e=0){const t=[],o=new ob(l,{startRow:e,endRow:n-1});for(const u of o){const{row:l,cellHeight:e}=u;l1&&(a.rowspan=r);const s=parseInt(l.getAttribute("colspan")||1);s>1&&(a.colspan=s);const d=u+i,c=[...new ob(o,{startRow:u,endRow:d,includeAllSlots:!0})];let p,f=null;for(const m of c){const{row:n,column:t,cell:o}=m;o===l&&void 0===p&&(p=t),void 0!==p&&p===t&&n===d&&(f=lb(e,m.getPositionBefore(),a))}return Jv("rowspan",i,l,e),f}function vb(l,n){const e=[],t=new ob(l);for(const o of t){const{column:l,cellWidth:t}=o;l1&&(u.colspan=i);const a=parseInt(l.getAttribute("rowspan")||1);a>1&&(u.rowspan=a);const r=lb(t,t.createPositionAfter(l),u);return Jv("colspan",o,l,t),r}function yb(l,n,e,t,o,u){const i=parseInt(l.getAttribute("colspan")||1),a=parseInt(l.getAttribute("rowspan")||1);e+i-1>o&&Jv("colspan",o-e+1,l,u,1),n+a-1>t&&Jv("rowspan",t-n+1,l,u,1)}function xb(l,n){const e=n.getColumns(l),t=new Array(e).fill(0);for(const{column:u}of new ob(l))t[u]++;const o=t.reduce((l,n,e)=>n?l:[...l,e],[]);if(o.length>0){const e=o[o.length-1];return n.removeColumns(l,{at:e}),!0}return!1}function Ab(l,n){const e=[],t=n.getRows(l);for(let o=0;o0){const t=e[e.length-1];return n.removeRows(l,{at:t}),!0}return!1}function _b(l,n){xb(l,n)||Ab(l,n)}function Cb(l,n){const e=Array.from(new ob(l,{startColumn:n.firstColumn,endColumn:n.lastColumn,row:n.lastRow}));if(e.every(({cellHeight:l})=>1===l))return n.lastRow;const t=e[0].cellHeight-1;return n.lastRow+t}function wb(l,n){const e=Array.from(new ob(l,{startRow:n.firstRow,endRow:n.lastRow,column:n.lastColumn}));if(e.every(({cellWidth:l})=>1===l))return n.lastColumn;const t=e[0].cellWidth-1;return n.lastColumn+t}class Rb extends Pt{constructor(l,n){super(l),this.direction=n.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const l=this._getMergeableCell();this.value=l,this.isEnabled=!!l}execute(){const l=this.editor.model,n=l.document,e=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(n.selection)[0],t=this.value,o=this.direction;l.change(l=>{const n="right"==o||"down"==o,u=n?e:t,i=n?t:e,a=i.parent;!function(l,n,e){Lb(l)||(Lb(n)&&e.remove(e.createRangeIn(n)),e.move(e.createRangeIn(l),e.createPositionAt(n,"end"))),e.remove(l)}(i,u,l);const r=this.isHorizontal?"colspan":"rowspan",s=parseInt(e.getAttribute(r)||1),d=parseInt(t.getAttribute(r)||1);l.setAttribute(r,s+d,u),l.setSelection(l.createRangeIn(u));const c=this.editor.plugins.get("TableUtils");_b(a.findAncestor("table"),c)})}_getMergeableCell(){const l=this.editor.model.document,n=this.editor.plugins.get("TableUtils"),e=n.getTableCellsContainingSelection(l.selection)[0];if(!e)return;const t=this.isHorizontal?function(l,n,e){const t=l.parent.parent,o="right"==n?l.nextSibling:l.previousSibling,u=(t.getAttribute("headingColumns")||0)>0;if(!o)return;const i="right"==n?l:o,a="right"==n?o:l,{column:r}=e.getCellLocation(i),{column:s}=e.getCellLocation(a),d=parseInt(i.getAttribute("colspan")||1),c=nb(e,i),p=nb(e,a);return u&&c!=p?void 0:r+d===s?o:void 0}(e,this.direction,n):function(l,n,e){const t=l.parent,o=t.parent,u=o.getChildIndex(t);if("down"==n&&u===e.getRows(o)-1||"up"==n&&0===u)return;const i=parseInt(l.getAttribute("rowspan")||1),a=o.getAttribute("headingRows")||0;if(a&&("down"==n&&u+i===a||"up"==n&&u===a))return;const r=parseInt(l.getAttribute("rowspan")||1),s="down"==n?u+r:u,d=[...new ob(o,{endRow:s})],c=d.find(n=>n.cell===l).column,p=d.find(({row:l,cellHeight:e,column:t})=>t===c&&("down"==n?l===s:s===l+e));return p&&p.cell}(e,this.direction,n);if(!t)return;const o=this.isHorizontal?"rowspan":"colspan",u=parseInt(e.getAttribute(o)||1);return parseInt(t.getAttribute(o)||1)===u?t:void 0}}function Lb(l){return 1==l.childCount&&l.getChild(0).is("element","paragraph")&&l.getChild(0).isEmpty}class Mb extends Pt{refresh(){const l=this.editor.plugins.get("TableUtils"),n=l.getSelectionAffectedTableCells(this.editor.model.document.selection),e=n[0];if(e){const t=e.findAncestor("table"),o=this.editor.plugins.get("TableUtils").getRows(t)-1,u=l.getRowIndexes(n),i=0===u.first&&u.last===o;this.isEnabled=!i}else this.isEnabled=!1}execute(){const l=this.editor.model,n=this.editor.plugins.get("TableUtils"),e=n.getSelectionAffectedTableCells(l.document.selection),t=n.getRowIndexes(e),o=e[0],u=o.findAncestor("table"),i=n.getCellLocation(o).column;l.change(l=>{const e=t.last-t.first+1;n.removeRows(u,{at:t.first,rows:e});const o=function(l,n,e,t){const o=l.getChild(Math.min(n,t-1));let u=o.getChild(0),i=0;for(const a of o.getChildren()){if(i>e)return u;u=a,i+=parseInt(a.getAttribute("colspan")||1)}return u}(u,t.first,i,n.getRows(u));l.setSelection(l.createPositionAt(o,0))})}}class Eb extends Pt{refresh(){const l=this.editor.plugins.get("TableUtils"),n=l.getSelectionAffectedTableCells(this.editor.model.document.selection),e=n[0];if(e){const t=e.findAncestor("table"),o=l.getColumns(t),{first:u,last:i}=l.getColumnIndexes(n);this.isEnabled=i-ul.cell===n).column,last:o.find(l=>l.cell===e).column},i=function(l,n,e,t){return parseInt(e.getAttribute("colspan")||1)>1?e:n.previousSibling||e.nextSibling?e.nextSibling||n.previousSibling:t.first?l.reverse().find(({column:l})=>ll>t.last).cell}(o,n,e,u);this.editor.model.change(l=>{const n=u.last-u.first+1;this.editor.plugins.get("TableUtils").removeColumns(t,{at:u.first,columns:n}),l.setSelection(l.createPositionAt(i,0))})}}class Ob extends Pt{refresh(){const l=this.editor.plugins.get("TableUtils"),n=this.editor.model,e=l.getSelectionAffectedTableCells(n.document.selection),t=e.length>0;this.isEnabled=t,this.value=t&&e.every(l=>this._isInHeading(l,l.parent.parent))}execute(l={}){if(l.forceValue===this.value)return;const n=this.editor.plugins.get("TableUtils"),e=this.editor.model,t=n.getSelectionAffectedTableCells(e.document.selection),o=t[0].findAncestor("table"),{first:u,last:i}=n.getRowIndexes(t),a=this.value?u:i+1,r=o.getAttribute("headingRows")||0;e.change(l=>{if(a){const n=hb(o,a,a>r?r:0);for(const{cell:e}of n)gb(e,a,l)}Jv("headingRows",a,o,l,0)})}_isInHeading(l,n){const e=parseInt(n.getAttribute("headingRows")||0);return!!e&&l.parent.index0;this.isEnabled=t,this.value=t&&e.every(l=>nb(n,l))}execute(l={}){if(l.forceValue===this.value)return;const n=this.editor.plugins.get("TableUtils"),e=this.editor.model,t=n.getSelectionAffectedTableCells(e.document.selection),o=t[0].findAncestor("table"),{first:u,last:i}=n.getColumnIndexes(t),a=this.value?u:i+1;e.change(l=>{if(a){const n=vb(o,a);for(const{cell:e,column:t}of n)bb(e,t,a,l)}Jv("headingColumns",a,o,l,0)})}}class kb extends qt{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(l){const n=l.parent,e=n.parent,t=e.getChildIndex(n),o=new ob(e,{row:t});for(const{cell:u,row:i,column:a}of o)if(u===l)return{row:i,column:a}}createTable(l,n){const e=l.createElement("table"),t=parseInt(n.rows)||2,o=parseInt(n.columns)||2;return Ib(l,e,0,t,o),n.headingRows&&Jv("headingRows",Math.min(n.headingRows,t),e,l,0),n.headingColumns&&Jv("headingColumns",Math.min(n.headingColumns,o),e,l,0),e}insertRows(l,n={}){const e=this.editor.model,t=n.at||0,o=n.rows||1,u=void 0!==n.copyStructureFromAbove,i=n.copyStructureFromAbove?t-1:t,a=this.getRows(l),r=this.getColumns(l);if(t>a)throw new b("tableutils-insertrows-insert-out-of-range",this,{options:n});e.change(n=>{const e=l.getAttribute("headingRows")||0;if(e>t&&Jv("headingRows",e+o,l,n,0),!u&&(0===t||t===a))return void Ib(n,l,t,o,r);const s=u?Math.max(t,i):t,d=new ob(l,{endRow:s}),c=new Array(r).fill(1);for(const{row:l,column:a,cellHeight:r,cellWidth:p,cell:f}of d){const e=l+r-1,s=l<=i&&i<=e;l0&&lb(n,o,t>1?{colspan:t}:null),l+=Math.abs(t)-1}}})}insertColumns(l,n={}){const e=this.editor.model,t=n.at||0,o=n.columns||1;e.change(n=>{const e=l.getAttribute("headingColumns");to-1)throw new b("tableutils-removerows-row-index-out-of-range",this,{table:l,options:n});e.change(n=>{const{cellsToMove:e,cellsToTrim:t}=function(l,n,e){const t=new Map,o=[];for(const{row:u,column:i,cellHeight:a,cell:r}of new ob(l,{endRow:e})){const l=u+a-1;if(u>=n&&u<=e&&l>e){const l=a-(e-u+1);t.set(i,{cell:r,rowspan:l})}if(u=n){let t;t=l>=e?e-n+1:l-n+1,o.push({cell:r,rowspan:a-t})}}return{cellsToMove:t,cellsToTrim:o}}(l,u,i);e.size&&function(l,n,e,t){const o=[...new ob(l,{includeAllSlots:!0,row:n})],u=l.getChild(n);let i;for(const{column:a,cell:r,isAnchor:s}of o)if(e.has(a)){const{cell:l,rowspan:n}=e.get(a),o=i?t.createPositionAfter(i):t.createPositionAt(u,0);t.move(t.createRangeOn(l),o),Jv("rowspan",n,l,t),i=l}else s&&(i=r)}(l,i+1,e,n);for(let o=i;o>=u;o--)n.remove(l.getChild(o));for(const{rowspan:l,cell:o}of t)Jv("rowspan",l,o,n);!function(l,n,e,t){const o=l.getAttribute("headingRows")||0;n{!function(l,n,e){const t=l.getAttribute("headingColumns")||0;if(t&&n.first=t;e--)for(const{cell:t,column:o,cellWidth:u}of[...new ob(l)])o<=e&&u>1&&o+u>e?Jv("colspan",u-1,t,n):o===e&&n.remove(t);Ab(l,this)||xb(l,this)})}splitCellVertically(l,n=2){const e=this.editor.model,t=l.parent.parent,o=parseInt(l.getAttribute("rowspan")||1),u=parseInt(l.getAttribute("colspan")||1);e.change(e=>{if(u>1){const{newCellsSpan:t,updatedSpan:i}=Nb(u,n);Jv("colspan",i,l,e);const a={};t>1&&(a.colspan=t),o>1&&(a.rowspan=o),Fb(u>n?n-1:u-1,e,e.createPositionAfter(l),a)}if(un===l),s=a.filter(({cell:n,cellWidth:e,column:t})=>n!==l&&t===r||tr);for(const{cell:l,cellWidth:n}of s)e.setAttribute("colspan",n+i,l);const d={};o>1&&(d.rowspan=o),Fb(i,e,e.createPositionAfter(l),d);const c=t.getAttribute("headingColumns")||0;c>r&&Jv("headingColumns",c+i,t,e)}})}splitCellHorizontally(l,n=2){const e=this.editor.model,t=l.parent,o=t.parent,u=o.getChildIndex(t),i=parseInt(l.getAttribute("rowspan")||1),a=parseInt(l.getAttribute("colspan")||1);e.change(e=>{if(i>1){const t=[...new ob(o,{startRow:u,endRow:u+i-1,includeAllSlots:!0})],{newCellsSpan:r,updatedSpan:s}=Nb(i,n);Jv("rowspan",s,l,e);const{column:d}=t.find(({cell:n})=>n===l),c={};r>1&&(c.rowspan=r),a>1&&(c.colspan=a);for(const l of t){const{column:n,row:t}=l;t>=u+s&&n===d&&(t+u+s)%r==0&&Fb(1,e,l.getPositionBefore(),c)}}if(iu){const l=o+t;e.setAttribute("rowspan",l,n)}const s={};a>1&&(s.colspan=a),Ib(e,o,u+1,t,1,s);const d=o.getAttribute("headingRows")||0;d>u&&Jv("headingRows",d+t,o,e)}})}getColumns(l){return[...l.getChild(0).getChildren()].reduce((l,n)=>l+parseInt(n.getAttribute("colspan")||1),0)}getRows(l){return Array.from(l.getChildren()).reduce((l,n)=>n.is("element","tableRow")?l+1:l,0)}createTableWalker(l,n={}){return new ob(l,n)}getSelectedTableCells(l){const n=[];for(const e of this.sortRanges(l.getRanges())){const l=e.getContainedElement();l&&l.is("element","tableCell")&&n.push(l)}return n}getTableCellsContainingSelection(l){const n=[];for(const e of l.getRanges()){const l=e.start.findAncestor("tableCell");l&&n.push(l)}return n}getSelectionAffectedTableCells(l){const n=this.getSelectedTableCells(l);return n.length?n:this.getTableCellsContainingSelection(l)}getRowIndexes(l){const n=l.map(l=>l.parent.index);return this._getFirstLastIndexesObject(n)}getColumnIndexes(l){const n=l[0].findAncestor("table"),e=[...new ob(n)].filter(n=>l.includes(n.cell)).map(l=>l.column);return this._getFirstLastIndexesObject(e)}isSelectionRectangular(l){if(l.length<2||!this._areCellInTheSameTableSection(l))return!1;const n=new Set,e=new Set;let t=0;for(const o of l){const{row:l,column:u}=this.getCellLocation(o),i=parseInt(o.getAttribute("rowspan")||1),a=parseInt(o.getAttribute("colspan")||1);n.add(l),e.add(u),i>1&&n.add(l+i-1),a>1&&e.add(u+a-1),t+=i*a}return function(l,n){const e=Array.from(l.values()),t=Array.from(n.values());return(Math.max(...e)-Math.min(...e)+1)*(Math.max(...t)-Math.min(...t)+1)}(n,e)==t}sortRanges(l){return Array.from(l).sort(Db)}_getFirstLastIndexesObject(l){const n=l.sort((l,n)=>l-n);return{first:n[0],last:n[n.length-1]}}_areCellInTheSameTableSection(l){const n=l[0].findAncestor("table"),e=this.getRowIndexes(l),t=parseInt(n.getAttribute("headingRows")||0);if(!this._areIndexesInSameSection(e,t))return!1;const o=parseInt(n.getAttribute("headingColumns")||0),u=this.getColumnIndexes(l);return this._areIndexesInSameSection(u,o)}_areIndexesInSameSection({first:l,last:n},e){return l{const t=n.getSelectedTableCells(l.document.selection),o=t.shift(),{mergeWidth:u,mergeHeight:i}=function(l,n,e){let t=0,o=0;for(const a of n){const{row:l,column:n}=e.getCellLocation(a);t=Pb(a,n,t,"colspan"),o=Pb(a,l,o,"rowspan")}const{row:u,column:i}=e.getCellLocation(l);return{mergeWidth:t-i,mergeHeight:o-u}}(o,t,n);Jv("colspan",u,o,e),Jv("rowspan",i,o,e);for(const l of t)qb(l,o,e);_b(o.findAncestor("table"),n),e.setSelection(o,"in")})}}function qb(l,n,e){Tb(l)||(Tb(n)&&e.remove(e.createRangeIn(n)),e.move(e.createRangeIn(l),e.createPositionAt(n,"end"))),e.remove(l)}function Tb(l){return 1==l.childCount&&l.getChild(0).is("element","paragraph")&&l.getChild(0).isEmpty}function Pb(l,n,e,t){const o=parseInt(l.getAttribute(t)||1);return Math.max(e,n+o)}class Bb extends Pt{constructor(l){super(l),this.affectsData=!1}refresh(){const l=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=l.length>0}execute(){const l=this.editor.model,n=this.editor.plugins.get("TableUtils"),e=n.getSelectionAffectedTableCells(l.document.selection),t=n.getRowIndexes(e),o=e[0].findAncestor("table"),u=[];for(let i=t.first;i<=t.last;i++)for(const n of o.getChild(i).getChildren())u.push(l.createRangeOn(n));l.change(l=>{l.setSelection(u)})}}class Vb extends Pt{constructor(l){super(l),this.affectsData=!1}refresh(){const l=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=l.length>0}execute(){const l=this.editor.plugins.get("TableUtils"),n=this.editor.model,e=l.getSelectionAffectedTableCells(n.document.selection),t=e[0],o=e.pop(),u=t.findAncestor("table"),i=l.getCellLocation(t),a=l.getCellLocation(o),r=Math.min(i.column,a.column),s=Math.max(i.column,a.column),d=[];for(const c of new ob(u,{startColumn:r,endColumn:s}))d.push(n.createRangeOn(c.cell));n.change(l=>{l.setSelection(d)})}}function Ub(l,n){let e=!1;const t=function(l){const n=parseInt(l.getAttribute("headingRows")||0),e=Array.from(l.getChildren()).reduce((l,n)=>n.is("element","tableRow")?l+1:l,0),t=[];for(const{row:o,cell:u,cellHeight:i}of new ob(l)){if(i<2)continue;const l=ol){const n=l-o;t.push({cell:u,rowspan:n})}}return t}(l);if(t.length){e=!0;for(const l of t)Jv("rowspan",l.rowspan,l.cell,n,1)}return e}function Wb(l,n){let e=!1;const t=function(l){const n=new Array(l.childCount).fill(0);for(const{rowIndex:e}of new ob(l,{includeAllSlots:!0}))n[e]++;return n}(l),o=[];for(const[a,r]of t.entries())!r&&l.getChild(a).is("element","tableRow")&&o.push(a);if(o.length){e=!0;for(const e of o.reverse())n.remove(l.getChild(e)),t.splice(e,1)}const u=t.filter((n,e)=>l.getChild(e).is("element","tableRow")),i=u[0];if(!u.every(l=>l===i)){const t=u.reduce((l,n)=>n>l?n:l,0);for(const[o,i]of u.entries()){const u=t-i;if(u){for(let e=0;el.is("$text"));for(const t of e)n.wrap(n.createRangeOn(t),"paragraph");return!!e.length}function Zb(l){return!(!l.position||!l.position.parent.is("element","tableCell"))&&("insert"==l.type&&"$text"==l.name||"remove"==l.type)}function Xb(l,n){if(!l.is("element","paragraph"))return!1;const e=n.toViewElement(l);return!!e&&sb(l)!==e.is("element","span")}var $b=o(3881);Ht()($b.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$b.Z.locals;class Kb extends qt{static get pluginName(){return"TableEditing"}static get requires(){return[kb]}init(){const l=this.editor,n=l.model,e=n.schema,t=l.conversion,o=l.plugins.get(kb);e.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),e.register("tableRow",{allowIn:"table",isLimit:!0}),e.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),t.for("upcast").add(l=>{l.on("element:figure",(l,n,e)=>{if(!e.consumable.test(n.viewItem,{name:!0,classes:"table"}))return;const t=function(l){for(const n of l.getChildren())if(n.is("element","table"))return n}(n.viewItem);if(!t||!e.consumable.test(t,{name:!0}))return;e.consumable.consume(n.viewItem,{name:!0,classes:"table"});const o=Ot(e.convertItem(t,n.modelCursor).modelRange.getItems());o?(e.convertChildren(n.viewItem,e.writer.createPositionAt(o,"end")),e.updateConversionResult(o,n)):e.consumable.revert(n.viewItem,{name:!0,classes:"table"})})}),t.for("upcast").add(l=>{l.on("element:table",(l,n,e)=>{const t=n.viewItem;if(!e.consumable.test(t,{name:!0}))return;const{rows:o,headingRows:u,headingColumns:i}=function(l){const n={headingRows:0,headingColumns:0},e=[],t=[];let o;for(const u of Array.from(l.getChildren()))if("tbody"===u.name||"thead"===u.name||"tfoot"===u.name){"thead"!==u.name||o||(o=u);const l=Array.from(u.getChildren()).filter(l=>l.is("element","tr"));for(const u of l)if("thead"===u.parent.name&&u.parent===o)n.headingRows++,e.push(u);else{t.push(u);const l=tb(u);l>n.headingColumns&&(n.headingColumns=l)}}return n.rows=[...e,...t],n}(t),a={};i&&(a.headingColumns=i),u&&(a.headingRows=u);const r=e.writer.createElement("table",a);if(e.safeInsert(r,n.modelCursor)){if(e.consumable.consume(t,{name:!0}),o.forEach(l=>e.convertItem(l,e.writer.createPositionAt(r,"end"))),e.convertChildren(t,e.writer.createPositionAt(r,"end")),r.isEmpty){const l=e.writer.createElement("tableRow");e.writer.insert(l,e.writer.createPositionAt(r,"end")),lb(e.writer,e.writer.createPositionAt(l,"end"))}e.updateConversionResult(r,n)}})}),t.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:ib(o,{asWidget:!0})}),t.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:ib(o)}),t.for("upcast").elementToElement({model:"tableRow",view:"tr"}),t.for("upcast").add(l=>{l.on("element:tr",(l,n)=>{n.viewItem.isEmpty&&0==n.modelCursor.index&&l.stop()},{priority:"high"})}),t.for("downcast").elementToElement({model:"tableRow",view:(l,{writer:n})=>l.isEmpty?n.createEmptyElement("tr"):n.createContainerElement("tr")}),t.for("upcast").elementToElement({model:"tableCell",view:"td"}),t.for("upcast").elementToElement({model:"tableCell",view:"th"}),t.for("upcast").add(eb("td")),t.for("upcast").add(eb("th")),t.for("editingDowncast").elementToElement({model:"tableCell",view:ab({asWidget:!0})}),t.for("dataDowncast").elementToElement({model:"tableCell",view:ab()}),t.for("editingDowncast").elementToElement({model:"paragraph",view:rb({asWidget:!0}),converterPriority:"high"}),t.for("dataDowncast").elementToElement({model:"paragraph",view:rb(),converterPriority:"high"}),t.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),t.for("upcast").attributeToAttribute({model:{key:"colspan",value:Qb("colspan")},view:"colspan"}),t.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),t.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Qb("rowspan")},view:"rowspan"}),l.data.mapper.on("modelToViewPosition",(l,n)=>{const e=n.modelPosition.parent,t=n.modelPosition.nodeBefore;if(!e.is("element","tableCell"))return;if(!t||!t.is("element","paragraph"))return;const o=n.mapper.toViewElement(t),u=n.mapper.toViewElement(e);o===u&&(n.viewPosition=n.mapper.findPositionIn(u,t.maxOffset))}),l.config.define("table.defaultHeadings.rows",0),l.config.define("table.defaultHeadings.columns",0),l.commands.add("insertTable",new db(l)),l.commands.add("insertTableRowAbove",new cb(l,{order:"above"})),l.commands.add("insertTableRowBelow",new cb(l,{order:"below"})),l.commands.add("insertTableColumnLeft",new pb(l,{order:"left"})),l.commands.add("insertTableColumnRight",new pb(l,{order:"right"})),l.commands.add("removeTableRow",new Mb(l)),l.commands.add("removeTableColumn",new Eb(l)),l.commands.add("splitTableCellVertically",new fb(l,{direction:"vertically"})),l.commands.add("splitTableCellHorizontally",new fb(l,{direction:"horizontally"})),l.commands.add("mergeTableCells",new zb(l)),l.commands.add("mergeTableCellRight",new Rb(l,{direction:"right"})),l.commands.add("mergeTableCellLeft",new Rb(l,{direction:"left"})),l.commands.add("mergeTableCellDown",new Rb(l,{direction:"down"})),l.commands.add("mergeTableCellUp",new Rb(l,{direction:"up"})),l.commands.add("setTableColumnHeader",new Sb(l)),l.commands.add("setTableRowHeader",new Ob(l)),l.commands.add("selectTableRow",new Bb(l)),l.commands.add("selectTableColumn",new Vb(l)),function(l){l.document.registerPostFixer(n=>(function(l,n){const e=n.document.differ.getChanges();let t=!1;const o=new Set;for(const u of e){let n;"table"==u.name&&"insert"==u.type&&(n=u.position.nodeAfter),"tableRow"!=u.name&&"tableCell"!=u.name||(n=u.position.findAncestor("table")),Gb(u)&&(n=u.range.start.findAncestor("table")),n&&!o.has(n)&&(t=Ub(n,l)||t,t=Wb(n,l)||t,o.add(n))}return t})(n,l))}(n),function(l){l.document.registerPostFixer(n=>(function(l,n){const e=n.document.differ.getChanges();let t=!1;for(const o of e)"insert"==o.type&&"table"==o.name&&(t=jb(o.position.nodeAfter,l)||t),"insert"==o.type&&"tableRow"==o.name&&(t=Hb(o.position.nodeAfter,l)||t),"insert"==o.type&&"tableCell"==o.name&&(t=Yb(o.position.nodeAfter,l)||t),Zb(o)&&(t=Yb(o.position.parent,l)||t);return t})(n,l))}(n),this.listenTo(n.document,"change:data",()=>{!function(l,n){const e=l.document.differ;for(const t of e.getChanges()){let l,e=!1;if("attribute"==t.type){const n=t.range.start.nodeAfter;if(!n||!n.is("element","table"))continue;if("headingRows"!=t.attributeKey&&"headingColumns"!=t.attributeKey)continue;l=n,e="headingRows"==t.attributeKey}else"tableRow"!=t.name&&"tableCell"!=t.name||(l=t.position.findAncestor("table"),e="tableRow"==t.name);if(!l)continue;const o=l.getAttribute("headingRows")||0,u=l.getAttribute("headingColumns")||0,i=new ob(l);for(const t of i){const l=t.rowXb(l,n.mapper));for(const e of l)n.reconvertItem(e)}}(n,l.editing)})}}function Qb(l){return n=>{const e=parseInt(n.getAttribute(l));return Number.isNaN(e)||e<=0?null:e}}var Jb=o(1613);Ht()(Jb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Jb.Z.locals;class ly extends rd{constructor(l){super(l);const n=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new kt,this.focusTracker=new St,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(l,n)=>`${n} \xd7 ${l}`),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":n.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:n.to("label")}]}],on:{mousedown:n.to(l=>{l.preventDefault()}),click:n.to(()=>{this.fire("execute")})}}),this.on("boxover",(l,n)=>{const{row:e,column:t}=n.target.dataset;this.items.get(10*(parseInt(e,10)-1)+(parseInt(t,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(l,n,e)=>{if(!e)return;const{row:t,column:o}=e.dataset;this.set({rows:parseInt(t),columns:parseInt(o)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:l,focusTracker:n,gridItems:e,numberOfColumns:t,uiLanguageDirection:o}){const u="number"==typeof t?()=>t:t;function i(l){return t=>{const o=e.find(l=>l.element===n.focusedElement),u=e.getIndex(o),i=l(u,e);e.get(i).focus(),t.stopPropagation(),t.preventDefault()}}function a(l,n){return l===n-1?0:l+1}function r(l,n){return 0===l?n-1:l-1}l.set("arrowright",i((l,n)=>"rtl"===o?r(l,n.length):a(l,n.length))),l.set("arrowleft",i((l,n)=>"rtl"===o?a(l,n.length):r(l,n.length))),l.set("arrowup",i((l,n)=>{let e=l-u();return e<0&&((e=l+u()*Math.floor(n.length/u()))>n.length-1&&(e-=u())),e})),l.set("arrowdown",i((l,n)=>{let e=l+u();return e>n.length-1&&(e=l%u()),e}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const l of this.items)this.focusTracker.add(l.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const l=this.rows,n=this.columns;this.items.map((e,t)=>{const o=Math.floor(t/10){const t=l.commands.get("insertTable"),o=ac(e);let u;return o.bind("isEnabled").to(t),o.buttonView.set({icon:'',label:n("Insert table"),tooltip:!0}),o.on("change:isOpen",()=>{u||(u=new ly(e),o.panelView.children.add(u),u.delegate("execute").to(o),o.on("execute",()=>{l.execute("insertTable",{rows:u.rows,columns:u.columns}),l.editing.view.focus()}))}),o}),l.ui.componentFactory.add("tableColumn",l=>{const t=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:e?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:e?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return this._prepareDropdown(n("Column"),'',t,l)}),l.ui.componentFactory.add("tableRow",l=>{const e=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return this._prepareDropdown(n("Row"),'',e,l)}),l.ui.componentFactory.add("mergeTableCells",l=>{const t=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:e?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:e?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(n("Merge cells"),'',t,l)})}_prepareDropdown(l,n,e,t){const o=this.editor,u=ac(t),i=this._fillDropdownWithListOptions(u,e);return u.buttonView.set({label:l,icon:n,tooltip:!0}),u.bind("isEnabled").toMany(i,"isEnabled",(...l)=>l.some(l=>l)),this.listenTo(u,"execute",l=>{o.execute(l.source.commandName),l.source instanceof Nd||o.editing.view.focus()}),u}_prepareMergeSplitButtonDropdown(l,n,e,t){const o=this.editor,u=ac(t,Pd),i="mergeTableCells",a=o.commands.get(i),r=this._fillDropdownWithListOptions(u,e);return u.buttonView.set({label:l,icon:n,tooltip:!0,isEnabled:!0}),u.bind("isEnabled").toMany([a,...r],"isEnabled",(...l)=>l.some(l=>l)),this.listenTo(u.buttonView,"execute",()=>{o.execute(i),o.editing.view.focus()}),this.listenTo(u,"execute",l=>{o.execute(l.source.commandName),o.editing.view.focus()}),u}_fillDropdownWithListOptions(l,n){const e=this.editor,t=[],o=new Et;for(const u of n)ey(u,e,t,o);return sc(l,o,e.ui.componentFactory),t}}function ey(l,n,e,t){const o=l.model=new Lc(l.model),{commandName:u,bindIsOn:i}=l.model;if("button"===l.type||"switchbutton"===l.type){const l=n.commands.get(u);e.push(l),o.set({commandName:u}),o.bind("isEnabled").to(l),i&&o.bind("isOn").to(l,"value")}o.set({withText:!0}),t.add(l)}var ty=o(6945);Ht()(ty.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ty.Z.locals;class oy extends qt{static get pluginName(){return"TableSelection"}static get requires(){return[kb,kb]}init(){const l=this.editor,n=l.model,e=l.editing.view;this.listenTo(n,"deleteContent",(l,n)=>this._handleDeleteContent(l,n),{priority:"high"}),this.listenTo(e.document,"insertText",(l,n)=>this._handleInsertTextEvent(l,n),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const l=this.editor.plugins.get(kb),n=this.editor.model.document.selection,e=l.getSelectedTableCells(n);return 0==e.length?null:e}getSelectionAsFragment(){const l=this.editor.plugins.get(kb),n=this.getSelectedTableCells();return n?this.editor.model.change(e=>{const t=e.createDocumentFragment(),{first:o,last:u}=l.getColumnIndexes(n),{first:i,last:a}=l.getRowIndexes(n),r=n[0].findAncestor("table");let s=a,d=u;if(l.isSelectionRectangular(n)){const l={firstColumn:o,lastColumn:u,firstRow:i,lastRow:a};s=Cb(r,l),d=wb(r,l)}const c=mb(r,{startRow:i,startColumn:o,endRow:s,endColumn:d},e);return e.insert(c,t,0),t}):null}setCellSelection(l,n){const e=this._getCellsToSelect(l,n);this.editor.model.change(l=>{l.setSelection(e.cells.map(n=>l.createRangeOn(n)),{backward:e.backward})})}getFocusCell(){const l=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return l&&l.is("element","tableCell")?l:null}getAnchorCell(){const l=Ot(this.editor.model.document.selection.getRanges()).getContainedElement();return l&&l.is("element","tableCell")?l:null}_defineSelectionConverter(){const l=this.editor,n=new Set;l.conversion.for("editingDowncast").add(l=>l.on("selection",(l,e,t)=>{const o=t.writer;!function(l){for(const e of n)l.removeClass("ck-editor__editable_selected",e);n.clear()}(o);const u=this.getSelectedTableCells();if(!u)return;for(const a of u){const l=t.mapper.toViewElement(a);o.addClass("ck-editor__editable_selected",l),n.add(l)}const i=t.mapper.toViewElement(u[u.length-1]);o.setSelection(i,0)},{priority:"lowest"}))}_enablePluginDisabling(){const l=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const n=this.getSelectedTableCells();if(!n)return;l.model.change(e=>{const t=e.createPositionAt(n[0],0),o=l.model.schema.getNearestSelectionRange(t);e.setSelection(o)})}})}_handleDeleteContent(l,n){const e=this.editor.plugins.get(kb),[t,o]=n,u=this.editor.model,i=!o||"backward"==o.direction,a=e.getSelectedTableCells(t);a.length&&(l.stop(),u.change(l=>{const n=a[i?a.length-1:0];u.change(l=>{for(const n of a)u.deleteContent(l.createSelection(n,"in"))});const e=u.schema.getNearestSelectionRange(l.createPositionAt(n,0));t.is("documentSelection")?l.setSelection(e):t.setTo(e)}))}_handleInsertTextEvent(l,n){const e=this.editor,t=e.model.document.selection,o=this.getSelectedTableCells(t);if(!o)return;const u=e.editing.view,i=e.editing.mapper,a=o.map(l=>u.createRangeOn(i.toViewElement(l)));n.selection=u.createSelection(a)}_getCellsToSelect(l,n){const e=this.editor.plugins.get("TableUtils"),t=e.getCellLocation(l),o=e.getCellLocation(n),u=Math.min(t.row,o.row),i=Math.max(t.row,o.row),a=Math.min(t.column,o.column),r=Math.max(t.column,o.column),s=new Array(i-u+1).fill(null).map(()=>[]),d={startRow:u,endRow:i,startColumn:a,endColumn:r};for(const{row:f,cell:m}of new ob(l.findAncestor("table"),d))s[f-u].push(m);const c=o.rowl.reverse()),{cells:s.flat(),backward:c||p}}}class uy extends qt{static get pluginName(){return"TableClipboard"}static get requires(){return[oy,kb]}init(){const l=this.editor,n=l.editing.view.document;this.listenTo(n,"copy",(l,n)=>this._onCopyCut(l,n)),this.listenTo(n,"cut",(l,n)=>this._onCopyCut(l,n)),this.listenTo(l.model,"insertContent",(l,n)=>this._onInsertContent(l,...n),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(l,n){const e=this.editor.plugins.get(oy);if(!e.getSelectedTableCells())return;if("cut"==l.name&&this.editor.isReadOnly)return;n.preventDefault(),l.stop();const t=this.editor.data,o=this.editor.editing.view.document,u=t.toView(e.getSelectionAsFragment());o.fire("clipboardOutput",{dataTransfer:n.dataTransfer,content:u,method:l.name})}_onInsertContent(l,n,e){if(e&&!e.is("documentSelection"))return;const t=this.editor.model,o=this.editor.plugins.get(kb);let u=iy(n,t);if(!u)return;const i=o.getSelectionAffectedTableCells(t.document.selection);i.length?(l.stop(),t.change(l=>{const n={width:o.getColumns(u),height:o.getRows(u)},e=function(l,n,e,t){const o=l[0].findAncestor("table"),u=t.getColumnIndexes(l),i=t.getRowIndexes(l),a={firstColumn:u.first,lastColumn:u.last,firstRow:i.first,lastRow:i.last},r=1===l.length;return r&&(a.lastRow+=n.height-1,a.lastColumn+=n.width-1,function(l,n,e,t){const o=t.getColumns(l),u=t.getRows(l);e>o&&t.insertColumns(l,{at:o,columns:e-o}),n>u&&t.insertRows(l,{at:u,rows:n-u})}(o,a.lastRow+1,a.lastColumn+1,t)),r||!t.isSelectionRectangular(l)?function(l,n,e){const{firstRow:t,lastRow:o,firstColumn:u,lastColumn:i}=n,a={first:t,last:o},r={first:u,last:i};ry(l,u,a,e),ry(l,i+1,a,e),ay(l,t,r,e),ay(l,o+1,r,e,t)}(o,a,e):(a.lastRow=Cb(o,a),a.lastColumn=wb(o,a)),a}(i,n,l,o),t=e.lastRow-e.firstRow+1,a=e.lastColumn-e.firstColumn+1,r={startRow:0,startColumn:0,endRow:Math.min(t,n.height)-1,endColumn:Math.min(a,n.width)-1};u=mb(u,r,l);const s=i[0].findAncestor("table"),d=this._replaceSelectedCellsWithPasted(u,n,s,e,l);if(this.editor.plugins.get("TableSelection").isEnabled){const n=o.sortRanges(d.map(n=>l.createRangeOn(n)));l.setSelection(n)}else l.setSelection(d[0],0)})):_b(u,o)}_replaceSelectedCellsWithPasted(l,n,e,t,o){const{width:u,height:i}=n,a=function(l,n,e){const t=new Array(i).fill(null).map(()=>new Array(n).fill(null));for(const{column:o,row:u,cell:i}of new ob(l))t[u][o]=i;return t}(l,u),r=[...new ob(e,{startRow:t.firstRow,endRow:t.lastRow,startColumn:t.firstColumn,endColumn:t.lastColumn,includeAllSlots:!0})],s=[];let d;for(const h of r){const{row:l,column:n}=h;n===t.firstColumn&&(d=h.getPositionBefore());const e=l-t.firstRow,r=n-t.firstColumn,c=a[e%i][r%u],p=c?o.cloneElement(c):null,f=this._replaceTableSlotCell(h,p,d,o);f&&(yb(f,l,n,t.lastRow,t.lastColumn,o),s.push(f),d=o.createPositionAfter(f))}const c=parseInt(e.getAttribute("headingRows")||0),p=parseInt(e.getAttribute("headingColumns")||0),f=t.firstRowsy(l,n,e)).map(({cell:l})=>gb(l,n,t))}function ry(l,n,e,t){if(!(n<1))return vb(l,n).filter(({row:l,cellHeight:n})=>sy(l,n,e)).map(({cell:l,column:e})=>bb(l,e,n,t))}function sy(l,n,e){const t=l+n-1,{first:o,last:u}=e;return l>=o&&l<=u||l=o}class dy extends qt{static get pluginName(){return"TableKeyboard"}static get requires(){return[oy,kb]}init(){const l=this.editor.editing.view.document;this.listenTo(l,"arrowKey",(...l)=>this._onArrowKey(...l),{context:"table"}),this.listenTo(l,"tab",(...l)=>this._handleTabOnSelectedTable(...l),{context:"figure"}),this.listenTo(l,"tab",(...l)=>this._handleTab(...l),{context:["th","td"]})}_handleTabOnSelectedTable(l,n){const e=this.editor,t=e.model.document.selection.getSelectedElement();t&&t.is("element","table")&&(n.preventDefault(),n.stopPropagation(),l.stop(),e.model.change(l=>{l.setSelection(l.createRangeIn(t.getChild(0).getChild(0)))}))}_handleTab(l,n){const e=this.editor,t=this.editor.plugins.get(kb),o=e.model.document.selection,u=!n.shiftKey;let i=t.getTableCellsContainingSelection(o)[0];if(i||(i=this.editor.plugins.get("TableSelection").getFocusCell()),!i)return;n.preventDefault(),n.stopPropagation(),l.stop();const a=i.parent,r=a.parent,s=r.getChildIndex(a),d=a.getChildIndex(i),c=0===d;if(!u&&c&&0===s)return void e.model.change(l=>{l.setSelection(l.createRangeOn(r))});const p=d===a.childCount-1,f=s===t.getRows(r)-1;if(u&&f&&p&&(e.execute("insertTableRowBelow"),s===t.getRows(r)-1))return void e.model.change(l=>{l.setSelection(l.createRangeOn(r))});let m;if(u&&p){const l=r.getChild(s+1);m=l.getChild(0)}else if(!u&&c){const l=r.getChild(s-1);m=l.getChild(l.childCount-1)}else m=a.getChild(d+(u?1:-1));e.model.change(l=>{l.setSelection(l.createRangeIn(m))})}_onArrowKey(l,n){const e=this.editor,t=Ct(n.keyCode,e.locale.contentLanguageDirection);this._handleArrowKeys(t,n.shiftKey)&&(n.preventDefault(),n.stopPropagation(),l.stop())}_handleArrowKeys(l,n){const e=this.editor.plugins.get(kb),t=this.editor.model,o=t.document.selection,u=["right","down"].includes(l),i=e.getSelectedTableCells(o);if(i.length){let e;return e=n?this.editor.plugins.get("TableSelection").getFocusCell():u?i[i.length-1]:i[0],this._navigateFromCellInDirection(e,l,n),!0}const a=o.focus.findAncestor("tableCell");if(!a)return!1;if(!o.isCollapsed)if(n){if(o.isBackward==u&&!o.containsEntireContent(a))return!1}else{const l=o.getSelectedElement();if(!l||!t.schema.isObject(l))return!1}return!!this._isSelectionAtCellEdge(o,a,u)&&(this._navigateFromCellInDirection(a,l,n),!0)}_isSelectionAtCellEdge(l,n,e){const t=this.editor.model,o=this.editor.model.schema,u=e?l.getLastPosition():l.getFirstPosition();if(!o.getLimitElement(u).is("element","tableCell"))return t.createPositionAt(n,e?"end":0).isTouching(u);const i=t.createSelection(u);return t.modifySelection(i,{direction:e?"forward":"backward"}),u.isEqual(i.focus)}_navigateFromCellInDirection(l,n,e=!1){const t=this.editor.model,o=l.findAncestor("table"),u=[...new ob(o,{includeAllSlots:!0})],{row:i,column:a}=u[u.length-1],r=u.find(({cell:n})=>n==l);let{row:s,column:d}=r;switch(n){case"left":d--;break;case"up":s--;break;case"right":d+=r.cellWidth;break;case"down":s+=r.cellHeight}if(s<0||s>i||d<0&&s<=0||d>a&&s>=i)return void t.change(l=>{l.setSelection(l.createRangeOn(o))});d<0?(d=e?0:a,s--):d>a&&(d=e?a:0,s++);const c=u.find(l=>l.row==s&&l.column==d).cell,p=["right","down"].includes(n),f=this.editor.plugins.get("TableSelection");if(e&&f.isEnabled){const n=f.getAnchorCell()||l;f.setCellSelection(n,c)}else{const l=t.createPositionAt(c,p?0:"end");t.change(n=>{n.setSelection(l)})}}}class cy extends oi{constructor(l){super(l),this.domEventType=["mousemove","mouseleave"]}onDomEvent(l){this.fire(l.type,l)}}class py extends qt{static get pluginName(){return"TableMouse"}static get requires(){return[oy,kb]}init(){this.editor.editing.view.addObserver(cy),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const l=this.editor,n=l.plugins.get(kb);let e=!1;const t=l.plugins.get(oy);this.listenTo(l.editing.view.document,"mousedown",(o,u)=>{const i=l.model.document.selection;if(!this.isEnabled||!t.isEnabled)return;if(!u.domEvent.shiftKey)return;const a=t.getAnchorCell()||n.getTableCellsContainingSelection(i)[0];if(!a)return;const r=this._getModelTableCellFromDomEvent(u);r&&fy(a,r)&&(e=!0,t.setCellSelection(a,r),u.preventDefault())}),this.listenTo(l.editing.view.document,"mouseup",()=>{e=!1}),this.listenTo(l.editing.view.document,"selectionChange",l=>{e&&l.stop()},{priority:"highest"})}_enableMouseDragSelection(){const l=this.editor;let n,e,t=!1,o=!1;const u=l.plugins.get(oy);this.listenTo(l.editing.view.document,"mousedown",(l,e)=>{this.isEnabled&&u.isEnabled&&(e.domEvent.shiftKey||e.domEvent.ctrlKey||e.domEvent.altKey||(n=this._getModelTableCellFromDomEvent(e)))}),this.listenTo(l.editing.view.document,"mousemove",(l,i)=>{if(!i.domEvent.buttons)return;if(!n)return;const a=this._getModelTableCellFromDomEvent(i);a&&fy(n,a)&&(e=a,t||e==n||(t=!0)),t&&(o=!0,u.setCellSelection(n,e),i.preventDefault())}),this.listenTo(l.editing.view.document,"mouseup",()=>{t=!1,o=!1,n=null,e=null}),this.listenTo(l.editing.view.document,"selectionChange",l=>{o&&l.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(l){const n=l.target,e=this.editor.editing.view.createPositionAt(n,0);return this.editor.editing.mapper.toModelPosition(e).parent.findAncestor("tableCell",{includeSelf:!0})}}function fy(l,n){return l.parent.parent==n.parent.parent}var my=o(6306);function hy(l){const n=l.getSelectedElement();return n&&vy(n)?n:null}function gy(l){const n=l.getFirstPosition();if(!n)return null;let e=n.parent;for(;e;){if(e.is("element")&&vy(e))return e;e=e.parent}return null}function vy(l){return!!l.getCustomProperty("table")&&Vp(l)}Ht()(my.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),my.Z.locals;const by={autoRefresh:!0},yy=36e5;class xy{constructor(l,n=by){if(!l)throw new b("token-missing-token-url",this);n.initValue&&this._validateTokenValue(n.initValue),this.set("value",n.initValue),this._refresh="function"==typeof l?l:()=>{return n=l,new Promise((l,e)=>{const t=new XMLHttpRequest;t.open("GET",n),t.addEventListener("load",()=>{const n=t.status,o=t.response;return n<200||n>299?e(new b("token-cannot-download-new-token",null)):l(o)}),t.addEventListener("error",()=>e(new Error("Network Error"))),t.addEventListener("abort",()=>e(new Error("Abort"))),t.send()});var n},this._options=Object.assign({},by,n)}init(){return new Promise((l,n)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),l(this)):this.refreshToken().then(l).catch(n)})}refreshToken(){return this._refresh().then(l=>{this._validateTokenValue(l),this.set("value",l),this._options.autoRefresh&&this._registerRefreshTokenTimeout()}).then(()=>this)}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(l){const n="string"==typeof l,e=!/^".*"$/.test(l),t=n&&3===l.split(".").length;if(!e||!t)throw new b("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const l=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},l)}_getTokenRefreshTimeoutTime(){try{const[,l]=this.value.split("."),{exp:n}=JSON.parse(atob(l));return n?Math.floor((1e3*n-Date.now())/2):yy}catch(e){return yy}}static create(l,n=by){return new xy(l,n).init()}}c(xy,U);const Ay=xy,_y=/^data:(\S*?);base64,/;class Cy{constructor(l,n,e){if(!l)throw new b("fileuploader-missing-file",null);if(!n)throw new b("fileuploader-missing-token",null);if(!e)throw new b("fileuploader-missing-api-address",null);this.file=function(l){if("string"!=typeof l)return!1;const n=l.match(_y);return!(!n||!n.length)}(l)?function(l,n=512){try{const e=l.match(_y)[1],t=atob(l.replace(_y,"")),o=[];for(let l=0;ll(e)),this}onError(l){return this.once("error",(n,e)=>l(e)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const l=new XMLHttpRequest;l.open("POST",this._apiAddress),l.setRequestHeader("Authorization",this._token.value),l.responseType="json",this.xhr=l}_attachXHRListeners(){const l=this,n=this.xhr;function e(n){return()=>l.fire("error",n)}n.addEventListener("error",e("Network Error")),n.addEventListener("abort",e("Abort")),n.upload&&n.upload.addEventListener("progress",l=>{l.lengthComputable&&this.fire("progress",{total:l.total,uploaded:l.loaded})}),n.addEventListener("load",()=>{const l=n.status,e=n.response;if(l<200||l>299)return this.fire("error",e.message||e.error)})}_sendRequest(){const l=new FormData,n=this.xhr;return l.append("file",this.file),new Promise((e,t)=>{n.addEventListener("load",()=>{const l=n.status,o=n.response;return l<200||l>299?o.message?t(new b("fileuploader-uploading-data-failed",this,{message:o.message})):t(o.error):e(o)}),n.addEventListener("error",()=>t(new Error("Network Error"))),n.addEventListener("abort",()=>t(new Error("Abort"))),n.send(l)})}}c(Cy,E);class wy{constructor(l,n){if(!l)throw new b("uploadgateway-missing-token",null);if(!n)throw new b("uploadgateway-missing-api-address",null);this._token=l,this._apiAddress=n}upload(l){return new Cy(l,this._token,this._apiAddress)}}class Ry extends Gt{static get pluginName(){return"CloudServicesCore"}createToken(l,n){return new Ay(l,n)}createUploadGateway(l,n){return new wy(l,n)}}class Ly extends Vc{}Ly.builtinPlugins=[class extends qt{static get requires(){return[yf,Sp,Rf,Np,up,Df]}static get pluginName(){return"Essentials"}},class extends qt{static get requires(){return[qf]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const l=this.editor.config.get("ckfinder.uploadUrl");l&&(this.editor.plugins.get(qf).createUploadAdapter=(n=>new Wf(n,l,this.editor.t)))}},class extends qt{static get requires(){return[op]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const l=this.editor.commands;l.get("bulletedList")&&Gf(this.editor,this,/^[*-]\s$/,"bulletedList"),l.get("numberedList")&&Gf(this.editor,this,/^1[.|)]\s$/,"numberedList"),l.get("todoList")&&Gf(this.editor,this,/^\[\s?\]\s$/,"todoList"),l.get("checkTodoList")&&Gf(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const l=this.editor.commands;if(l.get("bold")){const l=Yf(this.editor,"bold");jf(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,l),jf(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,l)}if(l.get("italic")){const l=Yf(this.editor,"italic");jf(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,l),jf(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,l)}if(l.get("code")){const l=Yf(this.editor,"code");jf(this.editor,this,/(`)([^`]+)(`)$/g,l)}if(l.get("strikethrough")){const l=Yf(this.editor,"strikethrough");jf(this.editor,this,/(~~)([^~]+)(~~)$/g,l)}}_addHeadingAutoformats(){const l=this.editor.commands.get("heading");l&&l.modelElements.filter(l=>l.match(/^heading[1-6]$/)).forEach(n=>{const e=n[7],t=new RegExp(`^(#{${e}})\\s$`);Gf(this.editor,this,t,()=>{if(!l.isEnabled||l.value===n)return!1;this.editor.execute("heading",{value:n})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Gf(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const l=this.editor,n=l.model.document.selection;l.commands.get("codeBlock")&&Gf(l,this,/^```$/,()=>{if(n.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Gf(this.editor,this,/^---$/,"horizontalLine")}},class extends qt{static get requires(){return[$f,Qf]}static get pluginName(){return"Bold"}},class extends qt{static get requires(){return[lm,em]}static get pluginName(){return"Italic"}},class extends qt{static get requires(){return[am,sm]}static get pluginName(){return"BlockQuote"}},class extends qt{static get pluginName(){return"CKBox"}static get requires(){return[Am,dm]}},class extends qt{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",Em,Rm]}},class extends Gt{static get pluginName(){return"CloudServices"}static get requires(){return[Ry]}init(){const l=this.context.config.get("cloudServices")||{};for(const n in l)this[n]=l[n];if(this._tokens=new Map,this.tokenUrl)return this.token=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl),this._tokens.set(this.tokenUrl,this.token),this.token.init();this.token=null}registerTokenUrl(l){if(this._tokens.has(l))return Promise.resolve(this.getTokenFor(l));const n=this.context.plugins.get("CloudServicesCore").createToken(l);return this._tokens.set(l,n),n.init()}getTokenFor(l){const n=this._tokens.get(l);if(!n)throw new b("cloudservices-token-not-registered",this);return n}destroy(){super.destroy();for(const l of this._tokens.values())l.destroy()}},class extends qt{static get requires(){return[Om,"ImageUpload"]}init(){const l=this.editor;l.plugins.has("ImageBlockEditing")||l.plugins.has("ImageInlineEditing")||y("easy-image-image-feature-missing",l)}static get pluginName(){return"EasyImage"}},class extends qt{static get requires(){return[Tm,Bm]}static get pluginName(){return"Heading"}},class extends qt{static get requires(){return[rh,dh]}static get pluginName(){return"Image"}},class extends qt{static get requires(){return[fh,mh]}static get pluginName(){return"ImageCaption"}},class extends qt{static get requires(){return[Sh,Ih]}static get pluginName(){return"ImageStyle"}},class extends qt{static get requires(){return[af,jm]}static get pluginName(){return"ImageToolbar"}afterInit(){const l=this.editor,n=l.t,e=l.plugins.get(af),t=l.plugins.get("ImageUtils");var o;e.register("image",{ariaLabel:n("Image toolbar"),items:(o=l.config.get("image.toolbar")||[],o.map(l=>D(l)?l.name:l)),getRelatedElement:l=>t.getClosestSelectedImageWidget(l)})}},class extends qt{static get pluginName(){return"ImageUpload"}static get requires(){return[$h,Ph,Wh]}},class extends qt{static get pluginName(){return"Indent"}static get requires(){return[Qh,ng]}},class extends qt{static get requires(){return[zg,jg,Zg]}static get pluginName(){return"Link"}},class extends qt{static get requires(){return[Cv,Rv]}static get pluginName(){return"List"}},class extends qt{static get requires(){return[Nv,Pv,zv,of]}static get pluginName(){return"MediaEmbed"}},Nm,class extends qt{static get pluginName(){return"PasteFromOffice"}static get requires(){return[jc]}init(){const l=this.editor,n=l.editing.view.document,e=[];e.push(new Kv(n)),e.push(new Yv(n)),l.plugins.get("ClipboardPipeline").on("inputTransformation",(t,o)=>{if(o._isTransformedWithPasteFromOffice)return;if(l.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const u=o.dataTransfer.getData("text/html"),i=e.find(l=>l.isActive(u));i&&(o._parsedData=function(l,n){const e=new DOMParser,t=function(l){return Qv(Qv(l)).replace(/([^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/ <\//g,"\xa0").replace(/ <\/o:p>/g,"\xa0").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)<")}(function(l){const n="",e=l.indexOf(n);if(e<0)return l;const t=l.indexOf("