ckeditor5-editor-classic-floating 40.1.0 → 40.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ckeditor5-editor-classic-floating.js +2 -2
- package/package.json +15 -15
- package/src/editor/ClassicFloatingEditor.js +1 -1
- package/src/editor/EditorConfig.d.ts +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.ts +1 -0
- package/src/ui/ClassicFloatingEditorUIView.d.ts +1 -1
- package/src/ui/ClassicFloatingEditorUIView.js +1 -1
- package/src/ui/panel/StickyPanelView.d.ts +1 -1
- package/src/ui/panel/StickyPanelView.js +2 -2
- package/build/editor-classic-floating.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md.
|
|
4
|
-
*/(()=>{var t={176:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(609),r=o.n(n)()((function(t){return t[1]}));r.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}",""]);const i=r},452:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(609),r=o.n(n)()((function(t){return t[1]}));r.push([t.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}",""]);const i=r},647:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(609),r=o.n(n)()((function(t){return t[1]}));r.push([t.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-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}: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-color-light-red:#fcc;--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)}",""]);const i=r},609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=t(e);return e[2]?"@media ".concat(e[2]," {").concat(o,"}"):o})).join("")},e.i=function(t,o,n){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(r[s]=!0)}for(var c=0;c<t.length;c++){var a=[].concat(t[c]);n&&r[a[0]]||(o&&(a[2]?a[2]="".concat(o," and ").concat(a[2]):a[2]=o),e.push(a))}},e}},62:(t,e,o)=>{"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var t={};return function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}t[e]=o}return t[e]}}(),s=[];function c(t){for(var e=-1,o=0;o<s.length;o++)if(s[o].identifier===t){e=o;break}return e}function a(t,e){for(var o={},n=[],r=0;r<t.length;r++){var i=t[r],a=e.base?i[0]+e.base:i[0],l=o[a]||0,u="".concat(a," ").concat(l);o[a]=l+1;var d=c(u),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(s[d].references++,s[d].updater(h)):s.push({identifier:u,updater:g(h,e),references:1}),n.push(u)}return n}function l(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var r=o.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var s=i(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function h(t,e,o,n){var r=o?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var i=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function f(t,e,o){var n=o.css,r=o.media,i=o.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var p=null,b=0;function g(t,e){var o,n,r;if(e.singleton){var i=b++;o=p||(p=l(e)),n=h.bind(null,o,i,!1),r=h.bind(null,o,i,!0)}else o=l(e),n=f.bind(null,o,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(o)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var o=a(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<o.length;n++){var r=c(o[n]);s[r].references--}for(var i=a(t,e),l=0;l<o.length;l++){var u=c(o[l]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}o=i}}}},704:(t,e,o)=>{t.exports=o(79)("./src/core.js")},492:(t,e,o)=>{t.exports=o(79)("./src/engine.js")},273:(t,e,o)=>{t.exports=o(79)("./src/ui.js")},209:(t,e,o)=>{t.exports=o(79)("./src/utils.js")},434:(t,e,o)=>{t.exports=o(79)("./src/watchdog.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function o(n){var r=e[n];if(void 0!==r)return r.exports;var i=e[n]={id:n,exports:{}};return t[n](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nc=void 0;var n={};(()=>{"use strict";o.r(n),o.d(n,{ClassicFloatingEditor:()=>br});var t=o(273),e=o(492),r=o(209);class i extends t.EditorUI{constructor(e,o){super(e),this.view=o,this._toolbarConfig=(0,t.normalizeToolbarConfig)(e.config.get("toolbar")),this._elementReplacer=new r.ElementReplacer,this.listenTo(e.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(t){const e=this.editor,o=this.view,n=e.editing.view,r=o.editable,i=n.document.getRoot();r.name=i.rootName,o.render();const s=r.element;this.setEditableElement(r.name,s),o.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(s),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(({top:t})=>t||0)),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,o=t.editing.view,n=o.document.getRoot(),r=t.sourceElement;let i;const s=t.config.get("placeholder");s&&(i="string"==typeof s?s:s[this.view.editable.name]),!i&&r&&"textarea"===r.tagName.toLowerCase()&&(i=r.getAttribute("placeholder")),i&&(n.placeholder=i),(0,e.enablePlaceholder)({view:o,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,o){const n=this.view.stickyPanel;if(n.isSticky){const t=new r.Rect(n.element).height;e.viewportOffset.top+=t}else{const t=()=>{this.editor.editing.view.scrollToTheSelection(o)};this.listenTo(n,"change:isSticky",t),setTimeout((()=>{this.stopListening(n,"change:isSticky",t)}),20)}}}const s=function(){try{return navigator.userAgent.toLowerCase()}catch(t){return""}}();a(s),c=s,c.indexOf("windows"),function(t){t.match(/gecko\/\d+/)}(s),function(t){t.indexOf(" applewebkit/")>-1&&t.indexOf("chrome")}(s),function(t){!!t.match(/iphone|ipad/i)||a(t)&&navigator.maxTouchPoints}(s),function(t){t.indexOf("android")}(s),function(t){t.indexOf("chrome/")>-1&&t.indexOf("edge/")}(s),function(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}}();var c;function a(t){return t.indexOf("macintosh")>-1}const l=function(){return function t(){t.called=!0}};class u{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=l(),this.off=l()}}const d=new Array(256).fill("").map(((t,e)=>("0"+e.toString(16)).slice(-2)));function h(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+d[t>>0&255]+d[t>>8&255]+d[t>>16&255]+d[t>>24&255]+d[e>>0&255]+d[e>>8&255]+d[e>>16&255]+d[e>>24&255]+d[o>>0&255]+d[o>>8&255]+d[o>>16&255]+d[o>>24&255]+d[n>>0&255]+d[n>>8&255]+d[n>>16&255]+d[n>>24&255]}const f={get(t="normal"){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function p(t,e){const o=f.get(e.priority);for(let n=0;n<t.length;n++)if(f.get(t[n].priority)<o)return void t.splice(n,0,e);t.push(e)}const b="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class g extends Error{constructor(t,e,o){super(function(t,e){const o=new WeakSet,n=(t,e)=>{if("object"==typeof e&&null!==e){if(o.has(e))return`[object ${e.constructor.name}]`;o.add(e)}return e},r=e?` ${JSON.stringify(e,n)}`:"",i=m(t);return t+r+i}(t,o)),this.name="CKEditorError",this.context=e,this.data=o}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const o=new g(t.message,e);throw o.stack=t.stack,o}}function m(t){return`\nRead more: ${b}#error-${t}`}const v="40.1.0";new Date(2023,10,15);if(globalThis.CKEDITOR_VERSION)throw new g("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=v;const k=Symbol("listeningTo"),_=Symbol("emitterId"),y=Symbol("delegations"),w=x(Object);function x(t){if(!t)return w;return class extends t{on(t,e,o){this.listenTo(this,t,e,o)}once(t,e,o){let n=!1;this.listenTo(this,t,((t,...o)=>{n||(n=!0,t.off(),e.call(this,t,...o))}),o)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,o,n={}){let r,i;this[k]||(this[k]={});const s=this[k];j(t)||E(t);const c=j(t);(r=s[c])||(r=s[c]={emitter:t,callbacks:{}}),(i=r.callbacks[e])||(i=r.callbacks[e]=[]),i.push(o),function(t,e,o,n,r){e._addEventListener?e._addEventListener(o,n,r):t._addEventListener.call(e,o,n,r)}(this,t,e,o,n)}stopListening(t,e,o){const n=this[k];let r=t&&j(t);const i=n&&r?n[r]:void 0,s=i&&e?i.callbacks[e]:void 0;if(!(!n||t&&!i||e&&!s))if(o){C(this,t,e,o);-1!==s.indexOf(o)&&(1===s.length?delete i.callbacks[e]:C(this,t,e,o))}else if(s){for(;o=s.pop();)C(this,t,e,o);delete i.callbacks[e]}else if(i){for(e in i.callbacks)this.stopListening(t,e);delete n[r]}else{for(r in n)this.stopListening(n[r].emitter);delete this[k]}}fire(t,...e){try{const o=t instanceof u?t:new u(this,t),n=o.name;let r=S(this,n);if(o.path.push(this),r){const t=[o,...e];r=Array.from(r);for(let e=0;e<r.length&&(r[e].callback.apply(this,t),o.off.called&&(delete o.off.called,this._removeEventListener(n,r[e].callback)),!o.stop.called);e++);}const i=this[y];if(i){const t=i.get(n),r=i.get("*");t&&A(t,o,e),r&&A(r,o,e)}return o.return}catch(t){g.rethrowUnexpectedError(t,this)}}delegate(...t){return{to:(e,o)=>{this[y]||(this[y]=new Map),t.forEach((t=>{const n=this[y].get(t);n?n.set(e,o):this[y].set(t,new Map([[e,o]]))}))}}}stopDelegating(t,e){if(this[y])if(t)if(e){const o=this[y].get(t);o&&o.delete(e)}else this[y].delete(t);else this[y].clear()}_addEventListener(t,e,o){!function(t,e){const o=T(t);if(o[e])return;let n=e,r=null;const i=[];for(;""!==n&&!o[n];)o[n]={callbacks:[],childEvents:[]},i.push(o[n]),r&&o[n].childEvents.push(r),r=n,n=n.substr(0,n.lastIndexOf(":"));if(""!==n){for(const t of i)t.callbacks=o[n].callbacks.slice();o[n].childEvents.push(r)}}(this,t);const n=O(this,t),r={callback:e,priority:f.get(o.priority)};for(const t of n)p(t,r)}_removeEventListener(t,e){const o=O(this,t);for(const t of o)for(let o=0;o<t.length;o++)t[o].callback==e&&(t.splice(o,1),o--)}}}function E(t,e){t[_]||(t[_]=e||h())}function j(t){return t[_]}function T(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function O(t,e){const o=T(t)[e];if(!o)return[];let n=[o.callbacks];for(let e=0;e<o.childEvents.length;e++){const r=O(t,o.childEvents[e]);n=n.concat(r)}return n}function S(t,e){let o;return t._events&&(o=t._events[e])&&o.callbacks.length?o.callbacks:e.indexOf(":")>-1?S(t,e.substr(0,e.lastIndexOf(":"))):null}function A(t,e,o){for(let[n,r]of t){r?"function"==typeof r&&(r=r(e.name)):r=e.name;const t=new u(e.source,r);t.path=[...e.path],n.fire(t,...o)}}function C(t,e,o,n){e._removeEventListener?e._removeEventListener(o,n):t._removeEventListener.call(e,o,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{x[t]=w.prototype[t]}));const I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},L=Symbol("observableProperties"),P=Symbol("boundObservables"),M=Symbol("boundProperties"),F=Symbol("decoratedMethods"),N=Symbol("decoratedOriginal"),R=B(x());function B(t){if(!t)return R;return class extends t{set(t,e){if(I(t))return void Object.keys(t).forEach((e=>{this.set(e,t[e])}),this);D(this);const o=this[L];if(t in this&&!o.has(t))throw new g("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>o.get(t),set(e){const n=o.get(t);let r=this.fire(`set:${t}`,t,e,n);void 0===r&&(r=e),n===r&&o.has(t)||(o.set(t,r),this.fire(`change:${t}`,t,r,n))}}),this[t]=e}bind(...t){if(!t.length||!U(t))throw new g("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new g("observable-bind-duplicate-properties",this);D(this);const e=this[M];t.forEach((t=>{if(e.has(t))throw new g("observable-bind-rebind",this)}));const o=new Map;return t.forEach((t=>{const n={property:t,to:[]};e.set(t,n),o.set(t,n)})),{to:z,toMany:V,_observable:this,_bindProperties:t,_to:[],_bindings:o}}unbind(...t){if(!this[L])return;const e=this[M],o=this[P];if(t.length){if(!U(t))throw new g("observable-unbind-wrong-properties",this);t.forEach((t=>{const n=e.get(t);n&&(n.to.forEach((([t,e])=>{const r=o.get(t),i=r[e];i.delete(n),i.size||delete r[e],Object.keys(r).length||(o.delete(t),this.stopListening(t,"change"))})),e.delete(t))}))}else o.forEach(((t,e)=>{this.stopListening(e,"change")})),o.clear(),e.clear()}decorate(t){D(this);const e=this[t];if(!e)throw new g("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,((t,o)=>{t.return=e.apply(this,o)})),this[t]=function(...e){return this.fire(t,e)},this[t][N]=e,this[F]||(this[F]=[]),this[F].push(t)}stopListening(t,e,o){if(!t&&this[F]){for(const t of this[F])this[t]=this[t][N];delete this[F]}super.stopListening(t,e,o)}}}function D(t){t[L]||(Object.defineProperty(t,L,{value:new Map}),Object.defineProperty(t,P,{value:new Map}),Object.defineProperty(t,M,{value:new Map}))}function z(...t){const e=function(...t){if(!t.length)throw new g("observable-bind-to-parse-error",null);const e={to:[]};let o;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach((t=>{if("string"==typeof t)o.properties.push(t);else{if("object"!=typeof t)throw new g("observable-bind-to-parse-error",null);o={observable:t,properties:[]},e.to.push(o)}})),e}(...t),o=Array.from(this._bindings.keys()),n=o.length;if(!e.callback&&e.to.length>1)throw new g("observable-bind-to-no-callback",this);if(n>1&&e.callback)throw new g("observable-bind-to-extra-callback",this);var r;e.to.forEach((t=>{if(t.properties.length&&t.properties.length!==n)throw new g("observable-bind-to-properties-length",this);t.properties.length||(t.properties=this._bindProperties)})),this._to=e.to,e.callback&&(this._bindings.get(o[0]).callback=e.callback),r=this._observable,this._to.forEach((t=>{const e=r[P];let o;e.get(t.observable)||r.listenTo(t.observable,"change",((n,i)=>{o=e.get(t.observable)[i],o&&o.forEach((t=>{W(r,t.property)}))}))})),function(t){let e;t._bindings.forEach(((o,n)=>{t._to.forEach((r=>{e=r.properties[o.callback?0:t._bindProperties.indexOf(n)],o.to.push([r.observable,e]),function(t,e,o,n){const r=t[P],i=r.get(o),s=i||{};s[n]||(s[n]=new Set);s[n].add(e),i||r.set(o,s)}(t._observable,o,r.observable,e)}))}))}(this),this._bindProperties.forEach((t=>{W(this._observable,t)}))}function V(t,e,o){if(this._bindings.size>1)throw new g("observable-bind-to-many-not-one-binding",this);this.to(...function(t,e){const o=t.map((t=>[t,e]));return Array.prototype.concat.apply([],o)}(t,e),o)}function U(t){return t.every((t=>"string"==typeof t))}function W(t,e){const o=t[M].get(e);let n;o.callback?n=o.callback.apply(t,o.to.map((t=>t[0][t[1]]))):(n=o.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=n:t.set(e,n)}function $(t){return!(!t||!t[Symbol.iterator])}function H(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}function K(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{B[t]=R.prototype[t]}));const G=Z(x());function Z(t){if(!t)return G;return class extends t{listenTo(t,e,o,n={}){if(H(t)||K(t)){const r={capture:!!n.useCapture,passive:!!n.usePassive},i=this._getProxyEmitter(t,r)||new q(t,r);this.listenTo(i,e,o,n)}else super.listenTo(t,e,o,n)}stopListening(t,e,o){if(H(t)||K(t)){const n=this._getAllProxyEmitters(t);for(const t of n)this.stopListening(t,e,o)}else super.stopListening(t,e,o)}_getProxyEmitter(t,e){return function(t,e){const o=t[k];return o&&o[e]?o[e].emitter:null}(this,Y(t,e))}_getAllProxyEmitters(t){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((e=>this._getProxyEmitter(t,e))).filter((t=>!!t))}}}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{Z[t]=G.prototype[t]}));class q extends(x()){constructor(t,e){super(),E(this,Y(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,o){this.attach(t),x().prototype._addEventListener.call(this,t,e,o)}_removeEventListener(t,e){x().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=e=>{this.fire(t,e)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function Y(t,e){let o=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=h())}(t);for(const t of Object.keys(e).sort())e[t]&&(o+="-"+t);return o}let X;try{X={window,document}}catch(t){X={window:{},document:{}}}const J=X;function Q(t){const e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}const tt=["top","right","bottom","left","width","height"];class et{constructor(t){const e=(o=t,"[object Range]"==Object.prototype.toString.apply(o));var o;if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),rt(t)||e)if(e){const e=et.getDomRangeRects(t);ot(this,et.getBoundingRect(e))}else ot(this,t.getBoundingClientRect());else if(K(t)){const{innerWidth:e,innerHeight:o}=t;ot(this,{top:0,right:e,bottom:o,left:0,width:e,height:o})}else ot(this,t)}clone(){return new et(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const t=new et(e);return t._source=this._source,t}}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(nt(t))return e;let o,n=t,r=t.parentNode||t.commonAncestorContainer;for(;r&&!nt(r);){const t="visible"===((i=r)instanceof HTMLElement?i.ownerDocument.defaultView.getComputedStyle(i).overflow:"visible");n instanceof HTMLElement&&"absolute"===it(n)&&(o=n);const s=it(r);if(t||o&&("relative"===s&&t||"relative"!==s)){n=r,r=r.parentNode;continue}const c=new et(r),a=e.getIntersection(c);if(!a)return null;a.getArea()<e.getArea()&&(e=a),n=r,r=r.parentNode}var i;return e}isEqual(t){for(const e of tt)if(this[e]!==t[e])return!1;return!0}contains(t){const e=this.getIntersection(t);return!(!e||!e.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:e}=J.window,o=this.clone().moveBy(t,e);if(rt(o._source)){const t=(n=o._source)&&n.parentNode?n.offsetParent===J.document.body?null:n.offsetParent:null;t&&function(t,e){const o=new et(e),n=Q(e);let r=0,i=0;r-=o.left,i-=o.top,r+=e.scrollLeft,i+=e.scrollTop,r-=n.left,i-=n.top,t.moveBy(r,i)}(o,t)}var n;return o}excludeScrollbarsAndBorders(){const t=this._source;let e,o,n;if(K(t))e=t.innerWidth-t.document.documentElement.clientWidth,o=t.innerHeight-t.document.documentElement.clientHeight,n=t.getComputedStyle(t.document.documentElement).direction;else{const r=Q(t);e=t.offsetWidth-t.clientWidth-r.left-r.right,o=t.offsetHeight-t.clientHeight-r.top-r.bottom,n=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===n?this.right-=e:this.left+=e,this.height-=o,this.bottom-=o,this}static getDomRangeRects(t){const e=[],o=Array.from(t.getClientRects());if(o.length)for(const t of o)e.push(new et(t));else{let o=t.startContainer;n=o,"[object Text]"==Object.prototype.toString.call(n)&&(o=o.parentNode);const r=new et(o.getBoundingClientRect());r.right=r.left,r.width=0,e.push(r)}var n;return e}static getBoundingRect(t){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let o=0;for(const n of t)o++,e.left=Math.min(e.left,n.left),e.top=Math.min(e.top,n.top),e.right=Math.max(e.right,n.right),e.bottom=Math.max(e.bottom,n.bottom);return 0==o?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new et(e))}}function ot(t,e){for(const o of tt)t[o]=e[o]}function nt(t){return!!rt(t)&&t===t.ownerDocument.body}function rt(t){return null!==t&&"object"==typeof t&&1===t.nodeType&&"function"==typeof t.getBoundingClientRect}function it(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).position:"static"}const st=class{constructor(t,e){st._observerInstance||st._createObserver(),this._element=t,this._callback=e,st._addElementCallback(t,e),st._observerInstance.observe(t)}get element(){return this._element}destroy(){st._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){st._elementCallbacks||(st._elementCallbacks=new Map);let o=st._elementCallbacks.get(t);o||(o=new Set,st._elementCallbacks.set(t,o)),o.add(e)}static _deleteElementCallback(t,e){const o=st._getElementCallbacks(t);o&&(o.delete(e),o.size||(st._elementCallbacks.delete(t),st._observerInstance.unobserve(t))),st._elementCallbacks&&!st._elementCallbacks.size&&(st._observerInstance=null,st._elementCallbacks=null)}static _getElementCallbacks(t){return st._elementCallbacks?st._elementCallbacks.get(t):null}static _createObserver(){st._observerInstance=new J.window.ResizeObserver((t=>{for(const e of t){const t=st._getElementCallbacks(e.target);if(t)for(const o of t)o(e)}}))}};let ct=st;ct._observerInstance=null,ct._elementCallbacks=null;Math.pow;const at=function(){const t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++){t[String.fromCharCode(e).toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;for(const e of"`-=[];',./\\")t[e]=e.charCodeAt(0);return t}();Object.fromEntries(Object.entries(at).map((([t,e])=>[e,t.charAt(0).toUpperCase()+t.slice(1)])));J.window.CKEDITOR_TRANSLATIONS||(J.window.CKEDITOR_TRANSLATIONS={});class lt extends(x()){constructor(t={},e={}){super();const o=$(t);if(o||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],o)for(const e of t)this._items.push(e),this._itemMap.set(this._getItemIdBeforeAdding(e),e)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}addMany(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new g("collection-add-item-invalid-index",this);let o=0;for(const n of t){const t=this._getItemIdBeforeAdding(n),r=e+o;this._items.splice(r,0,n),this._itemMap.set(t,n),this.fire("add",n,r),o++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new g("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return e&&this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,e?this._items.indexOf(e):-1}remove(t){const[e,o]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:o}),e}map(t,e){return this._items.map(t,e)}forEach(t,e){this._items.forEach(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new g("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:t=>{this._setUpBindToBinding((e=>new t(e)))},using:t=>{"function"==typeof t?this._setUpBindToBinding(t):this._setUpBindToBinding((e=>e[t]))}}}_setUpBindToBinding(t){const e=this._bindToCollection,o=(o,n,r)=>{const i=e._bindToCollection==this,s=e._bindToInternalToExternalMap.get(n);if(i&&s)this._bindToExternalToInternalMap.set(n,s),this._bindToInternalToExternalMap.set(s,n);else{const o=t(n);if(!o)return void this._skippedIndexesFromExternal.push(r);let i=r;for(const t of this._skippedIndexesFromExternal)r>t&&i--;for(const t of e._skippedIndexesFromExternal)i>=t&&i++;this._bindToExternalToInternalMap.set(n,o),this._bindToInternalToExternalMap.set(o,n),this.add(o,i);for(let t=0;t<e._skippedIndexesFromExternal.length;t++)i<=e._skippedIndexesFromExternal[t]&&e._skippedIndexesFromExternal[t]++}};for(const t of e)o(0,t,e.getIndex(t));this.listenTo(e,"add",o),this.listenTo(e,"remove",((t,e,o)=>{const n=this._bindToExternalToInternalMap.get(e);n&&this.remove(n),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((t,e)=>(o<e&&t.push(e-1),o>e&&t.push(e),t)),[])}))}_getItemIdBeforeAdding(t){const e=this._idProperty;let o;if(e in t){if(o=t[e],"string"!=typeof o)throw new g("collection-add-invalid-id",this);if(this.get(o))throw new g("collection-add-item-already-exists",this)}else t[e]=o=h();return o}_remove(t){let e,o,n,r=!1;const i=this._idProperty;if("string"==typeof t?(o=t,n=this._itemMap.get(o),r=!n,n&&(e=this._items.indexOf(n))):"number"==typeof t?(e=t,n=this._items[e],r=!n,n&&(o=n[i])):(n=t,o=n[i],e=this._items.indexOf(n),r=-1==e||!this._itemMap.get(o)),r)throw new g("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(o);const s=this._bindToInternalToExternalMap.get(n);return this._bindToInternalToExternalMap.delete(n),this._bindToExternalToInternalMap.delete(s),this.fire("remove",n,e),[n,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Z(B());function ut(t){return Array.isArray(t)?t:[t]}!function(){const t=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],e=new RegExp("\\p{Regional_Indicator}{2}","u").source,o="(?:"+t.map((t=>t.source)).join("|")+")";new RegExp(`${e}|${o}(?:${o})*`,"ug")}();class dt extends lt{constructor(t=[]){super(t,{idProperty:"viewUid"}),this.on("add",((t,e,o)=>{this._renderViewIntoCollectionParent(e,o)})),this.on("remove",((t,e)=>{e.element&&this._parentElement&&e.element.remove()})),this._parentElement=null}destroy(){this.map((t=>t.destroy()))}setParent(t){this._parentElement=t;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...t){if(!t.length||!t.every((t=>"string"==typeof t)))throw new g("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const o of this)for(const n of t)o.delegate(n).to(e);this.on("add",((o,n)=>{for(const o of t)n.delegate(o).to(e)})),this.on("remove",((o,n)=>{for(const o of t)n.stopDelegating(o,e)}))}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}remove(t){return super.remove(t)}}const ht=function(){this.__data__=[],this.size=0};const ft=function(t,e){return t===e||t!=t&&e!=e};const pt=function(t,e){for(var o=t.length;o--;)if(ft(t[o][0],e))return o;return-1};var bt=Array.prototype.splice;const gt=function(t){var e=this.__data__,o=pt(e,t);return!(o<0)&&(o==e.length-1?e.pop():bt.call(e,o,1),--this.size,!0)};const mt=function(t){var e=this.__data__,o=pt(e,t);return o<0?void 0:e[o][1]};const vt=function(t){return pt(this.__data__,t)>-1};const kt=function(t,e){var o=this.__data__,n=pt(o,t);return n<0?(++this.size,o.push([t,e])):o[n][1]=e,this};function _t(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}_t.prototype.clear=ht,_t.prototype.delete=gt,_t.prototype.get=mt,_t.prototype.has=vt,_t.prototype.set=kt;const yt=_t;const wt=function(){this.__data__=new yt,this.size=0};const xt=function(t){var e=this.__data__,o=e.delete(t);return this.size=e.size,o};const Et=function(t){return this.__data__.get(t)};const jt=function(t){return this.__data__.has(t)};const Tt="object"==typeof global&&global&&global.Object===Object&&global;var Ot="object"==typeof self&&self&&self.Object===Object&&self;const St=Tt||Ot||Function("return this")();const At=St.Symbol;var Ct=Object.prototype,It=Ct.hasOwnProperty,Lt=Ct.toString,Pt=At?At.toStringTag:void 0;const Mt=function(t){var e=It.call(t,Pt),o=t[Pt];try{t[Pt]=void 0;var n=!0}catch(t){}var r=Lt.call(t);return n&&(e?t[Pt]=o:delete t[Pt]),r};var Ft=Object.prototype.toString;const Nt=function(t){return Ft.call(t)};var Rt=At?At.toStringTag:void 0;const Bt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Rt&&Rt in Object(t)?Mt(t):Nt(t)};const Dt=function(t){if(!I(t))return!1;var e=Bt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const zt=St["__core-js_shared__"];var Vt=function(){var t=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const Ut=function(t){return!!Vt&&Vt in t};var Wt=Function.prototype.toString;const $t=function(t){if(null!=t){try{return Wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ht=/^\[object .+?Constructor\]$/,Kt=Function.prototype,Gt=Object.prototype,Zt=Kt.toString,qt=Gt.hasOwnProperty,Yt=RegExp("^"+Zt.call(qt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Xt=function(t){return!(!I(t)||Ut(t))&&(Dt(t)?Yt:Ht).test($t(t))};const Jt=function(t,e){return null==t?void 0:t[e]};const Qt=function(t,e){var o=Jt(t,e);return Xt(o)?o:void 0};const te=Qt(St,"Map");const ee=Qt(Object,"create");const oe=function(){this.__data__=ee?ee(null):{},this.size=0};const ne=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var re=Object.prototype.hasOwnProperty;const ie=function(t){var e=this.__data__;if(ee){var o=e[t];return"__lodash_hash_undefined__"===o?void 0:o}return re.call(e,t)?e[t]:void 0};var se=Object.prototype.hasOwnProperty;const ce=function(t){var e=this.__data__;return ee?void 0!==e[t]:se.call(e,t)};const ae=function(t,e){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=ee&&void 0===e?"__lodash_hash_undefined__":e,this};function le(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}le.prototype.clear=oe,le.prototype.delete=ne,le.prototype.get=ie,le.prototype.has=ce,le.prototype.set=ae;const ue=le;const de=function(){this.size=0,this.__data__={hash:new ue,map:new(te||yt),string:new ue}};const he=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const fe=function(t,e){var o=t.__data__;return he(e)?o["string"==typeof e?"string":"hash"]:o.map};const pe=function(t){var e=fe(this,t).delete(t);return this.size-=e?1:0,e};const be=function(t){return fe(this,t).get(t)};const ge=function(t){return fe(this,t).has(t)};const me=function(t,e){var o=fe(this,t),n=o.size;return o.set(t,e),this.size+=o.size==n?0:1,this};function ve(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}ve.prototype.clear=de,ve.prototype.delete=pe,ve.prototype.get=be,ve.prototype.has=ge,ve.prototype.set=me;const ke=ve;const _e=function(t,e){var o=this.__data__;if(o instanceof yt){var n=o.__data__;if(!te||n.length<199)return n.push([t,e]),this.size=++o.size,this;o=this.__data__=new ke(n)}return o.set(t,e),this.size=o.size,this};function ye(t){var e=this.__data__=new yt(t);this.size=e.size}ye.prototype.clear=wt,ye.prototype.delete=xt,ye.prototype.get=Et,ye.prototype.has=jt,ye.prototype.set=_e;const we=ye;const xe=function(t,e){for(var o=-1,n=null==t?0:t.length;++o<n&&!1!==e(t[o],o,t););return t};const Ee=function(){try{var t=Qt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const je=function(t,e,o){"__proto__"==e&&Ee?Ee(t,e,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[e]=o};var Te=Object.prototype.hasOwnProperty;const Oe=function(t,e,o){var n=t[e];Te.call(t,e)&&ft(n,o)&&(void 0!==o||e in t)||je(t,e,o)};const Se=function(t,e,o,n){var r=!o;o||(o={});for(var i=-1,s=e.length;++i<s;){var c=e[i],a=n?n(o[c],t[c],c,o,t):void 0;void 0===a&&(a=t[c]),r?je(o,c,a):Oe(o,c,a)}return o};const Ae=function(t,e){for(var o=-1,n=Array(t);++o<t;)n[o]=e(o);return n};const Ce=function(t){return null!=t&&"object"==typeof t};const Ie=function(t){return Ce(t)&&"[object Arguments]"==Bt(t)};var Le=Object.prototype,Pe=Le.hasOwnProperty,Me=Le.propertyIsEnumerable;const Fe=Ie(function(){return arguments}())?Ie:function(t){return Ce(t)&&Pe.call(t,"callee")&&!Me.call(t,"callee")};const Ne=Array.isArray;const Re=function(){return!1};var Be="object"==typeof exports&&exports&&!exports.nodeType&&exports,De=Be&&"object"==typeof module&&module&&!module.nodeType&&module,ze=De&&De.exports===Be?St.Buffer:void 0;const Ve=(ze?ze.isBuffer:void 0)||Re;var Ue=/^(?:0|[1-9]\d*)$/;const We=function(t,e){var o=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==o||"symbol"!=o&&Ue.test(t))&&t>-1&&t%1==0&&t<e};const $e=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var He={};He["[object Float32Array]"]=He["[object Float64Array]"]=He["[object Int8Array]"]=He["[object Int16Array]"]=He["[object Int32Array]"]=He["[object Uint8Array]"]=He["[object Uint8ClampedArray]"]=He["[object Uint16Array]"]=He["[object Uint32Array]"]=!0,He["[object Arguments]"]=He["[object Array]"]=He["[object ArrayBuffer]"]=He["[object Boolean]"]=He["[object DataView]"]=He["[object Date]"]=He["[object Error]"]=He["[object Function]"]=He["[object Map]"]=He["[object Number]"]=He["[object Object]"]=He["[object RegExp]"]=He["[object Set]"]=He["[object String]"]=He["[object WeakMap]"]=!1;const Ke=function(t){return Ce(t)&&$e(t.length)&&!!He[Bt(t)]};const Ge=function(t){return function(e){return t(e)}};var Ze="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Ze&&"object"==typeof module&&module&&!module.nodeType&&module,Ye=qe&&qe.exports===Ze&&Tt.process;const Xe=function(){try{var t=qe&&qe.require&&qe.require("util").types;return t||Ye&&Ye.binding&&Ye.binding("util")}catch(t){}}();var Je=Xe&&Xe.isTypedArray;const Qe=Je?Ge(Je):Ke;var to=Object.prototype.hasOwnProperty;const eo=function(t,e){var o=Ne(t),n=!o&&Fe(t),r=!o&&!n&&Ve(t),i=!o&&!n&&!r&&Qe(t),s=o||n||r||i,c=s?Ae(t.length,String):[],a=c.length;for(var l in t)!e&&!to.call(t,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||We(l,a))||c.push(l);return c};var oo=Object.prototype;const no=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||oo)};const ro=function(t,e){return function(o){return t(e(o))}};const io=ro(Object.keys,Object);var so=Object.prototype.hasOwnProperty;const co=function(t){if(!no(t))return io(t);var e=[];for(var o in Object(t))so.call(t,o)&&"constructor"!=o&&e.push(o);return e};const ao=function(t){return null!=t&&$e(t.length)&&!Dt(t)};const lo=function(t){return ao(t)?eo(t):co(t)};const uo=function(t,e){return t&&Se(e,lo(e),t)};const ho=function(t){var e=[];if(null!=t)for(var o in Object(t))e.push(o);return e};var fo=Object.prototype.hasOwnProperty;const po=function(t){if(!I(t))return ho(t);var e=no(t),o=[];for(var n in t)("constructor"!=n||!e&&fo.call(t,n))&&o.push(n);return o};const bo=function(t){return ao(t)?eo(t,!0):po(t)};const go=function(t,e){return t&&Se(e,bo(e),t)};var mo="object"==typeof exports&&exports&&!exports.nodeType&&exports,vo=mo&&"object"==typeof module&&module&&!module.nodeType&&module,ko=vo&&vo.exports===mo?St.Buffer:void 0,_o=ko?ko.allocUnsafe:void 0;const yo=function(t,e){if(e)return t.slice();var o=t.length,n=_o?_o(o):new t.constructor(o);return t.copy(n),n};const wo=function(t,e){var o=-1,n=t.length;for(e||(e=Array(n));++o<n;)e[o]=t[o];return e};const xo=function(t,e){for(var o=-1,n=null==t?0:t.length,r=0,i=[];++o<n;){var s=t[o];e(s,o,t)&&(i[r++]=s)}return i};const Eo=function(){return[]};var jo=Object.prototype.propertyIsEnumerable,To=Object.getOwnPropertySymbols;const Oo=To?function(t){return null==t?[]:(t=Object(t),xo(To(t),(function(e){return jo.call(t,e)})))}:Eo;const So=function(t,e){return Se(t,Oo(t),e)};const Ao=function(t,e){for(var o=-1,n=e.length,r=t.length;++o<n;)t[r+o]=e[o];return t};const Co=ro(Object.getPrototypeOf,Object);const Io=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ao(e,Oo(t)),t=Co(t);return e}:Eo;const Lo=function(t,e){return Se(t,Io(t),e)};const Po=function(t,e,o){var n=e(t);return Ne(t)?n:Ao(n,o(t))};const Mo=function(t){return Po(t,lo,Oo)};const Fo=function(t){return Po(t,bo,Io)};const No=Qt(St,"DataView");const Ro=Qt(St,"Promise");const Bo=Qt(St,"Set");const Do=Qt(St,"WeakMap");var zo="[object Map]",Vo="[object Promise]",Uo="[object Set]",Wo="[object WeakMap]",$o="[object DataView]",Ho=$t(No),Ko=$t(te),Go=$t(Ro),Zo=$t(Bo),qo=$t(Do),Yo=Bt;(No&&Yo(new No(new ArrayBuffer(1)))!=$o||te&&Yo(new te)!=zo||Ro&&Yo(Ro.resolve())!=Vo||Bo&&Yo(new Bo)!=Uo||Do&&Yo(new Do)!=Wo)&&(Yo=function(t){var e=Bt(t),o="[object Object]"==e?t.constructor:void 0,n=o?$t(o):"";if(n)switch(n){case Ho:return $o;case Ko:return zo;case Go:return Vo;case Zo:return Uo;case qo:return Wo}return e});const Xo=Yo;var Jo=Object.prototype.hasOwnProperty;const Qo=function(t){var e=t.length,o=new t.constructor(e);return e&&"string"==typeof t[0]&&Jo.call(t,"index")&&(o.index=t.index,o.input=t.input),o};const tn=St.Uint8Array;const en=function(t){var e=new t.constructor(t.byteLength);return new tn(e).set(new tn(t)),e};const on=function(t,e){var o=e?en(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)};var nn=/\w*$/;const rn=function(t){var e=new t.constructor(t.source,nn.exec(t));return e.lastIndex=t.lastIndex,e};var sn=At?At.prototype:void 0,cn=sn?sn.valueOf:void 0;const an=function(t){return cn?Object(cn.call(t)):{}};const ln=function(t,e){var o=e?en(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)};const un=function(t,e,o){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return en(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return on(t,o);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ln(t,o);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return rn(t);case"[object Symbol]":return an(t)}};var dn=Object.create;const hn=function(){function t(){}return function(e){if(!I(e))return{};if(dn)return dn(e);t.prototype=e;var o=new t;return t.prototype=void 0,o}}();const fn=function(t){return"function"!=typeof t.constructor||no(t)?{}:hn(Co(t))};const pn=function(t){return Ce(t)&&"[object Map]"==Xo(t)};var bn=Xe&&Xe.isMap;const gn=bn?Ge(bn):pn;const mn=function(t){return Ce(t)&&"[object Set]"==Xo(t)};var vn=Xe&&Xe.isSet;const kn=vn?Ge(vn):mn;var _n="[object Arguments]",yn="[object Function]",wn="[object Object]",xn={};xn[_n]=xn["[object Array]"]=xn["[object ArrayBuffer]"]=xn["[object DataView]"]=xn["[object Boolean]"]=xn["[object Date]"]=xn["[object Float32Array]"]=xn["[object Float64Array]"]=xn["[object Int8Array]"]=xn["[object Int16Array]"]=xn["[object Int32Array]"]=xn["[object Map]"]=xn["[object Number]"]=xn[wn]=xn["[object RegExp]"]=xn["[object Set]"]=xn["[object String]"]=xn["[object Symbol]"]=xn["[object Uint8Array]"]=xn["[object Uint8ClampedArray]"]=xn["[object Uint16Array]"]=xn["[object Uint32Array]"]=!0,xn["[object Error]"]=xn[yn]=xn["[object WeakMap]"]=!1;const En=function t(e,o,n,r,i,s){var c,a=1&o,l=2&o,u=4&o;if(n&&(c=i?n(e,r,i,s):n(e)),void 0!==c)return c;if(!I(e))return e;var d=Ne(e);if(d){if(c=Qo(e),!a)return wo(e,c)}else{var h=Xo(e),f=h==yn||"[object GeneratorFunction]"==h;if(Ve(e))return yo(e,a);if(h==wn||h==_n||f&&!i){if(c=l||f?{}:fn(e),!a)return l?Lo(e,go(c,e)):So(e,uo(c,e))}else{if(!xn[h])return i?e:{};c=un(e,h,a)}}s||(s=new we);var p=s.get(e);if(p)return p;s.set(e,c),kn(e)?e.forEach((function(r){c.add(t(r,o,n,r,e,s))})):gn(e)&&e.forEach((function(r,i){c.set(i,t(r,o,n,i,e,s))}));var b=d?void 0:(u?l?Fo:Mo:l?bo:lo)(e);return xe(b||e,(function(r,i){b&&(r=e[i=r]),Oe(c,i,t(r,o,n,i,e,s))})),c};const jn=function(t,e){return En(t,5,e="function"==typeof e?e:void 0)};class Tn extends(x()){constructor(t){super(),Object.assign(this,Nn(Fn(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new g("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const o of e.children)Un(o)?yield o:Wn(o)&&(yield*t(o))}(this)}static bind(t,e){return{to:(o,n)=>new Sn({eventNameOrFunction:o,attribute:o,observable:t,emitter:e,callback:n}),if:(o,n,r)=>new An({observable:t,emitter:e,attribute:o,valueIfTrue:n,callback:r})}}static extend(t,e){if(t._isRendered)throw new g("template-extend-render",[this,t]);zn(t,Nn(Fn(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new g("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Cn(this.text)?this._bindToObservable({schema:this.text,updater:Ln(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,o=t.revertData;for(const n in this.attributes){const r=e.getAttribute(n),i=this.attributes[n];o&&(o.attributes[n]=r);const s=Hn(i)?i[0].ns:null;if(Cn(i)){const c=Hn(i)?i[0].value:i;o&&Kn(n)&&c.unshift(r),this._bindToObservable({schema:c,updater:Pn(e,n,s),data:t})}else if("style"==n&&"string"!=typeof i[0])this._renderStyleAttribute(i[0],t);else{o&&r&&Kn(n)&&i.unshift(r);const t=i.map((t=>t&&t.value||t)).reduce(((t,e)=>t.concat(e)),[]).reduce(Bn,"");Vn(t)||e.setAttributeNS(s,n,t)}}}_renderStyleAttribute(t,e){const o=e.node;for(const n in t){const r=t[n];Cn(r)?this._bindToObservable({schema:[r],updater:Mn(o,n),data:e}):o.style[n]=r}}_renderElementChildren(t){const e=t.node,o=t.intoFragment?document.createDocumentFragment():e,n=t.isApplying;let r=0;for(const i of this.children)if($n(i)){if(!n){i.setParent(e);for(const t of i)o.appendChild(t.element)}}else if(Un(i))n||(i.isRendered||i.render(),o.appendChild(i.element));else if(H(i))o.appendChild(i);else if(n){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),i._renderNode({intoFragment:!1,node:o.childNodes[r++],isApplying:!0,revertData:e})}else o.appendChild(i.render());t.intoFragment&&e.appendChild(o)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const o=this.eventListeners[e].map((o=>{const[n,r]=e.split("@");return o.activateDomEventListener(n,r,t)}));t.revertData&&t.revertData.bindings.push(o)}}_bindToObservable({schema:t,updater:e,data:o}){const n=o.revertData;In(t,e,o);const r=t.filter((t=>!Vn(t))).filter((t=>t.observable)).map((n=>n.activateAttributeListener(t,e,o)));n&&n.bindings.push(r)}_revertTemplateFromNode(t,e){for(const t of e.bindings)for(const e of t)e();if(e.text)return void(t.textContent=e.text);const o=t;for(const t in e.attributes){const n=e.attributes[t];null===n?o.removeAttribute(t):o.setAttribute(t,n)}for(let t=0;t<e.children.length;++t)this._revertTemplateFromNode(o.childNodes[t],e.children[t])}}class On{constructor(t){this.attribute=t.attribute,this.observable=t.observable,this.emitter=t.emitter,this.callback=t.callback}getValue(t){const e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}activateAttributeListener(t,e,o){const n=()=>In(t,e,o);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,n),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,n)}}}class Sn extends On{constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,o){const n=(t,o)=>{e&&!o.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(o):this.observable.fire(this.eventNameOrFunction,o))};return this.emitter.listenTo(o.node,t,n),()=>{this.emitter.stopListening(o.node,t,n)}}}class An extends On{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!Vn(super.getValue(t))&&(this.valueIfTrue||!0)}}function Cn(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(Cn):t instanceof On)}function In(t,e,{node:o}){const n=function(t,e){return t.map((t=>t instanceof On?t.getValue(e):t))}(t,o);let r;r=1==t.length&&t[0]instanceof An?n[0]:n.reduce(Bn,""),Vn(r)?e.remove():e.set(r)}function Ln(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}function Pn(t,e,o){return{set(n){t.setAttributeNS(o,e,n)},remove(){t.removeAttributeNS(o,e)}}}function Mn(t,e){return{set(o){t.style[e]=o},remove(){t.style[e]=null}}}function Fn(t){return jn(t,(t=>{if(t&&(t instanceof On||Wn(t)||Un(t)||$n(t)))return t}))}function Nn(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=ut(t.text)}(t),t.on&&(t.eventListeners=function(t){for(const e in t)Rn(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(const e in t)t[e].value&&(t[e].value=ut(t[e].value)),Rn(t,e)}(t.attributes);const e=[];if(t.children)if($n(t.children))e.push(t.children);else for(const o of t.children)Wn(o)||Un(o)||H(o)?e.push(o):e.push(new Tn(o));t.children=e}return t}function Rn(t,e){t[e]=ut(t[e])}function Bn(t,e){return Vn(e)?t:Vn(t)?e:`${t} ${e}`}function Dn(t,e){for(const o in e)t[o]?t[o].push(...e[o]):t[o]=e[o]}function zn(t,e){if(e.attributes&&(t.attributes||(t.attributes={}),Dn(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),Dn(t.eventListeners,e.eventListeners)),e.text&&t.text.push(...e.text),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new g("ui-template-extend-children-mismatch",t);let o=0;for(const n of e.children)zn(t.children[o++],n)}}function Vn(t){return!t&&0!==t}function Un(t){return t instanceof Xn}function Wn(t){return t instanceof Tn}function $n(t){return t instanceof dt}function Hn(t){return I(t[0])&&t[0].ns}function Kn(t){return"class"==t||"style"==t}var Gn=o(62),Zn=o.n(Gn),qn=o(647),Yn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Zn()(qn.Z,Yn);qn.Z.locals;class Xn extends(Z(B())){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new lt,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((e,o)=>{o.locale=t,o.t=t&&t.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Tn.bind(this,this)}createCollection(t){const e=new dt(t);return this._viewCollections.add(e),e}registerChild(t){$(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){$(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new Tn(t)}extendTemplate(t){Tn.extend(this.template,t)}render(){if(this.isRendered)throw new g("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((t=>t.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}var Jn=o(452),Qn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Zn()(Jn.Z,Qn);Jn.Z.locals;const tr=(er="px",t=>t+er);var er;class or extends Xn{constructor(t,e,o=!1){super(t);const n=this.bindTemplate;this.containerElement=e||J.window,this.panelAbsolute=o,this.set("position",null),this.set("panel_height",0),this.set("panel_width",0),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("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Tn({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:n.to("isSticky",(t=>t?"block":"none")),height:n.to("panel_height",(t=>tr(t))),width:n.to("panel_width",(t=>tr(t)))}}}).render(),this._contentPanel=new Tn({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",n.if("isSticky","ck-sticky-panel__content_sticky"),n.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{position:n.to("position",(t=>t)),width:n.to("isSticky",(t=>t?tr(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:n.to("_stickyTopOffset",(t=>t?tr(t):t)),bottom:n.to("_stickyBottomOffset",(t=>t?tr(t):t)),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(this.containerElement,"scroll",(()=>{this.checkIfShouldBeSticky()}),{useCapture:!0}),this.listenTo(this,"change:isActive",(()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();this.panel_height=this._contentPanelRect.height,this.panel_width=this._contentPanelRect.width;const t=new et(this.limiterElement);let e=t.getVisible();if(e){const o=new et(this.containerElement);t.top-=o.top,t.bottom-=o.top,o.top+=this.viewportTopOffset,o.height-=this.viewportTopOffset,e=e.getIntersection(o)}if(e&&t.top<e.top){const o=e.top;if(o+this._contentPanelRect.height+this.limiterBottomOffset>e.bottom){const o=Math.max(t.bottom-e.bottom,0)+this.limiterBottomOffset;t.bottom-o>t.top+this._contentPanelRect.height?this.panelAbsolute||this._stickToBottomOfLimiter(o):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<t.height?this.panelAbsolute?t.top<0&&-t.top<t.height-this.limiterBottomOffset?this._stickToTopOfAncestors(-t.top,"absolute"):this._unstick():this._stickToTopOfAncestors(o,null):this._unstick()}else this._unstick()}_stickToTopOfAncestors(t,e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyBottomOffset=null,this._stickyTopOffset=t,this._marginLeft=tr(-J.window.scrollX),this.position=e}_stickToBottomOfLimiter(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=t,this._marginLeft=tr(-J.window.scrollX),this.position=null}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null,this.position=null}get _contentPanelRect(){return new et(this._contentPanel)}}var nr=o(176),rr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Zn()(nr.Z,rr);nr.Z.locals;class ir extends t.BoxedEditorUIView{constructor(e,o,n={}){super(e),this.stickyPanel=new or(e,n.containerElement,n.panelAbsolute),this.toolbar=new t.ToolbarView(e,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new t.InlineEditableUIView(e,o)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}var sr=o(704),cr=o(434),ar=Function.prototype,lr=Object.prototype,ur=ar.toString,dr=lr.hasOwnProperty,hr=ur.call(Object);const fr=function(t){if(!Ce(t)||"[object Object]"!=Bt(t))return!1;var e=Co(t);if(null===e)return!0;var o=dr.call(e,"constructor")&&e.constructor;return"function"==typeof o&&o instanceof o&&ur.call(o)==hr};const pr=function(t){return Ce(t)&&1===t.nodeType&&!fr(t)};class br extends((0,sr.DataApiMixin)((0,sr.ElementApiMixin)(sr.Editor))){constructor(t,e={}){if(!gr(t)&&void 0!==e.initialData)throw new r.CKEditorError("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return gr(t)?(0,r.getDataFromElement)(t):t}(t)),gr(t)&&(this.sourceElement=t),this.model.document.createRoot();const o=!this.config.get("toolbar.shouldNotGroupWhenFull"),n=new ir(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:o,containerElement:e.containerElement,panelAbsolute:e.panelAbsolute});this.ui=new i(this,n),(0,sr.attachToForm)(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise((o=>{const n=new this(t,e);o(n.initPlugins().then((()=>n.ui.init(gr(t)?t:null))).then((()=>n.data.init(n.config.get("initialData")))).then((()=>n.fire("ready"))).then((()=>n)))}))}}function gr(t){return pr(t)}br.Context=sr.Context,br.EditorWatchdog=cr.EditorWatchdog,br.ContextWatchdog=cr.ContextWatchdog})(),(window.CKEditor5=window.CKEditor5||{}).ckeditor5EditorClassicFloating=n})();
|
|
4
|
+
*/(()=>{var t={472:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(609),r=o.n(n)()((function(t){return t[1]}));r.push([t.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-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}: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-color-light-red:#fcc;--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)}",""]);const i=r},936:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(609),r=o.n(n)()((function(t){return t[1]}));r.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}",""]);const i=r},777:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(609),r=o.n(n)()((function(t){return t[1]}));r.push([t.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}",""]);const i=r},609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=t(e);return e[2]?"@media ".concat(e[2]," {").concat(o,"}"):o})).join("")},e.i=function(t,o,n){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(r[s]=!0)}for(var c=0;c<t.length;c++){var a=[].concat(t[c]);n&&r[a[0]]||(o&&(a[2]?a[2]="".concat(o," and ").concat(a[2]):a[2]=o),e.push(a))}},e}},62:(t,e,o)=>{"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var t={};return function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}t[e]=o}return t[e]}}(),s=[];function c(t){for(var e=-1,o=0;o<s.length;o++)if(s[o].identifier===t){e=o;break}return e}function a(t,e){for(var o={},n=[],r=0;r<t.length;r++){var i=t[r],a=e.base?i[0]+e.base:i[0],l=o[a]||0,u="".concat(a," ").concat(l);o[a]=l+1;var d=c(u),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(s[d].references++,s[d].updater(h)):s.push({identifier:u,updater:g(h,e),references:1}),n.push(u)}return n}function l(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var r=o.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var s=i(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function h(t,e,o,n){var r=o?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var i=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function f(t,e,o){var n=o.css,r=o.media,i=o.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var p=null,b=0;function g(t,e){var o,n,r;if(e.singleton){var i=b++;o=p||(p=l(e)),n=h.bind(null,o,i,!1),r=h.bind(null,o,i,!0)}else o=l(e),n=f.bind(null,o,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(o)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var o=a(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<o.length;n++){var r=c(o[n]);s[r].references--}for(var i=a(t,e),l=0;l<o.length;l++){var u=c(o[l]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}o=i}}}},704:(t,e,o)=>{t.exports=o(79)("./src/core.js")},492:(t,e,o)=>{t.exports=o(79)("./src/engine.js")},273:(t,e,o)=>{t.exports=o(79)("./src/ui.js")},209:(t,e,o)=>{t.exports=o(79)("./src/utils.js")},434:(t,e,o)=>{t.exports=o(79)("./src/watchdog.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function o(n){var r=e[n];if(void 0!==r)return r.exports;var i=e[n]={id:n,exports:{}};return t[n](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nc=void 0;var n={};(()=>{"use strict";o.r(n),o.d(n,{ClassicFloatingEditor:()=>Or});var t=o(273),e=o(492),r=o(209);class i extends t.EditorUI{constructor(e,o){super(e),this.view=o,this._toolbarConfig=(0,t.normalizeToolbarConfig)(e.config.get("toolbar")),this._elementReplacer=new r.ElementReplacer,this.listenTo(e.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(t){const e=this.editor,o=this.view,n=e.editing.view,r=o.editable,i=n.document.getRoot();r.name=i.rootName,o.render();const s=r.element;this.setEditableElement(r.name,s),o.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(s),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(({top:t})=>t||0)),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,o=t.editing.view,n=o.document.getRoot(),r=t.sourceElement;let i;const s=t.config.get("placeholder");s&&(i="string"==typeof s?s:s[this.view.editable.name]),!i&&r&&"textarea"===r.tagName.toLowerCase()&&(i=r.getAttribute("placeholder")),i&&(n.placeholder=i),(0,e.enablePlaceholder)({view:o,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,o){const n=this.view.stickyPanel;if(n.isSticky){const t=new r.Rect(n.element).height;e.viewportOffset.top+=t}else{const t=()=>{this.editor.editing.view.scrollToTheSelection(o)};this.listenTo(n,"change:isSticky",t),setTimeout((()=>{this.stopListening(n,"change:isSticky",t)}),20)}}}const s=function(){try{return navigator.userAgent.toLowerCase()}catch(t){return""}}();c(s),function(t){t.indexOf("windows")}(s),function(t){t.match(/gecko\/\d+/)}(s),function(t){t.indexOf(" applewebkit/")>-1&&t.indexOf("chrome")}(s),function(t){!!t.match(/iphone|ipad/i)||c(t)&&navigator.maxTouchPoints}(s),function(t){t.indexOf("android")}(s),function(t){t.indexOf("chrome/")>-1&&t.indexOf("edge/")}(s),function(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}}();function c(t){return t.indexOf("macintosh")>-1}const a=function(){return function t(){t.called=!0}};class l{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=a(),this.off=a()}}const u=new Array(256).fill("").map(((t,e)=>("0"+e.toString(16)).slice(-2)));function d(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+u[t>>0&255]+u[t>>8&255]+u[t>>16&255]+u[t>>24&255]+u[e>>0&255]+u[e>>8&255]+u[e>>16&255]+u[e>>24&255]+u[o>>0&255]+u[o>>8&255]+u[o>>16&255]+u[o>>24&255]+u[n>>0&255]+u[n>>8&255]+u[n>>16&255]+u[n>>24&255]}const h={get(t="normal"){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function f(t,e){const o=h.get(e.priority);for(let n=0;n<t.length;n++)if(h.get(t[n].priority)<o)return void t.splice(n,0,e);t.push(e)}const p="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class b extends Error{constructor(t,e,o){super(function(t,e){const o=new WeakSet,n=(t,e)=>{if("object"==typeof e&&null!==e){if(o.has(e))return`[object ${e.constructor.name}]`;o.add(e)}return e},r=e?` ${JSON.stringify(e,n)}`:"",i=g(t);return t+r+i}(t,o)),this.name="CKEditorError",this.context=e,this.data=o}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const o=new b(t.message,e);throw o.stack=t.stack,o}}function g(t){return`\nRead more: ${p}#error-${t}`}const m="40.2.0";new Date(2023,11,12);if(globalThis.CKEDITOR_VERSION)throw new b("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=m;const v=Symbol("listeningTo"),k=Symbol("emitterId"),_=Symbol("delegations"),y=w(Object);function w(t){if(!t)return y;return class extends t{on(t,e,o){this.listenTo(this,t,e,o)}once(t,e,o){let n=!1;this.listenTo(this,t,((t,...o)=>{n||(n=!0,t.off(),e.call(this,t,...o))}),o)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,o,n={}){let r,i;this[v]||(this[v]={});const s=this[v];j(t)||x(t);const c=j(t);(r=s[c])||(r=s[c]={emitter:t,callbacks:{}}),(i=r.callbacks[e])||(i=r.callbacks[e]=[]),i.push(o),function(t,e,o,n,r){e._addEventListener?e._addEventListener(o,n,r):t._addEventListener.call(e,o,n,r)}(this,t,e,o,n)}stopListening(t,e,o){const n=this[v];let r=t&&j(t);const i=n&&r?n[r]:void 0,s=i&&e?i.callbacks[e]:void 0;if(!(!n||t&&!i||e&&!s))if(o){A(this,t,e,o);-1!==s.indexOf(o)&&(1===s.length?delete i.callbacks[e]:A(this,t,e,o))}else if(s){for(;o=s.pop();)A(this,t,e,o);delete i.callbacks[e]}else if(i){for(e in i.callbacks)this.stopListening(t,e);delete n[r]}else{for(r in n)this.stopListening(n[r].emitter);delete this[v]}}fire(t,...e){try{const o=t instanceof l?t:new l(this,t),n=o.name;let r=O(this,n);if(o.path.push(this),r){const t=[o,...e];r=Array.from(r);for(let e=0;e<r.length&&(r[e].callback.apply(this,t),o.off.called&&(delete o.off.called,this._removeEventListener(n,r[e].callback)),!o.stop.called);e++);}const i=this[_];if(i){const t=i.get(n),r=i.get("*");t&&S(t,o,e),r&&S(r,o,e)}return o.return}catch(t){b.rethrowUnexpectedError(t,this)}}delegate(...t){return{to:(e,o)=>{this[_]||(this[_]=new Map),t.forEach((t=>{const n=this[_].get(t);n?n.set(e,o):this[_].set(t,new Map([[e,o]]))}))}}}stopDelegating(t,e){if(this[_])if(t)if(e){const o=this[_].get(t);o&&o.delete(e)}else this[_].delete(t);else this[_].clear()}_addEventListener(t,e,o){!function(t,e){const o=E(t);if(o[e])return;let n=e,r=null;const i=[];for(;""!==n&&!o[n];)o[n]={callbacks:[],childEvents:[]},i.push(o[n]),r&&o[n].childEvents.push(r),r=n,n=n.substr(0,n.lastIndexOf(":"));if(""!==n){for(const t of i)t.callbacks=o[n].callbacks.slice();o[n].childEvents.push(r)}}(this,t);const n=T(this,t),r={callback:e,priority:h.get(o.priority)};for(const t of n)f(t,r)}_removeEventListener(t,e){const o=T(this,t);for(const t of o)for(let o=0;o<t.length;o++)t[o].callback==e&&(t.splice(o,1),o--)}}}function x(t,e){t[k]||(t[k]=e||d())}function j(t){return t[k]}function E(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function T(t,e){const o=E(t)[e];if(!o)return[];let n=[o.callbacks];for(let e=0;e<o.childEvents.length;e++){const r=T(t,o.childEvents[e]);n=n.concat(r)}return n}function O(t,e){let o;return t._events&&(o=t._events[e])&&o.callbacks.length?o.callbacks:e.indexOf(":")>-1?O(t,e.substr(0,e.lastIndexOf(":"))):null}function S(t,e,o){for(let[n,r]of t){r?"function"==typeof r&&(r=r(e.name)):r=e.name;const t=new l(e.source,r);t.path=[...e.path],n.fire(t,...o)}}function A(t,e,o,n){e._removeEventListener?e._removeEventListener(o,n):t._removeEventListener.call(e,o,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{w[t]=y.prototype[t]}));const C=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},I=Symbol("observableProperties"),L=Symbol("boundObservables"),P=Symbol("boundProperties"),M=Symbol("decoratedMethods"),F=Symbol("decoratedOriginal"),N=B(w());function B(t){if(!t)return N;return class extends t{set(t,e){if(C(t))return void Object.keys(t).forEach((e=>{this.set(e,t[e])}),this);D(this);const o=this[I];if(t in this&&!o.has(t))throw new b("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>o.get(t),set(e){const n=o.get(t);let r=this.fire(`set:${t}`,t,e,n);void 0===r&&(r=e),n===r&&o.has(t)||(o.set(t,r),this.fire(`change:${t}`,t,r,n))}}),this[t]=e}bind(...t){if(!t.length||!V(t))throw new b("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new b("observable-bind-duplicate-properties",this);D(this);const e=this[P];t.forEach((t=>{if(e.has(t))throw new b("observable-bind-rebind",this)}));const o=new Map;return t.forEach((t=>{const n={property:t,to:[]};e.set(t,n),o.set(t,n)})),{to:R,toMany:z,_observable:this,_bindProperties:t,_to:[],_bindings:o}}unbind(...t){if(!this[I])return;const e=this[P],o=this[L];if(t.length){if(!V(t))throw new b("observable-unbind-wrong-properties",this);t.forEach((t=>{const n=e.get(t);n&&(n.to.forEach((([t,e])=>{const r=o.get(t),i=r[e];i.delete(n),i.size||delete r[e],Object.keys(r).length||(o.delete(t),this.stopListening(t,"change"))})),e.delete(t))}))}else o.forEach(((t,e)=>{this.stopListening(e,"change")})),o.clear(),e.clear()}decorate(t){D(this);const e=this[t];if(!e)throw new b("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,((t,o)=>{t.return=e.apply(this,o)})),this[t]=function(...e){return this.fire(t,e)},this[t][F]=e,this[M]||(this[M]=[]),this[M].push(t)}stopListening(t,e,o){if(!t&&this[M]){for(const t of this[M])this[t]=this[t][F];delete this[M]}super.stopListening(t,e,o)}}}function D(t){t[I]||(Object.defineProperty(t,I,{value:new Map}),Object.defineProperty(t,L,{value:new Map}),Object.defineProperty(t,P,{value:new Map}))}function R(...t){const e=function(...t){if(!t.length)throw new b("observable-bind-to-parse-error",null);const e={to:[]};let o;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach((t=>{if("string"==typeof t)o.properties.push(t);else{if("object"!=typeof t)throw new b("observable-bind-to-parse-error",null);o={observable:t,properties:[]},e.to.push(o)}})),e}(...t),o=Array.from(this._bindings.keys()),n=o.length;if(!e.callback&&e.to.length>1)throw new b("observable-bind-to-no-callback",this);if(n>1&&e.callback)throw new b("observable-bind-to-extra-callback",this);var r;e.to.forEach((t=>{if(t.properties.length&&t.properties.length!==n)throw new b("observable-bind-to-properties-length",this);t.properties.length||(t.properties=this._bindProperties)})),this._to=e.to,e.callback&&(this._bindings.get(o[0]).callback=e.callback),r=this._observable,this._to.forEach((t=>{const e=r[L];let o;e.get(t.observable)||r.listenTo(t.observable,"change",((n,i)=>{o=e.get(t.observable)[i],o&&o.forEach((t=>{U(r,t.property)}))}))})),function(t){let e;t._bindings.forEach(((o,n)=>{t._to.forEach((r=>{e=r.properties[o.callback?0:t._bindProperties.indexOf(n)],o.to.push([r.observable,e]),function(t,e,o,n){const r=t[L],i=r.get(o),s=i||{};s[n]||(s[n]=new Set);s[n].add(e),i||r.set(o,s)}(t._observable,o,r.observable,e)}))}))}(this),this._bindProperties.forEach((t=>{U(this._observable,t)}))}function z(t,e,o){if(this._bindings.size>1)throw new b("observable-bind-to-many-not-one-binding",this);this.to(...function(t,e){const o=t.map((t=>[t,e]));return Array.prototype.concat.apply([],o)}(t,e),o)}function V(t){return t.every((t=>"string"==typeof t))}function U(t,e){const o=t[P].get(e);let n;o.callback?n=o.callback.apply(t,o.to.map((t=>t[0][t[1]]))):(n=o.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=n:t.set(e,n)}function W(t){return!(!t||!t[Symbol.iterator])}function $(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}function H(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{B[t]=N.prototype[t]}));const K=G(w());function G(t){if(!t)return K;return class extends t{listenTo(t,e,o,n={}){if($(t)||H(t)){const r={capture:!!n.useCapture,passive:!!n.usePassive},i=this._getProxyEmitter(t,r)||new Z(t,r);this.listenTo(i,e,o,n)}else super.listenTo(t,e,o,n)}stopListening(t,e,o){if($(t)||H(t)){const n=this._getAllProxyEmitters(t);for(const t of n)this.stopListening(t,e,o)}else super.stopListening(t,e,o)}_getProxyEmitter(t,e){return function(t,e){const o=t[v];return o&&o[e]?o[e].emitter:null}(this,q(t,e))}_getAllProxyEmitters(t){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((e=>this._getProxyEmitter(t,e))).filter((t=>!!t))}}}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{G[t]=K.prototype[t]}));class Z extends(w()){constructor(t,e){super(),x(this,q(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,o){this.attach(t),w().prototype._addEventListener.call(this,t,e,o)}_removeEventListener(t,e){w().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=e=>{this.fire(t,e)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function q(t,e){let o=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=d())}(t);for(const t of Object.keys(e).sort())e[t]&&(o+="-"+t);return o}let Y;try{Y={window,document}}catch(t){Y={window:{},document:{}}}const X=Y;function J(t){const e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}const Q=["top","right","bottom","left","width","height"];class tt{constructor(t){const e=(o=t,"[object Range]"==Object.prototype.toString.apply(o));var o;if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),nt(t)||e)if(e){const e=tt.getDomRangeRects(t);et(this,tt.getBoundingRect(e))}else et(this,t.getBoundingClientRect());else if(H(t)){const{innerWidth:e,innerHeight:o}=t;et(this,{top:0,right:e,bottom:o,left:0,width:e,height:o})}else et(this,t)}clone(){return new tt(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const t=new tt(e);return t._source=this._source,t}}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(ot(t))return e;let o,n=t,r=t.parentNode||t.commonAncestorContainer;for(;r&&!ot(r);){const t="visible"===((i=r)instanceof HTMLElement?i.ownerDocument.defaultView.getComputedStyle(i).overflow:"visible");n instanceof HTMLElement&&"absolute"===rt(n)&&(o=n);const s=rt(r);if(t||o&&("relative"===s&&t||"relative"!==s)){n=r,r=r.parentNode;continue}const c=new tt(r),a=e.getIntersection(c);if(!a)return null;a.getArea()<e.getArea()&&(e=a),n=r,r=r.parentNode}var i;return e}isEqual(t){for(const e of Q)if(this[e]!==t[e])return!1;return!0}contains(t){const e=this.getIntersection(t);return!(!e||!e.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:e}=X.window,o=this.clone().moveBy(t,e);if(nt(o._source)){const t=(n=o._source)&&n.parentNode?n.offsetParent===X.document.body?null:n.offsetParent:null;t&&function(t,e){const o=new tt(e),n=J(e);let r=0,i=0;r-=o.left,i-=o.top,r+=e.scrollLeft,i+=e.scrollTop,r-=n.left,i-=n.top,t.moveBy(r,i)}(o,t)}var n;return o}excludeScrollbarsAndBorders(){const t=this._source;let e,o,n;if(H(t))e=t.innerWidth-t.document.documentElement.clientWidth,o=t.innerHeight-t.document.documentElement.clientHeight,n=t.getComputedStyle(t.document.documentElement).direction;else{const r=J(t);e=t.offsetWidth-t.clientWidth-r.left-r.right,o=t.offsetHeight-t.clientHeight-r.top-r.bottom,n=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===n?this.right-=e:this.left+=e,this.height-=o,this.bottom-=o,this}static getDomRangeRects(t){const e=[],o=Array.from(t.getClientRects());if(o.length)for(const t of o)e.push(new tt(t));else{let o=t.startContainer;n=o,"[object Text]"==Object.prototype.toString.call(n)&&(o=o.parentNode);const r=new tt(o.getBoundingClientRect());r.right=r.left,r.width=0,e.push(r)}var n;return e}static getBoundingRect(t){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let o=0;for(const n of t)o++,e.left=Math.min(e.left,n.left),e.top=Math.min(e.top,n.top),e.right=Math.max(e.right,n.right),e.bottom=Math.max(e.bottom,n.bottom);return 0==o?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new tt(e))}}function et(t,e){for(const o of Q)t[o]=e[o]}function ot(t){return!!nt(t)&&t===t.ownerDocument.body}function nt(t){return null!==t&&"object"==typeof t&&1===t.nodeType&&"function"==typeof t.getBoundingClientRect}function rt(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).position:"static"}class it{constructor(t,e){it._observerInstance||it._createObserver(),this._element=t,this._callback=e,it._addElementCallback(t,e),it._observerInstance.observe(t)}get element(){return this._element}destroy(){it._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){it._elementCallbacks||(it._elementCallbacks=new Map);let o=it._elementCallbacks.get(t);o||(o=new Set,it._elementCallbacks.set(t,o)),o.add(e)}static _deleteElementCallback(t,e){const o=it._getElementCallbacks(t);o&&(o.delete(e),o.size||(it._elementCallbacks.delete(t),it._observerInstance.unobserve(t))),it._elementCallbacks&&!it._elementCallbacks.size&&(it._observerInstance=null,it._elementCallbacks=null)}static _getElementCallbacks(t){return it._elementCallbacks?it._elementCallbacks.get(t):null}static _createObserver(){it._observerInstance=new X.window.ResizeObserver((t=>{for(const e of t){const t=it._getElementCallbacks(e.target);if(t)for(const o of t)o(e)}}))}}it._observerInstance=null,it._elementCallbacks=null;const st=function(){const t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++){t[String.fromCharCode(e).toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;for(const e of"`-=[];',./\\")t[e]=e.charCodeAt(0);return t}();Object.fromEntries(Object.entries(st).map((([t,e])=>[e,t.charAt(0).toUpperCase()+t.slice(1)])));X.window.CKEDITOR_TRANSLATIONS||(X.window.CKEDITOR_TRANSLATIONS={});class ct extends(w()){constructor(t={},e={}){super();const o=W(t);if(o||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],o)for(const e of t)this._items.push(e),this._itemMap.set(this._getItemIdBeforeAdding(e),e)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}addMany(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new b("collection-add-item-invalid-index",this);let o=0;for(const n of t){const t=this._getItemIdBeforeAdding(n),r=e+o;this._items.splice(r,0,n),this._itemMap.set(t,n),this.fire("add",n,r),o++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new b("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return e&&this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,e?this._items.indexOf(e):-1}remove(t){const[e,o]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:o}),e}map(t,e){return this._items.map(t,e)}forEach(t,e){this._items.forEach(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new b("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:t=>{this._setUpBindToBinding((e=>new t(e)))},using:t=>{"function"==typeof t?this._setUpBindToBinding(t):this._setUpBindToBinding((e=>e[t]))}}}_setUpBindToBinding(t){const e=this._bindToCollection,o=(o,n,r)=>{const i=e._bindToCollection==this,s=e._bindToInternalToExternalMap.get(n);if(i&&s)this._bindToExternalToInternalMap.set(n,s),this._bindToInternalToExternalMap.set(s,n);else{const o=t(n);if(!o)return void this._skippedIndexesFromExternal.push(r);let i=r;for(const t of this._skippedIndexesFromExternal)r>t&&i--;for(const t of e._skippedIndexesFromExternal)i>=t&&i++;this._bindToExternalToInternalMap.set(n,o),this._bindToInternalToExternalMap.set(o,n),this.add(o,i);for(let t=0;t<e._skippedIndexesFromExternal.length;t++)i<=e._skippedIndexesFromExternal[t]&&e._skippedIndexesFromExternal[t]++}};for(const t of e)o(0,t,e.getIndex(t));this.listenTo(e,"add",o),this.listenTo(e,"remove",((t,e,o)=>{const n=this._bindToExternalToInternalMap.get(e);n&&this.remove(n),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((t,e)=>(o<e&&t.push(e-1),o>e&&t.push(e),t)),[])}))}_getItemIdBeforeAdding(t){const e=this._idProperty;let o;if(e in t){if(o=t[e],"string"!=typeof o)throw new b("collection-add-invalid-id",this);if(this.get(o))throw new b("collection-add-item-already-exists",this)}else t[e]=o=d();return o}_remove(t){let e,o,n,r=!1;const i=this._idProperty;if("string"==typeof t?(o=t,n=this._itemMap.get(o),r=!n,n&&(e=this._items.indexOf(n))):"number"==typeof t?(e=t,n=this._items[e],r=!n,n&&(o=n[i])):(n=t,o=n[i],e=this._items.indexOf(n),r=-1==e||!this._itemMap.get(o)),r)throw new b("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(o);const s=this._bindToInternalToExternalMap.get(n);return this._bindToInternalToExternalMap.delete(n),this._bindToExternalToInternalMap.delete(s),this.fire("remove",n,e),[n,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}G(B());function at(t){return Array.isArray(t)?t:[t]}!function(){const t=/\p{Regional_Indicator}{2}/u.source,e="(?:"+[/\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((t=>t.source)).join("|")+")";new RegExp(`${t}|${e}(?:${e})*`,"ug")}();class lt extends ct{constructor(t=[]){super(t,{idProperty:"viewUid"}),this.on("add",((t,e,o)=>{this._renderViewIntoCollectionParent(e,o)})),this.on("remove",((t,e)=>{e.element&&this._parentElement&&e.element.remove()})),this._parentElement=null}destroy(){this.map((t=>t.destroy()))}setParent(t){this._parentElement=t;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...t){if(!t.length||!t.every((t=>"string"==typeof t)))throw new b("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const o of this)for(const n of t)o.delegate(n).to(e);this.on("add",((o,n)=>{for(const o of t)n.delegate(o).to(e)})),this.on("remove",((o,n)=>{for(const o of t)n.stopDelegating(o,e)}))}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}remove(t){return super.remove(t)}}const ut=function(){this.__data__=[],this.size=0};const dt=function(t,e){return t===e||t!=t&&e!=e};const ht=function(t,e){for(var o=t.length;o--;)if(dt(t[o][0],e))return o;return-1};var ft=Array.prototype.splice;const pt=function(t){var e=this.__data__,o=ht(e,t);return!(o<0)&&(o==e.length-1?e.pop():ft.call(e,o,1),--this.size,!0)};const bt=function(t){var e=this.__data__,o=ht(e,t);return o<0?void 0:e[o][1]};const gt=function(t){return ht(this.__data__,t)>-1};const mt=function(t,e){var o=this.__data__,n=ht(o,t);return n<0?(++this.size,o.push([t,e])):o[n][1]=e,this};function vt(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}vt.prototype.clear=ut,vt.prototype.delete=pt,vt.prototype.get=bt,vt.prototype.has=gt,vt.prototype.set=mt;const kt=vt;const _t=function(){this.__data__=new kt,this.size=0};const yt=function(t){var e=this.__data__,o=e.delete(t);return this.size=e.size,o};const wt=function(t){return this.__data__.get(t)};const xt=function(t){return this.__data__.has(t)};const jt="object"==typeof global&&global&&global.Object===Object&&global;var Et="object"==typeof self&&self&&self.Object===Object&&self;const Tt=jt||Et||Function("return this")();const Ot=Tt.Symbol;var St=Object.prototype,At=St.hasOwnProperty,Ct=St.toString,It=Ot?Ot.toStringTag:void 0;const Lt=function(t){var e=At.call(t,It),o=t[It];try{t[It]=void 0;var n=!0}catch(t){}var r=Ct.call(t);return n&&(e?t[It]=o:delete t[It]),r};var Pt=Object.prototype.toString;const Mt=function(t){return Pt.call(t)};var Ft=Ot?Ot.toStringTag:void 0;const Nt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ft&&Ft in Object(t)?Lt(t):Mt(t)};const Bt=function(t){if(!C(t))return!1;var e=Nt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const Dt=Tt["__core-js_shared__"];var Rt=function(){var t=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const zt=function(t){return!!Rt&&Rt in t};var Vt=Function.prototype.toString;const Ut=function(t){if(null!=t){try{return Vt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Wt=/^\[object .+?Constructor\]$/,$t=Function.prototype,Ht=Object.prototype,Kt=$t.toString,Gt=Ht.hasOwnProperty,Zt=RegExp("^"+Kt.call(Gt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const qt=function(t){return!(!C(t)||zt(t))&&(Bt(t)?Zt:Wt).test(Ut(t))};const Yt=function(t,e){return null==t?void 0:t[e]};const Xt=function(t,e){var o=Yt(t,e);return qt(o)?o:void 0};const Jt=Xt(Tt,"Map");const Qt=Xt(Object,"create");const te=function(){this.__data__=Qt?Qt(null):{},this.size=0};const ee=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var oe=Object.prototype.hasOwnProperty;const ne=function(t){var e=this.__data__;if(Qt){var o=e[t];return"__lodash_hash_undefined__"===o?void 0:o}return oe.call(e,t)?e[t]:void 0};var re=Object.prototype.hasOwnProperty;const ie=function(t){var e=this.__data__;return Qt?void 0!==e[t]:re.call(e,t)};const se=function(t,e){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=Qt&&void 0===e?"__lodash_hash_undefined__":e,this};function ce(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}ce.prototype.clear=te,ce.prototype.delete=ee,ce.prototype.get=ne,ce.prototype.has=ie,ce.prototype.set=se;const ae=ce;const le=function(){this.size=0,this.__data__={hash:new ae,map:new(Jt||kt),string:new ae}};const ue=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const de=function(t,e){var o=t.__data__;return ue(e)?o["string"==typeof e?"string":"hash"]:o.map};const he=function(t){var e=de(this,t).delete(t);return this.size-=e?1:0,e};const fe=function(t){return de(this,t).get(t)};const pe=function(t){return de(this,t).has(t)};const be=function(t,e){var o=de(this,t),n=o.size;return o.set(t,e),this.size+=o.size==n?0:1,this};function ge(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}ge.prototype.clear=le,ge.prototype.delete=he,ge.prototype.get=fe,ge.prototype.has=pe,ge.prototype.set=be;const me=ge;const ve=function(t,e){var o=this.__data__;if(o instanceof kt){var n=o.__data__;if(!Jt||n.length<199)return n.push([t,e]),this.size=++o.size,this;o=this.__data__=new me(n)}return o.set(t,e),this.size=o.size,this};function ke(t){var e=this.__data__=new kt(t);this.size=e.size}ke.prototype.clear=_t,ke.prototype.delete=yt,ke.prototype.get=wt,ke.prototype.has=xt,ke.prototype.set=ve;const _e=ke;const ye=function(t,e){for(var o=-1,n=null==t?0:t.length;++o<n&&!1!==e(t[o],o,t););return t};const we=function(){try{var t=Xt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const xe=function(t,e,o){"__proto__"==e&&we?we(t,e,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[e]=o};var je=Object.prototype.hasOwnProperty;const Ee=function(t,e,o){var n=t[e];je.call(t,e)&&dt(n,o)&&(void 0!==o||e in t)||xe(t,e,o)};const Te=function(t,e,o,n){var r=!o;o||(o={});for(var i=-1,s=e.length;++i<s;){var c=e[i],a=n?n(o[c],t[c],c,o,t):void 0;void 0===a&&(a=t[c]),r?xe(o,c,a):Ee(o,c,a)}return o};const Oe=function(t,e){for(var o=-1,n=Array(t);++o<t;)n[o]=e(o);return n};const Se=function(t){return null!=t&&"object"==typeof t};const Ae=function(t){return Se(t)&&"[object Arguments]"==Nt(t)};var Ce=Object.prototype,Ie=Ce.hasOwnProperty,Le=Ce.propertyIsEnumerable;const Pe=Ae(function(){return arguments}())?Ae:function(t){return Se(t)&&Ie.call(t,"callee")&&!Le.call(t,"callee")};const Me=Array.isArray;const Fe=function(){return!1};var Ne="object"==typeof exports&&exports&&!exports.nodeType&&exports,Be=Ne&&"object"==typeof module&&module&&!module.nodeType&&module,De=Be&&Be.exports===Ne?Tt.Buffer:void 0;const Re=(De?De.isBuffer:void 0)||Fe;var ze=/^(?:0|[1-9]\d*)$/;const Ve=function(t,e){var o=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==o||"symbol"!=o&&ze.test(t))&&t>-1&&t%1==0&&t<e};const Ue=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;const $e=function(t){return Se(t)&&Ue(t.length)&&!!We[Nt(t)]};const He=function(t){return function(e){return t(e)}};var Ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ge=Ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ze=Ge&&Ge.exports===Ke&&jt.process;const qe=function(){try{var t=Ge&&Ge.require&&Ge.require("util").types;return t||Ze&&Ze.binding&&Ze.binding("util")}catch(t){}}();var Ye=qe&&qe.isTypedArray;const Xe=Ye?He(Ye):$e;var Je=Object.prototype.hasOwnProperty;const Qe=function(t,e){var o=Me(t),n=!o&&Pe(t),r=!o&&!n&&Re(t),i=!o&&!n&&!r&&Xe(t),s=o||n||r||i,c=s?Oe(t.length,String):[],a=c.length;for(var l in t)!e&&!Je.call(t,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ve(l,a))||c.push(l);return c};var to=Object.prototype;const eo=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||to)};const oo=function(t,e){return function(o){return t(e(o))}};const no=oo(Object.keys,Object);var ro=Object.prototype.hasOwnProperty;const io=function(t){if(!eo(t))return no(t);var e=[];for(var o in Object(t))ro.call(t,o)&&"constructor"!=o&&e.push(o);return e};const so=function(t){return null!=t&&Ue(t.length)&&!Bt(t)};const co=function(t){return so(t)?Qe(t):io(t)};const ao=function(t,e){return t&&Te(e,co(e),t)};const lo=function(t){var e=[];if(null!=t)for(var o in Object(t))e.push(o);return e};var uo=Object.prototype.hasOwnProperty;const ho=function(t){if(!C(t))return lo(t);var e=eo(t),o=[];for(var n in t)("constructor"!=n||!e&&uo.call(t,n))&&o.push(n);return o};const fo=function(t){return so(t)?Qe(t,!0):ho(t)};const po=function(t,e){return t&&Te(e,fo(e),t)};var bo="object"==typeof exports&&exports&&!exports.nodeType&&exports,go=bo&&"object"==typeof module&&module&&!module.nodeType&&module,mo=go&&go.exports===bo?Tt.Buffer:void 0,vo=mo?mo.allocUnsafe:void 0;const ko=function(t,e){if(e)return t.slice();var o=t.length,n=vo?vo(o):new t.constructor(o);return t.copy(n),n};const _o=function(t,e){var o=-1,n=t.length;for(e||(e=Array(n));++o<n;)e[o]=t[o];return e};const yo=function(t,e){for(var o=-1,n=null==t?0:t.length,r=0,i=[];++o<n;){var s=t[o];e(s,o,t)&&(i[r++]=s)}return i};const wo=function(){return[]};var xo=Object.prototype.propertyIsEnumerable,jo=Object.getOwnPropertySymbols;const Eo=jo?function(t){return null==t?[]:(t=Object(t),yo(jo(t),(function(e){return xo.call(t,e)})))}:wo;const To=function(t,e){return Te(t,Eo(t),e)};const Oo=function(t,e){for(var o=-1,n=e.length,r=t.length;++o<n;)t[r+o]=e[o];return t};const So=oo(Object.getPrototypeOf,Object);const Ao=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Oo(e,Eo(t)),t=So(t);return e}:wo;const Co=function(t,e){return Te(t,Ao(t),e)};const Io=function(t,e,o){var n=e(t);return Me(t)?n:Oo(n,o(t))};const Lo=function(t){return Io(t,co,Eo)};const Po=function(t){return Io(t,fo,Ao)};const Mo=Xt(Tt,"DataView");const Fo=Xt(Tt,"Promise");const No=Xt(Tt,"Set");const Bo=Xt(Tt,"WeakMap");var Do="[object Map]",Ro="[object Promise]",zo="[object Set]",Vo="[object WeakMap]",Uo="[object DataView]",Wo=Ut(Mo),$o=Ut(Jt),Ho=Ut(Fo),Ko=Ut(No),Go=Ut(Bo),Zo=Nt;(Mo&&Zo(new Mo(new ArrayBuffer(1)))!=Uo||Jt&&Zo(new Jt)!=Do||Fo&&Zo(Fo.resolve())!=Ro||No&&Zo(new No)!=zo||Bo&&Zo(new Bo)!=Vo)&&(Zo=function(t){var e=Nt(t),o="[object Object]"==e?t.constructor:void 0,n=o?Ut(o):"";if(n)switch(n){case Wo:return Uo;case $o:return Do;case Ho:return Ro;case Ko:return zo;case Go:return Vo}return e});const qo=Zo;var Yo=Object.prototype.hasOwnProperty;const Xo=function(t){var e=t.length,o=new t.constructor(e);return e&&"string"==typeof t[0]&&Yo.call(t,"index")&&(o.index=t.index,o.input=t.input),o};const Jo=Tt.Uint8Array;const Qo=function(t){var e=new t.constructor(t.byteLength);return new Jo(e).set(new Jo(t)),e};const tn=function(t,e){var o=e?Qo(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)};var en=/\w*$/;const on=function(t){var e=new t.constructor(t.source,en.exec(t));return e.lastIndex=t.lastIndex,e};var nn=Ot?Ot.prototype:void 0,rn=nn?nn.valueOf:void 0;const sn=function(t){return rn?Object(rn.call(t)):{}};const cn=function(t,e){var o=e?Qo(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)};const an=function(t,e,o){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return Qo(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return tn(t,o);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return cn(t,o);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return on(t);case"[object Symbol]":return sn(t)}};var ln=Object.create;const un=function(){function t(){}return function(e){if(!C(e))return{};if(ln)return ln(e);t.prototype=e;var o=new t;return t.prototype=void 0,o}}();const dn=function(t){return"function"!=typeof t.constructor||eo(t)?{}:un(So(t))};const hn=function(t){return Se(t)&&"[object Map]"==qo(t)};var fn=qe&&qe.isMap;const pn=fn?He(fn):hn;const bn=function(t){return Se(t)&&"[object Set]"==qo(t)};var gn=qe&&qe.isSet;const mn=gn?He(gn):bn;var vn="[object Arguments]",kn="[object Function]",_n="[object Object]",yn={};yn[vn]=yn["[object Array]"]=yn["[object ArrayBuffer]"]=yn["[object DataView]"]=yn["[object Boolean]"]=yn["[object Date]"]=yn["[object Float32Array]"]=yn["[object Float64Array]"]=yn["[object Int8Array]"]=yn["[object Int16Array]"]=yn["[object Int32Array]"]=yn["[object Map]"]=yn["[object Number]"]=yn[_n]=yn["[object RegExp]"]=yn["[object Set]"]=yn["[object String]"]=yn["[object Symbol]"]=yn["[object Uint8Array]"]=yn["[object Uint8ClampedArray]"]=yn["[object Uint16Array]"]=yn["[object Uint32Array]"]=!0,yn["[object Error]"]=yn[kn]=yn["[object WeakMap]"]=!1;const wn=function t(e,o,n,r,i,s){var c,a=1&o,l=2&o,u=4&o;if(n&&(c=i?n(e,r,i,s):n(e)),void 0!==c)return c;if(!C(e))return e;var d=Me(e);if(d){if(c=Xo(e),!a)return _o(e,c)}else{var h=qo(e),f=h==kn||"[object GeneratorFunction]"==h;if(Re(e))return ko(e,a);if(h==_n||h==vn||f&&!i){if(c=l||f?{}:dn(e),!a)return l?Co(e,po(c,e)):To(e,ao(c,e))}else{if(!yn[h])return i?e:{};c=an(e,h,a)}}s||(s=new _e);var p=s.get(e);if(p)return p;s.set(e,c),mn(e)?e.forEach((function(r){c.add(t(r,o,n,r,e,s))})):pn(e)&&e.forEach((function(r,i){c.set(i,t(r,o,n,i,e,s))}));var b=d?void 0:(u?l?Po:Lo:l?fo:co)(e);return ye(b||e,(function(r,i){b&&(r=e[i=r]),Ee(c,i,t(r,o,n,i,e,s))})),c};const xn=function(t,e){return wn(t,5,e="function"==typeof e?e:void 0)};class jn extends(w()){constructor(t){super(),Object.assign(this,Mn(Pn(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new b("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const o of e.children)zn(o)?yield o:Vn(o)&&(yield*t(o))}(this)}static bind(t,e){return{to:(o,n)=>new Tn({eventNameOrFunction:o,attribute:o,observable:t,emitter:e,callback:n}),if:(o,n,r)=>new On({observable:t,emitter:e,attribute:o,valueIfTrue:n,callback:r})}}static extend(t,e){if(t._isRendered)throw new b("template-extend-render",[this,t]);Dn(t,Mn(Pn(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new b("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Sn(this.text)?this._bindToObservable({schema:this.text,updater:Cn(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,o=t.revertData;for(const n in this.attributes){const r=e.getAttribute(n),i=this.attributes[n];o&&(o.attributes[n]=r);const s=Wn(i)?i[0].ns:null;if(Sn(i)){const c=Wn(i)?i[0].value:i;o&&$n(n)&&c.unshift(r),this._bindToObservable({schema:c,updater:In(e,n,s),data:t})}else if("style"==n&&"string"!=typeof i[0])this._renderStyleAttribute(i[0],t);else{o&&r&&$n(n)&&i.unshift(r);const t=i.map((t=>t&&t.value||t)).reduce(((t,e)=>t.concat(e)),[]).reduce(Nn,"");Rn(t)||e.setAttributeNS(s,n,t)}}}_renderStyleAttribute(t,e){const o=e.node;for(const n in t){const r=t[n];Sn(r)?this._bindToObservable({schema:[r],updater:Ln(o,n),data:e}):o.style[n]=r}}_renderElementChildren(t){const e=t.node,o=t.intoFragment?document.createDocumentFragment():e,n=t.isApplying;let r=0;for(const i of this.children)if(Un(i)){if(!n){i.setParent(e);for(const t of i)o.appendChild(t.element)}}else if(zn(i))n||(i.isRendered||i.render(),o.appendChild(i.element));else if($(i))o.appendChild(i);else if(n){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),i._renderNode({intoFragment:!1,node:o.childNodes[r++],isApplying:!0,revertData:e})}else o.appendChild(i.render());t.intoFragment&&e.appendChild(o)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const o=this.eventListeners[e].map((o=>{const[n,r]=e.split("@");return o.activateDomEventListener(n,r,t)}));t.revertData&&t.revertData.bindings.push(o)}}_bindToObservable({schema:t,updater:e,data:o}){const n=o.revertData;An(t,e,o);const r=t.filter((t=>!Rn(t))).filter((t=>t.observable)).map((n=>n.activateAttributeListener(t,e,o)));n&&n.bindings.push(r)}_revertTemplateFromNode(t,e){for(const t of e.bindings)for(const e of t)e();if(e.text)return void(t.textContent=e.text);const o=t;for(const t in e.attributes){const n=e.attributes[t];null===n?o.removeAttribute(t):o.setAttribute(t,n)}for(let t=0;t<e.children.length;++t)this._revertTemplateFromNode(o.childNodes[t],e.children[t])}}class En{constructor(t){this.attribute=t.attribute,this.observable=t.observable,this.emitter=t.emitter,this.callback=t.callback}getValue(t){const e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}activateAttributeListener(t,e,o){const n=()=>An(t,e,o);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,n),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,n)}}}class Tn extends En{constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,o){const n=(t,o)=>{e&&!o.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(o):this.observable.fire(this.eventNameOrFunction,o))};return this.emitter.listenTo(o.node,t,n),()=>{this.emitter.stopListening(o.node,t,n)}}}class On extends En{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!Rn(super.getValue(t))&&(this.valueIfTrue||!0)}}function Sn(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(Sn):t instanceof En)}function An(t,e,{node:o}){const n=function(t,e){return t.map((t=>t instanceof En?t.getValue(e):t))}(t,o);let r;r=1==t.length&&t[0]instanceof On?n[0]:n.reduce(Nn,""),Rn(r)?e.remove():e.set(r)}function Cn(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}function In(t,e,o){return{set(n){t.setAttributeNS(o,e,n)},remove(){t.removeAttributeNS(o,e)}}}function Ln(t,e){return{set(o){t.style[e]=o},remove(){t.style[e]=null}}}function Pn(t){return xn(t,(t=>{if(t&&(t instanceof En||Vn(t)||zn(t)||Un(t)))return t}))}function Mn(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=at(t.text)}(t),t.on&&(t.eventListeners=function(t){for(const e in t)Fn(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(const e in t)t[e].value&&(t[e].value=at(t[e].value)),Fn(t,e)}(t.attributes);const e=[];if(t.children)if(Un(t.children))e.push(t.children);else for(const o of t.children)Vn(o)||zn(o)||$(o)?e.push(o):e.push(new jn(o));t.children=e}return t}function Fn(t,e){t[e]=at(t[e])}function Nn(t,e){return Rn(e)?t:Rn(t)?e:`${t} ${e}`}function Bn(t,e){for(const o in e)t[o]?t[o].push(...e[o]):t[o]=e[o]}function Dn(t,e){if(e.attributes&&(t.attributes||(t.attributes={}),Bn(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),Bn(t.eventListeners,e.eventListeners)),e.text&&t.text.push(...e.text),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new b("ui-template-extend-children-mismatch",t);let o=0;for(const n of e.children)Dn(t.children[o++],n)}}function Rn(t){return!t&&0!==t}function zn(t){return t instanceof qn}function Vn(t){return t instanceof jn}function Un(t){return t instanceof lt}function Wn(t){return C(t[0])&&t[0].ns}function $n(t){return"class"==t||"style"==t}var Hn=o(62),Kn=o.n(Hn),Gn=o(472),Zn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Kn()(Gn.Z,Zn);Gn.Z.locals;class qn extends(G(B())){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new ct,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((e,o)=>{o.locale=t,o.t=t&&t.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=jn.bind(this,this)}createCollection(t){const e=new lt(t);return this._viewCollections.add(e),e}registerChild(t){W(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){W(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new jn(t)}extendTemplate(t){jn.extend(this.template,t)}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((t=>t.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}var Yn=o(777),Xn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Kn()(Yn.Z,Xn);Yn.Z.locals;const Jn=(Qn="px",t=>t+Qn);var Qn;class tr extends qn{constructor(t,e,o=!1){super(t);const n=this.bindTemplate;this.containerElement=e||X.window,this.panelAbsolute=o,this.set("position",null),this.set("panel_height",0),this.set("panel_width",0),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("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new jn({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:n.to("isSticky",(t=>t?"block":"none")),height:n.to("panel_height",(t=>Jn(t))),width:n.to("panel_width",(t=>Jn(t)))}}}).render(),this._contentPanel=new jn({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",n.if("isSticky","ck-sticky-panel__content_sticky"),n.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{position:n.to("position",(t=>t)),width:n.to("isSticky",(t=>t?Jn(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:n.to("_stickyTopOffset",(t=>t?Jn(t):t)),bottom:n.to("_stickyBottomOffset",(t=>t?Jn(t):t)),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(this.containerElement,"scroll",(()=>{this.checkIfShouldBeSticky()}),{useCapture:!0}),this.listenTo(this,"change:isActive",(()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();this.panel_height=this._contentPanelRect.height,this.panel_width=this._contentPanelRect.width;const t=new tt(this.limiterElement);let e=t.getVisible();if(e){const o=new tt(this.containerElement);t.top-=o.top,t.bottom-=o.top,o.top+=this.viewportTopOffset,o.height-=this.viewportTopOffset,e=e.getIntersection(o)}if(e&&t.top<e.top){const o=e.top;if(o+this._contentPanelRect.height+this.limiterBottomOffset>e.bottom){const o=Math.max(t.bottom-e.bottom,0)+this.limiterBottomOffset;t.bottom-o>t.top+this._contentPanelRect.height?this.panelAbsolute||this._stickToBottomOfLimiter(o):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<t.height?this.panelAbsolute?t.top<0&&-t.top<t.height-this.limiterBottomOffset?this._stickToTopOfAncestors(-t.top,"absolute"):this._unstick():this._stickToTopOfAncestors(o,null):this._unstick()}else this._unstick()}_stickToTopOfAncestors(t,e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyBottomOffset=null,this._stickyTopOffset=t,this._marginLeft=Jn(-X.window.scrollX),this.position=e}_stickToBottomOfLimiter(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=t,this._marginLeft=Jn(-X.window.scrollX),this.position=null}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null,this.position=null}get _contentPanelRect(){return new tt(this._contentPanel)}}var er=o(936),or={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Kn()(er.Z,or);er.Z.locals;class nr extends t.BoxedEditorUIView{constructor(e,o,n={}){super(e),this.stickyPanel=new tr(e,n.containerEl,n.panelAbsolute),this.toolbar=new t.ToolbarView(e,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new t.InlineEditableUIView(e,o)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}var rr=o(704),ir=o(434);const sr=function(t){return null!=t&&"object"==typeof t};const cr="object"==typeof global&&global&&global.Object===Object&&global;var ar="object"==typeof self&&self&&self.Object===Object&&self;const lr=(cr||ar||Function("return this")()).Symbol;var ur=Object.prototype,dr=ur.hasOwnProperty,hr=ur.toString,fr=lr?lr.toStringTag:void 0;const pr=function(t){var e=dr.call(t,fr),o=t[fr];try{t[fr]=void 0;var n=!0}catch(t){}var r=hr.call(t);return n&&(e?t[fr]=o:delete t[fr]),r};var br=Object.prototype.toString;const gr=function(t){return br.call(t)};var mr=lr?lr.toStringTag:void 0;const vr=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":mr&&mr in Object(t)?pr(t):gr(t)};const kr=function(t,e){return function(o){return t(e(o))}}(Object.getPrototypeOf,Object);var _r=Function.prototype,yr=Object.prototype,wr=_r.toString,xr=yr.hasOwnProperty,jr=wr.call(Object);const Er=function(t){if(!sr(t)||"[object Object]"!=vr(t))return!1;var e=kr(t);if(null===e)return!0;var o=xr.call(e,"constructor")&&e.constructor;return"function"==typeof o&&o instanceof o&&wr.call(o)==jr};const Tr=function(t){return sr(t)&&1===t.nodeType&&!Er(t)};class Or extends((0,rr.DataApiMixin)((0,rr.ElementApiMixin)(rr.Editor))){constructor(t,e={}){if(!Sr(t)&&void 0!==e.initialData)throw new r.CKEditorError("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return Sr(t)?(0,r.getDataFromElement)(t):t}(t)),Sr(t)&&(this.sourceElement=t),this.model.document.createRoot();const o=!this.config.get("toolbar.shouldNotGroupWhenFull"),n=new nr(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:o,containerEl:e.containerEl,panelAbsolute:e.panelAbsolute});this.ui=new i(this,n),(0,rr.attachToForm)(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise((o=>{const n=new this(t,e);o(n.initPlugins().then((()=>n.ui.init(Sr(t)?t:null))).then((()=>n.data.init(n.config.get("initialData")))).then((()=>n.fire("ready"))).then((()=>n)))}))}}function Sr(t){return Tr(t)}Or.Context=rr.Context,Or.EditorWatchdog=ir.EditorWatchdog,Or.ContextWatchdog=ir.ContextWatchdog})(),(window.CKEditor5=window.CKEditor5||{}).ckeditor5EditorClassicFloating=n})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ckeditor5-editor-classic-floating",
|
|
3
|
-
"version": "40.
|
|
3
|
+
"version": "40.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Classic Floating editor implementation for CKEditor 5.",
|
|
6
6
|
"keywords": [
|
|
@@ -12,24 +12,24 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "40.
|
|
15
|
+
"ckeditor5": "40.2.0",
|
|
16
16
|
"lodash-es": "4.17.21"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@ckeditor/ckeditor5-basic-styles": "40.
|
|
20
|
-
"@ckeditor/ckeditor5-core": "40.
|
|
19
|
+
"@ckeditor/ckeditor5-basic-styles": "40.2.0",
|
|
20
|
+
"@ckeditor/ckeditor5-core": "40.2.0",
|
|
21
21
|
"@ckeditor/ckeditor5-dev-utils": "^39.0.0",
|
|
22
|
-
"@ckeditor/ckeditor5-engine": "40.
|
|
23
|
-
"@ckeditor/ckeditor5-enter": "40.
|
|
24
|
-
"@ckeditor/ckeditor5-heading": "40.
|
|
25
|
-
"@ckeditor/ckeditor5-image": "40.
|
|
26
|
-
"@ckeditor/ckeditor5-paragraph": "40.
|
|
27
|
-
"@ckeditor/ckeditor5-theme-lark": "40.
|
|
28
|
-
"@ckeditor/ckeditor5-typing": "40.
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "40.
|
|
30
|
-
"@ckeditor/ckeditor5-undo": "40.
|
|
31
|
-
"@ckeditor/ckeditor5-utils": "40.
|
|
32
|
-
"@ckeditor/ckeditor5-watchdog": "40.
|
|
22
|
+
"@ckeditor/ckeditor5-engine": "40.2.0",
|
|
23
|
+
"@ckeditor/ckeditor5-enter": "40.2.0",
|
|
24
|
+
"@ckeditor/ckeditor5-heading": "40.2.0",
|
|
25
|
+
"@ckeditor/ckeditor5-image": "40.2.0",
|
|
26
|
+
"@ckeditor/ckeditor5-paragraph": "40.2.0",
|
|
27
|
+
"@ckeditor/ckeditor5-theme-lark": "40.2.0",
|
|
28
|
+
"@ckeditor/ckeditor5-typing": "40.2.0",
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "40.2.0",
|
|
30
|
+
"@ckeditor/ckeditor5-undo": "40.2.0",
|
|
31
|
+
"@ckeditor/ckeditor5-utils": "40.2.0",
|
|
32
|
+
"@ckeditor/ckeditor5-watchdog": "40.2.0",
|
|
33
33
|
"typescript": "^4.8.4",
|
|
34
34
|
"webpack": "^5.58.1",
|
|
35
35
|
"webpack-cli": "^4.9.0"
|
|
@@ -64,7 +64,7 @@ export default class ClassicFloatingEditor extends DataApiMixin(ElementApiMixin(
|
|
|
64
64
|
const shouldToolbarGroupWhenFull = !this.config.get('toolbar.shouldNotGroupWhenFull');
|
|
65
65
|
const view = new ClassicFloatingEditorUIView(this.locale, this.editing.view, {
|
|
66
66
|
shouldToolbarGroupWhenFull,
|
|
67
|
-
|
|
67
|
+
containerEl: config.containerEl,
|
|
68
68
|
panelAbsolute: config.panelAbsolute
|
|
69
69
|
});
|
|
70
70
|
this.ui = new ClassicFloatingEditorUI(this, view);
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
package/src/index.ts
CHANGED
|
@@ -40,7 +40,7 @@ export default class ClassicFloatingEditorUIView extends BoxedEditorUIView {
|
|
|
40
40
|
*/
|
|
41
41
|
constructor(locale: Locale, editingView: View, options?: {
|
|
42
42
|
shouldToolbarGroupWhenFull?: boolean;
|
|
43
|
-
|
|
43
|
+
containerEl?: HTMLElement;
|
|
44
44
|
panelAbsolute?: boolean;
|
|
45
45
|
});
|
|
46
46
|
/**
|
|
@@ -25,7 +25,7 @@ export default class ClassicFloatingEditorUIView extends BoxedEditorUIView {
|
|
|
25
25
|
*/
|
|
26
26
|
constructor(locale, editingView, options = {}) {
|
|
27
27
|
super(locale);
|
|
28
|
-
this.stickyPanel = new StickyPanelView(locale, options.
|
|
28
|
+
this.stickyPanel = new StickyPanelView(locale, options.containerEl, options.panelAbsolute);
|
|
29
29
|
this.toolbar = new ToolbarView(locale, {
|
|
30
30
|
shouldGroupWhenFull: options.shouldToolbarGroupWhenFull
|
|
31
31
|
});
|
|
@@ -122,7 +122,7 @@ export default class StickyPanelView extends View {
|
|
|
122
122
|
/**
|
|
123
123
|
* @inheritDoc
|
|
124
124
|
*/
|
|
125
|
-
constructor(locale?: Locale,
|
|
125
|
+
constructor(locale?: Locale, containerEl?: HTMLElement, panelAbsolute?: boolean);
|
|
126
126
|
/**
|
|
127
127
|
* @inheritDoc
|
|
128
128
|
*/
|
|
@@ -21,10 +21,10 @@ export default class StickyPanelView extends View {
|
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
|
24
|
-
constructor(locale,
|
|
24
|
+
constructor(locale, containerEl, panelAbsolute = false) {
|
|
25
25
|
super(locale);
|
|
26
26
|
const bind = this.bindTemplate;
|
|
27
|
-
this.containerElement =
|
|
27
|
+
this.containerElement = containerEl || global.window;
|
|
28
28
|
this.panelAbsolute = panelAbsolute;
|
|
29
29
|
this.set('position', null);
|
|
30
30
|
this.set('panel_height', 0);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md.
|
|
4
|
-
*/(()=>{var t={176:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(609),r=o.n(n)()((function(t){return t[1]}));r.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}",""]);const i=r},452:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(609),r=o.n(n)()((function(t){return t[1]}));r.push([t.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}",""]);const i=r},647:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(609),r=o.n(n)()((function(t){return t[1]}));r.push([t.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-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}: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-color-light-red:#fcc;--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)}",""]);const i=r},609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=t(e);return e[2]?"@media ".concat(e[2]," {").concat(o,"}"):o})).join("")},e.i=function(t,o,n){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(r[s]=!0)}for(var c=0;c<t.length;c++){var a=[].concat(t[c]);n&&r[a[0]]||(o&&(a[2]?a[2]="".concat(o," and ").concat(a[2]):a[2]=o),e.push(a))}},e}},62:(t,e,o)=>{"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var t={};return function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}t[e]=o}return t[e]}}(),s=[];function c(t){for(var e=-1,o=0;o<s.length;o++)if(s[o].identifier===t){e=o;break}return e}function a(t,e){for(var o={},n=[],r=0;r<t.length;r++){var i=t[r],a=e.base?i[0]+e.base:i[0],l=o[a]||0,u="".concat(a," ").concat(l);o[a]=l+1;var d=c(u),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(s[d].references++,s[d].updater(h)):s.push({identifier:u,updater:g(h,e),references:1}),n.push(u)}return n}function l(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var r=o.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var s=i(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function h(t,e,o,n){var r=o?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var i=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function f(t,e,o){var n=o.css,r=o.media,i=o.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var p=null,b=0;function g(t,e){var o,n,r;if(e.singleton){var i=b++;o=p||(p=l(e)),n=h.bind(null,o,i,!1),r=h.bind(null,o,i,!0)}else o=l(e),n=f.bind(null,o,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(o)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var o=a(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<o.length;n++){var r=c(o[n]);s[r].references--}for(var i=a(t,e),l=0;l<o.length;l++){var u=c(o[l]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}o=i}}}},704:(t,e,o)=>{t.exports=o(79)("./src/core.js")},492:(t,e,o)=>{t.exports=o(79)("./src/engine.js")},273:(t,e,o)=>{t.exports=o(79)("./src/ui.js")},209:(t,e,o)=>{t.exports=o(79)("./src/utils.js")},434:(t,e,o)=>{t.exports=o(79)("./src/watchdog.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function o(n){var r=e[n];if(void 0!==r)return r.exports;var i=e[n]={id:n,exports:{}};return t[n](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nc=void 0;var n={};(()=>{"use strict";o.r(n),o.d(n,{ClassicFloatingEditor:()=>br});var t=o(273),e=o(492),r=o(209);class i extends t.EditorUI{constructor(e,o){super(e),this.view=o,this._toolbarConfig=(0,t.normalizeToolbarConfig)(e.config.get("toolbar")),this._elementReplacer=new r.ElementReplacer,this.listenTo(e.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(t){const e=this.editor,o=this.view,n=e.editing.view,r=o.editable,i=n.document.getRoot();r.name=i.rootName,o.render();const s=r.element;this.setEditableElement(r.name,s),o.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(s),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(({top:t})=>t||0)),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,o=t.editing.view,n=o.document.getRoot(),r=t.sourceElement;let i;const s=t.config.get("placeholder");s&&(i="string"==typeof s?s:s[this.view.editable.name]),!i&&r&&"textarea"===r.tagName.toLowerCase()&&(i=r.getAttribute("placeholder")),i&&(n.placeholder=i),(0,e.enablePlaceholder)({view:o,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,o){const n=this.view.stickyPanel;if(n.isSticky){const t=new r.Rect(n.element).height;e.viewportOffset.top+=t}else{const t=()=>{this.editor.editing.view.scrollToTheSelection(o)};this.listenTo(n,"change:isSticky",t),setTimeout((()=>{this.stopListening(n,"change:isSticky",t)}),20)}}}const s=function(){try{return navigator.userAgent.toLowerCase()}catch(t){return""}}();a(s),c=s,c.indexOf("windows"),function(t){t.match(/gecko\/\d+/)}(s),function(t){t.indexOf(" applewebkit/")>-1&&t.indexOf("chrome")}(s),function(t){!!t.match(/iphone|ipad/i)||a(t)&&navigator.maxTouchPoints}(s),function(t){t.indexOf("android")}(s),function(t){t.indexOf("chrome/")>-1&&t.indexOf("edge/")}(s),function(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}}();var c;function a(t){return t.indexOf("macintosh")>-1}const l=function(){return function t(){t.called=!0}};class u{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=l(),this.off=l()}}const d=new Array(256).fill("").map(((t,e)=>("0"+e.toString(16)).slice(-2)));function h(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+d[t>>0&255]+d[t>>8&255]+d[t>>16&255]+d[t>>24&255]+d[e>>0&255]+d[e>>8&255]+d[e>>16&255]+d[e>>24&255]+d[o>>0&255]+d[o>>8&255]+d[o>>16&255]+d[o>>24&255]+d[n>>0&255]+d[n>>8&255]+d[n>>16&255]+d[n>>24&255]}const f={get(t="normal"){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function p(t,e){const o=f.get(e.priority);for(let n=0;n<t.length;n++)if(f.get(t[n].priority)<o)return void t.splice(n,0,e);t.push(e)}const b="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class g extends Error{constructor(t,e,o){super(function(t,e){const o=new WeakSet,n=(t,e)=>{if("object"==typeof e&&null!==e){if(o.has(e))return`[object ${e.constructor.name}]`;o.add(e)}return e},r=e?` ${JSON.stringify(e,n)}`:"",i=m(t);return t+r+i}(t,o)),this.name="CKEditorError",this.context=e,this.data=o}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const o=new g(t.message,e);throw o.stack=t.stack,o}}function m(t){return`\nRead more: ${b}#error-${t}`}const v="40.1.0";new Date(2023,10,15);if(globalThis.CKEDITOR_VERSION)throw new g("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=v;const k=Symbol("listeningTo"),_=Symbol("emitterId"),y=Symbol("delegations"),w=x(Object);function x(t){if(!t)return w;return class extends t{on(t,e,o){this.listenTo(this,t,e,o)}once(t,e,o){let n=!1;this.listenTo(this,t,((t,...o)=>{n||(n=!0,t.off(),e.call(this,t,...o))}),o)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,o,n={}){let r,i;this[k]||(this[k]={});const s=this[k];j(t)||E(t);const c=j(t);(r=s[c])||(r=s[c]={emitter:t,callbacks:{}}),(i=r.callbacks[e])||(i=r.callbacks[e]=[]),i.push(o),function(t,e,o,n,r){e._addEventListener?e._addEventListener(o,n,r):t._addEventListener.call(e,o,n,r)}(this,t,e,o,n)}stopListening(t,e,o){const n=this[k];let r=t&&j(t);const i=n&&r?n[r]:void 0,s=i&&e?i.callbacks[e]:void 0;if(!(!n||t&&!i||e&&!s))if(o){C(this,t,e,o);-1!==s.indexOf(o)&&(1===s.length?delete i.callbacks[e]:C(this,t,e,o))}else if(s){for(;o=s.pop();)C(this,t,e,o);delete i.callbacks[e]}else if(i){for(e in i.callbacks)this.stopListening(t,e);delete n[r]}else{for(r in n)this.stopListening(n[r].emitter);delete this[k]}}fire(t,...e){try{const o=t instanceof u?t:new u(this,t),n=o.name;let r=S(this,n);if(o.path.push(this),r){const t=[o,...e];r=Array.from(r);for(let e=0;e<r.length&&(r[e].callback.apply(this,t),o.off.called&&(delete o.off.called,this._removeEventListener(n,r[e].callback)),!o.stop.called);e++);}const i=this[y];if(i){const t=i.get(n),r=i.get("*");t&&A(t,o,e),r&&A(r,o,e)}return o.return}catch(t){g.rethrowUnexpectedError(t,this)}}delegate(...t){return{to:(e,o)=>{this[y]||(this[y]=new Map),t.forEach((t=>{const n=this[y].get(t);n?n.set(e,o):this[y].set(t,new Map([[e,o]]))}))}}}stopDelegating(t,e){if(this[y])if(t)if(e){const o=this[y].get(t);o&&o.delete(e)}else this[y].delete(t);else this[y].clear()}_addEventListener(t,e,o){!function(t,e){const o=T(t);if(o[e])return;let n=e,r=null;const i=[];for(;""!==n&&!o[n];)o[n]={callbacks:[],childEvents:[]},i.push(o[n]),r&&o[n].childEvents.push(r),r=n,n=n.substr(0,n.lastIndexOf(":"));if(""!==n){for(const t of i)t.callbacks=o[n].callbacks.slice();o[n].childEvents.push(r)}}(this,t);const n=O(this,t),r={callback:e,priority:f.get(o.priority)};for(const t of n)p(t,r)}_removeEventListener(t,e){const o=O(this,t);for(const t of o)for(let o=0;o<t.length;o++)t[o].callback==e&&(t.splice(o,1),o--)}}}function E(t,e){t[_]||(t[_]=e||h())}function j(t){return t[_]}function T(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function O(t,e){const o=T(t)[e];if(!o)return[];let n=[o.callbacks];for(let e=0;e<o.childEvents.length;e++){const r=O(t,o.childEvents[e]);n=n.concat(r)}return n}function S(t,e){let o;return t._events&&(o=t._events[e])&&o.callbacks.length?o.callbacks:e.indexOf(":")>-1?S(t,e.substr(0,e.lastIndexOf(":"))):null}function A(t,e,o){for(let[n,r]of t){r?"function"==typeof r&&(r=r(e.name)):r=e.name;const t=new u(e.source,r);t.path=[...e.path],n.fire(t,...o)}}function C(t,e,o,n){e._removeEventListener?e._removeEventListener(o,n):t._removeEventListener.call(e,o,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{x[t]=w.prototype[t]}));const I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},L=Symbol("observableProperties"),P=Symbol("boundObservables"),M=Symbol("boundProperties"),F=Symbol("decoratedMethods"),N=Symbol("decoratedOriginal"),R=B(x());function B(t){if(!t)return R;return class extends t{set(t,e){if(I(t))return void Object.keys(t).forEach((e=>{this.set(e,t[e])}),this);D(this);const o=this[L];if(t in this&&!o.has(t))throw new g("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>o.get(t),set(e){const n=o.get(t);let r=this.fire(`set:${t}`,t,e,n);void 0===r&&(r=e),n===r&&o.has(t)||(o.set(t,r),this.fire(`change:${t}`,t,r,n))}}),this[t]=e}bind(...t){if(!t.length||!U(t))throw new g("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new g("observable-bind-duplicate-properties",this);D(this);const e=this[M];t.forEach((t=>{if(e.has(t))throw new g("observable-bind-rebind",this)}));const o=new Map;return t.forEach((t=>{const n={property:t,to:[]};e.set(t,n),o.set(t,n)})),{to:z,toMany:V,_observable:this,_bindProperties:t,_to:[],_bindings:o}}unbind(...t){if(!this[L])return;const e=this[M],o=this[P];if(t.length){if(!U(t))throw new g("observable-unbind-wrong-properties",this);t.forEach((t=>{const n=e.get(t);n&&(n.to.forEach((([t,e])=>{const r=o.get(t),i=r[e];i.delete(n),i.size||delete r[e],Object.keys(r).length||(o.delete(t),this.stopListening(t,"change"))})),e.delete(t))}))}else o.forEach(((t,e)=>{this.stopListening(e,"change")})),o.clear(),e.clear()}decorate(t){D(this);const e=this[t];if(!e)throw new g("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,((t,o)=>{t.return=e.apply(this,o)})),this[t]=function(...e){return this.fire(t,e)},this[t][N]=e,this[F]||(this[F]=[]),this[F].push(t)}stopListening(t,e,o){if(!t&&this[F]){for(const t of this[F])this[t]=this[t][N];delete this[F]}super.stopListening(t,e,o)}}}function D(t){t[L]||(Object.defineProperty(t,L,{value:new Map}),Object.defineProperty(t,P,{value:new Map}),Object.defineProperty(t,M,{value:new Map}))}function z(...t){const e=function(...t){if(!t.length)throw new g("observable-bind-to-parse-error",null);const e={to:[]};let o;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach((t=>{if("string"==typeof t)o.properties.push(t);else{if("object"!=typeof t)throw new g("observable-bind-to-parse-error",null);o={observable:t,properties:[]},e.to.push(o)}})),e}(...t),o=Array.from(this._bindings.keys()),n=o.length;if(!e.callback&&e.to.length>1)throw new g("observable-bind-to-no-callback",this);if(n>1&&e.callback)throw new g("observable-bind-to-extra-callback",this);var r;e.to.forEach((t=>{if(t.properties.length&&t.properties.length!==n)throw new g("observable-bind-to-properties-length",this);t.properties.length||(t.properties=this._bindProperties)})),this._to=e.to,e.callback&&(this._bindings.get(o[0]).callback=e.callback),r=this._observable,this._to.forEach((t=>{const e=r[P];let o;e.get(t.observable)||r.listenTo(t.observable,"change",((n,i)=>{o=e.get(t.observable)[i],o&&o.forEach((t=>{W(r,t.property)}))}))})),function(t){let e;t._bindings.forEach(((o,n)=>{t._to.forEach((r=>{e=r.properties[o.callback?0:t._bindProperties.indexOf(n)],o.to.push([r.observable,e]),function(t,e,o,n){const r=t[P],i=r.get(o),s=i||{};s[n]||(s[n]=new Set);s[n].add(e),i||r.set(o,s)}(t._observable,o,r.observable,e)}))}))}(this),this._bindProperties.forEach((t=>{W(this._observable,t)}))}function V(t,e,o){if(this._bindings.size>1)throw new g("observable-bind-to-many-not-one-binding",this);this.to(...function(t,e){const o=t.map((t=>[t,e]));return Array.prototype.concat.apply([],o)}(t,e),o)}function U(t){return t.every((t=>"string"==typeof t))}function W(t,e){const o=t[M].get(e);let n;o.callback?n=o.callback.apply(t,o.to.map((t=>t[0][t[1]]))):(n=o.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=n:t.set(e,n)}function $(t){return!(!t||!t[Symbol.iterator])}function H(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}function K(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{B[t]=R.prototype[t]}));const G=Z(x());function Z(t){if(!t)return G;return class extends t{listenTo(t,e,o,n={}){if(H(t)||K(t)){const r={capture:!!n.useCapture,passive:!!n.usePassive},i=this._getProxyEmitter(t,r)||new q(t,r);this.listenTo(i,e,o,n)}else super.listenTo(t,e,o,n)}stopListening(t,e,o){if(H(t)||K(t)){const n=this._getAllProxyEmitters(t);for(const t of n)this.stopListening(t,e,o)}else super.stopListening(t,e,o)}_getProxyEmitter(t,e){return function(t,e){const o=t[k];return o&&o[e]?o[e].emitter:null}(this,Y(t,e))}_getAllProxyEmitters(t){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((e=>this._getProxyEmitter(t,e))).filter((t=>!!t))}}}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{Z[t]=G.prototype[t]}));class q extends(x()){constructor(t,e){super(),E(this,Y(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,o){this.attach(t),x().prototype._addEventListener.call(this,t,e,o)}_removeEventListener(t,e){x().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=e=>{this.fire(t,e)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function Y(t,e){let o=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=h())}(t);for(const t of Object.keys(e).sort())e[t]&&(o+="-"+t);return o}let X;try{X={window,document}}catch(t){X={window:{},document:{}}}const J=X;function Q(t){const e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}const tt=["top","right","bottom","left","width","height"];class et{constructor(t){const e=(o=t,"[object Range]"==Object.prototype.toString.apply(o));var o;if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),rt(t)||e)if(e){const e=et.getDomRangeRects(t);ot(this,et.getBoundingRect(e))}else ot(this,t.getBoundingClientRect());else if(K(t)){const{innerWidth:e,innerHeight:o}=t;ot(this,{top:0,right:e,bottom:o,left:0,width:e,height:o})}else ot(this,t)}clone(){return new et(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const t=new et(e);return t._source=this._source,t}}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(nt(t))return e;let o,n=t,r=t.parentNode||t.commonAncestorContainer;for(;r&&!nt(r);){const t="visible"===((i=r)instanceof HTMLElement?i.ownerDocument.defaultView.getComputedStyle(i).overflow:"visible");n instanceof HTMLElement&&"absolute"===it(n)&&(o=n);const s=it(r);if(t||o&&("relative"===s&&t||"relative"!==s)){n=r,r=r.parentNode;continue}const c=new et(r),a=e.getIntersection(c);if(!a)return null;a.getArea()<e.getArea()&&(e=a),n=r,r=r.parentNode}var i;return e}isEqual(t){for(const e of tt)if(this[e]!==t[e])return!1;return!0}contains(t){const e=this.getIntersection(t);return!(!e||!e.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:e}=J.window,o=this.clone().moveBy(t,e);if(rt(o._source)){const t=(n=o._source)&&n.parentNode?n.offsetParent===J.document.body?null:n.offsetParent:null;t&&function(t,e){const o=new et(e),n=Q(e);let r=0,i=0;r-=o.left,i-=o.top,r+=e.scrollLeft,i+=e.scrollTop,r-=n.left,i-=n.top,t.moveBy(r,i)}(o,t)}var n;return o}excludeScrollbarsAndBorders(){const t=this._source;let e,o,n;if(K(t))e=t.innerWidth-t.document.documentElement.clientWidth,o=t.innerHeight-t.document.documentElement.clientHeight,n=t.getComputedStyle(t.document.documentElement).direction;else{const r=Q(t);e=t.offsetWidth-t.clientWidth-r.left-r.right,o=t.offsetHeight-t.clientHeight-r.top-r.bottom,n=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===n?this.right-=e:this.left+=e,this.height-=o,this.bottom-=o,this}static getDomRangeRects(t){const e=[],o=Array.from(t.getClientRects());if(o.length)for(const t of o)e.push(new et(t));else{let o=t.startContainer;n=o,"[object Text]"==Object.prototype.toString.call(n)&&(o=o.parentNode);const r=new et(o.getBoundingClientRect());r.right=r.left,r.width=0,e.push(r)}var n;return e}static getBoundingRect(t){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let o=0;for(const n of t)o++,e.left=Math.min(e.left,n.left),e.top=Math.min(e.top,n.top),e.right=Math.max(e.right,n.right),e.bottom=Math.max(e.bottom,n.bottom);return 0==o?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new et(e))}}function ot(t,e){for(const o of tt)t[o]=e[o]}function nt(t){return!!rt(t)&&t===t.ownerDocument.body}function rt(t){return null!==t&&"object"==typeof t&&1===t.nodeType&&"function"==typeof t.getBoundingClientRect}function it(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).position:"static"}const st=class{constructor(t,e){st._observerInstance||st._createObserver(),this._element=t,this._callback=e,st._addElementCallback(t,e),st._observerInstance.observe(t)}get element(){return this._element}destroy(){st._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){st._elementCallbacks||(st._elementCallbacks=new Map);let o=st._elementCallbacks.get(t);o||(o=new Set,st._elementCallbacks.set(t,o)),o.add(e)}static _deleteElementCallback(t,e){const o=st._getElementCallbacks(t);o&&(o.delete(e),o.size||(st._elementCallbacks.delete(t),st._observerInstance.unobserve(t))),st._elementCallbacks&&!st._elementCallbacks.size&&(st._observerInstance=null,st._elementCallbacks=null)}static _getElementCallbacks(t){return st._elementCallbacks?st._elementCallbacks.get(t):null}static _createObserver(){st._observerInstance=new J.window.ResizeObserver((t=>{for(const e of t){const t=st._getElementCallbacks(e.target);if(t)for(const o of t)o(e)}}))}};let ct=st;ct._observerInstance=null,ct._elementCallbacks=null;Math.pow;const at=function(){const t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++){t[String.fromCharCode(e).toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;for(const e of"`-=[];',./\\")t[e]=e.charCodeAt(0);return t}();Object.fromEntries(Object.entries(at).map((([t,e])=>[e,t.charAt(0).toUpperCase()+t.slice(1)])));J.window.CKEDITOR_TRANSLATIONS||(J.window.CKEDITOR_TRANSLATIONS={});class lt extends(x()){constructor(t={},e={}){super();const o=$(t);if(o||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],o)for(const e of t)this._items.push(e),this._itemMap.set(this._getItemIdBeforeAdding(e),e)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}addMany(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new g("collection-add-item-invalid-index",this);let o=0;for(const n of t){const t=this._getItemIdBeforeAdding(n),r=e+o;this._items.splice(r,0,n),this._itemMap.set(t,n),this.fire("add",n,r),o++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new g("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return e&&this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,e?this._items.indexOf(e):-1}remove(t){const[e,o]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:o}),e}map(t,e){return this._items.map(t,e)}forEach(t,e){this._items.forEach(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new g("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:t=>{this._setUpBindToBinding((e=>new t(e)))},using:t=>{"function"==typeof t?this._setUpBindToBinding(t):this._setUpBindToBinding((e=>e[t]))}}}_setUpBindToBinding(t){const e=this._bindToCollection,o=(o,n,r)=>{const i=e._bindToCollection==this,s=e._bindToInternalToExternalMap.get(n);if(i&&s)this._bindToExternalToInternalMap.set(n,s),this._bindToInternalToExternalMap.set(s,n);else{const o=t(n);if(!o)return void this._skippedIndexesFromExternal.push(r);let i=r;for(const t of this._skippedIndexesFromExternal)r>t&&i--;for(const t of e._skippedIndexesFromExternal)i>=t&&i++;this._bindToExternalToInternalMap.set(n,o),this._bindToInternalToExternalMap.set(o,n),this.add(o,i);for(let t=0;t<e._skippedIndexesFromExternal.length;t++)i<=e._skippedIndexesFromExternal[t]&&e._skippedIndexesFromExternal[t]++}};for(const t of e)o(0,t,e.getIndex(t));this.listenTo(e,"add",o),this.listenTo(e,"remove",((t,e,o)=>{const n=this._bindToExternalToInternalMap.get(e);n&&this.remove(n),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((t,e)=>(o<e&&t.push(e-1),o>e&&t.push(e),t)),[])}))}_getItemIdBeforeAdding(t){const e=this._idProperty;let o;if(e in t){if(o=t[e],"string"!=typeof o)throw new g("collection-add-invalid-id",this);if(this.get(o))throw new g("collection-add-item-already-exists",this)}else t[e]=o=h();return o}_remove(t){let e,o,n,r=!1;const i=this._idProperty;if("string"==typeof t?(o=t,n=this._itemMap.get(o),r=!n,n&&(e=this._items.indexOf(n))):"number"==typeof t?(e=t,n=this._items[e],r=!n,n&&(o=n[i])):(n=t,o=n[i],e=this._items.indexOf(n),r=-1==e||!this._itemMap.get(o)),r)throw new g("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(o);const s=this._bindToInternalToExternalMap.get(n);return this._bindToInternalToExternalMap.delete(n),this._bindToExternalToInternalMap.delete(s),this.fire("remove",n,e),[n,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Z(B());function ut(t){return Array.isArray(t)?t:[t]}!function(){const t=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],e=new RegExp("\\p{Regional_Indicator}{2}","u").source,o="(?:"+t.map((t=>t.source)).join("|")+")";new RegExp(`${e}|${o}(?:${o})*`,"ug")}();class dt extends lt{constructor(t=[]){super(t,{idProperty:"viewUid"}),this.on("add",((t,e,o)=>{this._renderViewIntoCollectionParent(e,o)})),this.on("remove",((t,e)=>{e.element&&this._parentElement&&e.element.remove()})),this._parentElement=null}destroy(){this.map((t=>t.destroy()))}setParent(t){this._parentElement=t;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...t){if(!t.length||!t.every((t=>"string"==typeof t)))throw new g("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const o of this)for(const n of t)o.delegate(n).to(e);this.on("add",((o,n)=>{for(const o of t)n.delegate(o).to(e)})),this.on("remove",((o,n)=>{for(const o of t)n.stopDelegating(o,e)}))}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}remove(t){return super.remove(t)}}const ht=function(){this.__data__=[],this.size=0};const ft=function(t,e){return t===e||t!=t&&e!=e};const pt=function(t,e){for(var o=t.length;o--;)if(ft(t[o][0],e))return o;return-1};var bt=Array.prototype.splice;const gt=function(t){var e=this.__data__,o=pt(e,t);return!(o<0)&&(o==e.length-1?e.pop():bt.call(e,o,1),--this.size,!0)};const mt=function(t){var e=this.__data__,o=pt(e,t);return o<0?void 0:e[o][1]};const vt=function(t){return pt(this.__data__,t)>-1};const kt=function(t,e){var o=this.__data__,n=pt(o,t);return n<0?(++this.size,o.push([t,e])):o[n][1]=e,this};function _t(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}_t.prototype.clear=ht,_t.prototype.delete=gt,_t.prototype.get=mt,_t.prototype.has=vt,_t.prototype.set=kt;const yt=_t;const wt=function(){this.__data__=new yt,this.size=0};const xt=function(t){var e=this.__data__,o=e.delete(t);return this.size=e.size,o};const Et=function(t){return this.__data__.get(t)};const jt=function(t){return this.__data__.has(t)};const Tt="object"==typeof global&&global&&global.Object===Object&&global;var Ot="object"==typeof self&&self&&self.Object===Object&&self;const St=Tt||Ot||Function("return this")();const At=St.Symbol;var Ct=Object.prototype,It=Ct.hasOwnProperty,Lt=Ct.toString,Pt=At?At.toStringTag:void 0;const Mt=function(t){var e=It.call(t,Pt),o=t[Pt];try{t[Pt]=void 0;var n=!0}catch(t){}var r=Lt.call(t);return n&&(e?t[Pt]=o:delete t[Pt]),r};var Ft=Object.prototype.toString;const Nt=function(t){return Ft.call(t)};var Rt=At?At.toStringTag:void 0;const Bt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Rt&&Rt in Object(t)?Mt(t):Nt(t)};const Dt=function(t){if(!I(t))return!1;var e=Bt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const zt=St["__core-js_shared__"];var Vt=function(){var t=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const Ut=function(t){return!!Vt&&Vt in t};var Wt=Function.prototype.toString;const $t=function(t){if(null!=t){try{return Wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ht=/^\[object .+?Constructor\]$/,Kt=Function.prototype,Gt=Object.prototype,Zt=Kt.toString,qt=Gt.hasOwnProperty,Yt=RegExp("^"+Zt.call(qt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Xt=function(t){return!(!I(t)||Ut(t))&&(Dt(t)?Yt:Ht).test($t(t))};const Jt=function(t,e){return null==t?void 0:t[e]};const Qt=function(t,e){var o=Jt(t,e);return Xt(o)?o:void 0};const te=Qt(St,"Map");const ee=Qt(Object,"create");const oe=function(){this.__data__=ee?ee(null):{},this.size=0};const ne=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var re=Object.prototype.hasOwnProperty;const ie=function(t){var e=this.__data__;if(ee){var o=e[t];return"__lodash_hash_undefined__"===o?void 0:o}return re.call(e,t)?e[t]:void 0};var se=Object.prototype.hasOwnProperty;const ce=function(t){var e=this.__data__;return ee?void 0!==e[t]:se.call(e,t)};const ae=function(t,e){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=ee&&void 0===e?"__lodash_hash_undefined__":e,this};function le(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}le.prototype.clear=oe,le.prototype.delete=ne,le.prototype.get=ie,le.prototype.has=ce,le.prototype.set=ae;const ue=le;const de=function(){this.size=0,this.__data__={hash:new ue,map:new(te||yt),string:new ue}};const he=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const fe=function(t,e){var o=t.__data__;return he(e)?o["string"==typeof e?"string":"hash"]:o.map};const pe=function(t){var e=fe(this,t).delete(t);return this.size-=e?1:0,e};const be=function(t){return fe(this,t).get(t)};const ge=function(t){return fe(this,t).has(t)};const me=function(t,e){var o=fe(this,t),n=o.size;return o.set(t,e),this.size+=o.size==n?0:1,this};function ve(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}ve.prototype.clear=de,ve.prototype.delete=pe,ve.prototype.get=be,ve.prototype.has=ge,ve.prototype.set=me;const ke=ve;const _e=function(t,e){var o=this.__data__;if(o instanceof yt){var n=o.__data__;if(!te||n.length<199)return n.push([t,e]),this.size=++o.size,this;o=this.__data__=new ke(n)}return o.set(t,e),this.size=o.size,this};function ye(t){var e=this.__data__=new yt(t);this.size=e.size}ye.prototype.clear=wt,ye.prototype.delete=xt,ye.prototype.get=Et,ye.prototype.has=jt,ye.prototype.set=_e;const we=ye;const xe=function(t,e){for(var o=-1,n=null==t?0:t.length;++o<n&&!1!==e(t[o],o,t););return t};const Ee=function(){try{var t=Qt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const je=function(t,e,o){"__proto__"==e&&Ee?Ee(t,e,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[e]=o};var Te=Object.prototype.hasOwnProperty;const Oe=function(t,e,o){var n=t[e];Te.call(t,e)&&ft(n,o)&&(void 0!==o||e in t)||je(t,e,o)};const Se=function(t,e,o,n){var r=!o;o||(o={});for(var i=-1,s=e.length;++i<s;){var c=e[i],a=n?n(o[c],t[c],c,o,t):void 0;void 0===a&&(a=t[c]),r?je(o,c,a):Oe(o,c,a)}return o};const Ae=function(t,e){for(var o=-1,n=Array(t);++o<t;)n[o]=e(o);return n};const Ce=function(t){return null!=t&&"object"==typeof t};const Ie=function(t){return Ce(t)&&"[object Arguments]"==Bt(t)};var Le=Object.prototype,Pe=Le.hasOwnProperty,Me=Le.propertyIsEnumerable;const Fe=Ie(function(){return arguments}())?Ie:function(t){return Ce(t)&&Pe.call(t,"callee")&&!Me.call(t,"callee")};const Ne=Array.isArray;const Re=function(){return!1};var Be="object"==typeof exports&&exports&&!exports.nodeType&&exports,De=Be&&"object"==typeof module&&module&&!module.nodeType&&module,ze=De&&De.exports===Be?St.Buffer:void 0;const Ve=(ze?ze.isBuffer:void 0)||Re;var Ue=/^(?:0|[1-9]\d*)$/;const We=function(t,e){var o=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==o||"symbol"!=o&&Ue.test(t))&&t>-1&&t%1==0&&t<e};const $e=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var He={};He["[object Float32Array]"]=He["[object Float64Array]"]=He["[object Int8Array]"]=He["[object Int16Array]"]=He["[object Int32Array]"]=He["[object Uint8Array]"]=He["[object Uint8ClampedArray]"]=He["[object Uint16Array]"]=He["[object Uint32Array]"]=!0,He["[object Arguments]"]=He["[object Array]"]=He["[object ArrayBuffer]"]=He["[object Boolean]"]=He["[object DataView]"]=He["[object Date]"]=He["[object Error]"]=He["[object Function]"]=He["[object Map]"]=He["[object Number]"]=He["[object Object]"]=He["[object RegExp]"]=He["[object Set]"]=He["[object String]"]=He["[object WeakMap]"]=!1;const Ke=function(t){return Ce(t)&&$e(t.length)&&!!He[Bt(t)]};const Ge=function(t){return function(e){return t(e)}};var Ze="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Ze&&"object"==typeof module&&module&&!module.nodeType&&module,Ye=qe&&qe.exports===Ze&&Tt.process;const Xe=function(){try{var t=qe&&qe.require&&qe.require("util").types;return t||Ye&&Ye.binding&&Ye.binding("util")}catch(t){}}();var Je=Xe&&Xe.isTypedArray;const Qe=Je?Ge(Je):Ke;var to=Object.prototype.hasOwnProperty;const eo=function(t,e){var o=Ne(t),n=!o&&Fe(t),r=!o&&!n&&Ve(t),i=!o&&!n&&!r&&Qe(t),s=o||n||r||i,c=s?Ae(t.length,String):[],a=c.length;for(var l in t)!e&&!to.call(t,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||We(l,a))||c.push(l);return c};var oo=Object.prototype;const no=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||oo)};const ro=function(t,e){return function(o){return t(e(o))}};const io=ro(Object.keys,Object);var so=Object.prototype.hasOwnProperty;const co=function(t){if(!no(t))return io(t);var e=[];for(var o in Object(t))so.call(t,o)&&"constructor"!=o&&e.push(o);return e};const ao=function(t){return null!=t&&$e(t.length)&&!Dt(t)};const lo=function(t){return ao(t)?eo(t):co(t)};const uo=function(t,e){return t&&Se(e,lo(e),t)};const ho=function(t){var e=[];if(null!=t)for(var o in Object(t))e.push(o);return e};var fo=Object.prototype.hasOwnProperty;const po=function(t){if(!I(t))return ho(t);var e=no(t),o=[];for(var n in t)("constructor"!=n||!e&&fo.call(t,n))&&o.push(n);return o};const bo=function(t){return ao(t)?eo(t,!0):po(t)};const go=function(t,e){return t&&Se(e,bo(e),t)};var mo="object"==typeof exports&&exports&&!exports.nodeType&&exports,vo=mo&&"object"==typeof module&&module&&!module.nodeType&&module,ko=vo&&vo.exports===mo?St.Buffer:void 0,_o=ko?ko.allocUnsafe:void 0;const yo=function(t,e){if(e)return t.slice();var o=t.length,n=_o?_o(o):new t.constructor(o);return t.copy(n),n};const wo=function(t,e){var o=-1,n=t.length;for(e||(e=Array(n));++o<n;)e[o]=t[o];return e};const xo=function(t,e){for(var o=-1,n=null==t?0:t.length,r=0,i=[];++o<n;){var s=t[o];e(s,o,t)&&(i[r++]=s)}return i};const Eo=function(){return[]};var jo=Object.prototype.propertyIsEnumerable,To=Object.getOwnPropertySymbols;const Oo=To?function(t){return null==t?[]:(t=Object(t),xo(To(t),(function(e){return jo.call(t,e)})))}:Eo;const So=function(t,e){return Se(t,Oo(t),e)};const Ao=function(t,e){for(var o=-1,n=e.length,r=t.length;++o<n;)t[r+o]=e[o];return t};const Co=ro(Object.getPrototypeOf,Object);const Io=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ao(e,Oo(t)),t=Co(t);return e}:Eo;const Lo=function(t,e){return Se(t,Io(t),e)};const Po=function(t,e,o){var n=e(t);return Ne(t)?n:Ao(n,o(t))};const Mo=function(t){return Po(t,lo,Oo)};const Fo=function(t){return Po(t,bo,Io)};const No=Qt(St,"DataView");const Ro=Qt(St,"Promise");const Bo=Qt(St,"Set");const Do=Qt(St,"WeakMap");var zo="[object Map]",Vo="[object Promise]",Uo="[object Set]",Wo="[object WeakMap]",$o="[object DataView]",Ho=$t(No),Ko=$t(te),Go=$t(Ro),Zo=$t(Bo),qo=$t(Do),Yo=Bt;(No&&Yo(new No(new ArrayBuffer(1)))!=$o||te&&Yo(new te)!=zo||Ro&&Yo(Ro.resolve())!=Vo||Bo&&Yo(new Bo)!=Uo||Do&&Yo(new Do)!=Wo)&&(Yo=function(t){var e=Bt(t),o="[object Object]"==e?t.constructor:void 0,n=o?$t(o):"";if(n)switch(n){case Ho:return $o;case Ko:return zo;case Go:return Vo;case Zo:return Uo;case qo:return Wo}return e});const Xo=Yo;var Jo=Object.prototype.hasOwnProperty;const Qo=function(t){var e=t.length,o=new t.constructor(e);return e&&"string"==typeof t[0]&&Jo.call(t,"index")&&(o.index=t.index,o.input=t.input),o};const tn=St.Uint8Array;const en=function(t){var e=new t.constructor(t.byteLength);return new tn(e).set(new tn(t)),e};const on=function(t,e){var o=e?en(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)};var nn=/\w*$/;const rn=function(t){var e=new t.constructor(t.source,nn.exec(t));return e.lastIndex=t.lastIndex,e};var sn=At?At.prototype:void 0,cn=sn?sn.valueOf:void 0;const an=function(t){return cn?Object(cn.call(t)):{}};const ln=function(t,e){var o=e?en(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)};const un=function(t,e,o){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return en(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return on(t,o);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ln(t,o);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return rn(t);case"[object Symbol]":return an(t)}};var dn=Object.create;const hn=function(){function t(){}return function(e){if(!I(e))return{};if(dn)return dn(e);t.prototype=e;var o=new t;return t.prototype=void 0,o}}();const fn=function(t){return"function"!=typeof t.constructor||no(t)?{}:hn(Co(t))};const pn=function(t){return Ce(t)&&"[object Map]"==Xo(t)};var bn=Xe&&Xe.isMap;const gn=bn?Ge(bn):pn;const mn=function(t){return Ce(t)&&"[object Set]"==Xo(t)};var vn=Xe&&Xe.isSet;const kn=vn?Ge(vn):mn;var _n="[object Arguments]",yn="[object Function]",wn="[object Object]",xn={};xn[_n]=xn["[object Array]"]=xn["[object ArrayBuffer]"]=xn["[object DataView]"]=xn["[object Boolean]"]=xn["[object Date]"]=xn["[object Float32Array]"]=xn["[object Float64Array]"]=xn["[object Int8Array]"]=xn["[object Int16Array]"]=xn["[object Int32Array]"]=xn["[object Map]"]=xn["[object Number]"]=xn[wn]=xn["[object RegExp]"]=xn["[object Set]"]=xn["[object String]"]=xn["[object Symbol]"]=xn["[object Uint8Array]"]=xn["[object Uint8ClampedArray]"]=xn["[object Uint16Array]"]=xn["[object Uint32Array]"]=!0,xn["[object Error]"]=xn[yn]=xn["[object WeakMap]"]=!1;const En=function t(e,o,n,r,i,s){var c,a=1&o,l=2&o,u=4&o;if(n&&(c=i?n(e,r,i,s):n(e)),void 0!==c)return c;if(!I(e))return e;var d=Ne(e);if(d){if(c=Qo(e),!a)return wo(e,c)}else{var h=Xo(e),f=h==yn||"[object GeneratorFunction]"==h;if(Ve(e))return yo(e,a);if(h==wn||h==_n||f&&!i){if(c=l||f?{}:fn(e),!a)return l?Lo(e,go(c,e)):So(e,uo(c,e))}else{if(!xn[h])return i?e:{};c=un(e,h,a)}}s||(s=new we);var p=s.get(e);if(p)return p;s.set(e,c),kn(e)?e.forEach((function(r){c.add(t(r,o,n,r,e,s))})):gn(e)&&e.forEach((function(r,i){c.set(i,t(r,o,n,i,e,s))}));var b=d?void 0:(u?l?Fo:Mo:l?bo:lo)(e);return xe(b||e,(function(r,i){b&&(r=e[i=r]),Oe(c,i,t(r,o,n,i,e,s))})),c};const jn=function(t,e){return En(t,5,e="function"==typeof e?e:void 0)};class Tn extends(x()){constructor(t){super(),Object.assign(this,Nn(Fn(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new g("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const o of e.children)Un(o)?yield o:Wn(o)&&(yield*t(o))}(this)}static bind(t,e){return{to:(o,n)=>new Sn({eventNameOrFunction:o,attribute:o,observable:t,emitter:e,callback:n}),if:(o,n,r)=>new An({observable:t,emitter:e,attribute:o,valueIfTrue:n,callback:r})}}static extend(t,e){if(t._isRendered)throw new g("template-extend-render",[this,t]);zn(t,Nn(Fn(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new g("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Cn(this.text)?this._bindToObservable({schema:this.text,updater:Ln(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,o=t.revertData;for(const n in this.attributes){const r=e.getAttribute(n),i=this.attributes[n];o&&(o.attributes[n]=r);const s=Hn(i)?i[0].ns:null;if(Cn(i)){const c=Hn(i)?i[0].value:i;o&&Kn(n)&&c.unshift(r),this._bindToObservable({schema:c,updater:Pn(e,n,s),data:t})}else if("style"==n&&"string"!=typeof i[0])this._renderStyleAttribute(i[0],t);else{o&&r&&Kn(n)&&i.unshift(r);const t=i.map((t=>t&&t.value||t)).reduce(((t,e)=>t.concat(e)),[]).reduce(Bn,"");Vn(t)||e.setAttributeNS(s,n,t)}}}_renderStyleAttribute(t,e){const o=e.node;for(const n in t){const r=t[n];Cn(r)?this._bindToObservable({schema:[r],updater:Mn(o,n),data:e}):o.style[n]=r}}_renderElementChildren(t){const e=t.node,o=t.intoFragment?document.createDocumentFragment():e,n=t.isApplying;let r=0;for(const i of this.children)if($n(i)){if(!n){i.setParent(e);for(const t of i)o.appendChild(t.element)}}else if(Un(i))n||(i.isRendered||i.render(),o.appendChild(i.element));else if(H(i))o.appendChild(i);else if(n){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),i._renderNode({intoFragment:!1,node:o.childNodes[r++],isApplying:!0,revertData:e})}else o.appendChild(i.render());t.intoFragment&&e.appendChild(o)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const o=this.eventListeners[e].map((o=>{const[n,r]=e.split("@");return o.activateDomEventListener(n,r,t)}));t.revertData&&t.revertData.bindings.push(o)}}_bindToObservable({schema:t,updater:e,data:o}){const n=o.revertData;In(t,e,o);const r=t.filter((t=>!Vn(t))).filter((t=>t.observable)).map((n=>n.activateAttributeListener(t,e,o)));n&&n.bindings.push(r)}_revertTemplateFromNode(t,e){for(const t of e.bindings)for(const e of t)e();if(e.text)return void(t.textContent=e.text);const o=t;for(const t in e.attributes){const n=e.attributes[t];null===n?o.removeAttribute(t):o.setAttribute(t,n)}for(let t=0;t<e.children.length;++t)this._revertTemplateFromNode(o.childNodes[t],e.children[t])}}class On{constructor(t){this.attribute=t.attribute,this.observable=t.observable,this.emitter=t.emitter,this.callback=t.callback}getValue(t){const e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}activateAttributeListener(t,e,o){const n=()=>In(t,e,o);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,n),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,n)}}}class Sn extends On{constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,o){const n=(t,o)=>{e&&!o.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(o):this.observable.fire(this.eventNameOrFunction,o))};return this.emitter.listenTo(o.node,t,n),()=>{this.emitter.stopListening(o.node,t,n)}}}class An extends On{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!Vn(super.getValue(t))&&(this.valueIfTrue||!0)}}function Cn(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(Cn):t instanceof On)}function In(t,e,{node:o}){const n=function(t,e){return t.map((t=>t instanceof On?t.getValue(e):t))}(t,o);let r;r=1==t.length&&t[0]instanceof An?n[0]:n.reduce(Bn,""),Vn(r)?e.remove():e.set(r)}function Ln(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}function Pn(t,e,o){return{set(n){t.setAttributeNS(o,e,n)},remove(){t.removeAttributeNS(o,e)}}}function Mn(t,e){return{set(o){t.style[e]=o},remove(){t.style[e]=null}}}function Fn(t){return jn(t,(t=>{if(t&&(t instanceof On||Wn(t)||Un(t)||$n(t)))return t}))}function Nn(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=ut(t.text)}(t),t.on&&(t.eventListeners=function(t){for(const e in t)Rn(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(const e in t)t[e].value&&(t[e].value=ut(t[e].value)),Rn(t,e)}(t.attributes);const e=[];if(t.children)if($n(t.children))e.push(t.children);else for(const o of t.children)Wn(o)||Un(o)||H(o)?e.push(o):e.push(new Tn(o));t.children=e}return t}function Rn(t,e){t[e]=ut(t[e])}function Bn(t,e){return Vn(e)?t:Vn(t)?e:`${t} ${e}`}function Dn(t,e){for(const o in e)t[o]?t[o].push(...e[o]):t[o]=e[o]}function zn(t,e){if(e.attributes&&(t.attributes||(t.attributes={}),Dn(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),Dn(t.eventListeners,e.eventListeners)),e.text&&t.text.push(...e.text),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new g("ui-template-extend-children-mismatch",t);let o=0;for(const n of e.children)zn(t.children[o++],n)}}function Vn(t){return!t&&0!==t}function Un(t){return t instanceof Xn}function Wn(t){return t instanceof Tn}function $n(t){return t instanceof dt}function Hn(t){return I(t[0])&&t[0].ns}function Kn(t){return"class"==t||"style"==t}var Gn=o(62),Zn=o.n(Gn),qn=o(647),Yn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Zn()(qn.Z,Yn);qn.Z.locals;class Xn extends(Z(B())){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new lt,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((e,o)=>{o.locale=t,o.t=t&&t.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Tn.bind(this,this)}createCollection(t){const e=new dt(t);return this._viewCollections.add(e),e}registerChild(t){$(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){$(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new Tn(t)}extendTemplate(t){Tn.extend(this.template,t)}render(){if(this.isRendered)throw new g("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((t=>t.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}var Jn=o(452),Qn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Zn()(Jn.Z,Qn);Jn.Z.locals;const tr=(er="px",t=>t+er);var er;class or extends Xn{constructor(t,e,o=!1){super(t);const n=this.bindTemplate;this.containerElement=e||J.window,this.panelAbsolute=o,this.set("position",null),this.set("panel_height",0),this.set("panel_width",0),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("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Tn({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:n.to("isSticky",(t=>t?"block":"none")),height:n.to("panel_height",(t=>tr(t))),width:n.to("panel_width",(t=>tr(t)))}}}).render(),this._contentPanel=new Tn({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",n.if("isSticky","ck-sticky-panel__content_sticky"),n.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{position:n.to("position",(t=>t)),width:n.to("isSticky",(t=>t?tr(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:n.to("_stickyTopOffset",(t=>t?tr(t):t)),bottom:n.to("_stickyBottomOffset",(t=>t?tr(t):t)),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(this.containerElement,"scroll",(()=>{this.checkIfShouldBeSticky()}),{useCapture:!0}),this.listenTo(this,"change:isActive",(()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();this.panel_height=this._contentPanelRect.height,this.panel_width=this._contentPanelRect.width;const t=new et(this.limiterElement);let e=t.getVisible();if(e){const o=new et(this.containerElement);t.top-=o.top,t.bottom-=o.top,o.top+=this.viewportTopOffset,o.height-=this.viewportTopOffset,e=e.getIntersection(o)}if(e&&t.top<e.top){const o=e.top;if(o+this._contentPanelRect.height+this.limiterBottomOffset>e.bottom){const o=Math.max(t.bottom-e.bottom,0)+this.limiterBottomOffset;t.bottom-o>t.top+this._contentPanelRect.height?this.panelAbsolute||this._stickToBottomOfLimiter(o):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<t.height?this.panelAbsolute?t.top<0&&-t.top<t.height-this.limiterBottomOffset?this._stickToTopOfAncestors(-t.top,"absolute"):this._unstick():this._stickToTopOfAncestors(o,null):this._unstick()}else this._unstick()}_stickToTopOfAncestors(t,e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyBottomOffset=null,this._stickyTopOffset=t,this._marginLeft=tr(-J.window.scrollX),this.position=e}_stickToBottomOfLimiter(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=t,this._marginLeft=tr(-J.window.scrollX),this.position=null}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null,this.position=null}get _contentPanelRect(){return new et(this._contentPanel)}}var nr=o(176),rr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Zn()(nr.Z,rr);nr.Z.locals;class ir extends t.BoxedEditorUIView{constructor(e,o,n={}){super(e),this.stickyPanel=new or(e,n.containerElement,n.panelAbsolute),this.toolbar=new t.ToolbarView(e,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new t.InlineEditableUIView(e,o)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}var sr=o(704),cr=o(434),ar=Function.prototype,lr=Object.prototype,ur=ar.toString,dr=lr.hasOwnProperty,hr=ur.call(Object);const fr=function(t){if(!Ce(t)||"[object Object]"!=Bt(t))return!1;var e=Co(t);if(null===e)return!0;var o=dr.call(e,"constructor")&&e.constructor;return"function"==typeof o&&o instanceof o&&ur.call(o)==hr};const pr=function(t){return Ce(t)&&1===t.nodeType&&!fr(t)};class br extends((0,sr.DataApiMixin)((0,sr.ElementApiMixin)(sr.Editor))){constructor(t,e={}){if(!gr(t)&&void 0!==e.initialData)throw new r.CKEditorError("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return gr(t)?(0,r.getDataFromElement)(t):t}(t)),gr(t)&&(this.sourceElement=t),this.model.document.createRoot();const o=!this.config.get("toolbar.shouldNotGroupWhenFull"),n=new ir(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:o,containerElement:e.containerElement,panelAbsolute:e.panelAbsolute});this.ui=new i(this,n),(0,sr.attachToForm)(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise((o=>{const n=new this(t,e);o(n.initPlugins().then((()=>n.ui.init(gr(t)?t:null))).then((()=>n.data.init(n.config.get("initialData")))).then((()=>n.fire("ready"))).then((()=>n)))}))}}function gr(t){return pr(t)}br.Context=sr.Context,br.EditorWatchdog=cr.EditorWatchdog,br.ContextWatchdog=cr.ContextWatchdog})(),(window.CKEditor5=window.CKEditor5||{}).editorClassicFloating=n})();
|