Notes/libraries/ckeditor/ckeditor.js

7 lines
1.7 MiB
Vendored
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(may require <kbd>Fn</kbd>)","%0 of %1":"%0 of %1",Accept:"Accept",Accessibility:"Accessibility","Accessibility help":"Accessibility help",Admonition:"Admonition","Advanced options":"Advanced options","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",All:"All","Almost equal to":"Almost equal to",Angle:"Angle","Approximately equal to":"Approximately equal to",Aquamarine:"Aquamarine",Arrows:"Arrows","Asterisk operator":"Asterisk operator","Austral sign":"Austral sign","back with leftwards arrow above":"back with leftwards arrow above",Background:"Background","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Below, you can find a list of keyboard shortcuts that can be used in the editor.",Big:"Big","Bitcoin sign":"Bitcoin sign",Black:"Black","Block quote":"Block quote","Block styles":"Block styles",Blue:"Blue",Bold:"Bold","Bold text":"Bold text",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image",Category:"Category","Cedi sign":"Cedi sign","Cell properties":"Cell properties","Cent sign":"Cent sign","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading","Choose language":"Choose language",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Close:"Close","Close contextual balloons, dropdowns, and dialogs":"Close contextual balloons, dropdowns, and dialogs",Code:"Code","Code block":"Code block","Colon sign":"Colon sign",Color:"Color","Color picker":"Color picker",Column:"Column","Contains as member":"Contains as member","Content editing keystrokes":"Content editing keystrokes","Copy selected content":"Copy selected content","Copyright sign":"Copyright sign","Create link":"Create link","Cruzeiro sign":"Cruzeiro sign",Currency:"Currency","Currency sign":"Currency sign",Custom:"Custom","Custom image size":"Custom image size",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Decrease list item indent":"Decrease list item indent",Default:"Default","Degree sign":"Degree sign","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc","Division sign":"Division sign","Document colors":"Document colors","Dollar sign":"Dollar sign","Dong sign":"Dong sign",Dotted:"Dotted",Double:"Double","Double dagger":"Double dagger","Double exclamation mark":"Double exclamation mark","Double low-9 quotation mark":"Double low-9 quotation mark","Double question mark":"Double question mark",Downloadable:"Downloadable","downwards arrow to bar":"downwards arrow to bar","downwards dashed arrow":"downwards dashed arrow","downwards double arrow":"downwards double arrow","downwards simple arrow":"downwards simple arrow","Drachma sign":"Drachma sign","Drag to move":"Drag to move","Dropdown menu":"Dropdown menu","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor dialog":"Editor dialog","Editor menu bar":"Editor menu bar","Editor toolbar":"Editor toolbar","Element of":"Element of","Em dash":"Em dash","Empty set":"Empty set","En dash":"En dash","end with leftwards arrow above":"end with leftwards arrow above","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Entering %0 code snippet":"Entering %0 code snippet","Entering a to-do list":"Entering a to-do list","Entering code snippet":"Entering code snippet","Error during image upload":"Error during image upload","Euro sign":"Euro sign","Euro-currency sign":"Euro-currency sign","Exclamation question mark":"Exclamation question mark","Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":"Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.",Find:"Find","Find and replace":"Find and replace","Find in text…":"Find in text…","Find in the document":"Find in the document","Font Background Color":"Font Background Color","Font Color":"Font Color","Font Family":"Font Family","Font Size":"Font Size","For all":"For all","Fraction slash":"Fraction slash","French franc sign":"French franc sign","From computer":"From computer","Full size image":"Full size image","German penny sign":"German penny sign","Greater-than or equal to":"Greater-than or equal to","Greater-than sign":"Greater-than sign",Green:"Green",Grey:"Grey",Groove:"Groove","Guarani sign":"Guarani sign","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height","Help Contents. To close this dialog press ESC.":"Help Contents. To close this dialog press ESC.",HEX:"HEX","Horizontal ellipsis":"Horizontal ellipsis","Horizontal line":"Horizontal line","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Hryvnia sign":"Hryvnia sign","HTML object":"HTML object",Huge:"Huge","Identical to":"Identical to",Image:"Image","Image from computer":"Image from computer","Image resize list":"Image resize list","Image toolbar":"Image toolbar","Image upload complete":"Image upload complete","Image via URL":"Image via URL","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Increase list item indent":"Increase list item indent","Indian rupee sign":"Indian rupee sign",Infinity:"Infinity","Insert a hard break (a new paragraph)":"Insert a hard break (a new paragraph)","Insert a new paragraph directly after a widget":"Insert a new paragraph directly after a widget","Insert a new paragraph directly before a widget":"Insert a new paragraph directly before a widget","Insert a new table row (when in the last cell of a table)":"Insert a new table row (when in the last cell of a table)","Insert a soft break (a <code>&lt;br&gt;</code> element)":"Insert a soft break (a <code>&lt;br&gt;</code> element)","Insert code block":"Insert code block","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert via URL":"Insert via URL",Inset:"Inset",Integral:"Integral",Intersection:"Intersection","Invalid start index value.":"Invalid start index value.","Inverted exclamation mark":"Inverted exclamation mark","Inverted question mark":"Inverted question mark",Italic:"Italic","Italic text":"Italic text","Justify cell text":"Justify cell text","Keystrokes that can be used in a list":"Keystrokes that can be used in a list","Keystrokes that can be used in a table cell":"Keystrokes that can be used in a table cell","Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":"Keystrokes that can be used when a widget is selected (for example: image, table, etc.)","Kip sign":"Kip sign",Language:"Language",Latin:"Latin","Latin capital letter a with breve":"Latin capital letter a with breve","Latin capital letter a with macron":"Latin capital letter a with macron","Latin capital letter a with ogonek":"Latin capital letter a with ogonek","Latin capital letter c with acute":"Latin capital letter c with acute","Latin capital letter c with caron":"Latin capital letter c with caron","Latin capital letter c with circumflex":"Latin capital letter c with circumflex","Latin capital letter c with dot above":"Latin capital letter c with dot above","Latin capital letter d with caron":"Latin capital letter d with caron","Latin capital letter d with stroke":"Latin capital letter d with stroke","Latin capital letter e with breve":"Latin capital letter e with breve","Latin capital letter e with caron":"Latin capital letter e with caron","Latin capital letter e with dot above":"Latin capital letter e with dot above","Latin capital letter e with macron":"Latin capital letter e with macron","Latin capital letter e with ogonek":"Latin capital letter e with ogonek","Latin capital letter eng":"Latin capital letter eng","Latin capital letter g with breve":"Latin capital letter g with breve","Latin capital letter g with cedilla":"Latin capital letter g with cedilla","Latin capital letter g with circumflex":"Latin capital letter g with circumflex","Latin capital letter g with dot above":"Latin capital letter g with dot above","Latin capital letter h with circumflex":"Latin capital letter h with circumflex","Latin capital letter h with stroke":"Latin capital letter h with stroke","Latin capital letter i with breve":"Latin capital letter i with breve","Latin capital letter i with dot above":"Latin capital letter i with dot above","Latin capital letter i with macron":"Latin capital letter i with macron","Latin capital letter i with ogonek":"Latin capital letter i with ogonek","Latin capital letter i with tilde":"Latin capital letter i with tilde","Latin capital letter j with circumflex":"Latin capital letter j with circumflex","Latin capital letter k with cedilla":"Latin capital letter k with cedilla","Latin capital letter l with acute":"Latin capital letter l with acute","Latin capital letter l with caron":"Latin capital letter l with caron","Latin capital letter l with cedilla":"Latin capital letter l with cedilla","Latin capital letter l with middle dot":"Latin capital letter l with middle dot","Latin capital letter l with stroke":"Latin capital letter l with stroke","Latin capital letter n with acute":"Latin capital letter n with acute","Latin capital letter n with caron":"Latin capital letter n with caron","Latin capital letter n with cedilla":"Latin capital letter n with cedilla","Latin capital letter o with breve":"Latin capital letter o with breve","Latin capital letter o with double acute":"Latin capital letter o with double acute","Latin capital letter o with macron":"Latin capital letter o with macron","Latin capital letter r with acute":"Latin capital letter r with acute","Latin capital letter r with caron":"Latin capital letter r with caron","Latin capital letter r with cedilla":"Latin capital letter r with cedilla","Latin capital letter s with acute":"Latin capital letter s with acute","Latin capital letter s with caron":"Latin capital letter s with caron","Latin capital letter s with cedilla":"Latin capital letter s with cedilla","Latin capital letter s with circumflex":"Latin capital letter s with circumflex","Latin capital letter t with caron":"Latin capital letter t with caron","Latin capital letter t with cedilla":"Latin capital letter t with cedilla","Latin capital letter t with stroke":"Latin capital letter t with stroke","Latin capital letter u with breve":"Latin capital letter u with breve","Latin capital letter u with double acute":"Latin capital letter u with double acute","Latin capital letter u with macron":"Latin capital letter u with macron","Latin capital letter u with ogonek":"Latin capital letter u with ogonek","Latin capital letter u with ring above":"Latin capital letter u with ring above","Latin capital letter u with tilde":"Latin capital letter u with tilde","Latin capital letter w with circumflex":"Latin capital letter w with circumflex","Latin capital letter y with circumflex":"Latin capital letter y with circumflex","Latin capital letter y with diaeresis":"Latin capital letter y with diaeresis","Latin capital letter z with acute":"Latin capital letter z with acute","Latin capital letter z with caron":"Latin capital letter z with caron","Latin capital letter z with dot above":"Latin capital letter z with dot above","Latin capital ligature ij":"Latin capital ligature ij","Latin capital ligature oe":"Latin capital ligature oe","Latin small letter a with breve":"Latin small letter a with breve","Latin small letter a with macron":"Latin small letter a with macron","Latin small letter a with ogonek":"Latin small letter a with ogonek","Latin small letter c with acute":"Latin small letter c with acute","Latin small letter c with caron":"Latin small letter c with caron","Latin small letter c with circumflex":"Latin small letter c with circumflex","Latin small letter c with dot above":"Latin small letter c with dot above","Latin small letter d with caron":"Latin small letter d with caron","Latin small letter d with stroke":"Latin small letter d with stroke","Latin small letter dotless i":"Latin small letter dotless i","Latin small letter e with breve":"Latin small letter e with breve","Latin small letter e with caron":"Latin small letter e with caron","Latin small letter e with dot above":"Latin small letter e with dot above","Latin small letter e with macron":"Latin small letter e with macron","Latin small letter e with ogonek":"Latin small letter e with ogonek","Latin small letter eng":"Latin small letter eng","Latin small letter f with hook":"Latin small letter f with hook","Latin small letter g with breve":"Latin small letter g with breve","Latin small letter g with cedilla":"Latin small letter g with cedilla","Latin small letter g with circumflex":"Latin small letter g with circumflex","Latin small letter g with dot above":"Latin small letter g with dot above","Latin small letter h with circumflex":"Latin small letter h with circumflex","Latin small letter h with stroke":"Latin small letter h with stroke","Latin small letter i with breve":"Latin small letter i with breve","Latin small letter i with macron":"Latin small letter i with macron","Latin small letter i with ogonek":"Latin small letter i with ogonek","Latin small letter i with tilde":"Latin small letter i with tilde","Latin small letter j with circumflex":"Latin small letter j with circumflex","Latin small letter k with cedilla":"Latin small letter k with cedilla","Latin small letter kra":"Latin small letter kra","Latin small letter l with acute":"Latin small letter l with acute","Latin small letter l with caron":"Latin small letter l with caron","Latin small letter l with cedilla":"Latin small letter l with cedilla","Latin small letter l with middle dot":"Latin small letter l with middle dot","Latin small letter l with stroke":"Latin small letter l with stroke","Latin small letter long s":"Latin small letter long s","Latin small letter n preceded by apostrophe":"Latin small letter n preceded by apostrophe","Latin small letter n with acute":"Latin small letter n with acute","Latin small letter n with caron":"Latin small letter n with caron","Latin small letter n with cedilla":"Latin small letter n with cedilla","Latin small letter o with breve":"Latin small letter o with breve","Latin small letter o with double acute":"Latin small letter o with double acute","Latin small letter o with macron":"Latin small letter o with macron","Latin small letter r with acute":"Latin small letter r with acute","Latin small letter r with caron":"Latin small letter r with caron","Latin small letter r with cedilla":"Latin small letter r with cedilla","Latin small letter s with acute":"Latin small letter s with acute","Latin small letter s with caron":"Latin small letter s with caron","Latin small letter s with cedilla":"Latin small letter s with cedilla","Latin small letter s with circumflex":"Latin small letter s with circumflex","Latin small letter t with caron":"Latin small letter t with caron","Latin small letter t with cedilla":"Latin small letter t with cedilla","Latin small letter t with stroke":"Latin small letter t with stroke","Latin small letter u with breve":"Latin small letter u with breve","Latin small letter u with double acute":"Latin small letter u with double acute","Latin small letter u with macron":"Latin small letter u with macron","Latin small letter u with ogonek":"Latin small letter u with ogonek","Latin small letter u with ring above":"Latin small letter u with ring above","Latin small letter u with tilde":"Latin small letter u with tilde","Latin small letter w with circumflex":"Latin small letter w with circumflex","Latin small letter y with circumflex":"Latin small letter y with circumflex","Latin small letter z with acute":"Latin small letter z with acute","Latin small letter z with caron":"Latin small letter z with caron","Latin small letter z with dot above":"Latin small letter z with dot above","Latin small ligature ij":"Latin small ligature ij","Latin small ligature oe":"Latin small ligature oe","Leaving %0 code snippet":"Leaving %0 code snippet","Leaving a to-do list":"Leaving a to-do list","Leaving code snippet":"Leaving code snippet","Left aligned image":"Left aligned image","Left double quotation mark":"Left double quotation mark","Left single quotation mark":"Left single quotation mark","Left-pointing double angle quotation mark":"Left-pointing double angle quotation mark","leftwards arrow to bar":"leftwards arrow to bar","leftwards dashed arrow":"leftwards dashed arrow","leftwards double arrow":"leftwards double arrow","leftwards simple arrow":"leftwards simple arrow","Less-than or equal to":"Less-than or equal to","Less-than sign":"Less-than sign","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","Link URL must not be empty.":"Link URL must not be empty.","Lira sign":"Lira sign","List properties":"List properties","Livre tournois sign":"Livre tournois sign","Logical and":"Logical and","Logical or":"Logical or","Lower-latin":"Lower-latin","Lowerroman":"Lowerroman",Macron:"Macron","Manat sign":"Manat sign","Match case":"Match case",Mathematical:"Mathematical",MENU_BAR_MENU_EDIT:"Edit",MENU_BAR_MENU_FILE:"File",MENU_BAR_MENU_FONT:"Font",MENU_BAR_MENU_FORMAT:"Format",MENU_BAR_MENU_HELP:"Help",MENU_BAR_MENU_INSERT:"Insert",MENU_BAR_MENU_TEXT:"Text",MENU_BAR_MENU_TOOLS:"Tools",MENU_BAR_MENU_VIEW:"View","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells","Mill sign":"Mill sign","Minus sign":"Minus sign","Move focus between form fields (inputs, buttons, etc.)":"Move focus between form fields (inputs, buttons, etc.)","Move focus from an editable area back to the parent widget":"Move focus from an editable area back to the parent widget","Move focus in and out of an active dialog window":"Move focus in and out of an active dialog window","Move focus to the menu bar, navigate between menu bars":"Move focus to the menu bar, navigate between menu bars","Move focus to the toolbar, navigate between toolbars":"Move focus to the toolbar, navigate between toolbars","Move out of a link":"Move out of a link","Move out of an inline code style":"Move out of an inline code style","Move the caret to allow typing directly after a widget":"Move the caret to allow typing directly after a widget","Move the caret to allow typing directly before a widget":"Move the caret to allow typing directly before a widget","Move the selection to the next cell":"Move the selection to the next cell","Move the selection to the previous cell":"Move the selection to the previous cell","Multiple styles":"Multiple styles","Multiplication sign":"Multiplication sign","N-ary product":"N-ary product","N-ary summation":"N-ary summation",Nabla:"Nabla","Naira sign":"Naira sign","Navigate through the table":"Navigate through the table","Navigate through the toolbar or menu bar":"Navigate through the toolbar or menu bar","New sheqel sign":"New sheqel sign",Next:"Next","Next result":"Next result","No results found":"No results found","No searchable items":"No searchable items",None:"None","Nordic mark sign":"Nordic mark sign","Not an element of":"Not an element of","Not equal to":"Not equal to","Not sign":"Not sign","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","on with exclamation mark with left right arrow above":"on with exclamation mark with left right arrow above","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open the accessibility help dialog":"Open the accessibility help dialog",Orange:"Orange",Original:"Original",Outset:"Outset",Overline:"Overline",Padding:"Padding","Page break":"Page break",Paragraph:"Paragraph","Paragraph sign":"Paragraph sign","Partial differential":"Partial differential","Paste content":"Paste content","Paste content as plain text":"Paste content as plain text","Per mille sign":"Per mille sign","Per ten thousand sign":"Per ten thousand sign","Peseta sign":"Peseta sign","Peso sign":"Peso sign","Plain text":"Plain text",'Please enter a valid color (e.g. "ff0000").':'Please enter a valid color (e.g. "ff0000").',"Plus-minus sign":"Plus-minus sign","Pound sign":"Pound sign","Press %0 for help.":"Press %0 for help.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous","Previous result":"Previous result","Proportional to":"Proportional to",Purple:"Purple","Question exclamation mark":"Question exclamation mark",Red:"Red",Redo:"Redo","Registered sign":"Registered sign","Remove color":"Remove color","Remove Format":"Remove Format","Remove language":"Remove language",Replace:"Replace","Replace all":"Replace all","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Replace with…":"Replace with…","Resize image":"Resize image","Resize image (in %0)":"Resize image (in %0)","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Reversed paragraph sign":"Reversed paragraph sign","Revert autoformatting action":"Revert autoformatting action","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Ridge:"Ridge","Right aligned image":"Right aligned image","Right double quotation mark":"Right double quotation mark","Right single quotation mark":"Right single quotation mark","Right-pointing double angle quotation mark":"Right-pointing double angle quotation mark","rightwards arrow to bar":"rightwards arrow to bar","rightwards dashed arrow":"rightwards dashed arrow","rightwards double arrow":"rightwards double arrow","rightwards simple arrow":"rightwards simple arrow",Row:"Row","Ruble sign":"Ruble sign","Rupee sign":"Rupee sign",Save:"Save","Section sign":"Section sign","Select all":"Select all","Select column":"Select column","Select row":"Select row","Show more items":"Show more items","Side image":"Side image","Single left-pointing angle quotation mark":"Single left-pointing angle quotation mark","Single low-9 quotation mark":"Single low-9 quotation mark","Single right-pointing angle quotation mark":"Single right-pointing angle quotation mark",Small:"Small",Solid:"Solid","soon with rightwards arrow above":"soon with rightwards arrow above","Special characters":"Special characters","Spesmilo sign":"Spesmilo sign","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Square root":"Square root","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough","Strikethrough text":"Strikethrough text",Style:"Style",Styles:"Styles",Subscript:"Subscript",Superscript:"Superscript",Table:"Table","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Tenge sign":"Tenge sign",Text:"Text","Text alternative":"Text alternative","Text styles":"Text styles","Text to find must not be empty.":"Text to find must not be empty.",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".','The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"The value must not be empty.":"The value must not be empty.","The value should be a plain number.":"The value should be a plain number.","There exists":"There exists","These keyboard shortcuts allow for quick access to content editing features.":"These keyboard shortcuts allow for quick access to content editing features.","This link has no URL":"This link has no URL","Tilde operator":"Tilde operator",Tiny:"Tiny","Tip: Find some text first in order to replace it.":"Tip: Find some text first in order to replace it.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lowerlatin list style":"Toggle the lowerlatin list style","Toggle the lowerroman list style":"Toggle the lowerroman list style","Toggle the square list style":"Toggle the square list style","Toggle the upperlatin list style":"Toggle the upperlatin list style","Toggle the upperroman list style":"Toggle the upperroman list style","top with upwards arrow above":"top with upwards arrow above","Trade mark sign":"Trade mark sign","Tugrik sign":"Tugrik sign","Turkish lira sign":"Turkish lira sign",Turquoise:"Turquoise","Two dot leader":"Two dot leader","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline","Underline text":"Underline text",Undo:"Undo",Union:"Union",Unlink:"Unlink","up down arrow with base":"up down arrow with base","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Uploading image":"Uploading image","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","upwards arrow to bar":"upwards arrow to bar","upwards dashed arrow":"upwards dashed arrow","upwards double arrow":"upwards double arrow","upwards simple arrow":"upwards simple arrow","Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":"Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.","User interface and content navigation keystrokes":"User interface and content navigation keystrokes","Vertical text alignment toolbar":"Vertical text alignment toolbar","Via URL":"Via URL","Vulgar fraction one half":"Vulgar fraction one half","Vulgar fraction one quarter":"Vulgar fraction one quarter","Vulgar fraction three quarters":"Vulgar fraction three quarters",White:"White","Whole words only":"Whole words only","Widget toolbar":"Widget toolbar",Width:"Width","Won sign":"Won sign","Wrap text":"Wrap text",Yellow:"Yellow","Yen sign":"Yen sign","You have no image upload permissions.":"You have no image upload permissions."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
/*!
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.CKEditor=e():t.CKEditor=e()}(self,(()=>(()=>{var t={4:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-menu-bar__menu{display:block;font-size:inherit;position:relative}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level{max-width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenu.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenu.css"],names:[],mappings:"AAKA,sBACC,aAAc,CCCd,iBAAkB,CDAlB,iBACD,CCCC,kDACC,cACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-menu-bar__menu {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-menu-bar__menu {\r\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\r\n\tfont-size: inherit;\r\n\r\n\t&.ck-menu-bar__menu_top-level {\r\n\t\tmax-width: 100%;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},25:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAGC,eAAgB,CAChB,aAAc,CAFd,eAAiB,CADjB,UAmBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-collapsible.ck-collapsible_collapsed {\r\n\t& > .ck-collapsible__children {\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\r\n}\r\n\r\n.ck.ck-collapsible {\r\n\t& > .ck.ck-button {\r\n\t\twidth: 100%;\r\n\t\tfont-weight: bold;\r\n\t\tborder-radius: 0;\r\n\t\tcolor: inherit;\r\n\r\n\t\t&:focus {\r\n\t\t\tbackground: transparent;\r\n\t\t}\r\n\r\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\r\n\t\t\tbackground: transparent;\r\n\t\t\tborder-color: transparent;\r\n\t\t\tbox-shadow: none;\r\n\t\t}\r\n\r\n\t\t& > .ck-icon {\r\n\t\t\tmargin-right: var(--ck-spacing-medium);\r\n\t\t\twidth: var(--ck-collapsible-arrow-size);\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck-collapsible__children {\r\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);\r\n\t}\r\n\r\n\t&.ck-collapsible_collapsed {\r\n\t\t& > .ck.ck-button .ck-icon {\r\n\t\t\ttransform: rotate(-90deg);\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},109:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:ck-spinner-rotate 1.5s linear infinite;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-spinner-container{animation-duration:3s}}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@keyframes ck-spinner-rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,gDAAiD,CADjD,qCAAsC,CADtC,oCAOD,CAHC,uCALD,yBAME,qBAEF,CADC,CAGD,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCAA6B,CAH7B,qCAAsC,CADtC,oCAKD,CAEA,6BACC,GACC,uBACD,CACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-toolbar-spinner-size: 18px;\r\n}\r\n\r\n.ck.ck-spinner-container {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n}\r\n\r\n.ck.ck-spinner {\r\n\tposition: absolute;\r\n\ttop: 50%;\r\n\tleft: 0;\r\n\tright: 0;\r\n\tmargin: 0 auto;\r\n\ttransform: translateY(-50%);\r\n\tz-index: 1;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-toolbar-spinner-size: 18px;\r\n}\r\n\r\n.ck.ck-spinner-container {\r\n\twidth: var(--ck-toolbar-spinner-size);\r\n\theight: var(--ck-toolbar-spinner-size);\r\n\tanimation: 1.5s infinite ck-spinner-rotate linear;\r\n\r\n\t@media (prefers-reduced-motion: reduce) {\r\n\t\tanimation-duration: 3s;\r\n\t}\r\n}\r\n\r\n.ck.ck-spinner {\r\n\twidth: var(--ck-toolbar-spinner-size);\r\n\theight: var(--ck-toolbar-spinner-size);\r\n\tborder-radius: 50%;\r\n\tborder: 2px solid var(--ck-color-text);\r\n\tborder-top-color: transparent;\r\n}\r\n\r\n@keyframes ck-spinner-rotate {\r\n\tto {\r\n\t\ttransform: rotate(360deg)\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},128:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-character-info{border-top:1px solid var(--ck-color-base-border);display:flex;justify-content:space-between;padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-character-info>*{font-size:var(--ck-font-size-small);text-transform:uppercase}.ck.ck-character-info .ck-character-info__name{max-width:280px;overflow:hidden;text-overflow:ellipsis}.ck.ck-character-info .ck-character-info__code{opacity:.6}","",{version:3,sources:["webpack://./../ckeditor5-special-characters/theme/characterinfo.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-special-characters/characterinfo.css"],names:[],mappings:"AAKA,sBCIC,gDAAiD,CDHjD,YAAa,CACb,6BAA8B,CCC9B,uDDAD,CCGC,wBAEC,mCAAoC,CADpC,wBAED,CAEA,+CACC,eAAgB,CAEhB,eAAgB,CADhB,sBAED,CAEA,+CACC,UACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-character-info {\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n.ck.ck-character-info {\r\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\r\n\tborder-top: 1px solid var(--ck-color-base-border);\r\n\r\n\t& > * {\r\n\t\ttext-transform: uppercase;\r\n\t\tfont-size: var(--ck-font-size-small);\r\n\t}\r\n\r\n\t& .ck-character-info__name {\r\n\t\tmax-width: 280px;\r\n\t\ttext-overflow: ellipsis;\r\n\t\toverflow: hidden;\r\n\t}\r\n\r\n\t& .ck-character-info__code {\r\n\t\topacity: .6;\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},253:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}@media (prefers-reduced-motion:reduce){.ck.ck-input{transition:none}}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}@media (prefers-reduced-motion:reduce){.ck.ck-input.ck-error{animation:none}}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eDmDD,CA9CA,iECDE,qCD+CF,CA9CA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DAkCD,CAhCC,uCAdD,aAeE,eA+BF,CA9BC,CAEA,mBEvBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YF2BA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BGnCD,oDHsCC,CAGD,sBAEC,sCAAuC,CADvC,+CAUD,CAPC,uCAJD,sBAKE,cAMF,CALC,CAEA,4BGjDD,iDHmDC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n@import "../../../mixins/_focus.css";\r\n@import "../../../mixins/_shadow.css";\r\n\r\n:root {\r\n\t--ck-input-width: 18em;\r\n\r\n\t/* Backward compatibility. */\r\n\t--ck-input-text-width: var(--ck-input-width);\r\n}\r\n\r\n.ck.ck-input {\r\n\t@mixin ck-rounded-corners;\r\n\r\n\tbackground: var(--ck-color-input-background);\r\n\tborder: 1px solid var(--ck-color-input-border);\r\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\r\n\tmin-width: var(--ck-input-width);\r\n\r\n\t/* This is important to stay of the same height as surrounding buttons */\r\n\tmin-height: var(--ck-ui-component-min-height);\r\n\r\n\t/* Apply some smooth transition to the box-shadow and border. */\r\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\r\n\r\n\t@media (prefers-reduced-motion: reduce) {\r\n\t\ttransition: none;\r\n\t}\r\n\r\n\t&:focus {\r\n\t\t@mixin ck-focus-ring;\r\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\r\n\t}\r\n\r\n\t&[readonly] {\r\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\r\n\t\tbackground: var(--ck-color-input-disabled-background);\r\n\t\tcolor: var(--ck-color-input-disabled-text);\r\n\r\n\t\t&:focus {\r\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\r\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-error {\r\n\t\tborder-color: var(--ck-color-input-error-border);\r\n\t\tanimation: ck-input-shake .3s ease both;\r\n\r\n\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\tanimation: none;\r\n\t\t}\r\n\r\n\t\t&:focus {\r\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@keyframes ck-input-shake {\r\n\t20% {\r\n\t\ttransform: translateX(-2px);\r\n\t}\r\n\r\n\t40% {\r\n\t\ttransform: translateX(2px);\r\n\t}\r\n\r\n\t60% {\r\n\t\ttransform: translateX(-1px);\r\n\t}\r\n\r\n\t80% {\r\n\t\ttransform: translateX(1px);\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A visual style of focused element's border.\r\n */\r\n@define-mixin ck-focus-ring {\r\n\t/* Disable native outline. */\r\n\toutline: none;\r\n\tborder: var(--ck-focus-ring)\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n"],sourceRoot:""}]);const a=s},265:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-content {\r\n\t& .image {\r\n\t\tdisplay: table;\r\n\t\tclear: both;\r\n\t\ttext-align: center;\r\n\r\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\r\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\r\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\r\n\t\tmargin: 0.9em auto;\r\n\r\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\r\n\t\tmin-width: 50px;\r\n\r\n\t\t& img {\r\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\r\n\t\t\tdisplay: block;\r\n\r\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\r\n\t\t\tmargin: 0 auto;\r\n\r\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\r\n\t\t\tmax-width: 100%;\r\n\r\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\r\n\t\t\tmin-width: 100%;\r\n\r\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\r\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\r\n\t\t\theight: auto;\r\n\t\t}\r\n\t}\r\n\r\n\t& .image-inline {\r\n\t\t/*\r\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\r\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\r\n\t\t * This strange behavior does not happen with inline-flex.\r\n\t\t */\r\n\t\tdisplay: inline-flex;\r\n\r\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\r\n\t\tmax-width: 100%;\r\n\r\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\r\n\t\talign-items: flex-start;\r\n\r\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\r\n\t\t& picture {\r\n\t\t\tdisplay: flex;\r\n\t\t}\r\n\r\n\t\t/* When the picture is present, it must act like a resizable img. */\r\n\t\t& picture,\r\n\t\t& img {\r\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\r\n\t\t\tflex-grow: 1;\r\n\t\t\tflex-shrink: 1;\r\n\r\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\r\n\t\t\tmax-width: 100%;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck.ck-editor__editable {\r\n\t/*\r\n\t * Inhertit the content styles padding of the <figcaption> in case the integration overrides `text-align: center`\r\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\r\n\t * caret does, and not at the edge of <figcaption>.\r\n\t */\r\n\t& .image > figcaption.ck-placeholder::before {\r\n\t\tpadding-left: inherit;\r\n\t\tpadding-right: inherit;\r\n\r\n\t\t/*\r\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\r\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\r\n\t\t */\r\n\t\twhite-space: nowrap;\r\n\t\toverflow: hidden;\r\n\t\ttext-overflow: ellipsis;\r\n\t}\r\n\r\n\t/*\r\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\r\n\t */\r\n\t& .image {\r\n\t\tz-index: 1;\r\n\r\n\t\t/*\r\n\t\t * Make sure the selected image always stays on top of its siblings.\r\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\r\n\t\t */\r\n\t\t&.ck-widget_selected {\r\n\t\t\tz-index: 2;\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\r\n\t */\r\n\t& .image-inline {\r\n\t\tz-index: 1;\r\n\r\n\t\t/*\r\n\t\t * Make sure the selected inline image always stays on top of its siblings.\r\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\r\n\t\t */\r\n\t\t&.ck-widget_selected {\r\n\t\t\tz-index: 2;\r\n\r\n\t\t\t/*\r\n\t\t\t * Make sure the native browser selection style is not displayed.\r\n\t\t\t * Inline image widgets have their own styles for the selected state and\r\n\t\t\t * leaving this up to the browser is asking for a visual collision.\r\n\t\t\t */\r\n\t\t\t& ::selection {\r\n\t\t\t\tdisplay: none;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\r\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\r\n\t& .image-inline img {\r\n\t\theight: auto;\r\n\t}\r\n\r\n\t/* The inline image nested in the table should have its original size if not resized.\r\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\r\n\t& td,\r\n\t& th {\r\n\t\t& .image-inline img {\r\n\t\t\tmax-width: none;\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},278:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-list-item-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list-item-button{text-align:left}[dir=rtl] .ck.ck-list-item-button{text-align:right}[dir=ltr] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-right:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-holder{display:inline-flex;height:.9em;width:.9em}[dir=ltr] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-left:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-icon{height:100%}.ck.ck-button.ck-list-item-button{padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2)}.ck.ck-button.ck-list-item-button,.ck.ck-button.ck-list-item-button.ck-on{background:var(--ck-color-list-background);color:var(--ck-color-text)}[dir=ltr] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-right:var(--ck-spacing-small)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable):not(.ck-disabled),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled):not(.ck-disabled){color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/listitembutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/listitembutton.css"],names:[],mappings:"AAOA,wBAGC,eAAgB,CAFhB,gBAAiB,CACjB,UAsCD,CAxCA,kCAME,eAkCF,CAxCA,kCAUE,gBA8BF,CA3BC,iEAEE,oCAMF,CARA,iEAME,qCAEF,CAEA,2DACC,mBAAoB,CAEpB,WAAY,CADZ,UAUD,CAZA,qEAME,oCAMF,CAZA,qEAUE,mCAEF,CAEA,yDACC,WACD,CCvCD,kCACC,iEAiCD,CA/BC,0EAEC,0CAA2C,CAC3C,0BACD,CAEA,oFAEE,oCAMF,CARA,oFAME,qCAEF,CAOA,6OAIC,uDAKD,CAHC,qTACC,0BACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../mixins/_dir.css";\r\n\r\n.ck.ck-list-item-button {\r\n\tmin-height: unset;\r\n\twidth: 100%;\r\n\tborder-radius: 0;\r\n\r\n\t@mixin ck-dir ltr {\r\n\t\ttext-align: left;\r\n\t}\r\n\r\n\t@mixin ck-dir rtl {\r\n\t\ttext-align: right;\r\n\t}\r\n\r\n\t&.ck-list-item-button_toggleable {\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\tpadding-left: var(--ck-spacing-small);\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\tpadding-right: var(--ck-spacing-small);\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck-list-item-button__check-holder {\r\n\t\tdisplay: inline-flex;\r\n\t\twidth: .9em;\r\n\t\theight: .9em;\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\tmargin-right: var(--ck-spacing-small);\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\tmargin-left: var(--ck-spacing-small);\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck-list-item-button__check-icon {\r\n\t\theight: 100%;\r\n\t}\r\n}\r\n','/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-button.ck-list-item-button {\r\n\tpadding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));\r\n\r\n\t&,\r\n\t&.ck-on {\r\n\t\tbackground: var(--ck-color-list-background);\r\n\t\tcolor: var(--ck-color-text);\r\n\t}\r\n\r\n\t&:has(.ck-list-item-button__check-holder) {\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\tpadding-left: var(--ck-spacing-small);\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\tpadding-right: var(--ck-spacing-small);\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * `.ck-on` class and background styling is overridden for `ck-button` in many places.\r\n\t * This is a workaround to make sure that the background is not overridden and uses similar\r\n\t * selector specificity as the other overrides.\r\n\t */\r\n\t&:hover:not(.ck-disabled),\r\n\t&.ck-button.ck-on:hover,\r\n\t&.ck-on:not(.ck-list-item-button_toggleable),\r\n\t&.ck-on:hover {\r\n\t\tbackground: var(--ck-color-list-button-hover-background);\r\n\r\n\t\t&:not(.ck-disabled) {\r\n\t\t\tcolor: var(--ck-color-text);\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},497:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-menu-bar{background:var(--ck-color-base-background);border:1px solid var(--ck-color-toolbar-border);display:flex;flex-wrap:wrap;gap:var(--ck-spacing-small);justify-content:flex-start;padding:var(--ck-spacing-small);width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubar.css"],names:[],mappings:"AAKA,gBAIC,0CAA2C,CAG3C,+CAAgD,CANhD,YAAa,CACb,cAAe,CAIf,2BAA4B,CAH5B,0BAA2B,CAE3B,+BAAgC,CAGhC,UACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-menu-bar {\r\n\tdisplay: flex;\r\n\tflex-wrap: wrap;\r\n\tjustify-content: flex-start;\r\n\tbackground: var(--ck-color-base-background);\r\n\tpadding: var(--ck-spacing-small);\r\n\tgap: var(--ck-spacing-small);\r\n\tborder: 1px solid var(--ck-color-toolbar-border);\r\n\twidth: 100%;\r\n}\r\n"],sourceRoot:""}]);const a=s},695:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget{transition:none}}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{box-shadow:var(--ck-inner-shadow),0 0}@media (forced-colors:none){.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background)}}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused:not(td,th),.ck .ck-editor__nested-editable:focus:not(td,th){border:var(--ck-focus-ring);outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CChFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAcD,CAZC,uCAND,eAOE,eAWF,CAVC,CAEA,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAoBD,CAhBC,yGCrCA,qCDoDA,CE/CA,4BACC,yGFmCC,iEEjCD,CACD,CFwCC,+HG/CD,2BAA2B,CAD3B,YHkDC,CAKD,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAwCD,CA3BC,uCAzBD,4EA0BE,eA0BF,CAzBC,CAEA,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAeD,CAVC,kHACC,SAAU,CAGV,+DAKD,CAHC,uCAND,kHAOE,eAEF,CADC,CAKF,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-color-resizer: var(--ck-color-focus-border);\r\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\r\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\r\n\r\n\t--ck-resizer-border-radius: var(--ck-border-radius);\r\n\t--ck-resizer-tooltip-offset: 10px;\r\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\r\n}\r\n\r\n.ck .ck-widget {\r\n\t/* This is neccessary for type around UI to be positioned properly. */\r\n\tposition: relative;\r\n}\r\n\r\n.ck .ck-widget.ck-widget_with-selection-handle {\r\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\r\n\tposition: relative;\r\n\r\n\t& .ck-widget__selection-handle {\r\n\t\tposition: absolute;\r\n\r\n\t\t& .ck-icon {\r\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\r\n\t\t\tunnecessary spacing around it. */\r\n\t\t\tdisplay: block;\r\n\t\t}\r\n\t}\r\n\r\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\r\n\t&:hover > .ck-widget__selection-handle {\r\n\t\tvisibility: visible;\r\n\t}\r\n\r\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\r\n\t&.ck-widget_selected > .ck-widget__selection-handle {\r\n\t\tvisibility: visible;\r\n\t}\r\n}\r\n\r\n.ck .ck-size-view {\r\n\tbackground: var(--ck-color-resizer-tooltip-background);\r\n\tcolor: var(--ck-color-resizer-tooltip-text);\r\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\r\n\tborder-radius: var(--ck-resizer-border-radius);\r\n\tfont-size: var(--ck-font-size-tiny);\r\n\tdisplay: block;\r\n\tpadding: 0 var(--ck-spacing-small);\r\n\theight: var(--ck-resizer-tooltip-height);\r\n\tline-height: var(--ck-resizer-tooltip-height);\r\n\r\n\t&.ck-orientation-top-left,\r\n\t&.ck-orientation-top-right,\r\n\t&.ck-orientation-bottom-right,\r\n\t&.ck-orientation-bottom-left,\r\n\t&.ck-orientation-above-center {\r\n\t\tposition: absolute;\r\n\t}\r\n\r\n\t&.ck-orientation-top-left {\r\n\t\ttop: var(--ck-resizer-tooltip-offset);\r\n\t\tleft: var(--ck-resizer-tooltip-offset);\r\n\t}\r\n\r\n\t&.ck-orientation-top-right {\r\n\t\ttop: var(--ck-resizer-tooltip-offset);\r\n\t\tright: var(--ck-resizer-tooltip-offset);\r\n\t}\r\n\r\n\t&.ck-orientation-bottom-right {\r\n\t\tbottom: var(--ck-resizer-tooltip-offset);\r\n\t\tright: var(--ck-resizer-tooltip-offset);\r\n\t}\r\n\r\n\t&.ck-orientation-bottom-left {\r\n\t\tbottom: var(--ck-resizer-tooltip-offset);\r\n\t\tleft: var(--ck-resizer-tooltip-offset);\r\n\t}\r\n\r\n\t/* Class applied if the widget is too small to contain the size label */\r\n\t&.ck-orientation-above-center {\r\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\r\n\t\tleft: 50%;\r\n\t\ttransform: translate(-50%);\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../mixins/_focus.css";\r\n@import "../mixins/_shadow.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\r\n\r\n:root {\r\n\t--ck-widget-outline-thickness: 3px;\r\n\t--ck-widget-handler-icon-size: 16px;\r\n\t--ck-widget-handler-animation-duration: 200ms;\r\n\t--ck-widget-handler-animation-curve: ease;\r\n\r\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\r\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\r\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\r\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\r\n}\r\n\r\n.ck .ck-widget {\r\n\toutline-width: var(--ck-widget-outline-thickness);\r\n\toutline-style: solid;\r\n\toutline-color: transparent;\r\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\r\n\r\n\t@media (prefers-reduced-motion: reduce) {\r\n\t\ttransition: none;\r\n\t}\r\n\r\n\t&.ck-widget_selected,\r\n\t&.ck-widget_selected:hover {\r\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\r\n\t}\r\n\r\n\t&:hover {\r\n\t\toutline-color: var(--ck-color-widget-hover-border);\r\n\t}\r\n}\r\n\r\n.ck .ck-editor__nested-editable {\r\n\tborder: 1px solid transparent;\r\n\r\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\r\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\r\n\t&.ck-editor__nested-editable_focused,\r\n\t&:focus {\r\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\r\n\t\t@mixin ck-media-default-colors {\r\n\t\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Focus border should not be applied to table cells because it overrides the default table cell border color.\r\n\t\t * In other words - in some scenarios, the part of the table cell border has focus color style, which is not expected behavior\r\n\t\t * because it should be the same as the table cell border color.\r\n\t\t */\r\n\t\t&:not(td, th) {\r\n\t\t\t@mixin ck-focus-ring;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck .ck-widget.ck-widget_with-selection-handle {\r\n\t& .ck-widget__selection-handle {\r\n\t\tpadding: 4px;\r\n\t\tbox-sizing: border-box;\r\n\r\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\r\n\t\tbackground-color: transparent;\r\n\t\topacity: 0;\r\n\r\n\t\t/* Transition:\r\n\t\t * background-color for the .ck-widget_selected state change,\r\n\t\t * visibility for hiding the handler,\r\n\t\t * opacity for the proper look of the icon when the handler disappears. */\r\n\t\ttransition:\r\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\r\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\r\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\r\n\r\n\t\t/* Make only top corners round. */\r\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\r\n\r\n\t\t/* Place the drag handler outside the widget wrapper. */\r\n\t\ttransform: translateY(-100%);\r\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\r\n\t\ttop: 0;\r\n\r\n\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\ttransition: none;\r\n\t\t}\r\n\r\n\t\t& .ck-icon {\r\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\r\n\t\t\twidth: var(--ck-widget-handler-icon-size);\r\n\t\t\theight: var(--ck-widget-handler-icon-size);\r\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\r\n\r\n\t\t\t/* The "selected" part of the icon is invisible by default */\r\n\t\t\t& .ck-icon__selected-indicator {\r\n\t\t\t\topacity: 0;\r\n\r\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\r\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\r\n\r\n\t\t\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\t\t\ttransition: none;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\r\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\r\n\t\t\topacity: 1;\r\n\t\t}\r\n\t}\r\n\r\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\r\n\t&:hover > .ck-widget__selection-handle {\r\n\t\topacity: 1;\r\n\t\tbackground-color: var(--ck-color-widget-hover-border);\r\n\t}\r\n\r\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\r\n\t&.ck-widget_selected,\r\n\t&.ck-widget_selected:hover {\r\n\t\t& > .ck-widget__selection-handle {\r\n\t\t\topacity: 1;\r\n\t\t\tbackground-color: var(--ck-color-focus-border);\r\n\r\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\r\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\r\n\t\t\t\topacity: 1;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/* In a RTL environment, align the selection handler to the right side of the widget */\r\n/* stylelint-disable-next-line no-descending-specificity */\r\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\r\n\tleft: auto;\r\n\tright: calc(0px - var(--ck-widget-outline-thickness));\r\n}\r\n\r\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\r\n.ck.ck-editor__editable.ck-read-only .ck-widget {\r\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\r\n\ttransition: none;\r\n\r\n\t&:not(.ck-widget_selected) {\r\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\r\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\r\n\t\t *\r\n\t\t * Leave the unit because this custom property is used in calc() by other features.\r\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\r\n\t\t */\r\n\t\t--ck-widget-outline-thickness: 0px;\r\n\t}\r\n\r\n\t&.ck-widget_with-selection-handle {\r\n\t\t& .ck-widget__selection-handle,\r\n\t\t& .ck-widget__selection-handle:hover {\r\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\r\n/* stylelint-disable-next-line no-descending-specificity */\r\n.ck.ck-editor__editable.ck-blurred .ck-widget {\r\n\t&.ck-widget_selected,\r\n\t&.ck-widget_selected:hover {\r\n\t\toutline-color: var(--ck-color-widget-blurred-border);\r\n\r\n\t\t&.ck-widget_with-selection-handle {\r\n\t\t\t& > .ck-widget__selection-handle,\r\n\t\t\t& > .ck-widget__selection-handle:hover {\r\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\r\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\r\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\r\n\tIn fact, anything with overflow: hidden.\r\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\r\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\r\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\r\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-forced-colors {\r\n\t@media (forced-colors: active) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@define-mixin ck-media-default-colors {\r\n\t@media (forced-colors: none) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A visual style of focused element's border.\r\n */\r\n@define-mixin ck-focus-ring {\r\n\t/* Disable native outline. */\r\n\toutline: none;\r\n\tborder: var(--ck-focus-ring)\r\n}\r\n"],sourceRoot:""}]);const a=s},802:(t,e,n)=>{const r=n(9246);function i(t){const e=function(){const t={},e=Object.keys(r);for(let n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;){const t=n.pop(),i=Object.keys(r[t]);for(let r=i.length,o=0;o<r;o++){const r=i[o],s=e[r];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,n.unshift(r))}}return e}function o(t,e){return function(n){return e(t(n))}}function s(t,e){const n=[e[t].parent,t];let i=r[e[t].parent][t],s=e[t].parent;for(;e[s].parent;)n.unshift(e[s].parent),i=o(r[e[s].parent][s],i),s=e[s].parent;return i.conversion=n,i}t.exports=function(t){const e=i(t),n={},r=Object.keys(e);for(let t=r.length,i=0;i<t;i++){const t=r[i];null!==e[t].parent&&(n[t]=s(t,e))}return n}},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},977:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button{border-radius:0}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container,.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{font-size:var(--ck-icon-font-size)}[dir=ltr] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-left:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitembutton.css"],names:[],mappings:"AAWC,iEACC,eAoBD,CAlBC,0LAGC,8BACD,CAEA,uFAEC,kCASD,CAXA,iGAKE,qCAMF,CAXA,iGASE,oCAEF",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-menu-bar__menu {\r\n\t/*\r\n\t * List item buttons.\r\n\t */\r\n\t& .ck-button.ck-menu-bar__menu__item__button {\r\n\t\tborder-radius: 0;\r\n\r\n\t\t& > .ck-spinner-container,\r\n\t\t& > .ck-spinner-container .ck-spinner {\r\n\t\t\t/* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */\r\n\t\t\t--ck-toolbar-spinner-size: 20px;\r\n\t\t}\r\n\r\n\t\t& > .ck-spinner-container {\r\n\t\t\t/* This ensures margins corresponding to the .ck-icon. */\r\n\t\t\tfont-size: var(--ck-icon-font-size);\r\n\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tmargin-right: var(--ck-spacing-medium);\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tmargin-left: var(--ck-spacing-medium);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n\r\n'],sourceRoot:""}]);const a=s},991:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck .ck-balloon-rotator__navigation {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}\r\n\r\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\r\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\r\n */\r\n.ck .ck-balloon-rotator__content .ck-toolbar {\r\n\tjustify-content: center;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck .ck-balloon-rotator__navigation {\r\n\tbackground: var(--ck-color-toolbar-background);\r\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\r\n\tpadding: 0 var(--ck-spacing-small);\r\n\r\n\t/* Let's keep similar appearance to `ck-toolbar`. */\r\n\t& > * {\r\n\t\tmargin-right: var(--ck-spacing-small);\r\n\t\tmargin-top: var(--ck-spacing-small);\r\n\t\tmargin-bottom: var(--ck-spacing-small);\r\n\t}\r\n\r\n\t/* Gives counter more breath than buttons. */\r\n\t& .ck-balloon-rotator__counter {\r\n\t\tmargin-right: var(--ck-spacing-standard);\r\n\r\n\t\t/* We need to use smaller margin because of previous button's right margin. */\r\n\t\tmargin-left: var(--ck-spacing-small);\r\n\t}\r\n}\r\n\r\n.ck .ck-balloon-rotator__content {\r\n\r\n\t/* Disable default annotation shadow inside rotator with fake panels. */\r\n\t& .ck.ck-annotation-wrapper {\r\n\t\tbox-shadow: none;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},1058:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://./../ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\r\n\r\n/* Styles should be prefixed with the `.ck-content` class.\r\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\r\n.ck-content {\r\n\t& .text-tiny {\r\n\t\tfont-size: .7em;\r\n\t}\r\n\r\n\t& .text-small {\r\n\t\tfont-size: .85em;\r\n\t}\r\n\r\n\t& .text-big {\r\n\t\tfont-size: 1.4em;\r\n\t}\r\n\r\n\t& .text-huge {\r\n\t\tfont-size: 1.8em;\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},1185:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n@import "../../../mixins/_disabled.css";\r\n@import "../../../mixins/_shadow.css";\r\n@import "../../../mixins/_focus.css";\r\n@import "../../mixins/_button.css";\r\n\r\n:root {\r\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\r\n}\r\n\r\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\r\n\t@mixin ck-rounded-corners;\r\n\r\n\t&.ck-focused {\r\n\t\t@mixin ck-focus-ring;\r\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\r\n\t}\r\n}\r\n\r\n.ck.ck-editor__editable_inline {\r\n\toverflow: auto;\r\n\tpadding: 0 var(--ck-spacing-standard);\r\n\tborder: 1px solid transparent;\r\n\r\n\t&[dir="ltr"] {\r\n\t\ttext-align: left;\r\n\t}\r\n\r\n\t&[dir="rtl"] {\r\n\t\ttext-align: right;\r\n\t}\r\n\r\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\r\n\t& > *:first-child {\r\n\t\tmargin-top: var(--ck-spacing-large);\r\n\t}\r\n\r\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\r\n\t& > *:last-child {\r\n\t\t/*\r\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\r\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\r\n\t\t */\r\n\t\tmargin-bottom: var(--ck-spacing-large);\r\n\t}\r\n\r\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\r\n\t&.ck-blurred ::selection {\r\n\t\tbackground: var(--ck-color-editable-blur-selection);\r\n\t}\r\n}\r\n\r\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\r\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\r\n\t&::after {\r\n\t\tborder-bottom-color: var(--ck-color-panel-background);\r\n\t}\r\n}\r\n\r\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\r\n\t&::after {\r\n\t\tborder-top-color: var(--ck-color-panel-background);\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A visual style of focused element's border.\r\n */\r\n@define-mixin ck-focus-ring {\r\n\t/* Disable native outline. */\r\n\toutline: none;\r\n\tborder: var(--ck-focus-ring)\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n"],sourceRoot:""}]);const a=s},1232:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-editor__editable .ck-list-bogus-paragraph {\r\n\tdisplay: block;\r\n}\r\n"],sourceRoot:""}]);const a=s},1559:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck .ck-upload-placeholder-loader {\r\n\tposition: absolute;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\r\n\t&::before {\r\n\t\tcontent: '';\r\n\t\tposition: relative;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\r\n\t--ck-upload-placeholder-loader-size: 32px;\r\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\r\n}\r\n\r\n.ck .ck-image-upload-placeholder {\r\n\t/* We need to control the full width of the SVG gray background. */\r\n\twidth: 100%;\r\n\tmargin: 0;\r\n\r\n\t&.image-inline {\r\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\r\n\t}\r\n\r\n\t& img {\r\n\t\t/*\r\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\r\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\r\n\t\t * a real image during this short period after the upload started and before the image was read from the\r\n\t\t * file system (and a rich preview was loaded).\r\n\t\t */\r\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\r\n\t}\r\n}\r\n\r\n.ck .ck-upload-placeholder-loader {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\r\n\t&::before {\r\n\t\twidth: var(--ck-upload-placeholder-loader-size);\r\n\t\theight: var(--ck-upload-placeholder-loader-size);\r\n\t\tborder-radius: 50%;\r\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\r\n\t\tborder-right: 2px solid transparent;\r\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\r\n\t}\r\n}\r\n\r\n@keyframes ck-upload-placeholder-loader {\r\n\tto {\r\n\t\ttransform: rotate( 360deg );\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},1623:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both;background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}@media (prefers-reduced-motion:reduce){.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCA6BD,CA3BC,8ECxCD,eD6DC,CArBA,mMCpCA,qCDyDA,CArBA,8EAgBC,iEAAkE,CAblE,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAcD,CAXC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAIA,uCAlBD,8EAmBE,cAEF,CADC,CAID,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-table-form {\r\n\t& .ck-form__row {\r\n\t\t&.ck-table-form__border-row {\r\n\t\t\tflex-wrap: wrap;\r\n\t\t}\r\n\r\n\t\t&.ck-table-form__background-row {\r\n\t\t\tflex-wrap: wrap;\r\n\t\t}\r\n\r\n\t\t&.ck-table-form__dimensions-row {\r\n\t\t\tflex-wrap: wrap;\r\n\t\t\talign-items: center;\r\n\r\n\t\t\t& .ck-labeled-field-view {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tflex-direction: column-reverse;\r\n\t\t\t\talign-items: center;\r\n\r\n\t\t\t\t& .ck.ck-dropdown {\r\n\t\t\t\t\tflex-grow: 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-table-form__dimension-operator {\r\n\t\t\t\tflex-grow: 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck.ck-labeled-field-view {\r\n\t\t/* Allow absolute positioning of the status (error) balloons. */\r\n\t\tposition: relative;\r\n\r\n\t\t& .ck.ck-labeled-field-view__status {\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 50%;\r\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\r\n\t\t\ttransform: translate(-50%,100%);\r\n\r\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\r\n\t\t\tz-index: 1;\r\n\r\n\t\t\t/* The arrow pointing towards the field. */\r\n\t\t\t&::after {\r\n\t\t\t\tcontent: "";\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\r\n\t\t\t\tleft: 50%;\r\n\t\t\t\ttransform: translateX( -50% );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n','/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../mixins/_rounded.css";\r\n\r\n:root {\r\n\t--ck-table-properties-error-arrow-size: 6px;\r\n\t--ck-table-properties-min-error-width: 150px;\r\n}\r\n\r\n.ck.ck-table-form {\r\n\t& .ck-form__row {\r\n\t\t&.ck-table-form__border-row {\r\n\t\t\t& .ck-labeled-field-view {\r\n\t\t\t\t& > .ck-label {\r\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-table-form__border-style,\r\n\t\t\t& .ck-table-form__border-width {\r\n\t\t\t\twidth: 80px;\r\n\t\t\t\tmin-width: 80px;\r\n\t\t\t\tmax-width: 80px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&.ck-table-form__dimensions-row {\r\n\t\t\tpadding: 0;\r\n\r\n\t\t\t& .ck-table-form__dimensions-row__width,\r\n\t\t\t& .ck-table-form__dimensions-row__height {\r\n\t\t\t\tmargin: 0\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-table-form__dimension-operator {\r\n\t\t\t\talign-self: flex-end;\r\n\t\t\t\tdisplay: inline-block;\r\n\t\t\t\theight: var(--ck-ui-component-min-height);\r\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\r\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck.ck-labeled-field-view {\r\n\t\tpadding-top: var(--ck-spacing-standard);\r\n\r\n\t\t& .ck.ck-labeled-field-view__status {\r\n\t\t\t@mixin ck-rounded-corners;\r\n\r\n\t\t\tbackground: var(--ck-color-base-error);\r\n\t\t\tcolor: var(--ck-color-base-background);\r\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\r\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\r\n\t\t\ttext-align: center;\r\n\r\n\t\t\t/* The arrow pointing towards the field. */\r\n\t\t\t&::after {\r\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\r\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\r\n\t\t\t\tborder-style: solid;\r\n\t\t\t}\r\n\r\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\r\n\r\n\t\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\t\tanimation: none;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\r\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@keyframes ck-table-form-labeled-view-status-appear {\r\n\t0% {\r\n\t\topacity: 0;\r\n\t}\r\n\r\n\t100% {\r\n\t\topacity: 1;\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},1666:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-toolbar-dropdown-max-width: 60vw;\r\n}\r\n\r\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\r\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\r\n\twidth: max-content;\r\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\r\n\r\n\t& .ck-button {\r\n\t\t&:focus {\r\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\r\n\t\t}\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-toolbar-dropdown .ck-toolbar {\r\n\tborder: 0;\r\n}\r\n"],sourceRoot:""}]);const a=s},1671:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/*\r\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\r\n * This bug is especially visible when rows=1.\r\n */\r\n.ck-textarea {\r\n\toverflow-x: hidden\r\n}\r\n"],sourceRoot:""}]);const a=s},1792:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-splitbutton {\r\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\r\n\tfont-size: inherit;\r\n\r\n\t& .ck-splitbutton__action:focus {\r\n\t\tz-index: calc(var(--ck-z-default) + 1);\r\n\t}\r\n}\r\n\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n\r\n:root {\r\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\r\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\r\n}\r\n\r\n.ck.ck-splitbutton {\r\n\t/*\r\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\r\n\t */\r\n\t&:hover > .ck-splitbutton__action,\r\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\r\n\t\t@nest [dir="ltr"] & {\r\n\t\t\t/* Don\'t round the action button on the right side */\r\n\t\t\tborder-top-right-radius: unset;\r\n\t\t\tborder-bottom-right-radius: unset;\r\n\t\t}\r\n\r\n\t\t@nest [dir="rtl"] & {\r\n\t\t\t/* Don\'t round the action button on the left side */\r\n\t\t\tborder-top-left-radius: unset;\r\n\t\t\tborder-bottom-left-radius: unset;\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck-splitbutton__arrow {\r\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\r\n\t\tit must get some arbitrary min-width. */\r\n\t\tmin-width: unset;\r\n\r\n\t\t@nest [dir="ltr"] & {\r\n\t\t\t/* Don\'t round the arrow button on the left side */\r\n\t\t\tborder-top-left-radius: unset;\r\n\t\t\tborder-bottom-left-radius: unset;\r\n\t\t}\r\n\r\n\t\t@nest [dir="rtl"] & {\r\n\t\t\t/* Don\'t round the arrow button on the right side */\r\n\t\t\tborder-top-right-radius: unset;\r\n\t\t\tborder-bottom-right-radius: unset;\r\n\t\t}\r\n\r\n\t\t& svg {\r\n\t\t\twidth: var(--ck-dropdown-arrow-size);\r\n\t\t}\r\n\t}\r\n\r\n\t/* Make sure the divider stretches 100% height of the button\r\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\r\n\t& > .ck-splitbutton__arrow:not(:focus) {\r\n\t\tborder-top-width: 0px;\r\n\t\tborder-bottom-width: 0px;\r\n\t}\r\n\r\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\r\n\tas a whole. The background of both buttons should stand out and there should be a visual\r\n\tseparation between both buttons. */\r\n\t&.ck-splitbutton_open,\r\n\t&:hover {\r\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\r\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\r\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\r\n\t\t}\r\n\r\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\r\n\t\tto display properly the borders on focus */\r\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\r\n\t\t\tcontent: \'\';\r\n\t\t\tposition: absolute;\r\n\t\t\twidth: 1px;\r\n\t\t\theight: 100%;\r\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\r\n\t\t}\r\n\r\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\r\n\t\t& > .ck-splitbutton__arrow:focus::after {\r\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\r\n\t\t}\r\n\r\n\t\t@nest [dir="ltr"] & {\r\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\r\n\t\t\t\tleft: -1px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t@nest [dir="rtl"] & {\r\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\r\n\t\t\t\tright: -1px;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\r\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\r\n\t&.ck-splitbutton_open {\r\n\t\t@mixin ck-rounded-corners {\r\n\t\t\t& > .ck-splitbutton__action {\r\n\t\t\t\tborder-bottom-left-radius: 0;\r\n\t\t\t}\r\n\r\n\t\t\t& > .ck-splitbutton__arrow {\r\n\t\t\t\tborder-bottom-right-radius: 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},1801:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}.ck.ck-aria-live-region-list{list-style-type:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD,CAEA,6BACC,oBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-aria-live-announcer {\r\n\tposition: absolute;\r\n\tleft: -10000px;\r\n\ttop: -10000px;\r\n}\r\n\r\n.ck.ck-aria-live-region-list {\r\n\tlist-style-type: none;\r\n}\r\n"],sourceRoot:""}]);const a=s},1833:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active>.ck-button>.ck-button__label{font-style:italic}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-style/style.css"],names:[],mappings:"AAKA,iGACC,iBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active > .ck-button > .ck-button__label {\r\n\tfont-style: italic;\r\n}\r\n"],sourceRoot:""}]);const a=s},1905:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.color-picker-hex-input {\r\n\twidth: max-content;\r\n\r\n\t& .ck.ck-input {\r\n\t\tmin-width: unset;\r\n\t}\r\n}\r\n\r\n.ck.ck-color-picker__row {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tflex-wrap: nowrap;\r\n\tjustify-content: space-between;\r\n\tmargin: var(--ck-spacing-large) 0 0;\r\n\twidth: unset;\r\n\r\n\t& .ck.ck-labeled-field-view {\r\n\t\tpadding-top: unset;\r\n\t}\r\n\r\n\t& .ck.ck-input-text {\r\n\t\twidth: unset;\r\n\t}\r\n\r\n\t& .ck-color-picker__hash-view {\r\n\t\tpadding-top: var(--ck-spacing-tiny);\r\n\t\tpadding-right: var(--ck-spacing-medium);\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},2171:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-dropdown-menu-menu-item-min-width:18em}.ck.ck-dropdown-menu-list__nested-menu__item{min-width:var(--ck-dropdown-menu-menu-item-min-width)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitem.css"],names:[],mappings:"AAKA,MACC,2CACD,CAEA,6CACC,qDACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-dropdown-menu-menu-item-min-width: 18em;\r\n}\r\n\r\n.ck.ck-dropdown-menu-list__nested-menu__item {\r\n\tmin-width: var(--ck-dropdown-menu-menu-item-min-width);\r\n}\r\n"],sourceRoot:""}]);const a=s},2267:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:none;opacity:1}}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBAMD,CAJC,uCAHD,yFAKE,cAAe,CADf,SAGF,CADC,CAKF,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-editor__editable {\r\n\t& .image,\r\n\t& .image-inline {\r\n\t\tposition: relative;\r\n\t}\r\n\r\n\t/* Upload progress bar. */\r\n\t& .image .ck-progress-bar,\r\n\t& .image-inline .ck-progress-bar {\r\n\t\tposition: absolute;\r\n\t\ttop: 0;\r\n\t\tleft: 0;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-editor__editable {\r\n\t& .image,\r\n\t& .image-inline {\r\n\t\t/* Showing animation. */\r\n\t\t&.ck-appear {\r\n\t\t\tanimation: fadeIn 700ms;\r\n\r\n\t\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\t\topacity: 1;\r\n\t\t\t\tanimation: none;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/* Upload progress bar. */\r\n\t& .image .ck-progress-bar,\r\n\t& .image-inline .ck-progress-bar {\r\n\t\theight: 2px;\r\n\t\twidth: 0;\r\n\t\tbackground: var(--ck-color-upload-bar-background);\r\n\t\ttransition: width 100ms;\r\n\t}\r\n}\r\n\r\n@keyframes fadeIn {\r\n\tfrom { opacity: 0; }\r\n\tto { opacity: 1; }\r\n}\r\n"],sourceRoot:""}]);const a=s},2329:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}@media print{.ck-content .table table{height:auto}}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAeF,aACC,yBACC,WACD,CACD,CAIA,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-content .table {\r\n\t/* Give the table widget some air and center it horizontally */\r\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\r\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\r\n\tmargin: 0.9em auto;\r\n\tdisplay: table;\r\n\r\n\t& table {\r\n\t\t/* The table cells should have slight borders */\r\n\t\tborder-collapse: collapse;\r\n\t\tborder-spacing: 0;\r\n\r\n\t\t/* Table width and height are set on the parent <figure>. Make sure the table inside stretches\r\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\r\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\r\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\r\n\t\tborder: 1px double hsl(0, 0%, 70%);\r\n\r\n\t\t& td,\r\n\t\t& th {\r\n\t\t\tmin-width: 2em;\r\n\t\t\tpadding: .4em;\r\n\r\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\r\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\r\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\r\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\r\n\t\t}\r\n\r\n\t\t& th {\r\n\t\t\tfont-weight: bold;\r\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Expanding the table to the full height of the parent container is necessary because tables\r\n * are rendered inside <figure> elements, which is kinda buggy in table height calculation.\r\n * While setting `height: 100%` fixes the issue in the editing mode described here:\r\n * https://github.com/ckeditor/ckeditor5/issues/6186\r\n *\r\n * it\'s causing another issue with the table height in the print preview mode here:\r\n * https://github.com/ckeditor/ckeditor5/issues/16856\r\n *\r\n * For now, resetting the height to `initial` in the print mode works as a workaround.\r\n */\r\n@media print {\r\n\t.ck-content .table table {\r\n\t\theight: initial;\r\n\t}\r\n}\r\n\r\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\r\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\r\n.ck-content[dir="rtl"] .table th {\r\n\ttext-align: right;\r\n}\r\n\r\n.ck-content[dir="ltr"] .table th {\r\n\ttext-align: left;\r\n}\r\n\r\n.ck-editor__editable .ck-table-bogus-paragraph {\r\n\t/*\r\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\r\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\r\n\t */\r\n\tdisplay: inline-block;\r\n\r\n\t/*\r\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\r\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\r\n\t */\r\n\twidth: 100%;\r\n}\r\n'],sourceRoot:""}]);const a=s},2591:(t,e,n)=>{"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],l=e.base?o[0]+e.base:o[0],c=n[l]||0,d="".concat(l," ").concat(c);n[l]=c+1;var h=a(d),u={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(s[h].references++,s[h].updater(u)):s.push({identifier:d,updater:f(u,e),references:1}),r.push(d)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var d,h=(d=[],function(t,e){return d[t]=e,d.filter(Boolean).join("\n")});function u(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=h(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function m(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var g=null,p=0;function f(t,e){var n,r,i;if(e.singleton){var o=p++;n=g||(g=c(e)),r=u.bind(null,n,o,!1),i=u.bind(null,n,o,!0)}else n=c(e),r=m.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=a(n[r]);s[i].references--}for(var o=l(t,e),c=0;c<n.length;c++){var d=a(n[c]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}n=o}}}},2626:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{background:#dedede;border:0;height:4px;margin:15px 0}","",{version:3,sources:["webpack://./../ckeditor5-horizontal-line/theme/horizontalline.css"],names:[],mappings:"AAMA,yCAEC,iBACD,CAEA,eAGC,kBAA2B,CAC3B,QAAS,CAFT,UAAW,CADX,aAID",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n\r\n.ck-editor__editable .ck-horizontal-line {\r\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\r\n\tdisplay: flow-root;\r\n}\r\n\r\n.ck-content hr {\r\n\tmargin: 15px 0;\r\n\theight: 4px;\r\n\tbackground: hsl(0, 0%, 87%);\r\n\tborder: 0;\r\n}\r\n"],sourceRoot:""}]);const a=s},2655:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-form__row {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tflex-wrap: nowrap;\r\n\tjustify-content: space-between;\r\n\r\n\t/* Ignore labels that work as fieldset legends */\r\n\t& > *:not(.ck-label) {\r\n\t\tflex-grow: 1;\r\n\t}\r\n\r\n\t&.ck-table-form__action-row {\r\n\t\t& .ck-button-save,\r\n\t\t& .ck-button-cancel {\r\n\t\t\tjustify-content: center;\r\n\t\t}\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-form__row {\r\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\r\n\r\n\t/* Ignore labels that work as fieldset legends */\r\n\t& > *:not(.ck-label) {\r\n\t\t& + * {\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tmargin-left: var(--ck-spacing-large);\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tmargin-right: var(--ck-spacing-large);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck-label {\r\n\t\twidth: 100%;\r\n\t\tmin-width: 100%;\r\n\t}\r\n\r\n\t&.ck-table-form__action-row {\r\n\t\tmargin-top: var(--ck-spacing-large);\r\n\r\n\t\t& .ck-button .ck-button__label {\r\n\t\t\tcolor: var(--ck-color-text);\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},2710:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-block-toolbar-button {\r\n\tposition: absolute;\r\n\tz-index: var(--ck-z-default);\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\r\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\r\n}\r\n\r\n.ck.ck-block-toolbar-button {\r\n\tcolor: var(--ck-color-block-toolbar-button);\r\n\tfont-size: var(--ck-block-toolbar-size);\r\n}\r\n"],sourceRoot:""}]);const a=s},2722:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-number,.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAoED,CAlEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA+CF,CA7CE,8CACC,wDAYD,CAVC,4HAEC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDrEH",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n.ck-vertical-form .ck-button {\r\n\t&::after {\r\n\t\tcontent: "";\r\n\t\twidth: 0;\r\n\t\tposition: absolute;\r\n\t\tright: -1px;\r\n\t\ttop: -1px;\r\n\t\tbottom: -1px;\r\n\t\tz-index: 1;\r\n\t}\r\n\r\n\t&:focus::after {\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n\r\n.ck.ck-responsive-form {\r\n\t@mixin ck-media-phone {\r\n\t\t& .ck-button {\r\n\t\t\t&::after {\r\n\t\t\t\tcontent: "";\r\n\t\t\t\twidth: 0;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tright: -1px;\r\n\t\t\t\ttop: -1px;\r\n\t\t\t\tbottom: -1px;\r\n\t\t\t\tz-index: 1;\r\n\t\t\t}\r\n\r\n\t\t\t&:focus::after {\r\n\t\t\t\tdisplay: none;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-phone {\r\n\t@media screen and (max-width: 600px) {\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\r\n\tborder-right: 1px solid var(--ck-color-base-border);\r\n}\r\n\r\n.ck.ck-responsive-form {\r\n\tpadding: var(--ck-spacing-large);\r\n\r\n\t&:focus {\r\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\r\n\t\toutline: none;\r\n\t}\r\n\r\n\t@mixin ck-dir ltr {\r\n\t\t& > :not(:first-child) {\r\n\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-dir rtl {\r\n\t\t& > :not(:last-child) {\r\n\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-media-phone {\r\n\t\tpadding: 0;\r\n\t\twidth: calc(.8 * var(--ck-input-width));\r\n\r\n\t\t& .ck-labeled-field-view {\r\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\r\n\r\n\t\t\t& .ck-input-text,\r\n\t\t\t& .ck-input-number {\r\n\t\t\t\tmin-width: 0;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\r\n\t\t\t/* Let the long error messages wrap in the narrow form. */\r\n\t\t\t& .ck-labeled-field-view__error {\r\n\t\t\t\twhite-space: normal;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\r\n\t\t& > .ck-button:nth-last-child(2) {\r\n\t\t\t&::after {\r\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t& > .ck-button:nth-last-child(1),\r\n\t\t& > .ck-button:nth-last-child(2) {\r\n\t\t\tpadding: var(--ck-spacing-standard);\r\n\t\t\tmargin-top: var(--ck-spacing-large);\r\n\t\t\tborder-radius: 0;\r\n\r\n\t\t\t&:not(:focus) {\r\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tmargin-left: 0;\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tmargin-left: 0;\r\n\r\n\t\t\t\t&:last-of-type {\r\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},3195:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck .footnote-section{border:1px solid #c4c4c4;border-radius:2px;counter-reset:footnote-counter;margin:1em 0;padding:10px}.ck .footnote-item{counter-increment:footnote-counter;display:flex;list-style:none;margin-left:.5em}.ck .footnote-item>*{vertical-align:text-top}.ck .footnote-back-link{margin-right:.1em;position:relative;top:-.2em}.ck .footnotes .footnote-back-link>sup{margin-right:0}.ck .footnote-item:before{content:counter(footnote-counter) ". ";display:inline-block;min-width:fit-content;position:relative;right:.2em;text-align:right}.ck .footnote-content{border-radius:2px;display:inline-block;flex-grow:1;padding:0 .3em;width:95%}.ck .ck-widget.footnote-section .ck-widget__type-around__button_after{display:none}.placeholder{line-height:1em;margin:0 1px;outline-offset:-2px;padding:2px}.placeholder::selection{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-footnotes/src/footnote.css"],names:[],mappings:"AAAA,sBAGC,wBAAiC,CACjC,iBAAkB,CAClB,8BAA+B,CAH/B,YAAa,CADb,YAKD,CAEA,mBAEC,kCAAmC,CAEnC,YAAa,CAHb,eAAgB,CAEhB,gBAED,CAEA,qBACC,uBACD,CAEA,wBAEC,iBAAmB,CADnB,iBAAkB,CAElB,SACD,CAEA,uCACC,cACD,CAEA,0BACC,sCAAuC,CACvC,oBAAqB,CAGrB,qBAAsB,CAFtB,iBAAkB,CAClB,UAAY,CAEZ,gBACD,CAEA,sBAIC,iBAAkB,CAHlB,oBAAqB,CAIrB,WAAY,CAHZ,cAAgB,CAChB,SAGD,CAEA,sEACC,YACD,CAEA,aAGC,eAAgB,CAChB,YAAa,CAFb,mBAAoB,CADpB,WAID,CAEA,wBACC,YACD",sourcesContent:[".ck .footnote-section {\r\n\tpadding: 10px;\r\n\tmargin: 1em 0;\r\n\tborder: solid 1px hsl(0, 0%, 77%);\r\n\tborder-radius: 2px;\r\n\tcounter-reset: footnote-counter;\r\n}\r\n\r\n.ck .footnote-item {\r\n\tlist-style: none;\r\n\tcounter-increment: footnote-counter;\r\n\tmargin-left: 0.5em;\r\n\tdisplay: flex;\r\n}\r\n\r\n.ck .footnote-item > * {\r\n\tvertical-align: text-top;\r\n}\r\n\r\n.ck .footnote-back-link {\r\n\tposition: relative;\r\n\tmargin-right: 0.1em;\r\n\ttop: -0.2em;\r\n}\r\n\r\n.ck .footnotes .footnote-back-link > sup {\r\n\tmargin-right: 0;\r\n}\r\n\r\n.ck .footnote-item::before {\r\n\tcontent: counter(footnote-counter) \". \";\r\n\tdisplay: inline-block;\r\n\tposition: relative;\r\n\tright: 0.2em;\r\n\tmin-width: fit-content;\r\n\ttext-align: right;\r\n}\r\n\r\n.ck .footnote-content {\r\n\tdisplay: inline-block;\r\n\tpadding: 0 0.3em;\r\n\twidth: 95%;\r\n\tborder-radius: 2px;\r\n\tflex-grow: 1;\r\n}\r\n\r\n.ck .ck-widget.footnote-section .ck-widget__type-around__button_after {\r\n\tdisplay:none; /* hides the 'insert after' button from the ckeditor widget */\r\n}\r\n\r\n.placeholder {\r\n\tpadding: 2px 2px;\r\n\toutline-offset: -2px;\r\n\tline-height: 1em;\r\n\tmargin: 0 1px;\r\n}\r\n\r\n.placeholder::selection {\r\n\tdisplay: none;\r\n}"],sourceRoot:""}]);const a=s},3344:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button{width:100%}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button{min-height:unset;padding:var(--ck-spacing-small) var(--ck-spacing-medium)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-button__label{line-height:unset;width:unset}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-icon{display:none}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button{border-radius:0}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{margin-left:var(--ck-spacing-standard);margin-right:calc(var(--ck-spacing-small)*-1);transform:rotate(-90deg)}[dir=rtl] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{left:var(--ck-spacing-standard);margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small);transform:rotate(90deg)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button.ck-disabled>.ck-menu-bar__menu__button__arrow{opacity:var(--ck-disabled-opacity)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAMC,mFACC,mBAAoB,CACpB,2BACD,CCIA,iDACC,UAuBD,CArBC,mEACC,WAAY,CACZ,eAAgB,CAChB,sBACD,CAEA,+ECbD,kCDeC,CAGC,qFACC,oCACD,CAIA,qFACC,qCACD,CAOF,6EAEC,gBAAiB,CADjB,wDAgBD,CAbC,+FAEC,iBAAkB,CADlB,WAED,CAEA,mFACC,2BAA4B,CAC5B,4BACD,CAEA,sFACC,YACD,CAMD,mFACC,eA+BD,CA7BC,qHACC,mCAuBD,CAxBA,+HAOE,sCAAuC,CAGvC,6CAAgD,CANhD,wBAoBF,CAxBA,+HAgBE,+BAAgC,CAMhC,4CAA+C,CAH/C,oCAAqC,CALrC,uBAUF,CAEA,iICpFD,kCDsFC",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-menu-bar__menu {\r\n\t& > .ck-menu-bar__menu__button > .ck-menu-bar__menu__button__arrow {\r\n\t\tpointer-events: none;\r\n\t\tz-index: var(--ck-z-default);\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_disabled.css";\r\n@import "../../mixins/_button.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-menu-bar__menu {\r\n\t/*\r\n\t * All menu buttons.\r\n\t */\r\n\t& > .ck-menu-bar__menu__button {\r\n\t\twidth: 100%;\r\n\r\n\t\t& > .ck-button__label {\r\n\t\t\tflex-grow: 1;\r\n\t\t\toverflow: hidden;\r\n\t\t\ttext-overflow: ellipsis;\r\n\t\t}\r\n\r\n\t\t&.ck-disabled > .ck-button__label {\r\n\t\t\t@mixin ck-disabled;\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\t&:not(.ck-button_with-text) {\r\n\t\t\t\tpadding-left: var(--ck-spacing-small);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\t&:not(.ck-button_with-text) {\r\n\t\t\t\tpadding-right: var(--ck-spacing-small);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Top-level menu buttons only.\r\n\t */\r\n\t&.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__button {\r\n\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\r\n\t\tmin-height: unset;\r\n\r\n\t\t& .ck-button__label {\r\n\t\t\twidth: unset;\r\n\t\t\tline-height: unset;\r\n\t\t}\r\n\r\n\t\t&.ck-on {\r\n\t\t\tborder-bottom-left-radius: 0;\r\n\t\t\tborder-bottom-right-radius: 0;\r\n\t\t}\r\n\r\n\t\t& .ck-icon {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Sub-menu buttons.\r\n\t */\r\n\t&:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button {\r\n\t\tborder-radius: 0;\r\n\r\n\t\t& > .ck-menu-bar__menu__button__arrow {\r\n\t\t\twidth: var(--ck-dropdown-arrow-size);\r\n\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\ttransform: rotate(-90deg);\r\n\r\n\t\t\t\t/* A space to accommodate the triangle. */\r\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\r\n\t\t\t\t/* Nudge the arrow gently to the right because its center of gravity is to the left */\r\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\ttransform: rotate(90deg);\r\n\r\n\t\t\t\tleft: var(--ck-spacing-standard);\r\n\r\n\t\t\t\t/* A space to accommodate the triangle. */\r\n\t\t\t\tmargin-right: var(--ck-spacing-small);\r\n\r\n\t\t\t\t/* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */\r\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&.ck-disabled > .ck-menu-bar__menu__button__arrow {\r\n\t\t\t@mixin ck-disabled;\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A class which indicates that an element holding it is disabled.\r\n */\r\n@define-mixin ck-disabled {\r\n\topacity: var(--ck-disabled-opacity);\r\n}\r\n"],sourceRoot:""}]);const a=s},3350:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-image-insert-url{padding:var(--ck-spacing-large) var(--ck-spacing-large) 0;width:400px}.ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width);padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAKA,wBAEC,yDAA0D,CAD1D,WAOD,CAJC,yDACC,YAAa,CACb,mCACD,CCLD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CACd,UASD,CAXA,iDAKE,eAMF,CAXA,iDASE,gBAEF,CAEA,4CASC,oDACD,CATC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,iDACC,oDAAqD,CACrD,+BACD,CAEA,+BACC,YACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-image-insert-url {\r\n\twidth: 400px;\r\n\tpadding: var(--ck-spacing-large) var(--ck-spacing-large) 0;\r\n\r\n\t& .ck-image-insert-url__action-row {\r\n\t\tdisplay: grid;\r\n\t\tgrid-template-columns: repeat(2, 1fr);\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n:root {\r\n\t--ck-image-insert-insert-by-url-width: 250px;\r\n}\r\n\r\n.ck.ck-image-insert-url {\r\n\t--ck-input-width: 100%;\r\n\r\n\t& .ck-image-insert-url__action-row {\r\n\t\tgrid-column-gap: var(--ck-spacing-large);\r\n\t\tmargin-top: var(--ck-spacing-large);\r\n\r\n\t\t& .ck-button-save,\r\n\t\t& .ck-button-cancel {\r\n\t\t\tjustify-content: center;\r\n\t\t\tmin-width: auto;\r\n\t\t}\r\n\r\n\t\t& .ck-button .ck-button__label {\r\n\t\t\tcolor: var(--ck-color-text);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck.ck-image-insert-form {\r\n\t& > .ck.ck-button {\r\n\t\tdisplay: block;\r\n\t\twidth: 100%;\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\ttext-align: left;\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\ttext-align: right;\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck.ck-collapsible {\r\n\t\t&:not(:first-child) {\r\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\r\n\t\t}\r\n\r\n\t\t&:not(:last-child) {\r\n\t\t\tborder-bottom: 1px solid var(--ck-color-base-border);\r\n\t\t}\r\n\r\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\r\n\t}\r\n\r\n\t/* This is the case when there are no other integrations configured than insert by URL */\r\n\t& > .ck.ck-image-insert-url {\r\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\r\n\t\tpadding: var(--ck-spacing-large);\r\n\t}\r\n\r\n\t&:focus {\r\n\t\toutline: none;\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},3469:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\r\n.ck-content img.image_resized {\r\n\theight: auto;\r\n}\r\n\r\n.ck-content .image.image_resized {\r\n\tmax-width: 100%;\r\n\t/*\r\n\tThe `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\r\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\r\n\tFortunately, since we control the width, there is no risk that the image will look bad.\r\n\t*/\r\n\tdisplay: block;\r\n\tbox-sizing: border-box;\r\n\r\n\t& img {\r\n\t\t/* For resized images it is the `<figure>` element that determines the image width. */\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n\t& > figcaption {\r\n\t\t/* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\r\n\t\tdisplay: block;\r\n\t}\r\n}\r\n\r\n.ck.ck-editor__editable {\r\n\t/* The resized inline image nested in the table should respect its parent size.\r\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\r\n\t& td,\r\n\t& th {\r\n\t\t& .image-inline.image_resized img {\r\n\t\t\tmax-width: 100%;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\r\n\tmargin-right: var(--ck-spacing-standard);\r\n}\r\n\r\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\r\n\tmargin-left: var(--ck-spacing-standard);\r\n}\r\n\r\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\r\n\twidth: 4em;\r\n}\r\n'],sourceRoot:""}]);const a=s},3610:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{max-height:314px;overflow-y:auto;position:absolute;z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-menu-menu-panel-max-width:75vw}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;height:fit-content;max-width:var(--ck-dropdown-menu-menu-panel-max-width)}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:after,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:before{display:none}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_es,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_se{border-top-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_sw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ws{border-top-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_en,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ne{border-bottom-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_nw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_wn{border-bottom-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,0DAEC,gBAAiB,CACjB,eAAgB,CAFhB,iBAAkB,CAGlB,mCACD,CCFA,MACC,4CACD,CAEA,0DAGC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CCRT,oCAA8B,CDS9B,kBAAmB,CACnB,sDAgCD,CA7BC,iIAEC,YACD,CAGA,4JAEC,wBACD,CAEA,4JAEC,yBACD,CAEA,4JAEC,2BACD,CAEA,4JAEC,4BACD,CAEA,gEACC,YACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel {\r\n\tposition: absolute;\r\n\tmax-height: 314px; /* With the default settings, this is equal to 10 menu items. */\r\n\toverflow-y: auto;\r\n\tz-index: calc(var(--ck-z-panel) + 1);\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../../mixins/_rounded.css";\r\n@import "../../../../mixins/_shadow.css";\r\n\r\n:root {\r\n\t--ck-dropdown-menu-menu-panel-max-width: 75vw;\r\n}\r\n\r\n.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel {\r\n\t@mixin ck-drop-shadow;\r\n\r\n\tbackground: var(--ck-color-dropdown-panel-background);\r\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\r\n\tbottom: 0;\r\n\theight: fit-content;\r\n\tmax-width: var(--ck-dropdown-menu-menu-panel-max-width);\r\n\r\n\t/* Reset balloon styling */\r\n\t&::after,\r\n\t&::before {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t/* Corner border radius consistent with the button. */\r\n\t&.ck-balloon-panel_es,\r\n\t&.ck-balloon-panel_se {\r\n\t\tborder-top-left-radius: 0;\r\n\t}\r\n\r\n\t&.ck-balloon-panel_ws,\r\n\t&.ck-balloon-panel_sw {\r\n\t\tborder-top-right-radius: 0;\r\n\t}\r\n\r\n\t&.ck-balloon-panel_en,\r\n\t&.ck-balloon-panel_ne {\r\n\t\tborder-bottom-left-radius: 0;\r\n\t}\r\n\r\n\t&.ck-balloon-panel_wn,\r\n\t&.ck-balloon-panel_nw {\r\n\t\tborder-bottom-right-radius: 0;\r\n\t}\r\n\r\n\t&:focus {\r\n\t\toutline: none;\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n"],sourceRoot:""}]);const a=s},3629:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-dropdown>.ck-dropdown__panel>.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n\r\n.ck.ck-dropdown > .ck-dropdown__panel > .ck-list {\r\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\r\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\r\n\t@mixin ck-rounded-corners {\r\n\t\tborder-top-left-radius: 0;\r\n\t}\r\n\r\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\r\n\tborder radius of the entire panel. */\r\n\t& .ck-list__item {\r\n\t\t&:first-child > .ck-button {\r\n\t\t\t@mixin ck-rounded-corners {\r\n\t\t\t\tborder-top-left-radius: 0;\r\n\t\t\t\tborder-bottom-left-radius: 0;\r\n\t\t\t\tborder-bottom-right-radius: 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&:last-child > .ck-button {\r\n\t\t\t@mixin ck-rounded-corners {\r\n\t\t\t\tborder-top-left-radius: 0;\r\n\t\t\t\tborder-top-right-radius: 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},3710:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-panel)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t/* Make sure the balloon arrow does not float over its children. */\r\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\r\n}\r\n\r\n.ck.ck-balloon-panel {\r\n\tdisplay: none;\r\n\tposition: absolute;\r\n\r\n\tz-index: var(--ck-z-panel);\r\n\r\n\t&.ck-balloon-panel_with-arrow {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tcontent: "";\r\n\t\t\tposition: absolute;\r\n\t\t}\r\n\r\n\t\t&::before {\r\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\r\n\t\t}\r\n\r\n\t\t&::after {\r\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\r\n\t\t}\r\n\t}\r\n\r\n\t&[class*="arrow_n"] {\r\n\t\t&::before {\r\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\r\n\t\t}\r\n\r\n\t\t&::after {\r\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\r\n\t\t}\r\n\t}\r\n\r\n\t&[class*="arrow_s"] {\r\n\t\t&::before {\r\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\r\n\t\t}\r\n\r\n\t\t&::after {\r\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_visible {\r\n\t\tdisplay: block;\r\n\t}\r\n}\r\n','/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n@import "../../../mixins/_shadow.css";\r\n\r\n:root {\r\n\t--ck-balloon-border-width: 1px;\r\n\t--ck-balloon-arrow-offset: 2px;\r\n\t--ck-balloon-arrow-height: 10px;\r\n\t--ck-balloon-arrow-half-width: 8px;\r\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\r\n}\r\n\r\n.ck.ck-balloon-panel {\r\n\t@mixin ck-rounded-corners;\r\n\t@mixin ck-drop-shadow;\r\n\r\n\tmin-height: 15px;\r\n\r\n\tbackground: var(--ck-color-panel-background);\r\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\r\n\r\n\t&.ck-balloon-panel_with-arrow {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\twidth: 0;\r\n\t\t\theight: 0;\r\n\t\t\tborder-style: solid;\r\n\t\t}\r\n\t}\r\n\r\n\t&[class*="arrow_n"] {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\r\n\t\t}\r\n\r\n\t\t&::before {\r\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\r\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\r\n\t\t}\r\n\r\n\t\t&::after {\r\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\r\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\r\n\t\t}\r\n\t}\r\n\r\n\t&[class*="arrow_s"] {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\r\n\t\t}\r\n\r\n\t\t&::before {\r\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\r\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\r\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\r\n\t\t}\r\n\r\n\t\t&::after {\r\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\r\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\r\n\t\t}\r\n\t}\r\n\r\n\t&[class*="arrow_e"] {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\r\n\t\t}\r\n\r\n\t\t&::before {\r\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\r\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\r\n\t\t}\r\n\r\n\t\t&::after {\r\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\r\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\r\n\t\t}\r\n\t}\r\n\r\n\t&[class*="arrow_w"] {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\r\n\t\t}\r\n\r\n\t\t&::before {\r\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\r\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\r\n\t\t}\r\n\r\n\t\t&::after {\r\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\r\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_n {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tleft: 50%;\r\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\r\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_nw {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\r\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_ne {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\r\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_s {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tleft: 50%;\r\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\r\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_sw {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\r\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_se {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\r\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_sme {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tright: 25%;\r\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\r\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_smw {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tleft: 25%;\r\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\r\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_nme {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tright: 25%;\r\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\r\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_nmw {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tleft: 25%;\r\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\r\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_e {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\r\n\t\t\ttop: 50%;\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-balloon-panel_arrow_w {\r\n\t\t&::before,\r\n\t\t&::after {\r\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\r\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\r\n\t\t\ttop: 50%;\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n"],sourceRoot:""}]);const a=s},3817:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-link-form{align-items:flex-start;display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:0 var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBAEC,sBAAuB,CADvB,YAkBD,CAfC,2BACC,YACD,CCPA,oCDCD,iBASE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CChBD,CDwBD,iCACC,aAYD,CALE,wHAEC,mCACD,CEhCF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,gCAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n.ck.ck-link-form {\r\n\tdisplay: flex;\r\n\talign-items: flex-start;\r\n\r\n\t& .ck-label {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t@mixin ck-media-phone {\r\n\t\tflex-wrap: wrap;\r\n\r\n\t\t& .ck-labeled-field-view {\r\n\t\t\tflex-basis: 100%;\r\n\t\t}\r\n\r\n\t\t& .ck-button {\r\n\t\t\tflex-basis: 50%;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/*\r\n * Style link form differently when manual decorators are available.\r\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\r\n */\r\n.ck.ck-link-form_layout-vertical {\r\n\tdisplay: block;\r\n\r\n\t/*\r\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\r\n\t * keep the top margin of action buttons medium.\r\n\t */\r\n\t& .ck-button {\r\n\t\t&.ck-button-save,\r\n\t\t&.ck-button-cancel {\r\n\t\t\tmargin-top: var(--ck-spacing-medium);\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-phone {\r\n\t@media screen and (max-width: 600px) {\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n/*\r\n * Style link form differently when manual decorators are available.\r\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\r\n */\r\n.ck.ck-link-form_layout-vertical {\r\n\tpadding: 0;\r\n\tmin-width: var(--ck-input-width);\r\n\r\n\t& .ck-labeled-field-view {\r\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\r\n\r\n\t\t& .ck-input-text {\r\n\t\t\tmin-width: 0;\r\n\t\t\twidth: 100%;\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck-button {\r\n\t\tpadding: var(--ck-spacing-standard);\r\n\t\tmargin: 0;\r\n\t\twidth: 50%;\r\n\t\tborder-radius: 0;\r\n\r\n\t\t&:not(:focus) {\r\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\tmargin-left: 0;\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\tmargin-left: 0;\r\n\r\n\t\t\t&:last-of-type {\r\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\r\n\t& .ck.ck-list {\r\n\t\tmargin: 0 var(--ck-spacing-large);\r\n\r\n\t\t& .ck-button.ck-switchbutton {\r\n\t\t\tpadding: 0;\r\n\t\t\twidth: 100%;\r\n\r\n\t\t\t&:hover {\r\n\t\t\t\tbackground: none;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},4043:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-form {\r\n\tpadding: 0 0 var(--ck-spacing-large);\r\n\r\n\t&:focus {\r\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\r\n\t\toutline: none;\r\n\t}\r\n\r\n\t& .ck.ck-input-text {\r\n\t\tmin-width: 100%;\r\n\t\twidth: 0;\r\n\t}\r\n\r\n\t& .ck.ck-dropdown {\r\n\t\tmin-width: 100%;\r\n\r\n\t\t& .ck-dropdown__button {\r\n\t\t\t&:not(:focus) {\r\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-button__label {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},4062:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n.ck.ck-text-alternative-form {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tflex-wrap: nowrap;\r\n\r\n\t& .ck-labeled-field-view {\r\n\t\tdisplay: inline-block;\r\n\t}\r\n\r\n\t& .ck-label {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t@mixin ck-media-phone {\r\n\t\tflex-wrap: wrap;\r\n\r\n\t\t& .ck-labeled-field-view {\r\n\t\t\tflex-basis: 100%;\r\n\t\t}\r\n\r\n\t\t& .ck-button {\r\n\t\t\tflex-basis: 50%;\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-phone {\r\n\t@media screen and (max-width: 600px) {\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},4095:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck .ck-widget_with-resizer {\r\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\r\n\tposition: relative;\r\n}\r\n\r\n.ck .ck-widget__resizer {\r\n\tdisplay: none;\r\n\tposition: absolute;\r\n\r\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\r\n\tpointer-events: none;\r\n\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\r\n\t& > .ck-widget__resizer {\r\n\t\tdisplay: block;\r\n\t}\r\n}\r\n\r\n.ck .ck-widget__resizer__handle {\r\n\tposition: absolute;\r\n\r\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\r\n\tpointer-events: all;\r\n\r\n\t&.ck-widget__resizer__handle-top-left,\r\n\t&.ck-widget__resizer__handle-bottom-right {\r\n\t\tcursor: nwse-resize;\r\n\t}\r\n\r\n\t&.ck-widget__resizer__handle-top-right,\r\n\t&.ck-widget__resizer__handle-bottom-left {\r\n\t\tcursor: nesw-resize;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-resizer-size: 10px;\r\n\r\n\t/* Set the resizer with a 50% offset. */\r\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\r\n\t--ck-resizer-border-width: 1px;\r\n}\r\n\r\n.ck .ck-widget__resizer {\r\n\toutline: 1px solid var(--ck-color-resizer);\r\n}\r\n\r\n.ck .ck-widget__resizer__handle {\r\n\twidth: var(--ck-resizer-size);\r\n\theight: var(--ck-resizer-size);\r\n\tbackground: var(--ck-color-focus-border);\r\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\r\n\tborder-radius: var(--ck-resizer-border-radius);\r\n\r\n\t&.ck-widget__resizer__handle-top-left {\r\n\t\ttop: var(--ck-resizer-offset);\r\n\t\tleft: var(--ck-resizer-offset);\r\n\t}\r\n\r\n\t&.ck-widget__resizer__handle-top-right {\r\n\t\ttop: var(--ck-resizer-offset);\r\n\t\tright: var(--ck-resizer-offset);\r\n\t}\r\n\r\n\t&.ck-widget__resizer__handle-bottom-right {\r\n\t\tbottom: var(--ck-resizer-offset);\r\n\t\tright: var(--ck-resizer-offset);\r\n\t}\r\n\r\n\t&.ck-widget__resizer__handle-bottom-left {\r\n\t\tbottom: var(--ck-resizer-offset);\r\n\t\tleft: var(--ck-resizer-offset);\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},4098:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}@media (forced-colors:active){.ck .ck-placeholder,.ck.ck-placeholder{forced-color-adjust:preserve-parent-color}}.ck .ck-placeholder:before,.ck.ck-placeholder:before{cursor:text}@media (forced-colors:none){.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text)}}@media (forced-colors:active){.ck .ck-placeholder:before,.ck.ck-placeholder:before{font-style:italic;margin-left:1px}}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC7BC,8BACC,uCCOA,yCDLA,CACD,CCOA,qDACC,WAmBD,CDvBA,4BACC,qDCMC,6CDJD,CACD,CAZA,8BACC,qDCsBC,iBAAkB,CAMlB,eD1BD,CACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/* See ckeditor/ckeditor5#936. */\r\n.ck.ck-placeholder,\r\n.ck .ck-placeholder {\r\n\tposition: relative;\r\n\r\n\t&::before {\r\n\t\tposition: absolute;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t\tcontent: attr(data-placeholder);\r\n\r\n\t\t/* See ckeditor/ckeditor5#469. */\r\n\t\tpointer-events: none;\r\n\t}\r\n}\r\n\r\n/* See ckeditor/ckeditor5#1987. */\r\n.ck.ck-read-only .ck-placeholder {\r\n\t&::before {\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n\r\n/*\r\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\r\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\r\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\r\n */\r\n.ck.ck-reset_all .ck-placeholder {\r\n\tposition: relative;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-forced-colors {\r\n\t@media (forced-colors: active) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@define-mixin ck-media-default-colors {\r\n\t@media (forced-colors: none) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\r\n\r\n/* See ckeditor/ckeditor5#936. */\r\n.ck.ck-placeholder, .ck .ck-placeholder {\r\n\t@mixin ck-media-forced-colors {\r\n\t\t/*\r\n\t\t * This is needed for Edge on Windows to use the right color for the placeholder content (::before).\r\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/14907.\r\n\t\t */\r\n\t\tforced-color-adjust: preserve-parent-color;\r\n\t}\r\n\r\n\t&::before {\r\n\t\tcursor: text;\r\n\r\n\t\t@mixin ck-media-default-colors {\r\n\t\t\tcolor: var(--ck-color-engine-placeholder-text);\r\n\t\t}\r\n\r\n\t\t@mixin ck-media-forced-colors {\r\n\t\t\t/*\r\n\t\t\t * In the high contrast mode there is no telling between regular and placeholder text. Using\r\n\t\t\t * italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907.\r\n\t\t\t */\r\n\t\t\tfont-style: italic;\r\n\r\n\t\t\t/*\r\n\t\t\t * Without this margin, the caret will not show up and blink when the user puts the selection\r\n\t\t\t * in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907.\r\n\t\t\t */\r\n\t\t\tmargin-left: 1px;\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},4143:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}@media (forced-colors:active){.ck-content .table>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAaD,CCxBC,8BACC,8BDoBA,sBAAuB,CACvB,WCnBA,CACD,CAIA,4BDqBC,qEACC,iDACD,CCnBD,CDsBA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\r\n\r\n:root {\r\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\r\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\r\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\r\n}\r\n\r\n/* Content styles */\r\n.ck-content .table > figcaption {\r\n\tdisplay: table-caption;\r\n\tcaption-side: top;\r\n\tword-break: break-word;\r\n\ttext-align: center;\r\n\tcolor: var(--ck-color-selector-caption-text);\r\n\tbackground-color: var(--ck-color-selector-caption-background);\r\n\tpadding: .6em;\r\n\tfont-size: .75em;\r\n\toutline-offset: -1px;\r\n\r\n\t/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */\r\n\t@mixin ck-media-forced-colors {\r\n\t\tbackground-color: unset;\r\n\t\tcolor: unset;\r\n\t}\r\n}\r\n\r\n/* Editing styles */\r\n.ck.ck-editor__editable .table > figcaption {\r\n\t@mixin ck-media-default-colors {\r\n\t\t&.table__caption_highlighted {\r\n\t\t\tanimation: ck-table-caption-highlight .6s ease-out;\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-placeholder::before {\r\n\t\tpadding-left: inherit;\r\n\t\tpadding-right: inherit;\r\n\r\n\t\t/*\r\n\t\t * Make sure the table caption placeholder doesn\'t overflow the placeholder area.\r\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\r\n\t\t */\r\n\t\twhite-space: nowrap;\r\n\t\toverflow: hidden;\r\n\t\ttext-overflow: ellipsis;\r\n\t}\r\n}\r\n\r\n@keyframes ck-table-caption-highlight {\r\n\t0% {\r\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\r\n\t}\r\n\r\n\t100% {\r\n\t\tbackground-color: var(--ck-color-selector-caption-background);\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-forced-colors {\r\n\t@media (forced-colors: active) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@define-mixin ck-media-default-colors {\r\n\t@media (forced-colors: none) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},4199:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-content code {\r\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\r\n\tpadding: .15em;\r\n\tborder-radius: 2px;\r\n}\r\n\r\n.ck.ck-editor__editable .ck-code_selected {\r\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\r\n}\r\n"],sourceRoot:""}]);const a=s},4272:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-special-characters>.ck-dialog__content>div{display:grid;height:100%;max-width:100%;width:350px;grid-column-gap:0;grid-row-gap:0;grid-template-columns:1fr;grid-template-rows:auto 1fr auto}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories{grid-area:1/1/2/2;padding:var(--ck-spacing-medium) var(--ck-spacing-large)}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view{padding-top:var(--ck-spacing-standard);width:100%}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both;background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}@media (prefers-reduced-motion:reduce){.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories .ck-dropdown{display:block;width:100%}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories .ck-dropdown>button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories .ck-dropdown>button>span{width:100%}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-grid{grid-area:2/1/3/2;max-height:200px}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-info{grid-area:3/1/4/2}.ck.ck-special-characters-navigation>.ck-label{max-width:160px;overflow:hidden;text-overflow:ellipsis}.ck.ck-special-characters-navigation>.ck-dropdown .ck-dropdown__panel{max-height:250px;overflow-x:hidden;overflow-y:auto}@media screen and (max-width:600px){.ck.ck-special-characters-navigation{max-width:190px}.ck.ck-special-characters-navigation>.ck-form__header__label{overflow:hidden;text-overflow:ellipsis}}","",{version:3,sources:["webpack://./../ckeditor5-special-characters/theme/specialcharacters.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-special-characters/specialcharacters.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAcC,kDAKC,YAAa,CAFb,WAAY,CADZ,cAAe,CADf,WAAY,CAKZ,iBAAoB,CACpB,cAAiB,CACjB,yBAA0B,CAC1B,gCAkED,CAhEC,2EACC,iBAAwB,CACxB,wDAoDD,CAlDC,kGACC,sCAAuC,CACvC,UAgCD,CA9BC,oIAcC,iEAAkE,CAblE,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAcD,CAXC,0IACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAIA,uCAhBD,oIAiBE,cAEF,CADC,CAID,mKACC,YACD,CAEA,4GACC,kCAAmC,CACnC,iBACD,CAGD,wFACC,aAAc,CACd,UAWD,CARE,2GACC,4CACD,CAEA,oGACC,UACD,CAKH,qEACC,iBAAwB,CACxB,gBACD,CAEA,qEACC,iBACD,CC9ED,+CACC,eAAgB,CAEhB,eAAgB,CADhB,sBAED,CAEA,sEAEC,gBAAiB,CAEjB,iBAAkB,CADlB,eAED,CCfA,oCDED,qCAgBE,eAOF,CALE,6DAEC,eAAgB,CADhB,sBAED,CCrBD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/*\r\n * Note: This file should contain the wireframe styles only. But since there are no such styles,\r\n * it acts as a message to the builder telling that it should look for the corresponding styles\r\n * **in the theme** when compiling the editor.\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n.ck.ck-special-characters {\r\n\t& > .ck-dialog__content > div {\r\n\t\twidth: 350px;\r\n\t\tmax-width: 100%;\r\n\t\theight: 100%;\r\n\r\n\t\tdisplay: grid;\r\n\t\tgrid-column-gap: 0px;\r\n\t\tgrid-row-gap: 0px;\r\n\t\tgrid-template-columns: 1fr;\r\n\t\tgrid-template-rows: auto 1fr auto;\r\n\r\n\t\t& > .ck-character-categories {\r\n\t\t\tgrid-area: 1 / 1 / 2 / 2;\r\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\r\n\r\n\t\t\t& > .ck-labeled-field-view {\r\n\t\t\t\tpadding-top: var(--ck-spacing-standard);\r\n\t\t\t\twidth: 100%;\r\n\r\n\t\t\t\t& .ck.ck-labeled-field-view__status {\r\n\t\t\t\t\tbackground: var(--ck-color-base-error);\r\n\t\t\t\t\tcolor: var(--ck-color-base-background);\r\n\t\t\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\r\n\t\t\t\t\tmin-width: var(--ck-table-properties-min-error-width);\r\n\t\t\t\t\ttext-align: center;\r\n\r\n\t\t\t\t\t/* The arrow pointing towards the field. */\r\n\t\t\t\t\t&::after {\r\n\t\t\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\r\n\t\t\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\r\n\t\t\t\t\t\tborder-style: solid;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\r\n\r\n\t\t\t\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\t\t\t\tanimation: none;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\r\n\t\t\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\r\n\t\t\t\t\tdisplay: none;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t& > .ck-label {\r\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.ck-dropdown {\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\twidth: 100%;\r\n\r\n\t\t\t\t& > button {\r\n\t\t\t\t\t&:not(:focus) {\r\n\t\t\t\t\t\tborder: 1px solid var(--ck-color-base-border);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t& > span {\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t& > .ck-character-grid {\r\n\t\t\tgrid-area: 2 / 1 / 3 / 2;\r\n\t\t\tmax-height: 200px;\r\n\t\t}\r\n\r\n\t\t& > .ck-character-info {\r\n\t\t\tgrid-area: 3 / 1 / 4 / 2;\r\n\t\t}\r\n\t}\r\n}\r\n','/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n.ck.ck-special-characters-navigation {\r\n\r\n\t& > .ck-label {\r\n\t\tmax-width: 160px;\r\n\t\ttext-overflow: ellipsis;\r\n\t\toverflow: hidden;\r\n\t}\r\n\r\n\t& > .ck-dropdown .ck-dropdown__panel {\r\n\t\t/* There could be dozens of categories available. Use scroll to prevent a 10e6px dropdown. */\r\n\t\tmax-height: 250px;\r\n\t\toverflow-y: auto;\r\n\t\toverflow-x: hidden;\r\n\t}\r\n\r\n\t@mixin ck-media-phone {\r\n\t\tmax-width: 190px;\r\n\r\n\t\t& > .ck-form__header__label {\r\n\t\t\ttext-overflow: ellipsis;\r\n\t\t\toverflow: hidden;\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-phone {\r\n\t@media screen and (max-width: 600px) {\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},4341:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-find-result{background:var(--ck-color-highlight-background);color:var(--ck-color-text)}.ck-find-result_selected{background:#ff9633}","",{version:3,sources:["webpack://./../ckeditor5-find-and-replace/theme/findandreplace.css"],names:[],mappings:"AAKA,gBACC,+CAAgD,CAChD,0BACD,CAEA,yBACC,kBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-find-result {\r\n\tbackground: var(--ck-color-highlight-background);\r\n\tcolor: var(--ck-color-text);\r\n}\r\n\r\n.ck-find-result_selected {\r\n\tbackground: hsl(29, 100%, 60%);\r\n}\r\n"],sourceRoot:""}]);const a=s},4391:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{transition:none}}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eDgFA,CA5CA,yIChCC,qCD4ED,CA5CA,2DAKE,gBAuCF,CA5CA,2DAUE,iBAkCF,CA5CA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CA2BD,CAxBC,2ECxDD,eDuEC,CAfA,6LCpDA,qCAAsC,CDsDpC,8CAaF,CAfA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAUD,CAHC,uCAZD,2EAaE,eAEF,CADC,CAGD,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEpFA,kCFsFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-button.ck-switchbutton {\r\n\t& .ck-button__toggle {\r\n\t\tdisplay: block;\r\n\r\n\t\t& .ck-button__toggle__inner {\r\n\t\t\tdisplay: block;\r\n\t\t}\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n@import "../../../mixins/_disabled.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\r\nof the component, floatingpoint numbers have been used which, for the default font size\r\n(see: --ck-font-size-base), will generate simple integers. */\r\n:root {\r\n\t/* 34px at 13px font-size */\r\n\t--ck-switch-button-toggle-width: 2.6153846154em;\r\n\t/* 14px at 13px font-size */\r\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\r\n\t--ck-switch-button-translation: calc(\r\n\t\tvar(--ck-switch-button-toggle-width) -\r\n\t\tvar(--ck-switch-button-toggle-inner-size) -\r\n\t\t2px /* Border */\r\n\t);\r\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\r\n}\r\n\r\n.ck.ck-button.ck-switchbutton {\r\n\t/* Unlike a regular button, the switch button text color and background should never change.\r\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\r\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\r\n\t */\r\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\r\n\t\tcolor: inherit;\r\n\t\tbackground: transparent;\r\n\t}\r\n\r\n\t& .ck-button__label {\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\t/* Separate the label from the switch */\r\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\t/* Separate the label from the switch */\r\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck-button__toggle {\r\n\t\t@mixin ck-rounded-corners;\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\r\n\t\t\tmargin-left: auto;\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\r\n\t\t\tmargin-right: auto;\r\n\t\t}\r\n\r\n\t\t/* Apply some smooth transition to the box-shadow and border. */\r\n\t\t/* Gently animate the background color of the toggle switch */\r\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\r\n\t\tborder: 1px solid transparent;\r\n\t\twidth: var(--ck-switch-button-toggle-width);\r\n\t\tbackground: var(--ck-color-switch-button-off-background);\r\n\r\n\t\t& .ck-button__toggle__inner {\r\n\t\t\t@mixin ck-rounded-corners {\r\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\r\n\t\t\t}\r\n\r\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\r\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\r\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\r\n\r\n\t\t\t/* Gently animate the inner part of the toggle switch */\r\n\t\t\ttransition: all 300ms ease;\r\n\r\n\t\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\t\ttransition: none;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&:hover {\r\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\r\n\r\n\t\t\t& .ck-button__toggle__inner {\r\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-disabled .ck-button__toggle {\r\n\t\t@mixin ck-disabled;\r\n\t}\r\n\r\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\r\n\t&:focus {\r\n\t\tborder-color: transparent;\r\n\t\toutline: none;\r\n\t\tbox-shadow: none;\r\n\r\n\t\t& .ck-button__toggle {\r\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\r\n\t\t\toutline-offset: 1px;\r\n\t\t\toutline: var(--ck-focus-ring);\r\n\t\t}\r\n\t}\r\n\r\n\t/* stylelint-disable-next-line no-descending-specificity */\r\n\t&.ck-on {\r\n\t\t& .ck-button__toggle {\r\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\r\n\r\n\t\t\t&:hover {\r\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-button__toggle__inner {\r\n\t\t\t\t/*\r\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\r\n\t\t\t\t*/\r\n\t\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A class which indicates that an element holding it is disabled.\r\n */\r\n@define-mixin ck-disabled {\r\n\topacity: var(--ck-disabled-opacity);\r\n}\r\n"],sourceRoot:""}]);const a=s},4642:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-image-custom-resize-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-image-custom-resize-form .ck-labeled-field-view{display:inline-block}.ck.ck-image-custom-resize-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-image-custom-resize-form{flex-wrap:wrap}.ck.ck-image-custom-resize-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-image-custom-resize-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecustomresizeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,gCAIC,sBAAuB,CAHvB,YAAa,CACb,kBAAmB,CACnB,gBAsBD,CAnBC,uDACC,oBACD,CAEA,0CACC,YACD,CCbA,oCDCD,gCAeE,cAUF,CARE,uDACC,eACD,CAEA,2CACC,cACD,CCtBD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n.ck.ck-image-custom-resize-form {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tflex-wrap: nowrap;\r\n\talign-items: flex-start;\r\n\r\n\t& .ck-labeled-field-view {\r\n\t\tdisplay: inline-block;\r\n\t}\r\n\r\n\t& .ck-label {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t@mixin ck-media-phone {\r\n\t\tflex-wrap: wrap;\r\n\r\n\t\t& .ck-labeled-field-view {\r\n\t\t\tflex-basis: 100%;\r\n\t\t}\r\n\r\n\t\t& .ck-button {\r\n\t\t\tflex-basis: 50%;\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-phone {\r\n\t@media screen and (max-width: 600px) {\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},4767:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-button.ck-dropdown-menu-list__nested-menu__item__button{border-radius:0}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container,.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus{border-color:transparent;box-shadow:none}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitembutton.css"],names:[],mappings:"AAQA,4DACC,eA0BD,CAxBC,gLAGC,8BACD,CAEA,kFAEC,4CAA+C,CAC/C,oCACD,CAMA,kEACC,wBAAyB,CACzB,eAKD,CAHC,8EACC,0DACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/*\r\n * List item buttons.\r\n */\r\n.ck-button.ck-dropdown-menu-list__nested-menu__item__button {\r\n\tborder-radius: 0;\r\n\r\n\t& > .ck-spinner-container,\r\n\t& > .ck-spinner-container .ck-spinner {\r\n\t\t/* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */\r\n\t\t--ck-toolbar-spinner-size: 20px;\r\n\t}\r\n\r\n\t& > .ck-spinner-container {\r\n\t\t/* These margins are the same as for .ck-icon. */\r\n\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\r\n\t\tmargin-right: var(--ck-spacing-small);\r\n\t}\r\n\r\n\t/*\r\n\t * Hovered items automatically get focused. Default focus styles look odd\r\n\t * while moving across a huge list of items so let's get rid of them\r\n\t */\r\n\t&:focus {\r\n\t\tborder-color: transparent;\r\n\t\tbox-shadow: none;\r\n\r\n\t\t&:not(.ck-on) {\r\n\t\t\tbackground: var(--ck-color-button-default-hover-background);\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},4808:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzUuNzUgMCAwIDEtLjIxNy4yMDYgNS4yNTEgNS4yNTEgMCAwIDEtOC41MDMtNS45NTUuNy43IDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NHptNS40OTQtNS4zMzVhLjc1Ljc1IDAgMCAxLS4xMi4yNzRsLTEuMTQ3IDEuNjM5YS43NS43NSAwIDEgMS0xLjIyOC0uODZsLjg2LTEuMjNhMy43NSAzLjc1IDAgMCAwLTYuMTQ0LTQuMzAxbC0uODYgMS4yMjlhLjc1Ljc1IDAgMCAxLTEuMjI5LS44NmwxLjE0OC0xLjY0YS43NS43NSAwIDAgMSAuMjE3LS4yMDYgNS4yNTEgNS4yNTEgMCAwIDEgOC41MDMgNS45NTVtLTQuNTYzLTIuNTMyYS43NS43NSAwIDAgMSAuMTg0IDEuMDQ1bC0zLjE1NSA0LjUwNWEuNzUuNzUgMCAxIDEtMS4yMjktLjg2bDMuMTU1LTQuNTA2YS43NS43NSAwIDAgMSAxLjA0NS0uMTg0Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,k2BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-editor__editable {\r\n\t/* Linked image indicator */\r\n\t& figure.image > a,\r\n\t& a span.image-inline {\r\n\t\t&::after {\r\n\t\t\tdisplay: block;\r\n\t\t\tposition: absolute;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\r\n\t--ck-link-image-indicator-icon-size: 20;\r\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\r\n}\r\n\r\n.ck.ck-editor__editable {\r\n\t/* Linked image indicator */\r\n\t& figure.image > a,\r\n\t& a span.image-inline {\r\n\t\t&::after {\r\n\t\t\tcontent: "";\r\n\r\n\t\t\t/*\r\n\t\t\t * Smaller images should have the icon closer to the border.\r\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\r\n\t\t\t */\r\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\r\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\r\n\r\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\r\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\r\n\t\t\tbackground-size: 14px;\r\n\t\t\tbackground-repeat: no-repeat;\r\n\t\t\tbackground-position: center;\r\n\t\t\tborder-radius: 100%;\r\n\r\n\t\t\t/*\r\n\t\t\t* Use CSS math to simulate container queries.\r\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\r\n\t\t\t*/\r\n\t\t\toverflow: hidden;\r\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\r\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\r\n\t\t}\r\n\t}\r\n}\r\n\r\n'],sourceRoot:""}]);const a=s},4892:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-style-panel .ck-style-panel__style-group>.ck-label{margin:var(--ck-spacing-large) 0}.ck.ck-style-panel .ck-style-panel__style-group:first-child>.ck-label{margin-top:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-style/stylegroup.css"],names:[],mappings:"AAMC,0DACC,gCACD,CAGC,sEACC,YACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-style-panel .ck-style-panel__style-group {\r\n\t& > .ck-label {\r\n\t\tmargin: var(--ck-spacing-large) 0;\r\n\t}\r\n\r\n\t&:first-child {\r\n\t\t& > .ck-label {\r\n\t\t\tmargin-top: 0;\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},4962:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}@media (prefers-reduced-motion:reduce){.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transition:none}}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eDmHD,CA9GA,2FCDE,qCD+GF,CA3GC,mEACC,UAwCD,CAtCC,gFACC,KAoCD,CArCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBAgCF,CArCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAyBF,CArCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAQD,CAHC,uCAlCD,gFAmCE,eAEF,CADC,CASD,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,2XAGE,+HAYF,CAfA,2XAOE,wIAQF,CAfA,uWAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-labeled-field-view {\r\n\t& > .ck.ck-labeled-field-view__input-wrapper {\r\n\t\tdisplay: flex;\r\n\t\tposition: relative;\r\n\t}\r\n\r\n\t& .ck.ck-label {\r\n\t\tdisplay: block;\r\n\t\tposition: absolute;\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n@import "../../../mixins/_rounded.css";\r\n\r\n:root {\r\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\r\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\r\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\r\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\r\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\r\n}\r\n\r\n.ck.ck-labeled-field-view {\r\n\t@mixin ck-rounded-corners;\r\n\r\n\t& > .ck.ck-labeled-field-view__input-wrapper {\r\n\t\twidth: 100%;\r\n\r\n\t\t& > .ck.ck-label {\r\n\t\t\ttop: 0px;\r\n\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tleft: 0px;\r\n\t\t\t\ttransform-origin: 0 0;\r\n\t\t\t\t/* By default, display the label scaled down above the field. */\r\n\t\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tright: 0px;\r\n\t\t\t\ttransform-origin: 100% 0;\r\n\t\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);\r\n\t\t\t}\r\n\r\n\t\t\tpointer-events: none;\r\n\r\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\r\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\r\n\t\t\tline-height: initial;\r\n\t\t\tfont-weight: normal;\r\n\r\n\t\t\t/* Prevent overflow when the label is longer than the input */\r\n\t\t\ttext-overflow: ellipsis;\r\n\t\t\toverflow: hidden;\r\n\r\n\t\t\tmax-width: 100%;\r\n\r\n\t\t\ttransition:\r\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\r\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\r\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\r\n\r\n\t\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\t\ttransition: none;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-error {\r\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\r\n\t\t\tcolor: var(--ck-color-base-error);\r\n\t\t}\r\n\r\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\r\n\t\t\tcolor: var(--ck-color-base-error);\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck-labeled-field-view__status {\r\n\t\tfont-size: var(--ck-font-size-small);\r\n\t\tmargin-top: var(--ck-spacing-small);\r\n\r\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\r\n\t\tThe status could be very long. */\r\n\t\twhite-space: normal;\r\n\r\n\t\t&.ck-labeled-field-view__status_error {\r\n\t\t\tcolor: var(--ck-color-base-error);\r\n\t\t}\r\n\t}\r\n\r\n\t/* Disabled fields and fields that have no focus should fade out. */\r\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\r\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\r\n\t\tcolor: var(--ck-color-input-disabled-text);\r\n\t}\r\n\r\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\r\n\t/* stylelint-disable-next-line no-descending-specificity */\r\n\t&.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\r\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\r\n\t\t}\r\n\r\n\t\t/* Compensate for the default translate position. */\r\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\r\n\r\n\t\tbackground: transparent;\r\n\t\tpadding: 0;\r\n\t}\r\n\r\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\r\n\r\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\r\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\r\n\t\tbackground: transparent;\r\n\t}\r\n\r\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\r\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\r\n\t\topacity: 0;\r\n\t}\r\n\r\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\r\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\r\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},5024:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-admonition/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-content blockquote {\r\n\t/* See #12 */\r\n\toverflow: hidden;\r\n\r\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\r\n\tpadding-right: 1.5em;\r\n\tpadding-left: 1.5em;\r\n\r\n\tmargin-left: 0;\r\n\tmargin-right: 0;\r\n\tfont-style: italic;\r\n\tborder-left: solid 5px hsl(0, 0%, 80%);\r\n}\r\n\r\n.ck-content[dir="rtl"] blockquote {\r\n\tborder-left: 0;\r\n\tborder-right: solid 5px hsl(0, 0%, 80%);\r\n}\r\n'],sourceRoot:""}]);const a=s},5032:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}@media (prefers-reduced-motion:reduce){.ck .ck-insert-table-dropdown-grid-box{transition:none}}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAcD,CAZC,uCATD,uCAUE,eAWF,CAVC,CAEA,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck .ck-insert-table-dropdown__grid {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tflex-wrap: wrap;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-insert-table-dropdown-padding: 10px;\r\n\t--ck-insert-table-dropdown-box-height: 11px;\r\n\t--ck-insert-table-dropdown-box-width: 12px;\r\n\t--ck-insert-table-dropdown-box-margin: 1px;\r\n}\r\n\r\n.ck .ck-insert-table-dropdown__grid {\r\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\r\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\r\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\r\n}\r\n\r\n.ck .ck-insert-table-dropdown__label,\r\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\r\n\ttext-align: center;\r\n}\r\n\r\n.ck .ck-insert-table-dropdown-grid-box {\r\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\r\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\r\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\r\n\tborder: 1px solid var(--ck-color-base-border);\r\n\tborder-radius: 1px;\r\n\toutline: none;\r\n\ttransition: none;\r\n\r\n\t@media (prefers-reduced-motion: reduce) {\r\n\t\ttransition: none;\r\n\t}\r\n\r\n\t&:focus {\r\n\t\tbox-shadow: none;\r\n\t}\r\n\r\n\t&.ck-on {\r\n\t\tborder-color: var(--ck-color-focus-border);\r\n\t\tbackground: var(--ck-color-focus-outer-shadow);\r\n\t}\r\n}\r\n\r\n"],sourceRoot:""}]);const a=s},5199:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none;padding:var(--ck-spacing-small) 0}.ck.ck-list__item{cursor:default;min-width:15em}.ck.ck-list__item>.ck-button:not(.ck-list-item-button){border-radius:0;min-height:unset;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}[dir=ltr] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:left}[dir=rtl] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:right}.ck.ck-list__item>.ck-button:not(.ck-list-item-button) .ck-button__label{line-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button){background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium)}.ck-list .ck-list__group:first-child{padding-top:0}:not(.ck-hidden)~.ck-list .ck-list__group{border-top:1px solid var(--ck-color-base-border)}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large) 0}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;margin:var(--ck-spacing-small) 0;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,YCCC,eDOD,CARA,+DCKE,qCDGF,CARA,YAIC,0CAA2C,CAD3C,oBAAqB,CAIrB,iCACD,CAEA,kBACC,cAAe,CAGf,cA4DD,CA1DC,uDAIC,eAAgB,CAFhB,gBAAiB,CADjB,iEAAoE,CAEpE,UAwCD,CA3CA,iEAOE,eAoCF,CA3CA,iEAWE,gBAgCF,CA7BC,yEAEC,qEACD,CAEA,8DACC,eACD,CAEA,6DACC,oDAAqD,CACrD,yCAaD,CAXC,oEACC,eACD,CAEA,qFACC,0DACD,CAEA,qFACC,4CACD,CAGD,+EACC,uDACD,CAMA,mDACC,0CAA2C,CAC3C,aAMD,CAJC,2EACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAiBD,CAdC,qCACC,aACD,CAGA,0CACC,gDACD,CAEA,mCACC,cAAe,CACf,eAAiB,CACjB,0DACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CAKX,gCAAiC,CAJjC,UAKD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../mixins/_unselectable.css";\r\n\r\n.ck.ck-list {\r\n\t@mixin ck-unselectable;\r\n\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\r\n\t& .ck-list__item,\r\n\t& .ck-list__separator {\r\n\t\tdisplay: block;\r\n\t}\r\n\r\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\r\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\r\n\tadjacent list items. */\r\n\t& .ck-list__item > *:focus {\r\n\t\tposition: relative;\r\n\t\tz-index: var(--ck-z-default);\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Makes element unselectable.\r\n */\r\n@define-mixin ck-unselectable {\r\n\t-moz-user-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_disabled.css";\r\n@import "../../../mixins/_rounded.css";\r\n@import "../../../mixins/_shadow.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-list {\r\n\t@mixin ck-rounded-corners;\r\n\r\n\tlist-style-type: none;\r\n\tbackground: var(--ck-color-list-background);\r\n\r\n\t/* A spacing at the beginning and end of the list */\r\n\tpadding: var(--ck-spacing-small) 0;\r\n}\r\n\r\n.ck.ck-list__item {\r\n\tcursor: default;\r\n\r\n\t/* Almost as wide as menu bar items. */\r\n\tmin-width: 15em;\r\n\r\n\t& > .ck-button:not(.ck-list-item-button) {\r\n\t\tpadding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));\r\n\t\tmin-height: unset;\r\n\t\twidth: 100%;\r\n\t\tborder-radius: 0;\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\ttext-align: left;\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\ttext-align: right;\r\n\t\t}\r\n\r\n\t\t& .ck-button__label {\r\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\r\n\t\t\tline-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));\r\n\t\t}\r\n\r\n\t\t&:active {\r\n\t\t\tbox-shadow: none;\r\n\t\t}\r\n\r\n\t\t&.ck-on {\r\n\t\t\tbackground: var(--ck-color-list-button-on-background);\r\n\t\t\tcolor: var(--ck-color-list-button-on-text);\r\n\r\n\t\t\t&:active {\r\n\t\t\t\tbox-shadow: none;\r\n\t\t\t}\r\n\r\n\t\t\t&:hover:not(.ck-disabled) {\r\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\r\n\t\t\t}\r\n\r\n\t\t\t&:focus:not(.ck-disabled) {\r\n\t\t\t\tborder-color: var(--ck-color-base-background);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&:hover:not(.ck-disabled) {\r\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\r\n\t\t}\r\n\t}\r\n\r\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\r\n\tof conveying its state (like the switcher) */\r\n\t& > .ck-button.ck-switchbutton {\r\n\t\t&.ck-on {\r\n\t\t\tbackground: var(--ck-color-list-background);\r\n\t\t\tcolor: inherit;\r\n\r\n\t\t\t&:hover:not(.ck-disabled) {\r\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\r\n\t\t\t\tcolor: inherit;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck-list .ck-list__group {\r\n\tpadding-top: var(--ck-spacing-medium);\r\n\r\n\t/* Lists come with an inner vertical padding. Don\'t duplicate it. */\r\n\t&:first-child {\r\n\t\tpadding-top: 0;\r\n\t}\r\n\r\n\t/* The group should have a border when it\'s not the first item. */\r\n\t*:not(.ck-hidden) ~ & {\r\n\t\tborder-top: 1px solid var(--ck-color-base-border);\r\n\t}\r\n\r\n\t& > .ck-label {\r\n\t\tfont-size: 11px;\r\n\t\tfont-weight: bold;\r\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large) 0;\r\n\t}\r\n}\r\n\r\n.ck.ck-list__separator {\r\n\theight: 1px;\r\n\twidth: 100%;\r\n\tbackground: var(--ck-color-base-border);\r\n\r\n\t/* Give the separator some air */\r\n\tmargin: var(--ck-spacing-small) 0;\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},5247:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highlighted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}@media (forced-colors:active){.ck-content .image>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:none}}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highlighted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,oDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAYD,CAJC,8BAXD,8BAYE,sBAAuB,CACvB,WAEF,CADC,CCdA,4BACC,qEDmBA,iDCjBA,CACD,CDmBA,uCALD,qEAME,cAEF,CADC,CAGD,sCACC,GACC,qEACD,CAEA,GACC,yDACD,CACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\r\n\r\n:root {\r\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\r\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\r\n\t--ck-color-image-caption-highlighted-background: hsl(52deg 100% 50%);\r\n}\r\n\r\n/* Content styles */\r\n.ck-content .image > figcaption {\r\n\tdisplay: table-caption;\r\n\tcaption-side: bottom;\r\n\tword-break: break-word;\r\n\tcolor: var(--ck-color-image-caption-text);\r\n\tbackground-color: var(--ck-color-image-caption-background);\r\n\tpadding: .6em;\r\n\tfont-size: .75em;\r\n\toutline-offset: -1px;\r\n\r\n\t/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */\r\n\t@media (forced-colors: active) {\r\n\t\tbackground-color: unset;\r\n\t\tcolor: unset;\r\n\t}\r\n}\r\n\r\n/* Editing styles */\r\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\r\n\t@mixin ck-media-default-colors {\r\n\t\tanimation: ck-image-caption-highlight .6s ease-out;\r\n\t}\r\n\r\n\t@media (prefers-reduced-motion: reduce) {\r\n\t\tanimation: none;\r\n\t}\r\n}\r\n\r\n@keyframes ck-image-caption-highlight {\r\n\t0% {\r\n\t\tbackground-color: var(--ck-color-image-caption-highlighted-background);\r\n\t}\r\n\r\n\t100% {\r\n\t\tbackground-color: var(--ck-color-image-caption-background);\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-forced-colors {\r\n\t@media (forced-colors: active) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@define-mixin ck-media-default-colors {\r\n\t@media (forced-colors: none) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},5380:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-panel) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck .ck-fake-panel {\r\n\tposition: absolute;\r\n\r\n\t/* Fake panels should be placed under main balloon content. */\r\n\tz-index: calc(var(--ck-z-panel) - 1);\r\n}\r\n\r\n.ck .ck-fake-panel div {\r\n\tposition: absolute;\r\n}\r\n\r\n.ck .ck-fake-panel div:nth-child( 1 ) {\r\n\tz-index: 2;\r\n}\r\n\r\n.ck .ck-fake-panel div:nth-child( 2 ) {\r\n\tz-index: 1;\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_shadow.css";\r\n\r\n:root {\r\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\r\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\r\n}\r\n\r\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\r\n.ck .ck-fake-panel div {\r\n\t@mixin ck-drop-shadow;\r\n\r\n\tmin-height: 15px;\r\n\r\n\tbackground: var(--ck-color-panel-background);\r\n\tborder: 1px solid var(--ck-color-panel-border);\r\n\tborder-radius: var(--ck-border-radius);\r\n\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n\r\n.ck .ck-fake-panel div:nth-child( 1 ) {\r\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\r\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\r\n}\r\n\r\n.ck .ck-fake-panel div:nth-child( 2 ) {\r\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\r\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\r\n}\r\n.ck .ck-fake-panel div:nth-child( 3 ) {\r\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\r\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\r\n}\r\n\r\n/* If balloon is positioned above element, we need to move fake panel to the top. */\r\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\r\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\r\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\r\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n"],sourceRoot:""}]);const a=s},5506:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-input-color {\r\n\twidth: 100%;\r\n\tdisplay: flex;\r\n\tflex-direction: row-reverse;\r\n\r\n\t& > input.ck.ck-input-text {\r\n\t\tmin-width: auto;\r\n\t\tflex-grow: 1;\r\n\t}\r\n\r\n\t& > div.ck.ck-dropdown {\r\n\t\tmin-width: auto;\r\n\r\n\t\t/* This dropdown has no arrow but a color preview instead. */\r\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck.ck-input-color__button {\r\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\r\n\t\tdisplay: flex;\r\n\r\n\t\t& .ck.ck-input-color__button__preview {\r\n\t\t\tposition: relative;\r\n\t\t\toverflow: hidden;\r\n\r\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n@import "../mixins/_rounded.css";\r\n\r\n.ck.ck-input-color {\r\n\t& > .ck.ck-input-text {\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\tborder-top-right-radius: 0;\r\n\t\t\tborder-bottom-right-radius: 0;\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\tborder-top-left-radius: 0;\r\n\t\t\tborder-bottom-left-radius: 0;\r\n\t\t}\r\n\r\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\r\n\t\t outline and border are never cropped (also when the input is read-only). */\r\n\t\t&:focus {\r\n\t\t\tz-index: 0;\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck.ck-dropdown {\r\n\t\t& > .ck.ck-button.ck-input-color__button {\r\n\t\t\tpadding: 0;\r\n\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tborder-top-left-radius: 0;\r\n\t\t\t\tborder-bottom-left-radius: 0;\r\n\r\n\t\t\t\t&:not(:focus) {\r\n\t\t\t\t\tborder-left: 1px solid transparent;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tborder-top-right-radius: 0;\r\n\t\t\t\tborder-bottom-right-radius: 0;\r\n\r\n\t\t\t\t&:not(:focus) {\r\n\t\t\t\t\tborder-right: 1px solid transparent;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t&.ck-disabled {\r\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\r\n\t\t\t}\r\n\r\n\t\t\t& > .ck.ck-input-color__button__preview {\r\n\t\t\t\t@mixin ck-rounded-corners;\r\n\r\n\t\t\t\twidth: 20px;\r\n\t\t\t\theight: 20px;\r\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\r\n\r\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\r\n\t\t\t\t\ttop: -30%;\r\n\t\t\t\t\tleft: 50%;\r\n\t\t\t\t\theight: 150%;\r\n\t\t\t\t\twidth: 8%;\r\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\r\n\t\t\t\t\tborder-radius: 2px;\r\n\t\t\t\t\ttransform: rotate(45deg);\r\n\t\t\t\t\ttransform-origin: 50%;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck.ck-input-color__remove-color {\r\n\t\twidth: 100%;\r\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\r\n\r\n\t\tborder-bottom-left-radius: 0;\r\n\t\tborder-bottom-right-radius: 0;\r\n\r\n\t\t&:not(:focus) {\r\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\tborder-top-right-radius: 0;\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\tborder-top-left-radius: 0;\r\n\t\t}\r\n\r\n\t\t& .ck.ck-icon {\r\n\t\t\tmargin-right: var(--ck-spacing-standard);\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tmargin-right: 0;\r\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},5562:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-table-properties-form {\r\n\t& .ck-form__row {\r\n\t\t&.ck-table-properties-form__alignment-row {\r\n\t\t\tflex-wrap: wrap;\r\n\t\t\tflex-basis: 0;\r\n\t\t\talign-content: baseline;\r\n\r\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\r\n\t\t\t\tflex-wrap: nowrap;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-table-properties-form {\r\n\twidth: 320px;\r\n\r\n\t& .ck-form__row {\r\n\t\t&.ck-table-properties-form__alignment-row {\r\n\t\t\talign-self: flex-end;\r\n\t\t\tpadding: 0;\r\n\r\n\t\t\t& .ck.ck-toolbar {\r\n\t\t\t\tbackground: none;\r\n\r\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\r\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\r\n\r\n\t\t\t\t& .ck-toolbar__items > * {\r\n\t\t\t\t\twidth: 40px;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},5727:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-panel)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-autocomplete {\r\n\tposition: relative;\r\n\r\n\t& > .ck-search__results {\r\n\t\tposition: absolute;\r\n\t\tz-index: var(--ck-z-panel);\r\n\r\n\t\t&.ck-search__results_n {\r\n\t\t\tbottom: 100%;\r\n\t\t}\r\n\r\n\t\t&.ck-search__results_s {\r\n\t\t\ttop: 100%;\r\n\t\t\tbottom: auto;\r\n\t\t}\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\r\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\r\n\r\n.ck.ck-autocomplete {\r\n\t& > .ck-search__results {\r\n\t\t@mixin ck-rounded-corners;\r\n\t\t@mixin ck-drop-shadow;\r\n\r\n\t\tmax-height: 200px;\r\n\t\toverflow-y: auto;\r\n\t\tbackground: var(--ck-color-base-background);\r\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\r\n\t\tmin-width: auto;\r\n\r\n\t\t&.ck-search__results_n {\r\n\t\t\tborder-bottom-left-radius: 0;\r\n\t\t\tborder-bottom-right-radius: 0;\r\n\r\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\r\n\t\t\tmargin-bottom: -1px;\r\n\t\t}\r\n\r\n\t\t&.ck-search__results_s {\r\n\t\t\tborder-top-left-radius: 0;\r\n\t\t\tborder-top-right-radius: 0;\r\n\r\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\r\n\t\t\tmargin-top: -1px;\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n"],sourceRoot:""}]);const a=s},6269:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-heading_heading1 .ck-button__label{font-size:20px}.ck.ck-heading_heading2 .ck-button__label{font-size:17px}.ck.ck-heading_heading3 .ck-button__label{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,0CACC,cACD,CAEA,0CACC,cACD,CAEA,0CACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-heading_heading1 .ck-button__label {\r\n\tfont-size: 20px;\r\n}\r\n\r\n.ck.ck-heading_heading2 .ck-button__label {\r\n\tfont-size: 17px;\r\n}\r\n\r\n.ck.ck-heading_heading3 .ck-button__label {\r\n\tfont-size: 14px;\r\n}\r\n\r\n.ck[class*="ck-heading_heading"] {\r\n\tfont-weight: bold;\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/* Resize dropdown's button label. */\r\n.ck.ck-dropdown.ck-heading-dropdown {\r\n\t& .ck-dropdown__button .ck-button__label {\r\n\t\twidth: 8em;\r\n\t}\r\n\r\n\t& .ck-dropdown__panel .ck-list__item {\r\n\t\tmin-width: 18em;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},6309:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-color-selector {\r\n\t/* View fragment with color grids. */\r\n\t& .ck-color-grids-fragment {\r\n\t\t& .ck-button.ck-color-selector__remove-color,\r\n\t\t& .ck-button.ck-color-selector__color-picker {\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tjustify-content: flex-start;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/* View fragment with a color picker. */\r\n\t& .ck-color-picker-fragment {\r\n\t\t& .ck.ck-color-selector_action-bar {\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-direction: row;\r\n\t\t\tjustify-content: space-around;\r\n\r\n\t\t\t& .ck-button-save,\r\n\t\t\t& .ck-button-cancel {\r\n\t\t\t\tflex: 1\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n','/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-color-selector {\r\n\t/* View fragment with color grids. */\r\n\t& .ck-color-grids-fragment {\r\n\t\t& .ck-button.ck-color-selector__remove-color,\r\n\t\t& .ck-button.ck-color-selector__color-picker {\r\n\t\t\twidth: 100%;\r\n\t\t}\r\n\r\n\t\t& .ck-button.ck-color-selector__color-picker {\r\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\r\n\t\t\tborder-bottom-left-radius: 0;\r\n\t\t\tborder-bottom-right-radius: 0;\r\n\r\n\t\t\t&:not(:focus) {\r\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\r\n\t\t\t}\r\n\r\n\t\t\t& .ck.ck-icon {\r\n\t\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t& label.ck.ck-color-grid__label {\r\n\t\t\tfont-weight: unset;\r\n\t\t}\r\n\t}\r\n\r\n\t/* View fragment with a color picker. */\r\n\t& .ck-color-picker-fragment {\r\n\t\t& .ck.ck-color-picker {\r\n\t\t\tpadding: 8px;\r\n\r\n\t\t\t& .hex-color-picker {\r\n\t\t\t\theight: 100px;\r\n\t\t\t\tmin-width: 180px;\r\n\r\n\t\t\t\t&::part(saturation) {\r\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t&::part(hue) {\r\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t&::part(saturation-pointer),\r\n\t\t\t\t&::part(hue-pointer) {\r\n\t\t\t\t\twidth: 15px;\r\n\t\t\t\t\theight: 15px;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t& .ck.ck-color-selector_action-bar {\r\n\t\t\tpadding: 0 8px 8px;\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},6386:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image.image-style-block-align-left,.ck-content .image.image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image.image-style-align-left,.ck-content .image.image-style-align-right{clear:none}.ck-content .image.image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image.image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image.image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image.image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image.image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content p+.image.image-style-align-left,.ck-content p+.image.image-style-align-right,.ck-content p+.image.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAQE,iGAEC,oDACD,CAIA,qFAEC,UACD,CAEA,oCACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,0CACC,UAAW,CACX,0CACD,CAEA,2CACC,WAAY,CACZ,yCACD,CAEA,iDAEC,gBAAiB,CADjB,cAED,CAEA,gDACC,aAAc,CACd,iBACD,CAGD,sCACC,gBAAiB,CACjB,iBACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAGA,+HAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-image-style-spacing: 1.5em;\r\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\r\n}\r\n\r\n.ck-content {\r\n\t/* See: https://github.com/ckeditor/ckeditor5/issues/16317 */\r\n\t& .image {\r\n\t\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\r\n\t\tconfirming successful application of the style if image width exceeds the editor's size.\r\n\t\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\r\n\t\t&.image-style-block-align-left,\r\n\t\t&.image-style-block-align-right {\r\n\t\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\r\n\t\t}\r\n\r\n\t\t/* Allows displaying multiple floating images in the same line.\r\n\t\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\r\n\t\t&.image-style-align-left,\r\n\t\t&.image-style-align-right {\r\n\t\t\tclear: none;\r\n\t\t}\r\n\r\n\t\t&.image-style-side {\r\n\t\t\tfloat: right;\r\n\t\t\tmargin-left: var(--ck-image-style-spacing);\r\n\t\t\tmax-width: 50%;\r\n\t\t}\r\n\r\n\t\t&.image-style-align-left {\r\n\t\t\tfloat: left;\r\n\t\t\tmargin-right: var(--ck-image-style-spacing);\r\n\t\t}\r\n\r\n\t\t&.image-style-align-right {\r\n\t\t\tfloat: right;\r\n\t\t\tmargin-left: var(--ck-image-style-spacing);\r\n\t\t}\r\n\r\n\t\t&.image-style-block-align-right {\r\n\t\t\tmargin-right: 0;\r\n\t\t\tmargin-left: auto;\r\n\t\t}\r\n\r\n\t\t&.image-style-block-align-left {\r\n\t\t\tmargin-left: 0;\r\n\t\t\tmargin-right: auto;\r\n\t\t}\r\n\t}\r\n\r\n\t& .image-style-align-center {\r\n\t\tmargin-left: auto;\r\n\t\tmargin-right: auto;\r\n\t}\r\n\r\n\t& .image-style-align-left {\r\n\t\tfloat: left;\r\n\t\tmargin-right: var(--ck-image-style-spacing);\r\n\t}\r\n\r\n\t& .image-style-align-right {\r\n\t\tfloat: right;\r\n\t\tmargin-left: var(--ck-image-style-spacing);\r\n\t}\r\n\r\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\r\n\t& p + .image.image-style-align-left,\r\n\t& p + .image.image-style-align-right,\r\n\t& p + .image.image-style-side {\r\n\t\tmargin-top: 0;\r\n\t}\r\n\r\n\t& .image-inline {\r\n\t\t&.image-style-align-left,\r\n\t\t&.image-style-align-right {\r\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\r\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\r\n\t\t}\r\n\r\n\t\t&.image-style-align-left {\r\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\r\n\t\t}\r\n\r\n\t\t&.image-style-align-right {\r\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck.ck-splitbutton {\r\n\t/* The button should display as a regular drop-down if the action button\r\n\tis forced to fire the same action as the arrow button. */\r\n\t&.ck-splitbutton_flatten {\r\n\t\t&:hover,\r\n\t\t&.ck-splitbutton_open {\r\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\r\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\r\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\r\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\r\n\r\n\t\t\t\t&::after {\r\n\t\t\t\t\tdisplay: none;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&.ck-splitbutton_open:hover {\r\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\r\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\r\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\r\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},6426:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck-content .page-break{align-items:center;clear:both;display:flex;justify-content:center;padding:5px 0;position:relative}.ck-content .page-break:after{border-bottom:2px dashed #c4c4c4;content:"";position:absolute;width:100%}.ck-content .page-break__label{background:#fff;border:1px solid #c4c4c4;border-radius:2px;box-shadow:2px 2px 1px rgba(0,0,0,.15);color:#333;display:block;font-family:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;font-size:.75em;font-weight:700;padding:.3em .6em;position:relative;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}@media print{.ck-content .page-break{padding:0}.ck-content .page-break:after{display:none}.ck-content :has(+.page-break){margin-bottom:0}}',"",{version:3,sources:["webpack://./../ckeditor5-page-break/theme/pagebreak.css"],names:[],mappings:"AAKA,wBAKC,kBAAmB,CAHnB,UAAW,CAEX,YAAa,CAEb,sBAAuB,CAHvB,aAAc,CAFd,iBAaD,CANC,8BAGC,gCAAyC,CAFzC,UAAW,CACX,iBAAkB,CAElB,UACD,CAGD,+BAYC,eAA4B,CAN5B,wBAAiC,CACjC,iBAAkB,CAMlB,sCAA6C,CAF7C,UAAsB,CAPtB,aAAc,CAId,qDAA0D,CAC1D,eAAiB,CACjB,eAAiB,CAPjB,iBAAkB,CAFlB,iBAAkB,CAIlB,wBAAyB,CAWzB,wBAAyB,CACzB,qBAAsB,CACtB,oBAAqB,CACrB,gBAAiB,CAjBjB,SAkBD,CAGA,aACC,wBACC,SAKD,CAHC,8BACC,YACD,CASD,+BACC,eACD,CACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-content .page-break {\r\n\tposition: relative;\r\n\tclear: both;\r\n\tpadding: 5px 0;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\r\n\t&::after {\r\n\t\tcontent: '';\r\n\t\tposition: absolute;\r\n\t\tborder-bottom: 2px dashed hsl(0, 0%, 77%);\r\n\t\twidth: 100%;\r\n\t}\r\n}\r\n\r\n.ck-content .page-break__label {\r\n\tposition: relative;\r\n\tz-index: 1;\r\n\tpadding: .3em .6em;\r\n\tdisplay: block;\r\n\ttext-transform: uppercase;\r\n\tborder: 1px solid hsl(0, 0%, 77%);\r\n\tborder-radius: 2px;\r\n\tfont-family: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\r\n\tfont-size: 0.75em;\r\n\tfont-weight: bold;\r\n\tcolor: hsl(0, 0%, 20%);\r\n\tbackground: hsl(0, 0%, 100%);\r\n\tbox-shadow: 2px 2px 1px hsla(0, 0%, 0%, 0.15);\r\n\r\n\t/* Disable the possibility to select the label text by the user. */\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n/* Do not show the page break element inside the print preview window. */\r\n@media print {\r\n\t.ck-content .page-break {\r\n\t\tpadding: 0;\r\n\r\n\t\t&::after {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * From time to time placing page-break directly after a block element with margin causes appending a new blank page in pagination mode.\r\n\t * Removing margin-bottom from the block element fixes that issue and the margin is not being moved to the next blank page.\r\n\t *\r\n\t * Keep this in sync with the pagination plugins.\r\n\t */\r\n\t.ck-content *:has(+ .page-break) {\r\n\t\tmargin-bottom: 0;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},6610:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-content pre{border:1px solid #c4c4c4;border-radius:2px;direction:ltr;font-style:normal;min-width:200px;padding:1em;tab-size:4;text-align:left;white-space:pre-wrap}.ck-content pre code{background:unset;border-radius:0;padding:0}.ck-content pre:not(.hljs){background:hsla(0,0%,78%,.3);color:#353535}.ck.ck-editor__editable pre{position:relative}.ck.ck-editor__editable pre[data-language]:after{content:attr(data-language);position:absolute}:root{--ck-color-code-block-label-background:#757575}.ck.ck-editor__editable pre[data-language]:after{background:var(--ck-color-code-block-label-background);color:#fff;font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);right:10px;top:-1px;white-space:nowrap}.ck.ck-code-block-dropdown .ck-dropdown__panel{max-height:250px;overflow-x:hidden;overflow-y:auto}","",{version:3,sources:["webpack://./../ckeditor5-code-block/theme/codeblock.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-code-block/codeblock.css"],names:[],mappings:"AAKA,gBAEC,wBAAiC,CACjC,iBAAkB,CAIlB,aAAc,CAMd,iBAAkB,CAGlB,eAAgB,CAfhB,WAAY,CAQZ,UAAW,CAHX,eAAgB,CAIhB,oBAaD,CALC,qBACC,gBAAiB,CAEjB,eAAgB,CADhB,SAED,CAGD,2BAEC,4BAAiC,CADjC,aAED,CAEA,4BACC,iBAMD,CAJC,iDACC,2BAA4B,CAC5B,iBACD,CCpCD,MACC,8CACD,CAEA,iDAGC,sDAAuD,CAMvD,UAAuB,CAHvB,+BAAgC,CADhC,cAAe,CAEf,gBAAiB,CACjB,uDAAwD,CANxD,UAAW,CADX,QAAS,CAST,kBACD,CAEA,+CAEC,gBAAiB,CAEjB,iBAAkB,CADlB,eAED",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-content pre {\r\n\tpadding: 1em;\r\n\tborder: 1px solid hsl(0, 0%, 77%);\r\n\tborder-radius: 2px;\r\n\r\n\t/* Code block are language directionagnostic. */\r\n\ttext-align: left;\r\n\tdirection: ltr;\r\n\r\n\ttab-size: 4;\r\n\twhite-space: pre-wrap;\r\n\r\n\t/* Don't inherit the style, e.g. when in a block quote. */\r\n\tfont-style: normal;\r\n\r\n\t/* Don't let the code be squashed e.g. when in a table cell. */\r\n\tmin-width: 200px;\r\n\r\n\t& code {\r\n\t\tbackground: unset;\r\n\t\tpadding: 0;\r\n\t\tborder-radius: 0;\r\n\t}\r\n}\r\n\r\n.ck-content pre:not(.hljs) {\r\n\tcolor: hsl(0, 0%, 20.8%);\r\n\tbackground: hsla(0, 0%, 78%, 0.3);\r\n}\r\n\r\n.ck.ck-editor__editable pre {\r\n\tposition: relative;\r\n\r\n\t&[data-language]::after {\r\n\t\tcontent: attr(data-language);\r\n\t\tposition: absolute;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-color-code-block-label-background: hsl(0, 0%, 46%);\r\n}\r\n\r\n.ck.ck-editor__editable pre[data-language]::after {\r\n\ttop: -1px;\r\n\tright: 10px;\r\n\tbackground: var(--ck-color-code-block-label-background);\r\n\r\n\tfont-size: 10px;\r\n\tfont-family: var(--ck-font-face);\r\n\tline-height: 16px;\r\n\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-medium);\r\n\tcolor: hsl(0, 0%, 100%);\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.ck.ck-code-block-dropdown .ck-dropdown__panel {\r\n\t/* There could be dozens of languages available. Use scroll to prevent a 10e6px dropdown. */\r\n\tmax-height: 250px;\r\n\toverflow-y: auto;\r\n\toverflow-x: hidden;\r\n}\r\n"],sourceRoot:""}]);const a=s},6903:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-content ol {\r\n\tlist-style-type: decimal;\r\n\r\n\t& ol {\r\n\t\tlist-style-type: lower-latin;\r\n\r\n\t\t& ol {\r\n\t\t\tlist-style-type: lower-roman;\r\n\r\n\t\t\t& ol {\r\n\t\t\t\tlist-style-type: upper-latin;\r\n\r\n\t\t\t\t& ol {\r\n\t\t\t\t\tlist-style-type: upper-roman;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck-content ul {\r\n\tlist-style-type: disc;\r\n\r\n\t& ul {\r\n\t\tlist-style-type: circle;\r\n\r\n\t\t& ul {\r\n\t\t\tlist-style-type: square;\r\n\r\n\t\t\t& ul {\r\n\t\t\t\tlist-style-type: square;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},6931:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7141:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-list-styles-list {\r\n\tdisplay: grid;\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-list-style-button-size: 44px;\r\n}\r\n\r\n.ck.ck-list-styles-list {\r\n\tgrid-template-columns: repeat( 3, auto );\r\n\trow-gap: var(--ck-spacing-medium);\r\n\tcolumn-gap: var(--ck-spacing-medium);\r\n\tpadding: var(--ck-spacing-large);\r\n\r\n\t& .ck-button {\r\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\r\n\t\twidth: var(--ck-list-style-button-size);\r\n\t\theight: var(--ck-list-style-button-size);\r\n\t\tpadding: 0;\r\n\r\n\t\t/*\r\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\r\n\t\t * gaps in the grid.\r\n\t\t */\r\n\t\tmargin: 0;\r\n\r\n\t\t/*\r\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\r\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\r\n\t\t * (which becomes blurry as it scales down).\r\n\t\t */\r\n\t\tbox-sizing: content-box;\r\n\r\n\t\t& .ck-icon {\r\n\t\t\twidth: var(--ck-list-style-button-size);\r\n\t\t\theight: var(--ck-list-style-button-size);\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},7218:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-dropdown-menu-list__nested-menu{display:block}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenu.css"],names:[],mappings:"AAKA,uCACC,aACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-dropdown-menu-list__nested-menu {\r\n\tdisplay: block;\r\n}\r\n"],sourceRoot:""}]);const a=s},7317:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{transition:box-shadow .2s ease}@media (forced-colors:none){.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}}@media (forced-colors:active){.ck.ck-color-grid__tile{height:unset;min-height:unset;min-width:unset;padding:0 var(--ck-spacing-small);width:unset}.ck.ck-color-grid__tile .ck-button__label{display:inline-block}}@media (prefers-reduced-motion:reduce){.ck.ck-color-grid__tile{transition:none}}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAKA,kBACC,YACD,CCCA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBACC,8BAkED,CC3EC,4BACC,wBDgBA,QAAS,CAJT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CAJV,oCCTA,CDgBA,8HAIC,QACD,CAEA,+DACC,gDACD,CAEA,8BACC,8FACD,CAEA,gGAEC,iGACD,CCjCD,CAZA,8BACC,wBDqDA,YAAa,CAEb,gBAAiB,CADjB,eAAgB,CAEhB,iCAAkC,CAJlC,WClDA,CDwDA,0CACC,oBACD,CCzDD,CD4DA,uCAhDD,wBAiDE,eAkBF,CAjBC,CAEA,oCACC,YAAa,CACb,gBACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAGC,0CACC,aACD,CAIF,yBACC,oCACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-color-grid {\r\n\tdisplay: grid;\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\r\n\r\n:root {\r\n\t--ck-color-grid-tile-size: 24px;\r\n\r\n\t/* Not using global colors here because these may change but some colors in a pallette\r\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\r\n\t * the check icon will look good on the black color tile. */\r\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\r\n}\r\n\r\n.ck.ck-color-grid {\r\n\tgrid-gap: 5px;\r\n\tpadding: 8px;\r\n}\r\n\r\n.ck.ck-color-grid__tile {\r\n\ttransition: .2s ease box-shadow;\r\n\r\n\t@mixin ck-media-default-colors {\r\n\t\twidth: var(--ck-color-grid-tile-size);\r\n\t\theight: var(--ck-color-grid-tile-size);\r\n\t\tmin-width: var(--ck-color-grid-tile-size);\r\n\t\tmin-height: var(--ck-color-grid-tile-size);\r\n\t\tpadding: 0;\r\n\t\tborder: 0;\r\n\r\n\t\t&.ck-on,\r\n\t\t&:focus:not( .ck-disabled ),\r\n\t\t&:hover:not( .ck-disabled ) {\r\n\t\t\t/* Disable the default .ck-button\'s border ring. */\r\n\t\t\tborder: 0;\r\n\t\t}\r\n\r\n\t\t&.ck-color-selector__color-tile_bordered {\r\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\r\n\t\t}\r\n\r\n\t\t&.ck-on {\r\n\t\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\r\n\t\t}\r\n\r\n\t\t&:focus:not( .ck-disabled ),\r\n\t\t&:hover:not( .ck-disabled ) {\r\n\t\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * In high contrast mode, the colors are replaced with text labels.\r\n\t * See https://github.com/ckeditor/ckeditor5/issues/14907.\r\n\t */\r\n\t@mixin ck-media-forced-colors {\r\n\t\twidth: unset;\r\n\t\theight: unset;\r\n\t\tmin-width: unset;\r\n\t\tmin-height: unset;\r\n\t\tpadding: 0 var(--ck-spacing-small);\r\n\r\n\t\t& .ck-button__label {\r\n\t\t\tdisplay: inline-block;\r\n\t\t}\r\n\t}\r\n\r\n\t@media (prefers-reduced-motion: reduce) {\r\n\t\ttransition: none;\r\n\t}\r\n\r\n\t&.ck-disabled {\r\n\t\tcursor: unset;\r\n\t\ttransition: unset;\r\n\t}\r\n\r\n\t& .ck.ck-icon {\r\n\t\tdisplay: none;\r\n\t\tcolor: var(--ck-color-color-grid-check-icon);\r\n\t}\r\n\r\n\t&.ck-on {\r\n\t\t& .ck.ck-icon {\r\n\t\t\tdisplay: block;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck.ck-color-grid__label {\r\n\tpadding: 0 var(--ck-spacing-standard);\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-forced-colors {\r\n\t@media (forced-colors: active) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@define-mixin ck-media-default-colors {\r\n\t@media (forced-colors: none) {\r\n\t\t& {\r\n\t\t\t@mixin-content;\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},7331:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-style-panel-max-height:470px}.ck.ck-style-panel{max-height:var(--ck-style-panel-max-height);overflow-y:auto;padding:var(--ck-spacing-large)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-style/stylepanel.css"],names:[],mappings:"AAKA,MACC,iCACD,CAEA,mBAGC,2CAA4C,CAD5C,eAAgB,CADhB,+BAGD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-style-panel-max-height: 470px;\r\n}\r\n\r\n.ck.ck-style-panel {\r\n\tpadding: var(--ck-spacing-large);\r\n\toverflow-y: auto;\r\n\tmax-height: var(--ck-style-panel-max-height);\r\n}\r\n"],sourceRoot:""}]);const a=s},7378:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-editor__editable {\r\n\t& img.image_placeholder {\r\n\t\tbackground-size: 100% 100%;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},7433:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-mermaid__wrapper{display:flex;justify-content:center}.ck-mermaid__wrapper .ck-mermaid__editing-view{background-color:hsla(0,0%,78%,.3);border:0;font-size:12px;min-height:200px;outline:0;padding:16px;resize:vertical}.ck-mermaid__preview,[id^=dmermaid-]{display:flex;justify-content:center}[id^=dmermaid-]{align-items:center;height:100%}[id^=dmermaid-] svg{display:block;height:auto;width:60%}.ck-mermaid__source-mode .ck-mermaid__editing-view{width:100%}.ck-mermaid__source-mode .ck-mermaid__preview{display:none}.ck-mermaid__split-mode .ck-mermaid__editing-view,.ck-mermaid__split-mode .ck-mermaid__preview{width:50%}.ck-mermaid__preview-mode .ck-mermaid__editing-view{display:none}","",{version:3,sources:["webpack://./../ckeditor5-mermaid/theme/mermaid.css"],names:[],mappings:"AACA,qBACC,YAAa,CACb,sBACD,CAKA,+CAEC,kCAAuC,CAEvC,QAAS,CAET,cAAe,CAHf,gBAAiB,CAIjB,SAAU,CANV,YAAa,CAIb,eAGD,CASA,qCALC,YAAa,CACb,sBASD,CALA,gBAEC,kBAAmB,CACnB,WAED,CAEA,oBACC,aAAc,CAEd,WAAY,CADZ,SAED,CAGA,mDACC,UACD,CAEA,8CACC,YACD,CAOA,+FACC,SACD,CAGA,oDACC,YACD",sourcesContent:['/* Mermaid wrapper */\r\n.ck-mermaid__wrapper {\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n}\r\n\r\n/* Editing\r\n Assigned to textarea\r\n */\r\n.ck-mermaid__wrapper .ck-mermaid__editing-view {\r\n\tpadding: 16px; /* just like pre element */\r\n\tbackground-color: hsla(0, 0%, 78%, 0.3); /* just like pre element */\r\n\tmin-height: 200px;\r\n\tborder: 0;\r\n\tresize: vertical;\r\n\tfont-size: 12px; /* just like pre element */\r\n\toutline: 0; /* just like pre element */\r\n}\r\n\r\n/* Preview */\r\n.ck-mermaid__preview {\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n}\r\n\r\n/* Preview error state */\r\n[id^="dmermaid-"] {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\theight: 100%;\r\n\tjustify-content: center;\r\n}\r\n\r\n[id^="dmermaid-"] svg {\r\n\tdisplay: block;\r\n\twidth: 60%;\r\n\theight: auto;\r\n}\r\n\r\n/* Source mode */\r\n.ck-mermaid__source-mode .ck-mermaid__editing-view {\r\n\twidth: 100%;\r\n}\r\n\r\n.ck-mermaid__source-mode .ck-mermaid__preview {\r\n\tdisplay: none;\r\n}\r\n\r\n/* Split mode */\r\n.ck-mermaid__split-mode .ck-mermaid__editing-view {\r\n\twidth: 50%;\r\n}\r\n\r\n.ck-mermaid__split-mode .ck-mermaid__preview {\r\n\twidth: 50%;\r\n}\r\n\r\n/* Preview mode */\r\n.ck-mermaid__preview-mode .ck-mermaid__editing-view {\r\n\tdisplay: none;\r\n}'],sourceRoot:""}]);const a=s},7621:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal));--ck-icon-font-size:.8333350694em}.ck.ck-icon{font-size:var(--ck-icon-font-size);height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EAA6E,CAC7E,iCACD,CAEA,YAKC,kCAAmC,CAHnC,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-icon {\r\n\tvertical-align: middle;\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\r\n\t--ck-icon-font-size: .8333350694em;\r\n}\r\n\r\n.ck.ck-icon {\r\n\twidth: var(--ck-icon-size);\r\n\theight: var(--ck-icon-size);\r\n\r\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\r\n\tfont-size: var(--ck-icon-font-size);\r\n\r\n\t/* Inherit cursor style (#5). */\r\n\tcursor: inherit;\r\n\r\n\t/* This will prevent blurry icons on Firefox. See #340. */\r\n\twill-change: transform;\r\n\r\n\t& * {\r\n\t\t/* Inherit cursor style (#5). */\r\n\t\tcursor: inherit;\r\n\t}\r\n\r\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\r\n\t&.ck-icon_inherit-color {\r\n\t\tcolor: inherit;\r\n\r\n\t\t& * {\r\n\t\t\tcolor: inherit;\r\n\r\n\t\t\t&:not([fill]) {\r\n\t\t\t\t/* Needed by FF. */\r\n\t\t\t\tfill: currentColor;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},7676:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-hidden{display:none!important}:root{--ck-z-default:1;--ck-z-panel:calc(var(--ck-z-default) + 999);--ck-z-dialog:9999}.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-panel) - 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-dialog-background:var(--ck-custom-background);--ck-color-dialog-form-header-border:var(--ck-custom-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{background:transparent;border:0;box-sizing:border-box;height:auto;margin:0;padding:0;position:static;text-decoration:none;transition:none;vertical-align:middle;width:auto;word-wrap:break-word}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,MACC,gBAAiB,CACjB,4CAA+C,CAC/C,kBACD,CCDA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,wDAAiE,CACjE,4DAAmE,CAInE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAyD,CAIzD,yBAAgD,CChHhD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJgHD,CI1GA,2EAYC,sBAAuB,CADvB,QAAS,CART,qBAAsB,CAEtB,WAAY,CAIZ,QAAS,CACT,SAAU,CAJV,eAAgB,CAOhB,oBAAqB,CAErB,eAAgB,CADhB,qBAAsB,CAVtB,UAAW,CAcX,oBACD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCxFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A class which hides an element in DOM.\r\n */\r\n.ck-hidden {\r\n\t/* Override selector specificity. Otherwise, all elements with some display\r\n\tstyle defined will override this one, which is not a desired result. */\r\n\tdisplay: none !important;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-z-default: 1;\r\n\t--ck-z-panel: calc( var(--ck-z-default) + 999 );\r\n\t--ck-z-dialog: 9999;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A class that disables all transitions of the element and its children.\r\n */\r\n.ck-transitions-disabled,\r\n.ck-transitions-disabled * {\r\n\ttransition: none !important;\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-powered-by-line-height: 10px;\r\n\t--ck-powered-by-padding-vertical: 2px;\r\n\t--ck-powered-by-padding-horizontal: 4px;\r\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\r\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\r\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\r\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\r\n}\r\n\r\n.ck.ck-balloon-panel.ck-powered-by-balloon {\r\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\r\n\r\n\tbox-shadow: none;\r\n\tbackground: var(--ck-powered-by-background);\r\n\tmin-height: unset;\r\n\tz-index: calc( var(--ck-z-panel) - 1 );\r\n\r\n\t& .ck.ck-powered-by {\r\n\t\tline-height: var(--ck-powered-by-line-height);\r\n\r\n\t\t& a {\r\n\t\t\tcursor: pointer;\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\topacity: .66;\r\n\t\t\tfilter: grayscale(80%);\r\n\t\t\tline-height: var(--ck-powered-by-line-height);\r\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\r\n\t\t}\r\n\r\n\t\t& .ck-powered-by__label {\r\n\t\t\tfont-size: 7.5px;\r\n\t\t\tletter-spacing: -.2px;\r\n\t\t\tpadding-left: 2px;\r\n\t\t\ttext-transform: uppercase;\r\n\t\t\tfont-weight: bold;\r\n\t\t\tmargin-right: 4px;\r\n\t\t\tcursor: pointer;\r\n\t\t\tline-height: normal;\r\n\t\t\tcolor: var(--ck-powered-by-text-color);\r\n\r\n\t\t}\r\n\r\n\t\t& .ck-icon {\r\n\t\t\tdisplay: block;\r\n\t\t\tcursor: pointer;\r\n\t\t}\r\n\r\n\t\t&:hover {\r\n\t\t\t& a {\r\n\t\t\t\tfilter: grayscale(0%);\r\n\t\t\t\topacity: 1;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t&[class*="position_inside"] {\r\n\t\tborder-color: transparent;\r\n\t}\r\n\r\n\t&[class*="position_border"] {\r\n\t\tborder: var(--ck-focus-ring);\r\n\t\tborder-color: var(--ck-powered-by-border-color);\r\n\t}\r\n}\r\n\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\r\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\r\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\r\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\r\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\r\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\r\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\r\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\r\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\r\n\r\n\t/* -- Generic colors ------------------------------------------------------------------------ */\r\n\r\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\r\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\r\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\r\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\r\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\r\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\r\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\r\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\r\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\r\n\r\n\t/* -- Buttons ------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\r\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\r\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\r\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\r\n\r\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\r\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\r\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\r\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\r\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\r\n\r\n\r\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\r\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\r\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\r\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\r\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\r\n\r\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\r\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\r\n\r\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\r\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\r\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\r\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\r\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\r\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\r\n\r\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\r\n\r\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\r\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\r\n\r\n\t/* -- Dialog -------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-dialog-background: \t\t\t\t\t\t\t\tvar(--ck-custom-background);\r\n\t--ck-color-dialog-form-header-border: \t\t\t\t\t\tvar(--ck-custom-border);\r\n\r\n\t/* -- Input --------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\r\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\r\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\r\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\r\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\r\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\r\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\r\n\r\n\t/* -- List ---------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\r\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\r\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\r\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\r\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\r\n\r\n\t/* -- Panel --------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\r\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\r\n\r\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\r\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\r\n\r\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\r\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\r\n\r\n\t/* -- Engine -------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\r\n\r\n\t/* -- Upload -------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\r\n\r\n\t/* -- Link -------------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\r\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\r\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\r\n\r\n\t/* -- Search result highlight ---------------------------------------------------------------- */\r\n\r\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%);\r\n\r\n\t/* -- Generic colors ------------------------------------------------------------------------- */\r\n\r\n\t--ck-color-light-red:\t\t\t\t\t\t\t\t\t\thsl(0, 100%, 90%);\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t/**\r\n\t * An opacity value of disabled UI item.\r\n\t */\r\n\t--ck-disabled-opacity: .5;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t/**\r\n\t * The geometry of the of focused element's outer shadow.\r\n\t */\r\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\r\n\r\n\t/**\r\n\t * A visual style of focused element's outer shadow.\r\n\t */\r\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\r\n\r\n\t/**\r\n\t * A visual style of focused element's outer shadow (when disabled).\r\n\t */\r\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\r\n\r\n\t/**\r\n\t * A visual style of focused element's outer shadow (when has errors).\r\n\t */\r\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\r\n\r\n\t/**\r\n\t * A visual style of focused element's border or outline.\r\n\t */\r\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-font-size-base: 13px;\r\n\t--ck-line-height-base: 1.84615;\r\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\r\n\r\n\t--ck-font-size-tiny: 0.7em;\r\n\t--ck-font-size-small: 0.75em;\r\n\t--ck-font-size-normal: 1em;\r\n\t--ck-font-size-big: 1.4em;\r\n\t--ck-font-size-large: 1.8em;\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\r\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\r\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\r\n\twith buttons. */\r\n\t--ck-ui-component-min-height: 2.3em;\r\n}\r\n\r\n/**\r\n * Resets an element, ignoring its children.\r\n */\r\n.ck.ck-reset,\r\n.ck.ck-reset_all,\r\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\r\n\tbox-sizing: border-box;\r\n\twidth: auto;\r\n\theight: auto;\r\n\tposition: static;\r\n\r\n\t/* Do not include inheritable rules here. */\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tborder: 0;\r\n\tbackground: transparent;\r\n\ttext-decoration: none;\r\n\tvertical-align: middle;\r\n\ttransition: none;\r\n\r\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\r\n\tword-wrap: break-word;\r\n}\r\n\r\n/**\r\n * Resets an element AND its children.\r\n */\r\n.ck.ck-reset_all,\r\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\r\n\t/* These are rule inherited by all children elements. */\r\n\tborder-collapse: collapse;\r\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\r\n\tcolor: var(--ck-color-text);\r\n\ttext-align: left;\r\n\twhite-space: nowrap;\r\n\tcursor: auto;\r\n\tfloat: none;\r\n}\r\n\r\n.ck-reset_all {\r\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\r\n\t\ttext-align: right;\r\n\t}\r\n\r\n\t& iframe:not(.ck-reset_all-excluded *) {\r\n\t\t/* For IE */\r\n\t\tvertical-align: inherit;\r\n\t}\r\n\r\n\t& textarea:not(.ck-reset_all-excluded *) {\r\n\t\twhite-space: pre-wrap;\r\n\t}\r\n\r\n\t& textarea:not(.ck-reset_all-excluded *),\r\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\r\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\r\n\t\tcursor: text;\r\n\t}\r\n\r\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\r\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\r\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\r\n\t\tcursor: default;\r\n\t}\r\n\r\n\t& fieldset:not(.ck-reset_all-excluded *) {\r\n\t\tpadding: 10px;\r\n\t\tborder: 2px groove hsl(255, 7%, 88%);\r\n\t}\r\n\r\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\r\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\r\n\t\tpadding: 0;\r\n\t\tborder: 0\r\n\t}\r\n}\r\n\r\n/**\r\n * Default UI rules for RTL languages.\r\n */\r\n.ck[dir="rtl"],\r\n.ck[dir="rtl"] .ck {\r\n\ttext-align: right;\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Default border-radius value.\r\n */\r\n:root{\r\n\t--ck-border-radius: 2px;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t/**\r\n\t * A visual style of element's inner shadow (i.e. input).\r\n\t */\r\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\r\n\r\n\t/**\r\n\t * A visual style of element's drop shadow (i.e. panel).\r\n\t */\r\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\r\n\r\n\t/**\r\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\r\n\t */\r\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\r\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\r\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\r\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\r\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\r\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\r\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\r\n}\r\n"],sourceRoot:""}]);const a=s},7693:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@media (prefers-reduced-motion:reduce){.ck-image-upload-complete-icon{animation-duration:0ms}.ck-image-upload-complete-icon:after{animation:none;height:.45em;opacity:1;width:.3em}}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFAqCD,CAjCC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAEA,uCA7CD,+BA8CE,sBASF,CAPE,qCACC,cAAe,CAGf,YAAc,CAFd,SAAU,CACV,UAED,CACD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-image-upload-complete-icon {\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\r\n\t/*\r\n\t * Smaller images should have the icon closer to the border.\r\n\t * Match the icon position with the linked image indicator brought by the link image feature.\r\n\t */\r\n\ttop: min(var(--ck-spacing-medium), 6%);\r\n\tright: min(var(--ck-spacing-medium), 6%);\r\n\tborder-radius: 50%;\r\n\tz-index: 1;\r\n\r\n\t&::after {\r\n\t\tcontent: "";\r\n\t\tposition: absolute;\r\n\t}\r\n}\r\n','/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\r\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\r\n\r\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\r\n\t--ck-image-upload-icon-size: 20;\r\n\t--ck-image-upload-icon-width: 2px;\r\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\r\n}\r\n\r\n.ck-image-upload-complete-icon {\r\n\topacity: 0;\r\n\tbackground: var(--ck-color-image-upload-icon-background);\r\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\r\n\tanimation-fill-mode: forwards, forwards;\r\n\tanimation-duration: 500ms, 500ms;\r\n\r\n\t/* To make animation scalable. */\r\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\r\n\r\n\t/* Hide completed upload icon after 3 seconds. */\r\n\tanimation-delay: 0ms, 3000ms;\r\n\r\n\t/*\r\n\t * Use CSS math to simulate container queries.\r\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\r\n\t */\r\n\toverflow: hidden;\r\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\r\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\r\n\r\n\t/* This is check icon element made from border-width mixed with animations. */\r\n\t&::after {\r\n\t\t/* Because of border transformation we need to "hard code" left position. */\r\n\t\tleft: 25%;\r\n\r\n\t\ttop: 50%;\r\n\t\topacity: 0;\r\n\t\theight: 0;\r\n\t\twidth: 0;\r\n\r\n\t\ttransform: scaleX(-1) rotate(135deg);\r\n\t\ttransform-origin: left top;\r\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\r\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\r\n\r\n\t\tanimation-name: ck-upload-complete-icon-check;\r\n\t\tanimation-duration: 500ms;\r\n\t\tanimation-delay: 500ms;\r\n\t\tanimation-fill-mode: forwards;\r\n\r\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t@media (prefers-reduced-motion: reduce) {\r\n\t\tanimation-duration: 0ms;\r\n\r\n\t\t&::after {\r\n\t\t\tanimation: none;\r\n\t\t\topacity: 1;\r\n\t\t\twidth: 0.3em;\r\n\t\t\theight: 0.45em;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@keyframes ck-upload-complete-icon-show {\r\n\tfrom {\r\n\t\topacity: 0;\r\n\t}\r\n\r\n\tto {\r\n\t\topacity: 1;\r\n\t}\r\n}\r\n\r\n@keyframes ck-upload-complete-icon-hide {\r\n\tfrom {\r\n\t\topacity: 1;\r\n\t}\r\n\r\n\tto {\r\n\t\topacity: 0;\r\n\t}\r\n}\r\n\r\n@keyframes ck-upload-complete-icon-check {\r\n\t0% {\r\n\t\topacity: 1;\r\n\t\twidth: 0;\r\n\t\theight: 0;\r\n\t}\r\n\t33% {\r\n\t\twidth: 0.3em;\r\n\t\theight: 0;\r\n\t}\r\n\t100% {\r\n\t\topacity: 1;\r\n\t\twidth: 0.3em;\r\n\t\theight: 0.45em;\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},7719:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/* Class added to span element surrounding currently selected link. */\r\n.ck .ck-link_selected {\r\n\tbackground: var(--ck-color-link-selected-background);\r\n\r\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\r\n\t& span.image-inline {\r\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\r\n\t}\r\n}\r\n\r\n/*\r\n * Classes used by the "fake visual selection" displayed in the content when an input\r\n * in the link UI has focus (the browser does not render the native selection in this state).\r\n */\r\n.ck .ck-fake-link-selection {\r\n\tbackground: var(--ck-color-link-fake-selection);\r\n}\r\n\r\n/* A collapsed fake visual selection. */\r\n.ck .ck-fake-link-selection_collapsed {\r\n\theight: 100%;\r\n\tborder-right: 1px solid var(--ck-color-base-text);\r\n\tmargin-right: -1px;\r\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\r\n}\r\n'],sourceRoot:""}]);const a=s},7793:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-editor__editable {\r\n\t/*\r\n\t * Vertical drop target (in text).\r\n\t */\r\n\t& .ck.ck-clipboard-drop-target-position {\r\n\t\tdisplay: inline;\r\n\t\tposition: relative;\r\n\t\tpointer-events: none;\r\n\r\n\t\t& span {\r\n\t\t\tposition: absolute;\r\n\t\t\twidth: 0;\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Styles of the widget being dragged (its preview).\r\n\t */\r\n\t& .ck-widget:-webkit-drag {\r\n\t\t& > .ck-widget__selection-handle {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\r\n\t\t& > .ck-widget__type-around {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck.ck-clipboard-drop-target-line {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\r\n\r\n:root {\r\n\t--ck-clipboard-drop-target-dot-width: 12px;\r\n\t--ck-clipboard-drop-target-dot-height: 8px;\r\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\r\n}\r\n\r\n.ck.ck-editor__editable {\r\n\t/*\r\n\t * Vertical drop target (in text).\r\n\t */\r\n\t& .ck.ck-clipboard-drop-target-position {\r\n\t\t& span {\r\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\r\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\r\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\r\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\r\n\t\t\tmargin-left: -1px;\r\n\r\n\t\t\t/* The triangle above the marker */\r\n\t\t\t&::after {\r\n\t\t\t\tcontent: '';\r\n\t\t\t\twidth: 0;\r\n\t\t\t\theight: 0;\r\n\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tleft: 50%;\r\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\r\n\r\n\t\t\t\ttransform: translateX(-50%);\r\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\r\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\r\n\t\t\t\tborder-style: solid;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Styles of the widget that it a drop target.\r\n\t */\r\n\t& .ck-widget.ck-clipboard-drop-target-range {\r\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\r\n\t}\r\n\r\n\t/*\r\n\t * Styles of the widget being dragged (its preview).\r\n\t */\r\n\t& .ck-widget:-webkit-drag {\r\n\t\tzoom: 0.6;\r\n\t\toutline: none !important;\r\n\t}\r\n}\r\n\r\n.ck.ck-clipboard-drop-target-line {\r\n\theight: 0;\r\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\r\n\tbackground: var(--ck-clipboard-drop-target-color);\r\n\tmargin-top: -1px;\r\n\r\n\t&::before {\r\n\t\tcontent: '';\r\n\t\tposition: absolute;\r\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\r\n\t\twidth: 0;\r\n\t\theight: 0;\r\n\t\tborder-style: solid;\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\tleft: -1px;\r\n\r\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\r\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\tright: -1px;\r\n\r\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\r\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},7801:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-label {\r\n\tdisplay: block;\r\n}\r\n\r\n.ck.ck-voice-label {\r\n\tdisplay: none;\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-label {\r\n\tfont-weight: bold;\r\n}\r\n"],sourceRoot:""}]);const a=s},7913:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:44px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header>.ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header>.ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{--ck-font-size-base:15px;font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAmBD,CAdC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,wBAAyB,CACzB,eACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-form__header {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tflex-wrap: nowrap;\r\n\talign-items: center;\r\n\tjustify-content: space-between;\r\n\r\n\t& h2.ck-form__header__label {\r\n\t\tflex-grow: 1;\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n:root {\r\n\t--ck-form-header-height: 44px;\r\n}\r\n\r\n.ck.ck-form__header {\r\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\r\n\theight: var(--ck-form-header-height);\r\n\tline-height: var(--ck-form-header-height);\r\n\tborder-bottom: 1px solid var(--ck-color-base-border);\r\n\r\n\t& > .ck-icon {\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\tmargin-right: var(--ck-spacing-medium);\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\tmargin-left: var(--ck-spacing-medium);\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck-form__header__label {\r\n\t\t--ck-font-size-base: 15px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},8107:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-search {\r\n\t& > .ck-labeled-field-view {\r\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 50%;\r\n\t\t\ttransform: translateY(-50%);\r\n\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tleft: var(--ck-spacing-medium);\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tright: var(--ck-spacing-medium);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t& .ck-search__reset {\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 50%;\r\n\t\t\ttransform: translateY(-50%);\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck-search__results {\r\n\t\t& > .ck-search__info {\r\n\t\t\t& > span:first-child {\r\n\t\t\t\tdisplay: block;\r\n\t\t\t}\r\n\r\n\t\t\t/* Hide the filtered view when nothing was found */\r\n\t\t\t&:not(.ck-hidden) ~ * {\r\n\t\t\t\tdisplay: none;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n','/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n:root {\r\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\r\n}\r\n\r\n.ck.ck-search {\r\n\t& > .ck-labeled-field-view {\r\n\t\t& .ck-input {\r\n\t\t\twidth: 100%;\r\n\t\t}\r\n\r\n\t\t&.ck-search__query_with-icon {\r\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\r\n\r\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\r\n\t\t\t\topacity: .5;\r\n\t\t\t\tpointer-events: none;\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-input {\r\n\t\t\t\twidth: 100%;\r\n\r\n\t\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\t\t&:not(.ck-input-text_empty) {\r\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&.ck-search__query_with-reset {\r\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\r\n\r\n\t\t\t&.ck-labeled-field-view_empty {\r\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-search__reset {\r\n\t\t\t\tmin-width: auto;\r\n\t\t\t\tmin-height: auto;\r\n\r\n\t\t\t\tbackground: none;\r\n\t\t\t\topacity: .5;\r\n\t\t\t\tpadding: 0;\r\n\r\n\t\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\t\tright: var(--ck-spacing-medium);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\t\tleft: var(--ck-spacing-medium);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t&:hover {\r\n\t\t\t\t\topacity: 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-input {\r\n\t\t\t\twidth: 100%;\r\n\r\n\t\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\t\t&:not(.ck-input-text_empty) {\r\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck-search__results {\r\n\t\tmin-width: 100%;\r\n\r\n\t\t& > .ck-search__info {\r\n\t\t\twidth: 100%;\r\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\r\n\r\n\t\t\t& * {\r\n\t\t\t\twhite-space: normal;\r\n\t\t\t}\r\n\r\n\t\t\t& > span:first-child {\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t}\r\n\r\n\t\t\t& > span:last-child {\r\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n'],sourceRoot:""}]);const a=s},8137:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAWE,8QAGC,2DAA4D,CAC5D,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\r\n}\r\n\r\n.ck-widget.table {\r\n\t& td,\r\n\t& th {\r\n\t\t/**\r\n\t\t * While setting outline is fine, the border should not be modified here\r\n\t\t * because it overrides the default table cell border color which is not expected.\r\n\t\t * So do not use `@mixin ck-focus-ring;` here, or any other border styles.\r\n\t\t * See more: https://github.com/ckeditor/ckeditor5/issues/16979\r\n\t\t */\r\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\r\n\t\t&.ck-editor__nested-editable:focus {\r\n\t\t\t/* A very slight background to highlight the focused cell */\r\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\r\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\r\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},8149:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-dropdown-max-width: 75vw;\r\n}\r\n\r\n.ck.ck-dropdown {\r\n\tdisplay: inline-block;\r\n\tposition: relative;\r\n\r\n\t& .ck-dropdown__arrow {\r\n\t\tpointer-events: none;\r\n\t\tz-index: var(--ck-z-default);\r\n\t}\r\n\r\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\r\n\t& .ck-button.ck-dropdown__button {\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n\t& .ck-dropdown__panel {\r\n\t\tdisplay: none;\r\n\t\tz-index: var(--ck-z-panel);\r\n\t\tmax-width: var(--ck-dropdown-max-width);\r\n\r\n\t\tposition: absolute;\r\n\r\n\t\t&.ck-dropdown__panel-visible {\r\n\t\t\tdisplay: inline-block;\r\n\t\t}\r\n\r\n\t\t&.ck-dropdown__panel_ne,\r\n\t\t&.ck-dropdown__panel_nw,\r\n\t\t&.ck-dropdown__panel_n,\r\n\t\t&.ck-dropdown__panel_nmw,\r\n\t\t&.ck-dropdown__panel_nme {\r\n\t\t\tbottom: 100%;\r\n\t\t}\r\n\r\n\t\t&.ck-dropdown__panel_se,\r\n\t\t&.ck-dropdown__panel_sw,\r\n\t\t&.ck-dropdown__panel_smw,\r\n\t\t&.ck-dropdown__panel_sme,\r\n\t\t&.ck-dropdown__panel_s {\r\n\t\t\t/*\r\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\r\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\r\n\t\t\t */\r\n\t\t\ttop: 100%;\r\n\t\t\tbottom: auto;\r\n\t\t}\r\n\r\n\t\t&.ck-dropdown__panel_ne,\r\n\t\t&.ck-dropdown__panel_se {\r\n\t\t\tleft: 0px;\r\n\t\t}\r\n\r\n\t\t&.ck-dropdown__panel_nw,\r\n\t\t&.ck-dropdown__panel_sw {\r\n\t\t\tright: 0px;\r\n\t\t}\r\n\r\n\t\t&.ck-dropdown__panel_s,\r\n\t\t&.ck-dropdown__panel_n {\r\n\t\t\t/* Positioning panels relative to the center of the button */\r\n\t\t\tleft: 50%;\r\n\t\t\ttransform: translateX(-50%);\r\n\t\t}\r\n\r\n\t\t&.ck-dropdown__panel_nmw,\r\n\t\t&.ck-dropdown__panel_smw {\r\n\t\t\t/* Positioning panels relative to the middle-west of the button */\r\n\t\t\tleft: 75%;\r\n\t\t\ttransform: translateX(-75%);\r\n\t\t}\r\n\r\n\t\t&.ck-dropdown__panel_nme,\r\n\t\t&.ck-dropdown__panel_sme {\r\n\t\t\t/* Positioning panels relative to the middle-east of the button */\r\n\t\t\tleft: 25%;\r\n\t\t\ttransform: translateX(-25%);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/*\r\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\r\n * See https://github.com/ckeditor/ckeditor5/issues/7874\r\n */\r\n.ck.ck-toolbar .ck-dropdown__panel {\r\n\tz-index: calc( var(--ck-z-panel) + 1 );\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n@import "../../../mixins/_disabled.css";\r\n@import "../../../mixins/_shadow.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n:root {\r\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\r\n}\r\n\r\n.ck.ck-dropdown {\r\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\r\n\tfont-size: inherit;\r\n\r\n\t& .ck-dropdown__arrow {\r\n\t\twidth: var(--ck-dropdown-arrow-size);\r\n\t}\r\n\r\n\t@mixin ck-dir ltr {\r\n\t\t& .ck-dropdown__arrow {\r\n\t\t\tright: var(--ck-spacing-standard);\r\n\r\n\t\t\t/* A space to accommodate the triangle. */\r\n\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-dir rtl {\r\n\t\t& .ck-dropdown__arrow {\r\n\t\t\tleft: var(--ck-spacing-standard);\r\n\r\n\t\t\t/* A space to accommodate the triangle. */\r\n\t\t\tmargin-right: var(--ck-spacing-small);\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-disabled .ck-dropdown__arrow {\r\n\t\t@mixin ck-disabled;\r\n\t}\r\n\r\n\t& .ck-button.ck-dropdown__button {\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\t&:not(.ck-button_with-text) {\r\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\r\n\t\t\t\tpadding-left: var(--ck-spacing-small);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\t&:not(.ck-button_with-text) {\r\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\r\n\t\t\t\tpadding-right: var(--ck-spacing-small);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* #23 */\r\n\t\t& .ck-button__label {\r\n\t\t\twidth: 7em;\r\n\t\t\toverflow: hidden;\r\n\t\t\ttext-overflow: ellipsis;\r\n\t\t}\r\n\r\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\r\n\t\t&.ck-disabled .ck-button__label {\r\n\t\t\t@mixin ck-disabled;\r\n\t\t}\r\n\r\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\r\n\t\t&.ck-on {\r\n\t\t\tborder-bottom-left-radius: 0;\r\n\t\t\tborder-bottom-right-radius: 0;\r\n\t\t}\r\n\r\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\r\n\t\t\twidth: auto;\r\n\t\t}\r\n\r\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\r\n\t\t&.ck-off:active,\r\n\t\t&.ck-on:active {\r\n\t\t\tbox-shadow: none;\r\n\r\n\t\t\t&:focus {\r\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck.ck-dropdown__panel {\r\n\t@mixin ck-rounded-corners;\r\n\t@mixin ck-drop-shadow;\r\n\r\n\tbackground: var(--ck-color-dropdown-panel-background);\r\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\r\n\tbottom: 0;\r\n\r\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\r\n\tmin-width: 100%;\r\n\r\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\r\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\r\n\t&.ck-dropdown__panel_se {\r\n\t\tborder-top-left-radius: 0;\r\n\t}\r\n\r\n\t&.ck-dropdown__panel_sw {\r\n\t\tborder-top-right-radius: 0;\r\n\t}\r\n\r\n\t&.ck-dropdown__panel_ne {\r\n\t\tborder-bottom-left-radius: 0;\r\n\t}\r\n\r\n\t&.ck-dropdown__panel_nw {\r\n\t\tborder-bottom-right-radius: 0;\r\n\t}\r\n\r\n\t&:focus {\r\n\t\toutline: none;\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A class which indicates that an element holding it is disabled.\r\n */\r\n@define-mixin ck-disabled {\r\n\topacity: var(--ck-disabled-opacity);\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},8249:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-math-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}@media screen and (max-width:600px){.ck.ck-math-form{flex-wrap:wrap}.ck.ck-math-form .ck-math-view,.ck.ck-math-form .ck-math-view .ck-label,.ck.ck-math-form .ck-math-view .ck-labeled-view{flex-basis:100%}.ck.ck-math-form .ck-button{flex-basis:50%}}.ck-math-tex.ck-placeholder:before{display:none!important}.ck.ck-toolbar-container{z-index:calc(var(--ck-z-panel) + 2)}.ck.ck-math-form{padding:var(--ck-spacing-standard)}.ck.ck-math-form:focus{outline:none}[dir=ltr] .ck.ck-math-form>:not(:first-child),[dir=rtl] .ck.ck-math-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-math-form{padding:0}.ck.ck-math-form .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-math-form .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-math-form .ck-label,.ck.ck-math-form .ck-math-view .ck-button,.ck.ck-math-form .ck-math-view .ck.ck-math-preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-math-form>.ck-button{border:0;border-radius:0;border-top:1px solid var(--ck-color-base-border);margin-top:var(--ck-spacing-standard);padding:var(--ck-spacing-standard)}[dir=ltr] .ck.ck-math-form>.ck-button{margin-left:0}[dir=ltr] .ck.ck-math-form>.ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-math-form>.ck-button{margin-left:0}[dir=rtl] .ck.ck-math-form>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}","",{version:3,sources:["webpack://./../ckeditor5-math/theme/mathform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-math/mathform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAAA,iBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAsBD,CAnBC,oCAPD,iBAQE,cAkBF,CATG,wHACC,eACD,CAGD,4BACC,cACD,CACD,CAGD,mCACC,sBACD,CAEA,yBACC,mCACD,CC/BA,iBACI,kCAsEJ,CApEI,uBAEF,YACD,CASC,2FACC,sCACD,CCdD,oCDHD,iBAqBE,SAkDF,CAhDE,mCACC,8DAMD,CAJC,kDACC,WAAY,CACZ,UACD,CAYA,wHACC,8DACD,CAGD,4BAKC,QAAS,CADT,eAAgB,CAEhB,gDAAiD,CAJjD,qCAAsC,CADtC,kCAsBD,CAvBA,sCASE,aAcF,CAZE,oDACC,kDACD,CAbF,sCAiBE,aAMF,CAJE,mDACC,kDACD,CC9DH",sourcesContent:[".ck.ck-math-form {\r\n\tdisplay: flex;\r\n\talign-items: flex-start;\r\n\tflex-direction: row;\r\n\tflex-wrap: nowrap;\r\n\tpadding: var(--ck-spacing-standard);\r\n\r\n\t@media screen and (max-width: 600px) {\r\n\t\tflex-wrap: wrap;\r\n\r\n\t\t& .ck-math-view {\r\n\t\t\tflex-basis: 100%;\r\n\r\n\t\t\t& .ck-labeled-view {\r\n\t\t\t\tflex-basis: 100%;\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-label {\r\n\t\t\t\tflex-basis: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t& .ck-button {\r\n\t\t\tflex-basis: 50%;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.ck-math-tex.ck-placeholder::before {\r\n\tdisplay: none !important;\r\n}\r\n\r\n.ck.ck-toolbar-container {\r\n\tz-index: calc(var(--ck-z-panel) + 2);\r\n}\r\n",'@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-math-form {\r\n padding: var(--ck-spacing-standard);\r\n\r\n &:focus {\r\n\t\t/* https://github.com/ckeditor/ckeditor5-link/issues/90 */\r\n\t\toutline: none;\r\n\t}\r\n\r\n @mixin ck-dir ltr {\r\n\t\t& > :not(:first-child) {\r\n\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-dir rtl {\r\n\t\t& > :not(:last-child) {\r\n\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-media-phone {\r\n\t\tpadding: 0;\r\n\r\n\t\t& .ck-labeled-input {\r\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\r\n\r\n\t\t\t& .ck-input-text {\r\n\t\t\t\tmin-width: 0;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\r\n & .ck-label {\r\n margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\r\n }\r\n\r\n\t\t& .ck-math-view {\r\n\t\t\t& .ck-button {\r\n\t\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\r\n\t\t\t}\r\n\r\n\t\t\t& .ck.ck-math-preview {\r\n\t\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t& > .ck-button {\r\n\t\t\tpadding: var(--ck-spacing-standard);\r\n\t\t\tmargin-top: var(--ck-spacing-standard);\r\n\r\n\t\t\tborder-radius: 0;\r\n\t\t\tborder: 0;\r\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\r\n\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tmargin-left: 0;\r\n\r\n\t\t\t\t&:first-of-type {\r\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tmargin-left: 0;\r\n\r\n\t\t\t\t&:last-of-type {\r\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-phone {\r\n\t@media screen and (max-width: 600px) {\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},8264:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\r\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\r\n\tdisplay: none;\r\n}\r\n"],sourceRoot:""}]);const a=s},8298:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-panel)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-sticky-panel {\r\n\t& .ck-sticky-panel__content_sticky {\r\n\t\tz-index: var(--ck-z-panel); /* #315 */\r\n\t\tposition: fixed;\r\n\t\ttop: 0;\r\n\t}\r\n\r\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\r\n\t\ttop: auto;\r\n\t\tposition: absolute;\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_shadow.css";\r\n\r\n.ck.ck-sticky-panel {\r\n\t& .ck-sticky-panel__content_sticky {\r\n\t\t@mixin ck-drop-shadow;\r\n\r\n\t\tborder-width: 0 1px 1px;\r\n\t\tborder-top-left-radius: 0;\r\n\t\tborder-top-right-radius: 0;\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n"],sourceRoot:""}]);const a=s},8423:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\r\n}\r\n\r\n.ck.ck-editor__editable .table table {\r\n\t& td.ck-editor__editable_selected,\r\n\t& th.ck-editor__editable_selected {\r\n\t\tposition: relative;\r\n\t\tcaret-color: transparent;\r\n\t\toutline: unset;\r\n\t\tbox-shadow: unset;\r\n\r\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\r\n\t\t&:after {\r\n\t\t\tcontent: '';\r\n\t\t\tpointer-events: none;\r\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 0;\r\n\t\t\tleft: 0;\r\n\t\t\tright: 0;\r\n\t\t\tbottom: 0;\r\n\t\t}\r\n\r\n\t\t& ::selection,\r\n\t\t&:focus {\r\n\t\t\tbackground-color: transparent;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\r\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\r\n\t\t */\r\n\t\t& .ck-widget {\r\n\t\t\toutline: unset;\r\n\r\n\t\t\t& > .ck-widget__selection-handle {\r\n\t\t\t\tdisplay: none;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},8508:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button svg{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button:hover,.ck .ck-widget .ck-widget__type-around__button:hover svg line,.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:none}}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAwED,CAhEC,uCATD,+CAUE,eA+DF,CA9DC,CAEA,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAwBD,CAlBC,uCAPD,mDAQE,eAiBF,CAhBC,CAEA,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DA4BD,CAtBE,kEACC,oDACD,CAEA,8DACC,wDACD,CAGD,uCAQE,qLACC,cACD,CAEF,CASD,uKA7FD,SAAU,CACV,mBA8FC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAxKD,SAAU,CACV,mBAyKC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAxNF,SAAU,CACV,mBAyNE,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck .ck-widget {\r\n\t/*\r\n\t * Styles of the type around buttons\r\n\t */\r\n\t& .ck-widget__type-around__button {\r\n\t\tdisplay: block;\r\n\t\tposition: absolute;\r\n\t\toverflow: hidden;\r\n\t\tz-index: var(--ck-z-default);\r\n\r\n\t\t& svg {\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 50%;\r\n\t\t\tleft: 50%;\r\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\r\n\t\t}\r\n\r\n\t\t&.ck-widget__type-around__button_before {\r\n\t\t\t/* Place it in the middle of the outline */\r\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\r\n\t\t\tleft: min(10%, 30px);\r\n\r\n\t\t\ttransform: translateY(-50%);\r\n\t\t}\r\n\r\n\t\t&.ck-widget__type-around__button_after {\r\n\t\t\t/* Place it in the middle of the outline */\r\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\r\n\t\t\tright: min(10%, 30px);\r\n\r\n\t\t\ttransform: translateY(50%);\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Styles for the buttons when:\r\n\t * - the widget is selected,\r\n\t * - or the button is being hovered (regardless of the widget state).\r\n\t */\r\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\r\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\r\n\t\t&::after {\r\n\t\t\tcontent: "";\r\n\t\t\tdisplay: block;\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 1px;\r\n\t\t\tleft: 1px;\r\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\r\n\t */\r\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\r\n\t\tdisplay: none;\r\n\t\tposition: absolute;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t}\r\n\r\n\t/*\r\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\r\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\r\n\t * the full width of the widget.\r\n\t */\r\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\r\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\r\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\r\n\t}\r\n\r\n\t/*\r\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\r\n\t */\r\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\r\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\r\n\t\tdisplay: block;\r\n\t}\r\n\r\n\t/*\r\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\r\n\t */\r\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\r\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\r\n\t\tdisplay: block;\r\n\t}\r\n}\r\n\r\n/*\r\n * Integration with the read-only mode of the editor.\r\n */\r\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\r\n\tdisplay: none;\r\n}\r\n\r\n/*\r\n * Integration with the restricted editing mode (feature) of the editor.\r\n */\r\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\r\n\tdisplay: none;\r\n}\r\n\r\n/*\r\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\r\n */\r\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\r\n\tdisplay: none;\r\n}\r\n','/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-widget-type-around-button-size: 20px;\r\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\r\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\r\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\r\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\r\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\r\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\r\n}\r\n\r\n@define-mixin ck-widget-type-around-button-visible {\r\n\topacity: 1;\r\n\tpointer-events: auto;\r\n}\r\n\r\n@define-mixin ck-widget-type-around-button-hidden {\r\n\topacity: 0;\r\n\tpointer-events: none;\r\n}\r\n\r\n.ck .ck-widget {\r\n\t/*\r\n\t * Styles of the type around buttons\r\n\t */\r\n\t& .ck-widget__type-around__button {\r\n\t\twidth: var(--ck-widget-type-around-button-size);\r\n\t\theight: var(--ck-widget-type-around-button-size);\r\n\t\tbackground: var(--ck-color-widget-type-around-button);\r\n\t\tborder-radius: 100px;\r\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\r\n\r\n\t\t@mixin ck-widget-type-around-button-hidden;\r\n\r\n\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\ttransition: none;\r\n\t\t}\r\n\r\n\t\t& svg {\r\n\t\t\twidth: 10px;\r\n\t\t\theight: 8px;\r\n\t\t\ttransform: translate(-50%,-50%);\r\n\t\t\ttransition: transform .5s ease;\r\n\t\t\tmargin-top: 1px;\r\n\r\n\t\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\t\ttransition: none;\r\n\t\t\t}\r\n\r\n\t\t\t& * {\r\n\t\t\t\tstroke-dasharray: 10;\r\n\t\t\t\tstroke-dashoffset: 0;\r\n\r\n\t\t\t\tfill: none;\r\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\r\n\t\t\t\tstroke-width: 1.5px;\r\n\t\t\t\tstroke-linecap: round;\r\n\t\t\t\tstroke-linejoin: round;\r\n\t\t\t}\r\n\r\n\t\t\t& line {\r\n\t\t\t\tstroke-dasharray: 7;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&:hover {\r\n\t\t\t/*\r\n\t\t\t * Display the "sonar" around the button when hovered.\r\n\t\t\t */\r\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\r\n\r\n\t\t\t/*\r\n\t\t\t * Animate active button\'s icon.\r\n\t\t\t */\r\n\t\t\t& svg {\r\n\t\t\t\t& polyline {\r\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t& line {\r\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\t\tanimation: none;\r\n\r\n\t\t\t\t& svg {\r\n\t\t\t\t\t& polyline {\r\n\t\t\t\t\t\tanimation: none;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t& line {\r\n\t\t\t\t\t\tanimation: none;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Show type around buttons when the widget gets selected or being hovered.\r\n\t */\r\n\t&.ck-widget_selected,\r\n\t&:hover {\r\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\r\n\t\t\t@mixin ck-widget-type-around-button-visible;\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\r\n\t * and still can be hovered).\r\n\t */\r\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\r\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\r\n\t}\r\n\r\n\t/*\r\n\t * Styles for the buttons when:\r\n\t * - the widget is selected,\r\n\t * - or the button is being hovered (regardless of the widget state).\r\n\t */\r\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\r\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\r\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\r\n\r\n\t\t&::after {\r\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\r\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\r\n\t\t\tborder-radius: 100px;\r\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\r\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\r\n\t */\r\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\r\n\t\tmargin-left: 20px;\r\n\t}\r\n\r\n\t/*\r\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\r\n\t */\r\n\t& .ck-widget__type-around__fake-caret {\r\n\t\tpointer-events: none;\r\n\t\theight: 1px;\r\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\r\n\r\n\t\t/*\r\n\t\t * The semi-transparent-outline+background combo improves the contrast\r\n\t\t * when the background underneath the fake caret is dark.\r\n\t\t */\r\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\r\n\t\tbackground: var(--ck-color-base-text);\r\n\t}\r\n\r\n\t/*\r\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\r\n\t * Despite the widget being physically selected in the model, its outline should disappear.\r\n\t */\r\n\t&.ck-widget_selected {\r\n\t\t&.ck-widget_type-around_show-fake-caret_before,\r\n\t\t&.ck-widget_type-around_show-fake-caret_after {\r\n\t\t\toutline-color: transparent;\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-widget_type-around_show-fake-caret_before,\r\n\t&.ck-widget_type-around_show-fake-caret_after {\r\n\t\t/*\r\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\r\n\t\t * (despite being physically selected), so the outline color should be for the\r\n\t\t * unselected widget.\r\n\t\t */\r\n\t\t&.ck-widget_selected:hover {\r\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\r\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\r\n\t\t */\r\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\r\n\t\t\t@mixin ck-widget-type-around-button-hidden;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\r\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\r\n\t\t */\r\n\t\t&.ck-widget_with-selection-handle {\r\n\t\t\t&.ck-widget_selected,\r\n\t\t\t&.ck-widget_selected:hover {\r\n\t\t\t\t& > .ck-widget__selection-handle {\r\n\t\t\t\t\topacity: 0\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\r\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\r\n\t\t * hovers the widget, though.\r\n\t\t */\r\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\r\n\t\t\topacity: 0\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/*\r\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\r\n * The selection handler is aligned to the right side of the widget so there is no need to create\r\n * additional space for it next to the "before" button.\r\n */\r\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\r\n\tmargin-left: 0;\r\n\tmargin-right: 20px;\r\n}\r\n\r\n/*\r\n * Hide type around buttons when the widget is selected as a child of a selected\r\n * nested editable (e.g. mulit-cell table selection).\r\n *\r\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\r\n */\r\n.ck-editor__nested-editable.ck-editor__editable_selected {\r\n\t& .ck-widget {\r\n\t\t&.ck-widget_selected,\r\n\t\t&:hover {\r\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\r\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/*\r\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\r\n */\r\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\r\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\r\n\r\n\t& svg * {\r\n\t\tstroke: hsl(0,0%,60%);\r\n\t}\r\n}\r\n\r\n@keyframes ck-widget-type-around-arrow-dash {\r\n\t0% {\r\n\t\tstroke-dashoffset: 10;\r\n\t}\r\n\t20%, 100% {\r\n\t\tstroke-dashoffset: 0;\r\n\t}\r\n}\r\n\r\n@keyframes ck-widget-type-around-arrow-tip-dash {\r\n\t0%, 20% {\r\n\t\tstroke-dashoffset: 7;\r\n\t}\r\n\t40%, 100% {\r\n\t\tstroke-dashoffset: 0;\r\n\t}\r\n}\r\n\r\n@keyframes ck-widget-type-around-button-sonar {\r\n\t0% {\r\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\r\n\t}\r\n\t50% {\r\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\r\n\t}\r\n\t100% {\r\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\r\n\t}\r\n}\r\n\r\n@keyframes ck-widget-type-around-fake-caret-pulse {\r\n\t0% {\r\n\t\topacity: 1;\r\n\t}\r\n\t49% {\r\n\t\topacity: 1;\r\n\t}\r\n\t50% {\r\n\t\topacity: 0;\r\n\t}\r\n\t99% {\r\n\t\topacity: 0;\r\n\t}\r\n\t100% {\r\n\t\topacity: 1;\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},8527:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-accessibility-help-dialog-max-width:600px;--ck-accessibility-help-dialog-max-height:400px;--ck-accessibility-help-dialog-border-color:#ccced1;--ck-accessibility-help-dialog-code-background-color:#ededed;--ck-accessibility-help-dialog-kbd-shadow-color:#9c9c9c}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{border:1px solid transparent;max-height:var(--ck-accessibility-help-dialog-max-height);max-width:var(--ck-accessibility-help-dialog-max-width);overflow:auto;padding:var(--ck-spacing-large);user-select:text}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content *{white-space:normal}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content .ck-label{display:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3{font-size:1.2em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4{font-size:1em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content p,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content table{margin:1em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl{border-bottom:none;border-top:1px solid var(--ck-accessibility-help-dialog-border-color);display:grid;grid-template-columns:2fr 1fr}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{border-bottom:1px solid var(--ck-accessibility-help-dialog-border-color);padding:.4em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{grid-column-start:1}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd{grid-column-start:2;text-align:right}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{background:var(--ck-accessibility-help-dialog-code-background-color);border-radius:2px;display:inline-block;font-size:.9em;line-height:1;padding:.4em;text-align:center;vertical-align:middle}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code{font-family:monospace}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{box-shadow:0 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);margin:0 1px;min-width:1.8em}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd+kbd{margin-left:2px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/accessibilityhelp.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAQA,MACC,8CAA+C,CAC/C,+CAAgD,CAChD,mDAA8D,CAC9D,4DAAyE,CACzE,uDACD,CAEA,wEAOC,4BAA6B,CAJ7B,yDAA0D,CAD1D,uDAAwD,CAExD,aAAc,CAHd,+BAAgC,CAIhC,gBAgFD,CA5EC,8ECdA,2BAA2B,CCF3B,2CAA8B,CDC9B,YDkBA,CAEA,0EACC,kBACD,CAGA,kFACC,YACD,CAEA,2EAEC,eAAgB,CADhB,eAED,CAEA,2EAEC,aAAc,CADd,eAED,CAEA,8SAIC,YACD,CAEA,2EAIC,kBAAmB,CADnB,qEAAsE,CAFtE,YAAa,CACb,6BAiBD,CAbC,4JACC,wEAAyE,CACzE,cACD,CAEA,8EACC,mBACD,CAEA,8EACC,mBAAoB,CACpB,gBACD,CAGD,yJAEC,oEAAqE,CAIrE,iBAAkB,CALlB,oBAAqB,CAOrB,cAAe,CAHf,aAAc,CAFd,YAAa,CAIb,iBAAkB,CAHlB,qBAKD,CAEA,6EACC,qBACD,CAEA,4EAEC,yEAA4E,CAC5E,YAAa,CAFb,eAOD,CAHC,gFACC,eACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_focus.css";\r\n@import "../../../mixins/_shadow.css";\r\n\r\n:root {\r\n\t--ck-accessibility-help-dialog-max-width: 600px;\r\n\t--ck-accessibility-help-dialog-max-height: 400px;\r\n\t--ck-accessibility-help-dialog-border-color: hsl(220, 6%, 81%);\r\n\t--ck-accessibility-help-dialog-code-background-color: hsl(0deg 0% 92.94%);\r\n\t--ck-accessibility-help-dialog-kbd-shadow-color: hsl(0deg 0% 61%);\r\n}\r\n\r\n.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content {\r\n\tpadding: var(--ck-spacing-large);\r\n\tmax-width: var(--ck-accessibility-help-dialog-max-width);\r\n\tmax-height: var(--ck-accessibility-help-dialog-max-height);\r\n\toverflow: auto;\r\n\tuser-select: text;\r\n\r\n\tborder: 1px solid transparent;\r\n\r\n\t&:focus {\r\n\t\t@mixin ck-focus-ring;\r\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\r\n\t}\r\n\r\n\t* {\r\n\t\twhite-space: normal;\r\n\t}\r\n\r\n\t/* Hide the main label of the content container. */\r\n\t& .ck-label {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t& h3 {\r\n\t\tfont-weight: bold;\r\n\t\tfont-size: 1.2em;\r\n\t}\r\n\r\n\t& h4 {\r\n\t\tfont-weight: bold;\r\n\t\tfont-size: 1em;\r\n\t}\r\n\r\n\t& p,\r\n\t& h3,\r\n\t& h4,\r\n\t& table {\r\n\t\tmargin: 1em 0;\r\n\t}\r\n\r\n\t& dl {\r\n\t\tdisplay: grid;\r\n\t\tgrid-template-columns: 2fr 1fr;\r\n\t\tborder-top: 1px solid var(--ck-accessibility-help-dialog-border-color);\r\n\t\tborder-bottom: none;\r\n\r\n\t\t& dt, & dd {\r\n\t\t\tborder-bottom: 1px solid var(--ck-accessibility-help-dialog-border-color);\r\n\t\t\tpadding: .4em 0;\r\n\t\t}\r\n\r\n\t\t& dt {\r\n\t\t\tgrid-column-start: 1;\r\n\t\t}\r\n\r\n\t\t& dd {\r\n\t\t\tgrid-column-start: 2;\r\n\t\t\ttext-align: right;\r\n\t\t}\r\n\t}\r\n\r\n\t& kbd, & code {\r\n\t\tdisplay: inline-block;\r\n\t\tbackground: var(--ck-accessibility-help-dialog-code-background-color);\r\n\t\tpadding: .4em;\r\n\t\tvertical-align: middle;\r\n\t\tline-height: 1;\r\n\t\tborder-radius: 2px;\r\n\t\ttext-align: center;\r\n\t\tfont-size: .9em;\r\n\t}\r\n\r\n\t& code {\r\n\t\tfont-family: monospace;\r\n\t}\r\n\r\n\t& kbd {\r\n\t\tmin-width: 1.8em;\r\n\t\tbox-shadow: 0px 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);\r\n\t\tmargin: 0 1px;\r\n\r\n\t\t& + kbd {\r\n\t\t\tmargin-left: 2px;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A visual style of focused element's border.\r\n */\r\n@define-mixin ck-focus-ring {\r\n\t/* Disable native outline. */\r\n\toutline: none;\r\n\tborder: var(--ck-focus-ring)\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n"],sourceRoot:""}]);const a=s},8708:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck-content blockquote {\r\n\t/* See #12 */\r\n\toverflow: hidden;\r\n\r\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\r\n\tpadding-right: 1.5em;\r\n\tpadding-left: 1.5em;\r\n\r\n\tmargin-left: 0;\r\n\tmargin-right: 0;\r\n\tfont-style: italic;\r\n\tborder-left: solid 5px hsl(0, 0%, 80%);\r\n}\r\n\r\n.ck-content[dir="rtl"] blockquote {\r\n\tborder-left: 0;\r\n\tborder-right: solid 5px hsl(0, 0%, 80%);\r\n}\r\n'],sourceRoot:""}]);const a=s},8737:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-style-panel-columns:3}.ck.ck-style-panel .ck-style-grid{display:grid;grid-template-columns:repeat(var(--ck-style-panel-columns),auto);justify-content:start}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{display:flex;flex-direction:column;justify-content:space-between}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{align-content:center;align-items:center;display:flex;flex-basis:100%;flex-grow:1;justify-content:flex-start}:root{--ck-style-panel-button-width:120px;--ck-style-panel-button-height:80px;--ck-style-panel-button-label-background:#f0f0f0;--ck-style-panel-button-hover-label-background:#ebebeb;--ck-style-panel-button-hover-border-color:#b3b3b3}.ck.ck-style-panel .ck-style-grid{column-gap:var(--ck-spacing-large);row-gap:var(--ck-spacing-large)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{--ck-color-button-default-hover-background:var(--ck-color-base-background);--ck-color-button-default-active-background:var(--ck-color-base-background);height:var(--ck-style-panel-button-height);padding:0;width:var(--ck-style-panel-button-width)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-button__label{flex-shrink:0;height:22px;line-height:22px;overflow:hidden;padding:0 var(--ck-spacing-medium);text-overflow:ellipsis;width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);opacity:.9;overflow:hidden;padding:var(--ck-spacing-medium);width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled{--ck-color-button-default-disabled-background:var(--ck-color-base-foreground)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled:not(:focus){border-color:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled .ck-style-grid__button__preview{border-color:var(--ck-color-base-foreground);filter:saturate(.3);opacity:.4}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on{border-color:var(--ck-color-base-active)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on .ck-button__label{box-shadow:0 -1px 0 var(--ck-color-base-active);z-index:1}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on:hover{border-color:var(--ck-color-base-active-focus)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on) .ck-button__label{background:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on):hover .ck-button__label{background:var(--ck-style-panel-button-hover-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on){border-color:var(--ck-style-panel-button-hover-border-color)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on) .ck-style-grid__button__preview{opacity:1}","",{version:3,sources:["webpack://./../ckeditor5-style/theme/stylegrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-style/stylegrid.css"],names:[],mappings:"AAKA,MACC,0BACD,CAEA,kCACC,YAAa,CACb,gEAAiE,CACjE,qBAgBD,CAdC,yDACC,YAAa,CAEb,qBAAsB,CADtB,6BAWD,CARC,yFAEC,oBAAqB,CAErB,kBAAmB,CAHnB,YAAa,CAKb,eAAgB,CADhB,WAAY,CAFZ,0BAID,CCrBF,MACC,mCAAoC,CACpC,mCAAoC,CACpC,gDAA2D,CAC3D,sDAAiE,CACjE,kDACD,CAEA,kCAEC,kCAAmC,CADnC,+BAmFD,CAhFC,yDACC,0EAA2E,CAC3E,2EAA4E,CAI5E,0CAA2C,CAF3C,SAAU,CACV,wCA0ED,CAtEC,qEACC,4CACD,CAEA,2EAOC,aAAc,CANd,WAAY,CACZ,gBAAiB,CAGjB,eAAgB,CADhB,kCAAmC,CAEnC,sBAAuB,CAHvB,UAKD,CAEA,yFAMC,0CAA2C,CAC3C,gDAAiD,CAJjD,UAAW,CADX,eAAgB,CAGhB,gCAAiC,CAJjC,UAOD,CAEA,qEACC,6EAaD,CAVC,iFACC,0DACD,CAEA,qGAGC,4CAA6C,CAC7C,mBAAoB,CAHpB,UAID,CAGD,+DACC,wCAUD,CARC,iFACC,+CAAgD,CAChD,SACD,CAEA,qEACC,8CACD,CAIA,uFACC,wDACD,CAEA,6FACC,8DACD,CAGD,6FACC,4DAKD,CAHC,6HACC,SACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-style-panel-columns: 3;\r\n}\r\n\r\n.ck.ck-style-panel .ck-style-grid {\r\n\tdisplay: grid;\r\n\tgrid-template-columns: repeat(var(--ck-style-panel-columns),auto);\r\n\tjustify-content: start;\r\n\r\n\t& .ck-style-grid__button {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tflex-direction: column;\r\n\r\n\t\t& .ck-style-grid__button__preview {\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-content: center;\r\n\t\t\tjustify-content: flex-start;\r\n\t\t\talign-items: center;\r\n\t\t\tflex-grow: 1;\r\n\t\t\tflex-basis: 100%;\r\n\t\t}\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-style-panel-button-width: 120px;\r\n\t--ck-style-panel-button-height: 80px;\r\n\t--ck-style-panel-button-label-background: hsl(0, 0%, 94.1%);\r\n\t--ck-style-panel-button-hover-label-background: hsl(0, 0%, 92.1%);\r\n\t--ck-style-panel-button-hover-border-color: hsl(0, 0%, 70%);\r\n}\r\n\r\n.ck.ck-style-panel .ck-style-grid {\r\n\trow-gap: var(--ck-spacing-large);\r\n\tcolumn-gap: var(--ck-spacing-large);\r\n\r\n\t& .ck-style-grid__button {\r\n\t\t--ck-color-button-default-hover-background: var(--ck-color-base-background);\r\n\t\t--ck-color-button-default-active-background: var(--ck-color-base-background);\r\n\r\n\t\tpadding: 0;\r\n\t\twidth: var(--ck-style-panel-button-width);\r\n\t\theight: var(--ck-style-panel-button-height);\r\n\r\n\t\t/* Let default .ck-button :focus styles apply */\r\n\t\t&:not(:focus) {\r\n\t\t\tborder: 1px solid var(--ck-color-base-border);\r\n\t\t}\r\n\r\n\t\t& .ck-button__label {\r\n\t\t\theight: 22px;\r\n\t\t\tline-height: 22px;\r\n\t\t\twidth: 100%;\r\n\t\t\tpadding: 0 var(--ck-spacing-medium);\r\n\t\t\toverflow: hidden;\r\n\t\t\ttext-overflow: ellipsis;\r\n\t\t\tflex-shrink: 0;\r\n\t\t}\r\n\r\n\t\t& .ck-style-grid__button__preview {\r\n\t\t\twidth: 100%;\r\n\t\t\toverflow: hidden;\r\n\t\t\topacity: .9;\r\n\r\n\t\t\tpadding: var(--ck-spacing-medium);\r\n\t\t\tbackground: var(--ck-color-base-background);\r\n\t\t\tborder: 2px solid var(--ck-color-base-background);\r\n\t\t}\r\n\r\n\t\t&.ck-disabled {\r\n\t\t\t--ck-color-button-default-disabled-background: var(--ck-color-base-foreground);\r\n\r\n\t\t\t/* Let default .ck-button :focus styles apply */\r\n\t\t\t&:not(:focus) {\r\n\t\t\t\tborder-color: var(--ck-style-panel-button-label-background);\r\n\t\t\t}\r\n\r\n\t\t\t& .ck-style-grid__button__preview {\r\n\t\t\t\topacity: .4;\r\n\r\n\t\t\t\tborder-color: var(--ck-color-base-foreground);\r\n\t\t\t\tfilter: saturate(.3);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&.ck-on {\r\n\t\t\tborder-color: var(--ck-color-base-active);\r\n\r\n\t\t\t& .ck-button__label {\r\n\t\t\t\tbox-shadow: 0 -1px 0 var(--ck-color-base-active);\r\n\t\t\t\tz-index: 1; /* Stay on top of the preview with the shadow. */\r\n\t\t\t}\r\n\r\n\t\t\t&:hover {\r\n\t\t\t\tborder-color: var(--ck-color-base-active-focus);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&:not(.ck-on) {\r\n\t\t\t& .ck-button__label {\r\n\t\t\t\tbackground: var(--ck-style-panel-button-label-background);\r\n\t\t\t}\r\n\r\n\t\t\t&:hover .ck-button__label {\r\n\t\t\t\tbackground: var(--ck-style-panel-button-hover-label-background);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&:hover:not(.ck-disabled):not(.ck-on) {\r\n\t\t\tborder-color: var(--ck-style-panel-button-hover-border-color);\r\n\r\n\t\t\t& .ck-style-grid__button__preview {\r\n\t\t\t\topacity: 1;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},8762:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n.ck.ck-link-actions {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tflex-wrap: nowrap;\r\n\r\n\t& .ck-link-actions__preview {\r\n\t\tdisplay: inline-block;\r\n\r\n\t\t& .ck-button__label {\r\n\t\t\toverflow: hidden;\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-media-phone {\r\n\t\tflex-wrap: wrap;\r\n\r\n\t\t& .ck-link-actions__preview {\r\n\t\t\tflex-basis: 100%;\r\n\t\t}\r\n\r\n\t\t& .ck-button:not(.ck-link-actions__preview) {\r\n\t\t\tflex-basis: 50%;\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-phone {\r\n\t@media screen and (max-width: 600px) {\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n@import "../mixins/_focus.css";\r\n@import "../mixins/_shadow.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n.ck.ck-link-actions {\r\n\t& .ck-button.ck-link-actions__preview {\r\n\t\tpadding-left: 0;\r\n\t\tpadding-right: 0;\r\n\r\n\t\t& .ck-button__label {\r\n\t\t\tpadding: 0 var(--ck-spacing-medium);\r\n\t\t\tcolor: var(--ck-color-link-default);\r\n\t\t\ttext-overflow: ellipsis;\r\n\t\t\tcursor: pointer;\r\n\r\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\r\n\t\t\tdoes not change width when moving between actions and the form. */\r\n\t\t\tmax-width: var(--ck-input-width);\r\n\t\t\tmin-width: 3em;\r\n\t\t\ttext-align: center;\r\n\r\n\t\t\t&:hover {\r\n\t\t\t\ttext-decoration: underline;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&,\r\n\t\t&:hover,\r\n\t\t&:focus,\r\n\t\t&:active {\r\n\t\t\tbackground: none;\r\n\t\t}\r\n\r\n\t\t&:active {\r\n\t\t\tbox-shadow: none;\r\n\t\t}\r\n\r\n\t\t&:focus {\r\n\t\t\t& .ck-button__label {\r\n\t\t\t\ttext-decoration: underline;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-dir ltr {\r\n\t\t& .ck-button:not(:first-child) {\r\n\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-dir rtl {\r\n\t\t& .ck-button:not(:last-child) {\r\n\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-media-phone {\r\n\t\t& .ck-button.ck-link-actions__preview {\r\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\r\n\r\n\t\t\t& .ck-button__label {\r\n\t\t\t\tmin-width: 0;\r\n\t\t\t\tmax-width: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t& .ck-button:not(.ck-link-actions__preview) {\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tmargin-left: 0;\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tmargin-left: 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},8795:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\r\n\t--ck-table-column-resizer-width: 7px;\r\n\r\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\r\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\r\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\r\n}\r\n\r\n.ck-content .table .ck-table-resized {\r\n\ttable-layout: fixed;\r\n}\r\n\r\n.ck-content .table table {\r\n\toverflow: hidden;\r\n}\r\n\r\n.ck-content .table td,\r\n.ck-content .table th {\r\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\r\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\r\n\toverflow-wrap: break-word;\r\n\tposition: relative;\r\n}\r\n\r\n.ck.ck-editor__editable .table .ck-table-column-resizer {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tbottom: 0;\r\n\tright: var(--ck-table-column-resizer-position-offset);\r\n\twidth: var(--ck-table-column-resizer-width);\r\n\tcursor: col-resize;\r\n\tuser-select: none;\r\n\tz-index: var(--ck-z-default);\r\n}\r\n\r\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\r\n\tdisplay: none;\r\n}\r\n\r\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\r\n all resizers must be hidden while the table is dragged. */\r\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\r\n\tdisplay: none;\r\n}\r\n\r\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\r\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\r\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\r\n\topacity: 0.25;\r\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\r\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\r\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\r\n\t unrealistic height for a single table. */\r\n\ttop: -999999px;\r\n\tbottom: -999999px;\r\n}\r\n\r\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\r\n\tleft: var(--ck-table-column-resizer-position-offset);\r\n\tright: unset;\r\n}\r\n"],sourceRoot:""}]);const a=s},8868:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-character-grid{max-width:100%}.ck.ck-character-grid .ck-character-grid__tiles{display:grid}:root{--ck-character-grid-tile-size:24px}.ck.ck-character-grid{overflow-x:hidden;overflow-y:auto}.ck.ck-character-grid .ck-character-grid__tiles{grid-template-columns:repeat(auto-fill,minmax(var(--ck-character-grid-tile-size),1fr));margin:var(--ck-spacing-standard) var(--ck-spacing-large);grid-gap:var(--ck-spacing-standard)}.ck.ck-character-grid .ck-character-grid__tile{border:0;font-size:1.5em;height:var(--ck-character-grid-tile-size);min-height:var(--ck-character-grid-tile-size);min-width:var(--ck-character-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-character-grid-tile-size)}@media (prefers-reduced-motion:reduce){.ck.ck-character-grid .ck-character-grid__tile{transition:none}}.ck.ck-character-grid .ck-character-grid__tile:focus:not(.ck-disabled),.ck.ck-character-grid .ck-character-grid__tile:hover:not(.ck-disabled){border:0;box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-character-grid .ck-character-grid__tile .ck-button__label{line-height:var(--ck-character-grid-tile-size);text-align:center;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-special-characters/theme/charactergrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-special-characters/charactergrid.css"],names:[],mappings:"AAKA,sBACC,cAKD,CAHC,gDACC,YACD,CCFD,MACC,kCACD,CAEA,sBAEC,iBAAkB,CADlB,eAqCD,CAlCC,gDACC,sFAAyF,CACzF,yDAA0D,CAC1D,mCACD,CAEA,+CAQC,QAAS,CAHT,eAAgB,CAHhB,yCAA0C,CAE1C,6CAA8C,CAD9C,4CAA6C,CAG7C,SAAU,CACV,8BAA+B,CAN/B,wCA0BD,CAjBC,uCAVD,+CAWE,eAgBF,CAfC,CAEA,8IAGC,QAAS,CACT,iGACD,CAGA,iEACC,8CAA+C,CAE/C,iBAAkB,CADlB,UAED",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-character-grid {\r\n\tmax-width: 100%;\r\n\r\n\t& .ck-character-grid__tiles {\r\n\t\tdisplay: grid;\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n@import "../mixins/_rounded.css";\r\n\r\n:root {\r\n\t--ck-character-grid-tile-size: 24px;\r\n}\r\n\r\n.ck.ck-character-grid {\r\n\toverflow-y: auto;\r\n\toverflow-x: hidden;\r\n\r\n\t& .ck-character-grid__tiles {\r\n\t\tgrid-template-columns: repeat(auto-fill, minmax(var(--ck-character-grid-tile-size), 1fr));\r\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\r\n\t\tgrid-gap: var(--ck-spacing-standard);\r\n\t}\r\n\r\n\t& .ck-character-grid__tile {\r\n\t\twidth: var(--ck-character-grid-tile-size);\r\n\t\theight: var(--ck-character-grid-tile-size);\r\n\t\tmin-width: var(--ck-character-grid-tile-size);\r\n\t\tmin-height: var(--ck-character-grid-tile-size);\r\n\t\tfont-size: 1.5em;\r\n\t\tpadding: 0;\r\n\t\ttransition: .2s ease box-shadow;\r\n\t\tborder: 0;\r\n\r\n\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\ttransition: none;\r\n\t\t}\r\n\r\n\t\t&:focus:not( .ck-disabled ),\r\n\t\t&:hover:not( .ck-disabled ) {\r\n\t\t\t/* Disable the default .ck-button\'s border ring. */\r\n\t\t\tborder: 0;\r\n\t\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\r\n\t\t}\r\n\r\n\t\t/* Make sure the glyph is rendered in the center of the button */\r\n\t\t& .ck-button__label {\r\n\t\t\tline-height: var(--ck-character-grid-tile-size);\r\n\t\t\twidth: 100%;\r\n\t\t\ttext-align: center;\r\n\t\t}\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},8914:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-html-object-embed-unfocused-outline-width:1px}.ck-widget.html-object-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base);min-width:calc(76px + var(--ck-spacing-standard));padding:var(--ck-spacing-small);padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large))}.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.html-object-embed:before{background:#999;border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);content:attr(data-html-object-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);font-style:normal;font-weight:400;left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);position:absolute;top:0;transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck-widget.html-object-embed .html-object-embed__content{pointer-events:none}div.ck-widget.html-object-embed{margin:1em auto}span.ck-widget.html-object-embed{display:inline-block}","",{version:3,sources:["webpack://./../ckeditor5-html-support/theme/datafilter.css"],names:[],mappings:"AAKA,MACC,kDACD,CAEA,6BAEC,gDAAiD,CADjD,kCAAmC,CAKnC,iDAAkD,CAHlD,+BAAgC,CAEhC,oEAgCD,CA7BC,kEACC,wGACD,CAEA,oCAOC,eAA4B,CAG5B,iEAAkE,CAClE,qCAAsC,CAPtC,0CAA2C,CAS3C,+BAAgC,CADhC,kCAAmC,CAVnC,iBAAkB,CADlB,eAAmB,CAKnB,+BAAgC,CAGhC,yIAA0I,CAN1I,iBAAkB,CAElB,KAAM,CAGN,0GAMD,CAGA,2HACC,gBACD,CAEA,yDAEC,mBACD,CAGD,gCACC,eACD,CAEA,iCACC,oBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-html-object-embed-unfocused-outline-width: 1px;\r\n}\r\n\r\n.ck-widget.html-object-embed {\r\n\tfont-size: var(--ck-font-size-base);\r\n\tbackground-color: var(--ck-color-base-foreground);\r\n\tpadding: var(--ck-spacing-small);\r\n\t/* Leave space for label */\r\n\tpadding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\r\n\tmin-width: calc(76px + var(--ck-spacing-standard));\r\n\r\n\t&:not(.ck-widget_selected):not(:hover) {\r\n\t\toutline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\r\n\t}\r\n\r\n\t&::before {\r\n\t\tfont-weight: normal;\r\n\t\tfont-style: normal;\r\n\t\tposition: absolute;\r\n\t\tcontent: attr(data-html-object-embed-label);\r\n\t\ttop: 0;\r\n\t\tleft: var(--ck-spacing-standard);\r\n\t\tbackground: hsl(0deg 0% 60%);\r\n\t\ttransition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\r\n\t\tpadding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\r\n\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\r\n\t\tcolor: var(--ck-color-base-background);\r\n\t\tfont-size: var(--ck-font-size-tiny);\r\n\t\tfont-family: var(--ck-font-face);\r\n\t}\r\n\r\n\t/* Make space for label. */\r\n\t& .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\r\n\t\tmargin-left: 50px;\r\n\t}\r\n\r\n\t& .html-object-embed__content {\r\n\t\t/* Disable user interaction with embed content */\r\n\t\tpointer-events: none;\r\n\t}\r\n}\r\n\r\ndiv.ck-widget.html-object-embed {\r\n\tmargin: 1em auto;\r\n}\r\n\r\nspan.ck-widget.html-object-embed {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n"],sourceRoot:""}]);const a=s},8986:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-table-cell-properties-form {\r\n\t& .ck-form__row {\r\n\t\t&.ck-table-cell-properties-form__alignment-row {\r\n\t\t\tflex-wrap: wrap;\r\n\r\n\t\t\t& .ck.ck-toolbar {\r\n\t\t\t\t&:first-of-type {\r\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\r\n\t\t\t\t\tflex-grow: 0.57;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t&:last-of-type {\r\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\r\n\t\t\t\t\tflex-grow: 0.43;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t& .ck-button {\r\n\t\t\t\t\tflex-grow: 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-table-cell-properties-form {\r\n\twidth: 320px;\r\n\r\n\t& .ck-form__row {\r\n\t\t&.ck-table-cell-properties-form__padding-row {\r\n\t\t\talign-self: flex-end;\r\n\t\t\tpadding: 0;\r\n\t\t\twidth: 25%;\r\n\t\t}\r\n\r\n\t\t&.ck-table-cell-properties-form__alignment-row {\r\n\t\t\t& .ck.ck-toolbar {\r\n\t\t\t\tbackground: none;\r\n\r\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\r\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},8991:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-content .todo-list .todo-list__label>input:before{transition:none}}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{transition:none}}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CA4EA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAtFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAqFC,CAFA,wDApEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAoEA,CAhED,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sDAYE,eAEF,CADC,CAGD,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FAxHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAuHA,CAFA,wGAtGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAsGD,CAlGA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sGAYE,eAEF,CADC,CAGD,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-todo-list-checkmark-size: 16px;\r\n}\r\n\r\n@define-mixin todo-list-checkbox {\r\n\t-webkit-appearance: none;\r\n\tdisplay: inline-block;\r\n\tposition: relative;\r\n\twidth: var(--ck-todo-list-checkmark-size);\r\n\theight: var(--ck-todo-list-checkmark-size);\r\n\tvertical-align: middle;\r\n\r\n\t/* Needed on iOS */\r\n\tborder: 0;\r\n\r\n\t/* LTR styles */\r\n\tleft: -25px;\r\n\tmargin-right: -15px;\r\n\tright: 0;\r\n\tmargin-left: 0;\r\n\r\n\t/* RTL styles */\r\n\t@nest [dir=rtl]& {\r\n\t\tleft: 0;\r\n\t\tmargin-right: 0;\r\n\t\tright: -25px;\r\n\t\tmargin-left: -15px;\r\n\t}\r\n\r\n\t&::before {\r\n\t\tdisplay: block;\r\n\t\tposition: absolute;\r\n\t\tbox-sizing: border-box;\r\n\t\tcontent: '';\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tborder: 1px solid hsl(0, 0%, 20%);\r\n\t\tborder-radius: 2px;\r\n\t\ttransition: 250ms ease-in-out box-shadow;\r\n\r\n\t\t@media (prefers-reduced-motion: reduce) {\r\n\t\t\ttransition: none;\r\n\t\t}\r\n\t}\r\n\r\n\t&::after {\r\n\t\tdisplay: block;\r\n\t\tposition: absolute;\r\n\t\tbox-sizing: content-box;\r\n\t\tpointer-events: none;\r\n\t\tcontent: '';\r\n\r\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\r\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\r\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\r\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\r\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\r\n\t\tborder-style: solid;\r\n\t\tborder-color: transparent;\r\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\r\n\t\ttransform: rotate(45deg);\r\n\t}\r\n\r\n\t&[checked] {\r\n\t\t&::before {\r\n\t\t\tbackground: hsl(126, 64%, 41%);\r\n\t\t\tborder-color: hsl(126, 64%, 41%);\r\n\t\t}\r\n\r\n\t\t&::after {\r\n\t\t\tborder-color: hsl(0, 0%, 100%);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/*\r\n * To-do list content styles.\r\n */\r\n.ck-content .todo-list {\r\n\tlist-style: none;\r\n\r\n\t& li {\r\n\t\tposition: relative;\r\n\t\tmargin-bottom: 5px;\r\n\r\n\t\t& .todo-list {\r\n\t\t\tmargin-top: 5px;\r\n\t\t}\r\n\t}\r\n\r\n\t& .todo-list__label {\r\n\t\t& > input {\r\n\t\t\t@mixin todo-list-checkbox;\r\n\t\t}\r\n\r\n\t\t& .todo-list__label__description {\r\n\t\t\tvertical-align: middle;\r\n\t\t}\r\n\r\n\t\t&.todo-list__label_without-description input[type=checkbox] {\r\n\t\t\tposition: absolute;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/*\r\n * To-do list editing view styles.\r\n */\r\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\r\n\t/*\r\n\t * To-do list should be interactive only during the editing\r\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\r\n\t */\r\n\t& > input,\r\n\t& > span[contenteditable=false] > input {\r\n\t\tcursor: pointer;\r\n\r\n\t\t&:hover::before {\r\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * Document Lists - editing view has an additional span around checkbox.\r\n\t */\r\n\t& > span[contenteditable=false] > input {\r\n\t\t@mixin todo-list-checkbox;\r\n\t}\r\n\r\n\t&.todo-list__label_without-description {\r\n\t\t& input[type=checkbox] {\r\n\t\t\tposition: absolute;\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},9047:(t,e,n)=>{const r=n(9246),i=n(802),o={};Object.keys(r).forEach((t=>{o[t]={},Object.defineProperty(o[t],"channels",{value:r[t].channels}),Object.defineProperty(o[t],"labels",{value:r[t].labels});const e=i(t);Object.keys(e).forEach((n=>{const r=e[n];o[t][n]=function(t){const e=function(...e){const n=e[0];if(null==n)return n;n.length>1&&(e=n);const r=t(e);if("object"==typeof r)for(let t=r.length,e=0;e<t;e++)r[e]=Math.round(r[e]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(r),o[t][n].raw=function(t){const e=function(...e){const n=e[0];return null==n?n:(n.length>1&&(e=n),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)}))})),t.exports=o},9055:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-mention-list-max-height:300px}.ck.ck-mentions{max-height:var(--ck-mention-list-max-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.ck.ck-mentions>.ck-list__item{flex-shrink:0;overflow:hidden}","",{version:3,sources:["webpack://./../ckeditor5-mention/theme/mentionui.css"],names:[],mappings:"AAKA,MACC,kCACD,CAEA,gBACC,4CAA6C,CAM7C,iBAAkB,CAJlB,eAAgB,CAMhB,2BAQD,CAJC,+BAEC,aAAc,CADd,eAED",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-mention-list-max-height: 300px;\r\n}\r\n\r\n.ck.ck-mentions {\r\n\tmax-height: var(--ck-mention-list-max-height);\r\n\r\n\toverflow-y: auto;\r\n\r\n\t/* Prevent unnecessary horizontal scrollbar in Safari\r\n\thttps://github.com/ckeditor/ckeditor5-mention/issues/41 */\r\n\toverflow-x: hidden;\r\n\r\n\toverscroll-behavior: contain;\r\n\r\n\t/* Prevent unnecessary vertical scrollbar in Safari\r\n\thttps://github.com/ckeditor/ckeditor5-mention/issues/41 */\r\n\t& > .ck-list__item {\r\n\t\toverflow: hidden;\r\n\t\tflex-shrink: 0;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},9108:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-menu-bar-menu-max-width:75vw;--ck-menu-bar-nested-menu-horizontal-offset:5px}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{max-width:var(--ck-menu-bar-menu-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw{bottom:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{bottom:auto;top:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{left:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{right:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{left:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en{bottom:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{right:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{bottom:0}:root{--ck-menu-bar-menu-panel-max-width:75vw}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{border-radius:0}.ck-rounded-corners .ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;height:fit-content;max-width:var(--ck-menu-bar-menu-panel-max-width)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{border-top-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{border-top-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne{border-bottom-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{border-bottom-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel:focus{outline:none}.ck.ck-menu-bar .ck-list-item-button:active,.ck.ck-menu-bar .ck-list-item-button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:active,.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none;position:relative;z-index:2}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AAKA,MACC,iCAAkC,CAClC,+CACD,CAEA,mDAEC,2CAA4C,CAC5C,iBAAkB,CAFlB,yBAkDD,CA9CC,gLAEC,WACD,CAEA,gLAGC,WAAY,CADZ,QAED,CAEA,gLAEC,MACD,CAEA,gLAEC,OACD,CAEA,gLAEC,kEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CAEA,gLAEC,mEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CCnDD,MACC,uCACD,CAEA,mDCFC,eDoCD,CAlCA,6ICEE,qCDgCF,CAlCA,mDAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CEVT,oCAA8B,CFW9B,kBAAmB,CACnB,iDA0BD,CAvBC,gLAEC,wBACD,CAEA,gLAEC,yBACD,CAEA,gLAEC,2BACD,CAEA,gLAEC,4BACD,CAEA,yDACC,YACD,CAKC,uFAEC,wBAAyB,CACzB,eACD,CAIA,yJGhDD,2BAA2B,CDF3B,2CAA8B,CCC9B,YAAa,CHoDX,iBAAkB,CAClB,SAID",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-menu-bar-menu-max-width: 75vw;\r\n\t--ck-menu-bar-nested-menu-horizontal-offset: 5px;\r\n}\r\n\r\n.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {\r\n\tz-index: var(--ck-z-panel);\r\n\tmax-width: var(--ck-menu-bar-menu-max-width);\r\n\tposition: absolute;\r\n\r\n\t&.ck-menu-bar__menu__panel_position_ne,\r\n\t&.ck-menu-bar__menu__panel_position_nw {\r\n\t\tbottom: 100%;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_se,\r\n\t&.ck-menu-bar__menu__panel_position_sw {\r\n\t\ttop: 100%;\r\n\t\tbottom: auto;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_ne,\r\n\t&.ck-menu-bar__menu__panel_position_se {\r\n\t\tleft: 0px;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_nw,\r\n\t&.ck-menu-bar__menu__panel_position_sw {\r\n\t\tright: 0px;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_es,\r\n\t&.ck-menu-bar__menu__panel_position_en {\r\n\t\tleft: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) );\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_es {\r\n\t\ttop: 0px;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_en {\r\n\t\tbottom: 0px;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_ws,\r\n\t&.ck-menu-bar__menu__panel_position_wn {\r\n\t\tright: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) );\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_ws {\r\n\t\ttop: 0px;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_wn {\r\n\t\tbottom: 0px;\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n@import "../../../mixins/_shadow.css";\r\n@import "../../../mixins/_focus.css";\r\n\r\n:root {\r\n\t--ck-menu-bar-menu-panel-max-width: 75vw;\r\n}\r\n\r\n.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {\r\n\t@mixin ck-rounded-corners;\r\n\t@mixin ck-drop-shadow;\r\n\r\n\tbackground: var(--ck-color-dropdown-panel-background);\r\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\r\n\tbottom: 0;\r\n\theight: fit-content;\r\n\tmax-width: var(--ck-menu-bar-menu-panel-max-width);\r\n\r\n\t/* Corner border radius consistent with the button. */\r\n\t&.ck-menu-bar__menu__panel_position_es,\r\n\t&.ck-menu-bar__menu__panel_position_se {\r\n\t\tborder-top-left-radius: 0;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_ws,\r\n\t&.ck-menu-bar__menu__panel_position_sw {\r\n\t\tborder-top-right-radius: 0;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_en,\r\n\t&.ck-menu-bar__menu__panel_position_ne {\r\n\t\tborder-bottom-left-radius: 0;\r\n\t}\r\n\r\n\t&.ck-menu-bar__menu__panel_position_wn,\r\n\t&.ck-menu-bar__menu__panel_position_nw {\r\n\t\tborder-bottom-right-radius: 0;\r\n\t}\r\n\r\n\t&:focus {\r\n\t\toutline: none;\r\n\t}\r\n}\r\n\r\n.ck.ck-menu-bar {\r\n\t& .ck-list-item-button {\r\n\t\t&:focus,\r\n\t\t&:active {\r\n\t\t\tborder-color: transparent;\r\n\t\t\tbox-shadow: none;\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-menu-bar_focus-border-enabled .ck-list-item-button {\r\n\t\t&:focus,\r\n\t\t&:active {\r\n\t\t\t/* Fix truncated shadows due to rendering order. */\r\n\t\t\tposition: relative;\r\n\t\t\tz-index: 2;\r\n\r\n\t\t\t@mixin ck-focus-ring;\r\n\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A visual style of focused element's border.\r\n */\r\n@define-mixin ck-focus-ring {\r\n\t/* Disable native outline. */\r\n\toutline: none;\r\n\tborder: var(--ck-focus-ring)\r\n}\r\n"],sourceRoot:""}]);const a=s},9205:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-balloon-panel.ck-tooltip{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:calc(var(--ck-z-dialog) + 100);--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);box-shadow:none;padding:0 var(--ck-spacing-medium)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;max-width:200px;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAOA,gCCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,sCAAyC,CEFzC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAkB/D,eAAgB,CAhBhB,kCFJD,CEMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CAErB,eAAgB,CADhB,wCAAyC,CAFzC,wBAID,CAMA,uCACC,YACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../mixins/_unselectable.css";\r\n\r\n.ck.ck-balloon-panel.ck-tooltip {\r\n\t@mixin ck-unselectable;\r\n\r\n\tz-index: calc( var(--ck-z-dialog) + 100 );\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Makes element unselectable.\r\n */\r\n@define-mixin ck-unselectable {\r\n\t-moz-user-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n\r\n.ck.ck-balloon-panel.ck-tooltip {\r\n\t--ck-balloon-border-width: 0px;\r\n\t--ck-balloon-arrow-offset: 0px;\r\n\t--ck-balloon-arrow-half-width: 4px;\r\n\t--ck-balloon-arrow-height: 4px;\r\n\t--ck-tooltip-text-padding: 4px;\r\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\r\n\r\n\tpadding: 0 var(--ck-spacing-medium);\r\n\r\n\t& .ck-tooltip__text {\r\n\t\tfont-size: .9em;\r\n\t\tline-height: 1.5;\r\n\t\tcolor: var(--ck-color-tooltip-text);\r\n\t}\r\n\r\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\r\n\t\twhite-space: break-spaces;\r\n\t\tdisplay: inline-block;\r\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\r\n\t\tmax-width: 200px;\r\n\t}\r\n\r\n\t/* Reset balloon panel styles */\r\n\tbox-shadow: none;\r\n\r\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\r\n\t&::before {\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n'],sourceRoot:""}]);const a=s},9246:(t,e,n)=>{const r=n(6931),i={};for(const t of Object.keys(r))i[r[t]]=t;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(const t of Object.keys(o)){if(!("channels"in o[t]))throw new Error("missing channels property: "+t);if(!("labels"in o[t]))throw new Error("missing channel labels property: "+t);if(o[t].labels.length!==o[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=o[t];delete o[t].channels,delete o[t].labels,Object.defineProperty(o[t],"channels",{value:e}),Object.defineProperty(o[t],"labels",{value:n})}o.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=o-i;let a,l;o===i?a=0:e===o?a=(n-r)/s:n===o?a=2+(r-e)/s:r===o&&(a=4+(e-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(i+o)/2;return l=o===i?0:c<=.5?s/(o+i):s/(2-o-i),[a,100*l,100*c]},o.rgb.hsv=function(t){let e,n,r,i,o;const s=t[0]/255,a=t[1]/255,l=t[2]/255,c=Math.max(s,a,l),d=c-Math.min(s,a,l),h=function(t){return(c-t)/6/d+.5};return 0===d?(i=0,o=0):(o=d/c,e=h(s),n=h(a),r=h(l),s===c?i=r-n:a===c?i=1/3+e-r:l===c&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},o.rgb.hwb=function(t){const e=t[0],n=t[1];let r=t[2];const i=o.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,100*s,100*r]},o.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r);return[100*((1-e-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},o.rgb.keyword=function(t){const e=i[t];if(e)return e;let n,o=1/0;for(const e of Object.keys(r)){const i=r[e],l=(a=i,((s=t)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);l<o&&(o=l,n=e)}var s,a;return n},o.keyword.rgb=function(t){return r[t]},o.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*e+.3576*n+.1805*r),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},o.rgb.lab=function(t){const e=o.rgb.xyz(t);let n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*r-16,500*(n-r),200*(r-i)]},o.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;let i,o,s;if(0===n)return s=255*r,[s,s,s];i=r<.5?r*(1+n):r+n-r*n;const a=2*r-i,l=[0,0,0];for(let t=0;t<3;t++)o=e+1/3*-(t-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,l[t]=255*s;return l},o.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,r=t[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;return[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},o.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let r=t[2]/100;const i=Math.floor(e)%6,o=e-Math.floor(e),s=255*r*(1-n),a=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}},o.hsv.hsl=function(t){const e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01);let o,s;s=(2-n)*r;const a=(2-n)*i;return o=n*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,100*o,100*s]},o.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,r=t[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const s=Math.floor(6*e),a=1-r;o=6*e-s,1&s&&(o=1-o);const l=n+o*(a-n);let c,d,h;switch(s){default:case 6:case 0:c=a,d=l,h=n;break;case 1:c=l,d=a,h=n;break;case 2:c=n,d=a,h=l;break;case 3:c=n,d=l,h=a;break;case 4:c=l,d=n,h=a;break;case 5:c=a,d=n,h=l}return[255*c,255*d,255*h]},o.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},o.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100;let i,o,s;return i=3.2406*e+-1.5372*n+-.4986*r,o=-.9689*e+1.8758*n+.0415*r,s=.0557*e+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},o.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(e-n),200*(n-r)]},o.lab.xyz=function(t){let e,n,r;n=(t[0]+16)/116,e=t[1]/500+n,r=n-t[2]/200;const i=n**3,o=e**3,s=r**3;return n=i>.008856?i:(n-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,e*=95.047,n*=100,r*=108.883,[e,n,r]},o.lab.lch=function(t){const e=t[0],n=t[1],r=t[2];let i;i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(n*n+r*r),i]},o.lch.lab=function(t){const e=t[0],n=t[1],r=t[2]/360*2*Math.PI;return[e,n*Math.cos(r),n*Math.sin(r)]},o.rgb.ansi16=function(t,e=null){const[n,r,i]=t;let s=null===e?o.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(a+=60),a},o.hsv.ansi16=function(t){return o.rgb.ansi16(o.hsv.rgb(t),t[2])},o.rgb.ansi256=function(t){const e=t[0],n=t[1],r=t[2];if(e===n&&n===r)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},o.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},o.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},o.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];3===e[0].length&&(n=n.split("").map((t=>t+t)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),o=Math.min(Math.min(e,n),r),s=i-o;let a,l;return a=s<1?o/(1-s):0,l=s<=0?0:i===e?(n-r)/s%6:i===n?2+(r-e)/s:4+(e-n)/s,l/=6,l%=1,[360*l,100*s,100*a]},o.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},o.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=e*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},o.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=e%1*6,s=o%1,a=1-s;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},o.hcg.hsv=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);let r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},o.hcg.hsl=function(t){const e=t[1]/100,n=t[2]/100*(1-e)+.5*e;let r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},o.hcg.hwb=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},o.hwb.hcg=function(t){const e=t[1]/100,n=1-t[2]/100,r=n-e;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},o.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},o.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},o.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},o.gray.hsl=function(t){return[0,0,t[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(t){return[0,100,t[0]]},o.gray.cmyk=function(t){return[0,0,0,t[0]]},o.gray.lab=function(t){return[t[0],0,0]},o.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},9372:t=>{"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=function(t){var n=e(t,4),r=n[1],i=n[3];if(!i)return r;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),a="/*# ".concat(s," */"),l=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[r].concat(l).concat([a]).join("\n")}return[r].join("\n")}},9409:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-color-mention-background:rgba(153,0,48,.1);--ck-color-mention-text:#990030}.ck-content .mention{background:var(--ck-color-mention-background);color:var(--ck-color-mention-text)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-mention/mention.css"],names:[],mappings:"AAKA,MACC,+CAAwD,CACxD,+BACD,CAEA,qBACC,6CAA8C,CAC9C,kCACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-color-mention-background: hsla(341, 100%, 30%, 0.1);\r\n\t--ck-color-mention-text: hsl(341, 100%, 30%);\r\n}\r\n\r\n.ck-content .mention {\r\n\tbackground: var(--ck-color-mention-background);\r\n\tcolor: var(--ck-color-mention-text);\r\n}\r\n"],sourceRoot:""}]);const a=s},9481:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,":root{--ck-menu-bar-menu-item-min-width:18em}.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item{min-width:var(--ck-menu-bar-menu-item-min-width)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitem.css"],names:[],mappings:"AAKA,MACC,sCACD,CAEA,kDACC,gDACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n:root {\r\n\t--ck-menu-bar-menu-item-min-width: 18em;\r\n}\r\n\r\n.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item {\r\n\tmin-width: var(--ck-menu-bar-menu-item-min-width);\r\n}\r\n"],sourceRoot:""}]);const a=s},9529:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-highlighted-text mark {\r\n\tbackground: var(--ck-color-highlight-background);\r\n\tvertical-align: initial;\r\n\tfont-weight: inherit;\r\n\tline-height: inherit;\r\n\tfont-size: inherit;\r\n}\r\n"],sourceRoot:""}]);const a=s},9554:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button{border-radius:0;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus{border-color:transparent;box-shadow:none}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-icon-spacing:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-right:calc(var(--ck-spacing-small)*-1);transform:rotate(-90deg)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:calc(var(--ck-spacing-small)*-1);transform:rotate(90deg)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-dropdown-menu-list__nested-menu__button__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAKA,kGACC,mBAAoB,CACpB,2BACD,CCIA,yDAGC,eAAgB,CADhB,iEAAoE,CADpE,UA2ED,CAvEC,+DACC,wBAAyB,CACzB,eAKD,CAHC,2EACC,0DACD,CAGD,2EACC,WAAY,CACZ,eAAgB,CAChB,sBACD,CAEA,uFCvBA,kCDyBA,CAGA,uHACC,+DACD,CAEA,4GACC,mCAeD,CAhBA,sHAOE,6CAAgD,CAHhD,wBAYF,CAhBA,sHAcE,4CAA+C,CAH/C,uBAKF,CAEA,wHClDA,kCDoDA,CAGC,6FACC,oCACD,CAEA,sHAIC,sCAAuC,CAHvC,gCAID,CAIA,6FACC,qCACD,CAEA,sHACC,+BAAgC,CAGhC,oCACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-dropdown-menu-list__nested-menu__button > .ck-dropdown-menu-list__nested-menu__button__arrow {\r\n\tpointer-events: none;\r\n\tz-index: var(--ck-z-default);\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../../mixins/_disabled.css";\r\n@import "../../../mixins/_button.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n/*\r\n * All menu buttons.\r\n */\r\n.ck.ck-button.ck-dropdown-menu-list__nested-menu__button {\r\n\twidth: 100%;\r\n\tpadding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));\r\n\tborder-radius: 0;\r\n\r\n\t&:focus {\r\n\t\tborder-color: transparent;\r\n\t\tbox-shadow: none;\r\n\r\n\t\t&:not(.ck-on) {\r\n\t\t\tbackground: var(--ck-color-button-default-hover-background);\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck-button__label {\r\n\t\tflex-grow: 1;\r\n\t\toverflow: hidden;\r\n\t\ttext-overflow: ellipsis;\r\n\t}\r\n\r\n\t&.ck-disabled > .ck-button__label {\r\n\t\t@mixin ck-disabled;\r\n\t}\r\n\r\n\t/* Spacing in buttons that miss the icon. */\r\n\t&.ck-icon-spacing:not(:has(.ck-button__icon)) > .ck-button__label {\r\n\t\tmargin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));\r\n\t}\r\n\r\n\t& > .ck-dropdown-menu-list__nested-menu__button__arrow {\r\n\t\twidth: var(--ck-dropdown-arrow-size);\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\ttransform: rotate(-90deg);\r\n\r\n\t\t\t/* Nudge the arrow gently to the right because its center of gravity is to the left */\r\n\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\ttransform: rotate(90deg);\r\n\r\n\t\t\t/* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */\r\n\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-disabled > .ck-dropdown-menu-list__nested-menu__button__arrow {\r\n\t\t@mixin ck-disabled;\r\n\t}\r\n\r\n\t@mixin ck-dir ltr {\r\n\t\t&:not(.ck-button_with-text) {\r\n\t\t\tpadding-left: var(--ck-spacing-small);\r\n\t\t}\r\n\r\n\t\t& > .ck-dropdown-menu-list__nested-menu__button__arrow {\r\n\t\t\tright: var(--ck-spacing-standard);\r\n\r\n\t\t\t/* A space to accommodate the triangle. */\r\n\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t}\r\n\t}\r\n\r\n\t@mixin ck-dir rtl {\r\n\t\t&:not(.ck-button_with-text) {\r\n\t\t\tpadding-right: var(--ck-spacing-small);\r\n\t\t}\r\n\r\n\t\t& > .ck-dropdown-menu-list__nested-menu__button__arrow {\r\n\t\t\tleft: var(--ck-spacing-standard);\r\n\r\n\t\t\t/* A space to accommodate the triangle. */\r\n\t\t\tmargin-right: var(--ck-spacing-small);\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A class which indicates that an element holding it is disabled.\r\n */\r\n@define-mixin ck-disabled {\r\n\topacity: var(--ck-disabled-opacity);\r\n}\r\n"],sourceRoot:""}]);const a=s},9627:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-find-and-replace-form{max-width:100%}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs{display:flex}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions.ck-find-and-replace-form__inputs .ck-results-counter,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs.ck-find-and-replace-form__inputs .ck-results-counter{position:absolute}.ck.ck-find-and-replace-form{width:400px}.ck.ck-find-and-replace-form:focus{outline:none}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs{align-content:stretch;align-items:center;flex:1 1 auto;flex-direction:row;flex-wrap:wrap;margin:0;padding:var(--ck-spacing-large)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>.ck-button,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-button{flex:0 0 auto}[dir=ltr] .ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>*+*,[dir=ltr] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>*+*{margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>*+*,[dir=rtl] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>*+*{margin-right:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions .ck-labeled-field-view,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-labeled-field-view{flex:1 1 auto}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions .ck-labeled-field-view .ck-input,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-labeled-field-view .ck-input{min-width:50px;width:100%}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs{align-items:flex-start}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-button-prev>.ck-icon{transform:rotate(90deg)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-button-next>.ck-icon{transform:rotate(-90deg)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter{top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter{right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter{left:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter{color:var(--ck-color-base-border)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-labeled-field-replace{flex:0 0 100%;padding-top:var(--ck-spacing-standard)}[dir=ltr] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-labeled-field-replace{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-labeled-field-replace{margin-right:0}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions{flex-wrap:wrap;justify-content:flex-end;margin-top:calc(var(--ck-spacing-large)*-1)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>.ck-button-find{font-weight:700}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>.ck-button-find .ck-button__label{padding-left:var(--ck-spacing-large);padding-right:var(--ck-spacing-large)}.ck.ck-find-and-replace-form .ck-switchbutton{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%}@media screen and (max-width:600px){.ck.ck-find-and-replace-form{max-width:100%;width:300px}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input{flex-wrap:wrap}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input .ck-labeled-field-view{flex:1 0 auto;margin-bottom:var(--ck-spacing-standard);width:100%}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button{text-align:center}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type{flex:1 1 auto}[dir=ltr] .ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type{margin-right:0}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type .ck-button__label{text-align:center;width:100%}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view){flex:1 1 auto;flex-wrap:wrap}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button{text-align:center}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button:first-of-type{flex:1 1 auto}[dir=ltr] .ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button:first-of-type{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button:first-of-type{margin-right:0}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button .ck-button__label{text-align:center;width:100%}}","",{version:3,sources:["webpack://./../ckeditor5-find-and-replace/theme/findandreplaceform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-find-and-replace/findandreplaceform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAKA,6BACC,cAUD,CARC,+HACC,YAMD,CAHC,yOACC,iBACD,CCNF,6BACC,WAoHD,CA9GC,mCACC,YACD,CAGA,+HAMC,qBAAsB,CADtB,kBAAmB,CAHnB,aAAc,CACd,kBAAmB,CACnB,cAAe,CAKf,QAAS,CADT,+BA4BD,CAzBC,qJACC,aACD,CAGC,2JACC,sCACD,CAIA,2JACC,uCACD,CAGD,6KACC,aAMD,CAJC,iMAEC,cAAe,CADf,UAED,CAMF,+DAEC,sBAqCD,CAnCC,wFACC,uBACD,CAEA,wFACC,wBACD,CAEA,mFACC,OAAQ,CACR,0BAWD,CAbA,6FAKE,gCAQF,CAbA,6FASE,+BAIF,CAbA,mFAYC,iCACD,CAEA,yFACC,aAAc,CACd,sCASD,CAXA,mGAKE,aAMF,CAXA,mGASE,cAEF,CAID,gEACC,cAAe,CACf,wBAAyB,CACzB,2CAWD,CATC,gFACC,eAOD,CAJC,kGACC,oCAAqC,CACrC,qCACD,CAIF,8CAMC,kBAAmB,CAJnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAJ9B,UAMD,CCtHA,oCD0HA,6BAIC,cAAe,CAHf,WA+DD,CAzDC,6DACC,cA4BD,CA1BC,oFACC,aAAc,CAEd,wCAAyC,CADzC,UAED,CAEA,wEACC,iBAkBD,CAhBC,sFACC,aAcD,CAfA,gGAIE,aAWF,CAfA,gGAQE,cAOF,CAJC,wGAEC,iBAAkB,CADlB,UAED,CAMH,4FAEC,aAAc,CADd,cAuBD,CApBC,uGACC,iBAkBD,CAhBC,qHACC,aASD,CAVA,+HAIE,aAMF,CAVA,+HAQE,cAEF,CAEA,yHAEC,iBAAkB,CADlB,UAED,CCrLH",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-find-and-replace-form {\r\n\tmax-width: 100%;\r\n\r\n\t& .ck-find-and-replace-form__inputs, .ck-find-and-replace-form__actions {\r\n\t\tdisplay: flex;\r\n\r\n\t\t/* The inputs area styles */\r\n\t\t&.ck-find-and-replace-form__inputs .ck-results-counter {\r\n\t\t\tposition: absolute;\r\n\t\t}\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-find-and-replace-form {\r\n\twidth: 400px;\r\n\r\n\t/*\r\n\t * The <form> needs tabindex="-1" for proper Esc handling after being clicked\r\n\t * but the side effect is that this creates a nasty focus outline in some browsers.\r\n\t */\r\n\t&:focus {\r\n\t\toutline: none;\r\n\t}\r\n\r\n\t/* Generic styles for the form inputs and actions. */\r\n\t& .ck-find-and-replace-form__inputs,\r\n\t& .ck-find-and-replace-form__actions {\r\n\t\tflex: 1 1 auto;\r\n\t\tflex-direction: row;\r\n\t\tflex-wrap: wrap;\r\n\t\talign-items: center;\r\n\t\talign-content: stretch;\r\n\r\n\t\tpadding: var(--ck-spacing-large);\r\n\t\tmargin: 0;\r\n\r\n\t\t& > .ck-button {\r\n\t\t\tflex: 0 0 auto;\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\t& > * + * {\r\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\t& > * + * {\r\n\t\t\t\tmargin-right: var(--ck-spacing-standard);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t& .ck-labeled-field-view {\r\n\t\t\tflex: 1 1 auto;\r\n\r\n\t\t\t& .ck-input {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tmin-width: 50px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/* Styles specific for inputs area. */\r\n\t& .ck-find-and-replace-form__inputs {\r\n\t\t/* To display all controls in line when there\'s an error under the input */\r\n\t\talign-items: flex-start;\r\n\r\n\t\t& > .ck-button-prev > .ck-icon {\r\n\t\t\ttransform: rotate(90deg);\r\n\t\t}\r\n\r\n\t\t& > .ck-button-next > .ck-icon {\r\n\t\t\ttransform: rotate(-90deg);\r\n\t\t}\r\n\r\n\t\t& .ck-results-counter {\r\n\t\t\ttop: 50%;\r\n\t\t\ttransform: translateY(-50%);\r\n\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tright: var(--ck-spacing-standard);\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tleft: var(--ck-spacing-standard);\r\n\t\t\t}\r\n\r\n\t\t\tcolor: var(--ck-color-base-border);\r\n\t\t}\r\n\r\n\t\t& > .ck-labeled-field-replace {\r\n\t\t\tflex: 0 0 100%;\r\n\t\t\tpadding-top: var(--ck-spacing-standard);\r\n\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tmargin-left: 0;\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tmargin-right: 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/* Styles specific for actions area. */\r\n\t& .ck-find-and-replace-form__actions {\r\n\t\tflex-wrap: wrap;\r\n\t\tjustify-content: flex-end;\r\n\t\tmargin-top: calc( -1 * var(--ck-spacing-large) );\r\n\r\n\t\t& > .ck-button-find {\r\n\t\t\tfont-weight: bold;\r\n\r\n\t\t\t/* Beef the find button up a little. It\'s the main action button in the form */\r\n\t\t\t& .ck-button__label {\r\n\t\t\t\tpadding-left: var(--ck-spacing-large);\r\n\t\t\t\tpadding-right: var(--ck-spacing-large);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck-switchbutton {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: row;\r\n\t\tflex-wrap: nowrap;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t}\r\n}\r\n\r\n@mixin ck-media-phone {\r\n\t.ck.ck-find-and-replace-form {\r\n\t\twidth: 300px;\r\n\r\n\t\t/* Don\'t let the form overflow from the dialog (https://github.com/cksource/ckeditor5-commercial/issues/5913) */\r\n\t\tmax-width: 100%;\r\n\r\n\t\t/* Styles specific for inputs area. */\r\n\t\t&.ck-find-and-replace-form__input {\r\n\t\t\tflex-wrap: wrap;\r\n\r\n\t\t\t& .ck-labeled-field-view {\r\n\t\t\t\tflex: 1 0 auto;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tmargin-bottom: var(--ck-spacing-standard);\r\n\t\t\t}\r\n\r\n\t\t\t& > .ck-button {\r\n\t\t\t\ttext-align: center;\r\n\r\n\t\t\t\t&:first-of-type {\r\n\t\t\t\t\tflex: 1 1 auto;\r\n\r\n\t\t\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\t\t\tmargin-left: 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\t\t\tmargin-right: 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t& .ck-button__label {\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* Styles specific for actions area. */\r\n\t\t&.ck-find-and-replace-form__actions > :not(.ck-labeled-field-view) {\r\n\t\t\tflex-wrap: wrap;\r\n\t\t\tflex: 1 1 auto;\r\n\r\n\t\t\t& > .ck-button {\r\n\t\t\t\ttext-align: center;\r\n\r\n\t\t\t\t&:first-of-type {\r\n\t\t\t\t\tflex: 1 1 auto;\r\n\r\n\t\t\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\t\t\tmargin-left: 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\t\t\tmargin-right: 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t& .ck-button__label {\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@define-mixin ck-media-phone {\r\n\t@media screen and (max-width: 600px) {\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},9677:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{background:var(--ck-color-toolbar-border);height:var(--ck-icon-size);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCAIC,yCAA0C,CAH1C,0BAA2B,CAU3B,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../mixins/_unselectable.css";\r\n\r\n.ck.ck-toolbar {\r\n\t@mixin ck-unselectable;\r\n\r\n\tdisplay: flex;\r\n\tflex-flow: row nowrap;\r\n\talign-items: center;\r\n\r\n\t& > .ck-toolbar__items {\r\n\t\tdisplay: flex;\r\n\t\tflex-flow: row wrap;\r\n\t\talign-items: center;\r\n\t\tflex-grow: 1;\r\n\r\n\t}\r\n\r\n\t& .ck.ck-toolbar__separator {\r\n\t\tdisplay: inline-block;\r\n\r\n\t\t/*\r\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\r\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\r\n\t\t * moved to another toolbar in the dropdown.\r\n\t\t */\r\n\t\t&:first-child,\r\n\t\t&:last-child {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck-toolbar__line-break {\r\n\t\tflex-basis: 100%;\r\n\t}\r\n\r\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\r\n\t\tflex-wrap: nowrap;\r\n\t}\r\n\r\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\r\n\t\tflex-direction: column;\r\n\t}\r\n\r\n\t&.ck-toolbar_floating > .ck-toolbar__items {\r\n\t\tflex-wrap: nowrap;\r\n\t}\r\n\r\n\t& > .ck.ck-toolbar__grouped-dropdown {\r\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Makes element unselectable.\r\n */\r\n@define-mixin ck-unselectable {\r\n\t-moz-user-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-toolbar {\r\n\t@mixin ck-rounded-corners;\r\n\r\n\tbackground: var(--ck-color-toolbar-background);\r\n\tpadding: 0 var(--ck-spacing-small);\r\n\tborder: 1px solid var(--ck-color-toolbar-border);\r\n\r\n\t& .ck.ck-toolbar__separator {\r\n\t\theight: var(--ck-icon-size);\r\n\t\twidth: 1px;\r\n\t\tmin-width: 1px;\r\n\t\tbackground: var(--ck-color-toolbar-border);\r\n\r\n\t\t/*\r\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\r\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\r\n\t\t */\r\n\t\tmargin-top: var(--ck-spacing-small);\r\n\t\tmargin-bottom: var(--ck-spacing-small);\r\n\t}\r\n\r\n\t& .ck-toolbar__line-break {\r\n\t\theight: 0;\r\n\t}\r\n\r\n\t& > .ck-toolbar__items {\r\n\t\t& > *:not(.ck-toolbar__line-break) {\r\n\t\t\t/* (#11) Separate toolbar items. */\r\n\t\t\tmargin-right: var(--ck-spacing-small);\r\n\t\t}\r\n\r\n\t\t/* Don\'t display a separator after an empty items container, for instance,\r\n\t\twhen all items were grouped */\r\n\t\t&:empty + .ck.ck-toolbar__separator {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\r\n\t& > .ck.ck-toolbar__grouped-dropdown {\r\n\t\t/* Make sure items wrapped to the next line have v-spacing */\r\n\t\tmargin-top: var(--ck-spacing-small);\r\n\t\tmargin-bottom: var(--ck-spacing-small);\r\n\t}\r\n\r\n\t&.ck-toolbar_vertical {\r\n\t\t/* Items in a vertical toolbar span the entire width. */\r\n\t\tpadding: 0;\r\n\r\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\r\n\t\t& > .ck-toolbar__items > .ck {\r\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\r\n\t\t\twidth: 100%;\r\n\r\n\t\t\t/* Items in a vertical toolbar should have no margin. */\r\n\t\t\tmargin: 0;\r\n\r\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\r\n\t\t\tborder-radius: 0;\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-toolbar_compact {\r\n\t\t/* No spacing around items. */\r\n\t\tpadding: 0;\r\n\r\n\t\t& > .ck-toolbar__items > * {\r\n\t\t\t/* Compact toolbar items have no spacing between them. */\r\n\t\t\tmargin: 0;\r\n\r\n\t\t\t/* "Middle" children should have no rounded corners. */\r\n\t\t\t&:not(:first-child):not(:last-child) {\r\n\t\t\t\tborder-radius: 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t& > .ck.ck-toolbar__grouped-dropdown {\r\n\t\t/*\r\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\r\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\r\n\t\t */\r\n\t\t& > .ck.ck-button.ck-dropdown__button {\r\n\t\t\tpadding-left: var(--ck-spacing-tiny);\r\n\t\t}\r\n\t}\r\n\r\n\t/* A drop-down containing the nested toolbar with configured items. */\r\n\t& .ck-toolbar__nested-toolbar-dropdown {\r\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\r\n\t\t& > .ck-dropdown__panel {\r\n\t\t\tmin-width: auto;\r\n\t\t}\r\n\r\n\t\t& > .ck-button > .ck-button__label {\r\n\t\t\tmax-width: 7em;\r\n\t\t\twidth: auto;\r\n\t\t}\r\n\t}\r\n\r\n\t&:focus {\r\n\t\toutline: none;\r\n\t}\r\n\r\n\t@nest .ck-toolbar-container & {\r\n\t\tborder: 0;\r\n\t}\r\n}\r\n\r\n/* stylelint-disable */\r\n\r\n/*\r\n * Styles for RTL toolbars.\r\n *\r\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\r\n * because its parent is not controlled by the editor framework.\r\n */\r\n[dir="rtl"] .ck.ck-toolbar,\r\n.ck.ck-toolbar[dir="rtl"] {\r\n\t& > .ck-toolbar__items > .ck {\r\n\t\tmargin-right: 0;\r\n\t}\r\n\r\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\r\n\t\t/* (#11) Separate toolbar items. */\r\n\t\tmargin-left: var(--ck-spacing-small);\r\n\t}\r\n\r\n\t& > .ck-toolbar__items > .ck:last-child {\r\n\t\tmargin-left: 0;\r\n\t}\r\n\r\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\r\n\t\t/* No rounded corners on the right side of the first child. */\r\n\t\t&:first-child {\r\n\t\t\tborder-top-left-radius: 0;\r\n\t\t\tborder-bottom-left-radius: 0;\r\n\t\t}\r\n\r\n\t\t/* No rounded corners on the left side of the last child. */\r\n\t\t&:last-child {\r\n\t\t\tborder-top-right-radius: 0;\r\n\t\t\tborder-bottom-right-radius: 0;\r\n\t\t}\r\n\t}\r\n\r\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\r\n\t& > .ck.ck-toolbar__separator {\r\n\t\tmargin-left: var(--ck-spacing-small);\r\n\t}\r\n\r\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\r\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\r\n\t\tmargin-left: var(--ck-spacing-small);\r\n\t}\r\n}\r\n\r\n/*\r\n * Styles for LTR toolbars.\r\n *\r\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\r\n * because its parent is not controlled by the editor framework.\r\n */\r\n[dir="ltr"] .ck.ck-toolbar,\r\n.ck.ck-toolbar[dir="ltr"] {\r\n\t& > .ck-toolbar__items > .ck:last-child {\r\n\t\tmargin-right: 0;\r\n\t}\r\n\r\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\r\n\t\t/* No rounded corners on the right side of the first child. */\r\n\t\t&:first-child {\r\n\t\t\tborder-top-right-radius: 0;\r\n\t\t\tborder-bottom-right-radius: 0;\r\n\t\t}\r\n\r\n\t\t/* No rounded corners on the left side of the last child. */\r\n\t\t&:last-child {\r\n\t\t\tborder-top-left-radius: 0;\r\n\t\t\tborder-bottom-left-radius: 0;\r\n\t\t}\r\n\t}\r\n\r\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\r\n\t& > .ck.ck-toolbar__separator {\r\n\t\tmargin-right: var(--ck-spacing-small);\r\n\t}\r\n\r\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\r\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\r\n\t\tmargin-right: var(--ck-spacing-small);\r\n\t}\r\n}\r\n\r\n/* stylelint-enable */\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},9715:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;background:var(--ck-color-button-default-background);border:1px solid transparent;border-radius:0;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}@media (prefers-reduced-motion:reduce){.ck.ck-button,a.ck.ck-button{transition:none}}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{opacity:.5}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-medium)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background);color:var(--ck-color-button-on-color)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background);color:var(--ck-color-button-action-text)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CA9BA,iDASE,oBAqBF,CA9BA,iDAaE,qBAiBF,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEzBD,6BA6BC,uBAAwB,CC7BxB,oDAAqC,CDuBrC,4BAA6B,CExB7B,eAAgB,CFOhB,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAwID,CC1IE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,wIEGE,qCF0IF,CA9GC,uCA/BD,6BAgCE,eA6GF,CA5GC,CAEA,oFGpCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHyCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAWD,CAZA,6FAIE,mCAQF,CAZA,6FAQE,oCAIF,CAZA,yEAWC,UACD,CAIC,oIIxFD,oDJ4FC,CAOA,gLKnGD,kCLqGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAYD,CATC,2HAEE,qCAMF,CARA,2HAME,oCAEF,CAKA,mHACC,WACD,CAID,yCChIA,+CAAqC,CDmIpC,qCACD,CCjIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDuHA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CChJC,mDAAqC,CDoJrC,wCACD,CClJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDwID,uCAEC,eACD",sourcesContent:['/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../mixins/_unselectable.css";\r\n@import "../../mixins/_dir.css";\r\n\r\n.ck.ck-button,\r\na.ck.ck-button {\r\n\t@mixin ck-unselectable;\r\n\r\n\tposition: relative;\r\n\tdisplay: inline-flex;\r\n\talign-items: center;\r\n\r\n\t@mixin ck-dir ltr {\r\n\t\tjustify-content: left;\r\n\t}\r\n\r\n\t@mixin ck-dir rtl {\r\n\t\tjustify-content: right;\r\n\t}\r\n\r\n\t& .ck-button__label {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t&.ck-button_with-text {\r\n\t\t& .ck-button__label {\r\n\t\t\tdisplay: inline-block;\r\n\t\t}\r\n\t}\r\n\r\n\t/* Center the icon horizontally in a button without text. */\r\n\t&:not(.ck-button_with-text) {\r\n\t\tjustify-content: center;\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Makes element unselectable.\r\n */\r\n@define-mixin ck-unselectable {\r\n\t-moz-user-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_focus.css";\r\n@import "../../../mixins/_shadow.css";\r\n@import "../../../mixins/_disabled.css";\r\n@import "../../../mixins/_rounded.css";\r\n@import "../../mixins/_button.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\r\n\r\n.ck.ck-button,\r\na.ck.ck-button {\r\n\t@mixin ck-button-colors --ck-color-button-default;\r\n\t@mixin ck-rounded-corners;\r\n\r\n\twhite-space: nowrap;\r\n\tcursor: default;\r\n\tvertical-align: middle;\r\n\tpadding: var(--ck-spacing-tiny);\r\n\ttext-align: center;\r\n\r\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\r\n\tmin-width: var(--ck-ui-component-min-height);\r\n\tmin-height: var(--ck-ui-component-min-height);\r\n\r\n\t/* Normalize the height of the line. Removing this will break consistent height\r\n\tamong text and text-less buttons (with icons). */\r\n\tline-height: 1;\r\n\r\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\r\n\tfont-size: inherit;\r\n\r\n\t/* Avoid flickering when the foucs border shows up. */\r\n\tborder: 1px solid transparent;\r\n\r\n\t/* Apply some smooth transition to the box-shadow and border. */\r\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\r\n\r\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\r\n\t-webkit-appearance: none;\r\n\r\n\t@media (prefers-reduced-motion: reduce) {\r\n\t\ttransition: none;\r\n\t}\r\n\r\n\t&:active,\r\n\t&:focus {\r\n\t\t@mixin ck-focus-ring;\r\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\r\n\t}\r\n\r\n\t/* Allow icon coloring using the text "color" property. */\r\n\t& .ck-button__icon {\r\n\t\t& use,\r\n\t\t& use * {\r\n\t\t\tcolor: inherit;\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck-button__label {\r\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\r\n\t\tfont-size: inherit;\r\n\t\tfont-weight: inherit;\r\n\t\tcolor: inherit;\r\n\t\tcursor: inherit;\r\n\r\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\r\n\t\twithout labels (but with icons) have different sizes in Chrome */\r\n\t\tvertical-align: middle;\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\ttext-align: left;\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\ttext-align: right;\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck-button__keystroke {\r\n\t\tcolor: inherit;\r\n\r\n\t\t@mixin ck-dir ltr {\r\n\t\t\tmargin-left: var(--ck-spacing-large);\r\n\t\t}\r\n\r\n\t\t@mixin ck-dir rtl {\r\n\t\t\tmargin-right: var(--ck-spacing-large);\r\n\t\t}\r\n\r\n\t\topacity: .5;\r\n\t}\r\n\r\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\r\n\t&.ck-disabled {\r\n\t\t&:active,\r\n\t\t&:focus {\r\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\r\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\r\n\t\t}\r\n\r\n\t\t& .ck-button__icon {\r\n\t\t\t@mixin ck-disabled;\r\n\t\t}\r\n\r\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\r\n\t\t& .ck-button__label {\r\n\t\t\t@mixin ck-disabled;\r\n\t\t}\r\n\r\n\t\t& .ck-button__keystroke {\r\n\t\t\topacity: .3;\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-button_with-text {\r\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\r\n\r\n\t\t/* stylelint-disable-next-line no-descending-specificity */\r\n\t\t& .ck-button__icon {\r\n\t\t\t@mixin ck-dir ltr {\r\n\t\t\t\tmargin-right: var(--ck-spacing-medium);\r\n\t\t\t}\r\n\r\n\t\t\t@mixin ck-dir rtl {\r\n\t\t\t\tmargin-left: var(--ck-spacing-medium);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t&.ck-button_with-keystroke {\r\n\t\t/* stylelint-disable-next-line no-descending-specificity */\r\n\t\t& .ck-button__label {\r\n\t\t\tflex-grow: 1;\r\n\t\t}\r\n\t}\r\n\r\n\t/* A style of the button which is currently on, e.g. its feature is active. */\r\n\t&.ck-on {\r\n\t\t@mixin ck-button-colors --ck-color-button-on;\r\n\r\n\t\tcolor: var(--ck-color-button-on-color);\r\n\t}\r\n\r\n\t&.ck-button-save {\r\n\t\tcolor: var(--ck-color-button-save);\r\n\t}\r\n\r\n\t&.ck-button-cancel {\r\n\t\tcolor: var(--ck-color-button-cancel);\r\n\t}\r\n}\r\n\r\n/* A style of the button which handles the primary action. */\r\n.ck.ck-button-action,\r\na.ck.ck-button-action {\r\n\t@mixin ck-button-colors --ck-color-button-action;\r\n\r\n\tcolor: var(--ck-color-button-action-text);\r\n}\r\n\r\n.ck.ck-button-bold,\r\na.ck.ck-button-bold {\r\n\tfont-weight: bold;\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements a button of given background color.\r\n *\r\n * @param {String} $background - Background color of the button.\r\n * @param {String} $border - Border color of the button.\r\n */\r\n@define-mixin ck-button-colors $prefix {\r\n\tbackground: var($(prefix)-background);\r\n\r\n\t&:not(.ck-disabled) {\r\n\t\t&:hover {\r\n\t\t\tbackground: var($(prefix)-hover-background);\r\n\t\t}\r\n\r\n\t\t&:active {\r\n\t\t\tbackground: var($(prefix)-active-background);\r\n\t\t}\r\n\t}\r\n\r\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\r\n\t&.ck-disabled {\r\n\t\tbackground: var($(prefix)-disabled-background);\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A visual style of focused element's border.\r\n */\r\n@define-mixin ck-focus-ring {\r\n\t/* Disable native outline. */\r\n\toutline: none;\r\n\tborder: var(--ck-focus-ring)\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A class which indicates that an element holding it is disabled.\r\n */\r\n@define-mixin ck-disabled {\r\n\topacity: var(--ck-disabled-opacity);\r\n}\r\n"],sourceRoot:""}]);const a=s},9819:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-dialog-overlay{bottom:0;left:0;overscroll-behavior:none;position:fixed;right:0;top:0;user-select:none}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent{animation:none;background:none;pointer-events:none}.ck.ck-dialog{overscroll-behavior:none;position:absolute;width:fit-content}.ck.ck-dialog .ck.ck-form__header{flex-shrink:0}.ck.ck-dialog .ck.ck-form__header .ck-form__header__label{cursor:grab}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent .ck.ck-dialog{pointer-events:all}:root{--ck-dialog-overlay-background-color:rgba(0,0,0,.5);--ck-dialog-drop-shadow:0px 0px 6px 2px rgba(0,0,0,.15);--ck-dialog-max-width:100vw;--ck-dialog-max-height:90vh;--ck-color-dialog-background:var(--ck-color-base-background);--ck-color-dialog-form-header-border:var(--ck-color-base-border)}.ck.ck-dialog-overlay{animation:ck-dialog-fade-in .3s;background:var(--ck-dialog-overlay-background-color);z-index:var(--ck-z-dialog)}.ck.ck-dialog{border-radius:0}.ck-rounded-corners .ck.ck-dialog,.ck.ck-dialog.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dialog{box-shadow:var(--ck-drop-shadow),0 0;--ck-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-dialog-background);border:1px solid var(--ck-color-base-border);max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width)}.ck.ck-dialog .ck.ck-form__header{border-bottom:1px solid var(--ck-color-dialog-form-header-border)}@keyframes ck-dialog-fade-in{0%{background:transparent}to{background:var(--ck-dialog-overlay-background-color)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,sBAKC,QAAS,CACT,MAAO,CAJP,wBAAyB,CAEzB,cAAe,CAGf,OAAQ,CACR,KAAM,CAPN,gBAcD,CALC,qDAEC,cAAe,CACf,eAAgB,CAFhB,mBAGD,CAGD,cACC,wBAAyB,CAEzB,iBAAkB,CADlB,iBAcD,CAXC,kCACC,aAKD,CAHC,0DACC,WACD,CAVF,mEAcE,kBAEF,CC7BA,MACC,mDAA2D,CAC3D,uDAA8D,CAC9D,2BAA4B,CAC5B,2BAA4B,CAC5B,4DAA6D,CAC7D,gEACD,CAEA,sBACC,+BAAgC,CAChC,oDAAqD,CACrD,0BACD,CAEA,cCbC,eD2BD,CAdA,mECTE,qCDuBF,CAdA,cEfC,oCAA8B,CFmB9B,6CAA8C,CAE9C,4CAA6C,CAG7C,4CAA6C,CAF7C,sCAAuC,CACvC,oCAMD,CAHC,kCACC,iEACD,CAGD,6BACC,GACC,sBACD,CAEA,GACC,oDACD,CACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-dialog-overlay {\r\n\tuser-select: none;\r\n\toverscroll-behavior: none;\r\n\r\n\tposition: fixed;\r\n\tbottom: 0;\r\n\tleft: 0;\r\n\tright: 0;\r\n\ttop: 0;\r\n\r\n\t&.ck-dialog-overlay__transparent {\r\n\t\tpointer-events: none;\r\n\t\tanimation: none;\r\n\t\tbackground: none;\r\n\t}\r\n}\r\n\r\n.ck.ck-dialog {\r\n\toverscroll-behavior: none;\r\n\twidth: fit-content;\r\n\tposition: absolute;\r\n\r\n\t& .ck.ck-form__header {\r\n\t\tflex-shrink: 0;\r\n\r\n\t\t& .ck-form__header__label {\r\n\t\t\tcursor: grab;\r\n\t\t}\r\n\t}\r\n\r\n\t@nest .ck.ck-dialog-overlay.ck-dialog-overlay__transparent & {\r\n\t\tpointer-events: all;\r\n\t}\r\n}\r\n",'/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n@import "../../../mixins/_rounded.css";\r\n@import "../../../mixins/_shadow.css";\r\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\r\n\r\n:root {\r\n\t--ck-dialog-overlay-background-color: hsla( 0, 0%, 0%, .5 );\r\n\t--ck-dialog-drop-shadow: 0px 0px 6px 2px hsl(0deg 0% 0% / 15%);\r\n\t--ck-dialog-max-width: 100vw;\r\n\t--ck-dialog-max-height: 90vh;\r\n\t--ck-color-dialog-background: var(--ck-color-base-background);\r\n\t--ck-color-dialog-form-header-border: var(--ck-color-base-border);\r\n}\r\n\r\n.ck.ck-dialog-overlay {\r\n\tanimation: ck-dialog-fade-in .3s;\r\n\tbackground: var(--ck-dialog-overlay-background-color);\r\n\tz-index: var(--ck-z-dialog);\r\n}\r\n\r\n.ck.ck-dialog {\r\n\t@mixin ck-rounded-corners;\r\n\t@mixin ck-drop-shadow;\r\n\r\n\t--ck-drop-shadow: var(--ck-dialog-drop-shadow);\r\n\r\n\tbackground: var(--ck-color-dialog-background);\r\n\tmax-height: var(--ck-dialog-max-height);\r\n\tmax-width: var(--ck-dialog-max-width);\r\n\tborder: 1px solid var(--ck-color-base-border);\r\n\r\n\t& .ck.ck-form__header {\r\n\t\tborder-bottom: 1px solid var(--ck-color-dialog-form-header-border);\r\n\t}\r\n}\r\n\r\n@keyframes ck-dialog-fade-in {\r\n\t0% {\r\n\t\tbackground: hsla( 0, 0%, 0%, 0 );\r\n\t}\r\n\r\n\t100% {\r\n\t\tbackground: var(--ck-dialog-overlay-background-color);\r\n\t}\r\n}\r\n',"/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * Implements rounded corner interface for .ck-rounded-corners class.\r\n *\r\n * @see $ck-border-radius\r\n */\r\n@define-mixin ck-rounded-corners {\r\n\tborder-radius: 0;\r\n\r\n\t@nest .ck-rounded-corners &,\r\n\t&.ck-rounded-corners {\r\n\t\tborder-radius: var(--ck-border-radius);\r\n\t\t@mixin-content;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/**\r\n * A helper to combine multiple shadows.\r\n */\r\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\r\n\tbox-shadow: $shadowA, $shadowB;\r\n}\r\n\r\n/**\r\n * Gives an element a drop shadow so it looks like a floating panel.\r\n */\r\n@define-mixin ck-drop-shadow {\r\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\r\n}\r\n"],sourceRoot:""}]);const a=s},9822:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-dialog .ck.ck-dialog__actions{display:flex;justify-content:flex-end;padding:var(--ck-spacing-large)}.ck.ck-dialog .ck.ck-dialog__actions>*+*{margin-left:var(--ck-spacing-large)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialogactions.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialogactions.css"],names:[],mappings:"AAMC,qCACC,YAAa,CACb,wBAAyB,CCDzB,+BDED,CCAC,yCACC,mCACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-dialog {\r\n\t& .ck.ck-dialog__actions {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: flex-end;\r\n\t}\r\n}\r\n","/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-dialog {\r\n\t& .ck.ck-dialog__actions {\r\n\t\tpadding: var(--ck-spacing-large);\r\n\r\n\t\t& > * + * {\r\n\t\t\tmargin-left: var(--ck-spacing-large);\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s},9826:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-block-toolbar-button{transform:translateX(calc(var(--ck-spacing-large)*-1))}","",{version:3,sources:["webpack://./theme/theme.css"],names:[],mappings:"AAMA,4BACC,sDACD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n/* Give the block toolbar button some space, moving it a few pixels away from the editable area. */\r\n.ck.ck-block-toolbar-button {\r\n\ttransform: translateX( calc(-1 * var(--ck-spacing-large)) );\r\n}\r\n"],sourceRoot:""}]);const a=s},9968:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9372),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\r\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\r\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\r\n */\r\n\r\n.ck.ck-list-properties {\r\n\t/* When there are no list styles and there is no collapsible. */\r\n\t&.ck-list-properties_without-styles {\r\n\t\tpadding: var(--ck-spacing-large);\r\n\r\n\t\t& > * {\r\n\t\t\tmin-width: 14em;\r\n\r\n\t\t\t& + * {\r\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * When the numbered list property fields (start at, reversed) should be displayed,\r\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\r\n\t */\r\n\t&.ck-list-properties_with-numbered-properties {\r\n\t\t& > .ck-list-styles-list {\r\n\t\t\tgrid-template-columns: repeat( 4, auto );\r\n\t\t}\r\n\r\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\r\n\t\t& > .ck-collapsible {\r\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\r\n\r\n\t\t\t& > .ck-collapsible__children {\r\n\t\t\t\t& > * {\r\n\t\t\t\t\twidth: 100%;\r\n\r\n\t\t\t\t\t& + * {\r\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\r\n\t\tmin-width: auto;\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n\t& .ck.ck-numbered-list-properties__reversed-order {\r\n\t\tbackground: transparent;\r\n\t\tpadding-left: 0;\r\n\t\tpadding-right: 0;\r\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\r\n\r\n\t\t&:active, &:hover {\r\n\t\t\tbox-shadow: none;\r\n\t\t\tborder-color: transparent;\r\n\t\t\tbackground: none;\r\n\t\t}\r\n\t}\r\n}\r\n"],sourceRoot:""}]);const a=s}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0;var r={};return(()=>{"use strict";n.d(r,{default:()=>qL});class t{crashes=[];state="initializing";_crashNumberLimit;_now=Date.now;_minimumNonErrorTimePeriod;_boundErrorHandler;_listeners;constructor(t){if(this.crashes=[],this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=t=>{const e="error"in t?t.error:t.reason;e instanceof Error&&this._handleError(e,t)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter((t=>t!==e))}_fire(t,...e){const n=this._listeners[t]||[];for(const t of n)t.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e instanceof ErrorEvent?e.filename:void 0,lineno:e instanceof ErrorEvent?e.lineno:void 0,colno:e instanceof ErrorEvent?e.colno:void 0,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&void 0!==t.context&&null!==t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function e(t,e=new Set){const n=[t],r=new Set;let o=0;for(;n.length>o;){const t=n[o++];if(!r.has(t)&&i(t)&&!e.has(t))if(r.add(t),Symbol.iterator in t)try{for(const e of t)n.push(e)}catch(t){}else for(const e in t)"defaultValue"!==e&&n.push(t[e])}return r}function i(t){const e=Object.prototype.toString.call(t),n=typeof t;return!("number"===n||"boolean"===n||"string"===n||"symbol"===n||"function"===n||"[object Date]"===e||"[object RegExp]"===e||"[object Module]"===e||null==t||t._watchdogExcluded||t instanceof EventTarget||t instanceof Event)}function o(t,n,r=new Set){if(t===n&&("object"==typeof(i=t)&&null!==i))return!0;var i;const o=e(t,r),s=e(n,r);for(const t of o)if(s.has(t))return!0;return!1}const s=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const a="object"==typeof global&&global&&global.Object===Object&&global;var l="object"==typeof self&&self&&self.Object===Object&&self;const c=a||l||Function("return this")();const d=function(){return c.Date.now()};var h=/\s/;const u=function(t){for(var e=t.length;e--&&h.test(t.charAt(e)););return e};var m=/^\s+/;const g=function(t){return t?t.slice(0,u(t)+1).replace(m,""):t};const p=c.Symbol;var f=Object.prototype,b=f.hasOwnProperty,k=f.toString,w=p?p.toStringTag:void 0;const A=function(t){var e=b.call(t,w),n=t[w];try{t[w]=void 0;var r=!0}catch(t){}var i=k.call(t);return r&&(e?t[w]=n:delete t[w]),i};var _=Object.prototype.toString;const C=function(t){return _.call(t)};var v=p?p.toStringTag:void 0;const y=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":v&&v in Object(t)?A(t):C(t)};const x=function(t){return null!=t&&"object"==typeof t};const E=function(t){return"symbol"==typeof t||x(t)&&"[object Symbol]"==y(t)};var B=/^[-+]0x[0-9a-f]+$/i,D=/^0b[01]+$/i,S=/^0o[0-7]+$/i,T=parseInt;const I=function(t){if("number"==typeof t)return t;if(E(t))return NaN;if(s(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=s(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=g(t);var n=D.test(t);return n||S.test(t)?T(t.slice(2),n?2:8):B.test(t)?NaN:+t};var P=Math.max,V=Math.min;const F=function(t,e,n){var r,i,o,a,l,c,h=0,u=!1,m=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=r,o=i;return r=i=void 0,h=e,a=t.apply(o,n)}function f(t){var n=t-c;return void 0===c||n>=e||n<0||m&&t-h>=o}function b(){var t=d();if(f(t))return k(t);l=setTimeout(b,function(t){var n=e-(t-c);return m?V(n,o-(t-h)):n}(t))}function k(t){return l=void 0,g&&r?p(t):(r=i=void 0,a)}function w(){var t=d(),n=f(t);if(r=arguments,i=this,c=t,n){if(void 0===l)return function(t){return h=t,l=setTimeout(b,e),u?p(t):a}(c);if(m)return clearTimeout(l),l=setTimeout(b,e),p(c)}return void 0===l&&(l=setTimeout(b,e)),a}return e=I(e)||0,s(n)&&(u=!!n.leading,o=(m="maxWait"in n)?P(I(n.maxWait)||0,e):o,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==l&&clearTimeout(l),h=0,r=c=i=l=void 0},w.flush=function(){return void 0===l?a:k(d())},w};const R=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return s(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),F(t,e,{leading:r,maxWait:e,trailing:i})};const L=function(t,e){return function(n){return t(e(n))}};const z=L(Object.getPrototypeOf,Object);var M=Function.prototype,N=Object.prototype,O=M.toString,H=N.hasOwnProperty,j=O.call(Object);const q=function(t){if(!x(t)||"[object Object]"!=y(t))return!1;var e=z(t);if(null===e)return!0;var n=H.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==j};const U=function(t){return x(t)&&1===t.nodeType&&!q(t)};const W=function(){this.__data__=[],this.size=0};const G=function(t,e){return t===e||t!=t&&e!=e};const K=function(t,e){for(var n=t.length;n--;)if(G(t[n][0],e))return n;return-1};var Z=Array.prototype.splice;const Y=function(t){var e=this.__data__,n=K(e,t);return!(n<0)&&(n==e.length-1?e.pop():Z.call(e,n,1),--this.size,!0)};const J=function(t){var e=this.__data__,n=K(e,t);return n<0?void 0:e[n][1]};const Q=function(t){return K(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=K(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}tt.prototype.clear=W,tt.prototype.delete=Y,tt.prototype.get=J,tt.prototype.has=Q,tt.prototype.set=X;const et=tt;const nt=function(){this.__data__=new et,this.size=0};const rt=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const it=function(t){return this.__data__.get(t)};const ot=function(t){return this.__data__.has(t)};const st=function(t){if(!s(t))return!1;var e=y(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const at=c["__core-js_shared__"];var lt=function(){var t=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const ct=function(t){return!!lt&&lt in t};var dt=Function.prototype.toString;const ht=function(t){if(null!=t){try{return dt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var ut=/^\[object .+?Constructor\]$/,mt=Function.prototype,gt=Object.prototype,pt=mt.toString,ft=gt.hasOwnProperty,bt=RegExp("^"+pt.call(ft).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const kt=function(t){return!(!s(t)||ct(t))&&(st(t)?bt:ut).test(ht(t))};const wt=function(t,e){return null==t?void 0:t[e]};const At=function(t,e){var n=wt(t,e);return kt(n)?n:void 0};const _t=At(c,"Map");const Ct=At(Object,"create");const vt=function(){this.__data__=Ct?Ct(null):{},this.size=0};const yt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var xt=Object.prototype.hasOwnProperty;const Et=function(t){var e=this.__data__;if(Ct){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return xt.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;return Ct?void 0!==e[t]:Bt.call(e,t)};const St=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ct&&void 0===e?"__lodash_hash_undefined__":e,this};function Tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Tt.prototype.clear=vt,Tt.prototype.delete=yt,Tt.prototype.get=Et,Tt.prototype.has=Dt,Tt.prototype.set=St;const It=Tt;const Pt=function(){this.size=0,this.__data__={hash:new It,map:new(_t||et),string:new It}};const Vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Ft=function(t,e){var n=t.__data__;return Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Rt=function(t){var e=Ft(this,t).delete(t);return this.size-=e?1:0,e};const Lt=function(t){return Ft(this,t).get(t)};const zt=function(t){return Ft(this,t).has(t)};const Mt=function(t,e){var n=Ft(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Nt.prototype.clear=Pt,Nt.prototype.delete=Rt,Nt.prototype.get=Lt,Nt.prototype.has=zt,Nt.prototype.set=Mt;const Ot=Nt;const Ht=function(t,e){var n=this.__data__;if(n instanceof et){var r=n.__data__;if(!_t||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ot(r)}return n.set(t,e),this.size=n.size,this};function jt(t){var e=this.__data__=new et(t);this.size=e.size}jt.prototype.clear=nt,jt.prototype.delete=rt,jt.prototype.get=it,jt.prototype.has=ot,jt.prototype.set=Ht;const qt=jt;const Ut=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const Wt=function(){try{var t=At(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const $t=function(t,e,n){"__proto__"==e&&Wt?Wt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Gt=Object.prototype.hasOwnProperty;const Kt=function(t,e,n){var r=t[e];Gt.call(t,e)&&G(r,n)&&(void 0!==n||e in t)||$t(t,e,n)};const Zt=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=r?r(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),i?$t(n,a,l):Kt(n,a,l)}return n};const Yt=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const Jt=function(t){return x(t)&&"[object Arguments]"==y(t)};var Qt=Object.prototype,Xt=Qt.hasOwnProperty,te=Qt.propertyIsEnumerable;const ee=Jt(function(){return arguments}())?Jt:function(t){return x(t)&&Xt.call(t,"callee")&&!te.call(t,"callee")};const ne=Array.isArray;const re=function(){return!1};var ie="object"==typeof exports&&exports&&!exports.nodeType&&exports,oe=ie&&"object"==typeof module&&module&&!module.nodeType&&module,se=oe&&oe.exports===ie?c.Buffer:void 0;const ae=(se?se.isBuffer:void 0)||re;var le=/^(?:0|[1-9]\d*)$/;const ce=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&le.test(t))&&t>-1&&t%1==0&&t<e};const de=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 ue=function(t){return x(t)&&de(t.length)&&!!he[y(t)]};const me=function(t){return function(e){return t(e)}};var ge="object"==typeof exports&&exports&&!exports.nodeType&&exports,pe=ge&&"object"==typeof module&&module&&!module.nodeType&&module,fe=pe&&pe.exports===ge&&a.process;const be=function(){try{var t=pe&&pe.require&&pe.require("util").types;return t||fe&&fe.binding&&fe.binding("util")}catch(t){}}();var ke=be&&be.isTypedArray;const we=ke?me(ke):ue;var Ae=Object.prototype.hasOwnProperty;const _e=function(t,e){var n=ne(t),r=!n&&ee(t),i=!n&&!r&&ae(t),o=!n&&!r&&!i&&we(t),s=n||r||i||o,a=s?Yt(t.length,String):[],l=a.length;for(var c in t)!e&&!Ae.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ce(c,l))||a.push(c);return a};var Ce=Object.prototype;const ve=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ce)};const ye=L(Object.keys,Object);var xe=Object.prototype.hasOwnProperty;const Ee=function(t){if(!ve(t))return ye(t);var e=[];for(var n in Object(t))xe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Be=function(t){return null!=t&&de(t.length)&&!st(t)};const De=function(t){return Be(t)?_e(t):Ee(t)};const Se=function(t,e){return t&&Zt(e,De(e),t)};const Te=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ie=Object.prototype.hasOwnProperty;const Pe=function(t){if(!s(t))return Te(t);var e=ve(t),n=[];for(var r in t)("constructor"!=r||!e&&Ie.call(t,r))&&n.push(r);return n};const Ve=function(t){return Be(t)?_e(t,!0):Pe(t)};const Fe=function(t,e){return t&&Zt(e,Ve(e),t)};var Re="object"==typeof exports&&exports&&!exports.nodeType&&exports,Le=Re&&"object"==typeof module&&module&&!module.nodeType&&module,ze=Le&&Le.exports===Re?c.Buffer:void 0,Me=ze?ze.allocUnsafe:void 0;const Ne=function(t,e){if(e)return t.slice();var n=t.length,r=Me?Me(n):new t.constructor(n);return t.copy(r),r};const Oe=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const He=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const je=function(){return[]};var qe=Object.prototype.propertyIsEnumerable,Ue=Object.getOwnPropertySymbols;const We=Ue?function(t){return null==t?[]:(t=Object(t),He(Ue(t),(function(e){return qe.call(t,e)})))}:je;const $e=function(t,e){return Zt(t,We(t),e)};const Ge=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const Ke=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ge(e,We(t)),t=z(t);return e}:je;const Ze=function(t,e){return Zt(t,Ke(t),e)};const Ye=function(t,e,n){var r=e(t);return ne(t)?r:Ge(r,n(t))};const Je=function(t){return Ye(t,De,We)};const Qe=function(t){return Ye(t,Ve,Ke)};const Xe=At(c,"DataView");const tn=At(c,"Promise");const en=At(c,"Set");const nn=At(c,"WeakMap");var rn="[object Map]",on="[object Promise]",sn="[object Set]",an="[object WeakMap]",ln="[object DataView]",cn=ht(Xe),dn=ht(_t),hn=ht(tn),un=ht(en),mn=ht(nn),gn=y;(Xe&&gn(new Xe(new ArrayBuffer(1)))!=ln||_t&&gn(new _t)!=rn||tn&&gn(tn.resolve())!=on||en&&gn(new en)!=sn||nn&&gn(new nn)!=an)&&(gn=function(t){var e=y(t),n="[object Object]"==e?t.constructor:void 0,r=n?ht(n):"";if(r)switch(r){case cn:return ln;case dn:return rn;case hn:return on;case un:return sn;case mn:return an}return e});const pn=gn;var fn=Object.prototype.hasOwnProperty;const bn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&fn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const kn=c.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new kn(e).set(new kn(t)),e};const An=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var _n=/\w*$/;const Cn=function(t){var e=new t.constructor(t.source,_n.exec(t));return e.lastIndex=t.lastIndex,e};var vn=p?p.prototype:void 0,yn=vn?vn.valueOf:void 0;const xn=function(t){return yn?Object(yn.call(t)):{}};const En=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Bn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return An(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return En(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Cn(t);case"[object Symbol]":return xn(t)}};var Dn=Object.create;const Sn=function(){function t(){}return function(e){if(!s(e))return{};if(Dn)return Dn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Tn=function(t){return"function"!=typeof t.constructor||ve(t)?{}:Sn(z(t))};const In=function(t){return x(t)&&"[object Map]"==pn(t)};var Pn=be&&be.isMap;const Vn=Pn?me(Pn):In;const Fn=function(t){return x(t)&&"[object Set]"==pn(t)};var Rn=be&&be.isSet;const Ln=Rn?me(Rn):Fn;var zn="[object Arguments]",Mn="[object Function]",Nn="[object Object]",On={};On[zn]=On["[object Array]"]=On["[object ArrayBuffer]"]=On["[object DataView]"]=On["[object Boolean]"]=On["[object Date]"]=On["[object Float32Array]"]=On["[object Float64Array]"]=On["[object Int8Array]"]=On["[object Int16Array]"]=On["[object Int32Array]"]=On["[object Map]"]=On["[object Number]"]=On[Nn]=On["[object RegExp]"]=On["[object Set]"]=On["[object String]"]=On["[object Symbol]"]=On["[object Uint8Array]"]=On["[object Uint8ClampedArray]"]=On["[object Uint16Array]"]=On["[object Uint32Array]"]=!0,On["[object Error]"]=On[Mn]=On["[object WeakMap]"]=!1;const Hn=function t(e,n,r,i,o,a){var l,c=1&n,d=2&n,h=4&n;if(r&&(l=o?r(e,i,o,a):r(e)),void 0!==l)return l;if(!s(e))return e;var u=ne(e);if(u){if(l=bn(e),!c)return Oe(e,l)}else{var m=pn(e),g=m==Mn||"[object GeneratorFunction]"==m;if(ae(e))return Ne(e,c);if(m==Nn||m==zn||g&&!o){if(l=d||g?{}:Tn(e),!c)return d?Ze(e,Fe(l,e)):$e(e,Se(l,e))}else{if(!On[m])return o?e:{};l=Bn(e,m,c)}}a||(a=new qt);var p=a.get(e);if(p)return p;a.set(e,l),Ln(e)?e.forEach((function(i){l.add(t(i,n,r,i,e,a))})):Vn(e)&&e.forEach((function(i,o){l.set(o,t(i,n,r,o,e,a))}));var f=u?void 0:(h?d?Qe:Je:d?Ve:De)(e);return Ut(f||e,(function(i,o){f&&(i=e[o=i]),Kt(l,o,t(i,n,r,o,e,a))})),l};const jn=function(t,e){return Hn(t,5,e="function"==typeof e?e:void 0)};class qn extends t{_editor=null;_lifecyclePromise=null;_throttledSave;_data;_lastDocumentVersion;_elementOrData;_initUsingData=!0;_editables={};_config;_excludedProps;constructor(t,e={}){super(e),this._throttledSave=R(this._save.bind(this),"number"==typeof e.saveInterval?e.saveInterval:5e3),t&&(this._creator=(e,n)=>t.create(e,n)),this._destructor=t=>t.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((t=>{console.error("An error happened during the editor destroying.",t)})).then((()=>{const t={},e=[],n=this._config.rootsAttributes||{},r={};for(const[i,o]of Object.entries(this._data.roots))o.isLoaded?(t[i]="",r[i]=n[i]||{}):e.push(i);const i={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:r,_watchdogInitialData:this._data};return delete i.initialData,i.extraPlugins.push(Un),this._initUsingData?this.create(t,i,i.context):U(this._elementOrData)?this.create(this._elementOrData,i,i.context):this.create(this._editables,i,i.context)})).then((()=>{this._fire("restart")}))}create(t=this._elementOrData,e=this._config,n){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then((()=>(super._startErrorHandling(),this._elementOrData=t,this._initUsingData="string"==typeof t||Object.keys(t).length>0&&"string"==typeof Object.values(t)[0],this._config=this._cloneEditorConfiguration(e)||{},this._config.context=n,this._creator(t,this._config)))).then((t=>{this._editor=t,t.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=t.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})).finally((()=>{this._lifecyclePromise=null})),this._lifecyclePromise}destroy(){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))).finally((()=>{this._lifecyclePromise=null})),this._lifecyclePromise}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling(),this._throttledSave.cancel();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)}))}_save(){const t=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=t}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){const t=this._editor,e=t.model.document.roots.filter((t=>t.isAttached()&&"$graveyard"!=t.rootName)),{plugins:n}=t,r=n.has("CommentsRepository")&&n.get("CommentsRepository"),i=n.has("TrackChanges")&&n.get("TrackChanges"),o={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};e.forEach((t=>{o.roots[t.rootName]={content:JSON.stringify(Array.from(t.getChildren())),attributes:JSON.stringify(Array.from(t.getAttributes())),isLoaded:t._isLoaded}}));for(const e of t.model.markers)e._affectsData&&(o.markers[e.name]={rangeJSON:e.getRange().toJSON(),usingOperation:e._managedUsingOperations,affectsData:e._affectsData});return r&&(o.commentThreads=JSON.stringify(r.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),i&&(o.suggestions=JSON.stringify(i.getSuggestions({toJSON:!0,skipNotAttached:!0}))),o}_getEditables(){const t={};for(const e of this.editor.model.document.getRootNames()){const n=this.editor.ui.getEditableElement(e);n&&(t[e]=n)}return t}_isErrorComingFromThisItem(t){return o(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return jn(t,((t,e)=>U(t)||"context"===e?t:void 0))}}class Un{editor;_data;constructor(t){this.editor=t,this._data=t.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",(t=>{t.stop(),this.editor.model.enqueueChange({isUndoable:!1},(t=>{this._restoreCollaborationData(),this._restoreEditorData(t)})),this.editor.data.fire("ready")}),{priority:999})}_createNode(t,e){if("name"in e){const n=t.createElement(e.name,e.attributes);if(e.children)for(const r of e.children)n._appendChild(this._createNode(t,r));return n}return t.createText(e.data,e.attributes)}_restoreEditorData(t){const e=this.editor;Object.entries(this._data.roots).forEach((([n,{content:r,attributes:i}])=>{const o=JSON.parse(r),s=JSON.parse(i),a=e.model.document.getRoot(n);for(const[e,n]of s)t.setAttribute(e,n,a);for(const e of o){const n=this._createNode(t,e);t.insert(n,a,"end")}})),Object.entries(this._data.markers).forEach((([n,r])=>{const{document:i}=e.model,{rangeJSON:{start:o,end:s},...a}=r,l=i.getRoot(o.root),c=t.createPositionFromPath(l,o.path,o.stickiness),d=t.createPositionFromPath(l,s.path,s.stickiness),h=t.createRange(c,d);t.addMarker(n,{range:h,...a})}))}_restoreCollaborationData(){const t=JSON.parse(this._data.commentThreads),e=JSON.parse(this._data.suggestions);t.forEach((t=>{const e=this.editor.config.get("collaboration.channelId"),n=this.editor.plugins.get("CommentsRepository");if(n.hasCommentThread(t.threadId)){n.getCommentThread(t.threadId).remove()}n.addCommentThread({channelId:e,...t})})),e.forEach((t=>{const e=this.editor.plugins.get("TrackChangesEditing");if(e.hasSuggestion(t.id)){e.getSuggestion(t.id).attributes=t.attributes}else e.addSuggestionData(t)}))}}const Wn=Symbol("MainQueueId");class $n extends t{_watchdogs=new Map;_watchdogConfig;_context=null;_contextProps=new Set;_actionQueues=new Gn;_contextConfig;_item;constructor(t,e={}){super(e),this._watchdogConfig=e,this._creator=e=>t.create(e),this._destructor=t=>t.destroy(),this._actionQueues.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}get context(){return this._context}create(t={}){return this._actionQueues.enqueue(Wn,(()=>(this._contextConfig=t,this._create())))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){const e=Kn(t);return Promise.all(e.map((t=>this._actionQueues.enqueue(t.id,(()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let e;if(this._watchdogs.has(t.id))throw new Error(`Item with the given id is already added: '${t.id}'.`);if("editor"===t.type)return e=new qn(null,this._watchdogConfig),e.setCreator(t.creator),e._setExcludedProperties(this._contextProps),t.destructor&&e.setDestructor(t.destructor),this._watchdogs.set(t.id,e),e.on("error",((n,{error:r,causesRestart:i})=>{this._fire("itemError",{itemId:t.id,error:r}),i&&this._actionQueues.enqueue(t.id,(()=>new Promise((n=>{const r=()=>{e.off("restart",r),this._fire("itemRestart",{itemId:t.id}),n()};e.on("restart",r)}))))})),e.create(t.sourceElementOrData,t.config,this._context);throw new Error(`Not supported item type: '${t.type}'.`)})))))}remove(t){const e=Kn(t);return Promise.all(e.map((t=>this._actionQueues.enqueue(t,(()=>{const e=this._getWatchdog(t);return this._watchdogs.delete(t),e.destroy()})))))}destroy(){return this._actionQueues.enqueue(Wn,(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueues.enqueue(Wn,(()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((t=>{console.error("An error happened during destroying the context or items.",t)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((t=>(this._context=t,this._contextProps=e(this._context),Promise.all(Array.from(this._watchdogs.values()).map((t=>(t._setExcludedProperties(this._contextProps),t.create(void 0,void 0,this._context))))))))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling();const t=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((t=>t.destroy()))).then((()=>this._destructor(t)))}))}_getWatchdog(t){const e=this._watchdogs.get(t);if(!e)throw new Error(`Item with the given id was not registered: ${t}.`);return e}_isErrorComingFromThisItem(t){for(const e of this._watchdogs.values())if(e._isErrorComingFromThisItem(t))return!1;return o(this._context,t.context)}}class Gn{_onEmptyCallbacks=[];_queues=new Map;_activeActions=0;onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===Wn;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());const r=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(Wn),this._queues.get(t)])).then(e),i=r.catch((()=>{}));return this._queues.set(t,i),r.finally((()=>{this._activeActions--,this._queues.get(t)===i&&0===this._activeActions&&this._onEmptyCallbacks.forEach((t=>t()))}))}}function Kn(t){return Array.isArray(t)?t:[t]}let Zn;try{Zn={window,document}}catch(t){Zn={window:{},document:{}}}const Yn=Zn;function Jn(){try{return navigator.userAgent.toLowerCase()}catch(t){return""}}const Qn=Jn(),Xn={isMac:tr(Qn),isWindows:er(Qn),isGecko:nr(Qn),isSafari:rr(Qn),isiOS:ir(Qn),isAndroid:or(Qn),isBlink:sr(Qn),get isMediaForcedColors(){return!!Yn.window.matchMedia&&Yn.window.matchMedia("(forced-colors: active)").matches},get isMotionReduced(){return!!Yn.window.matchMedia&&Yn.window.matchMedia("(prefers-reduced-motion)").matches},features:{isRegExpUnicodePropertySupported:ar()}};function tr(t){return t.indexOf("macintosh")>-1}function er(t){return t.indexOf("windows")>-1}function nr(t){return!!t.match(/gecko\/\d+/)}function rr(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}function ir(t){return!!t.match(/iphone|ipad/i)||tr(t)&&navigator.maxTouchPoints>0}function or(t){return t.indexOf("android")>-1}function sr(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}function ar(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}function lr(t,e,n,r){n=n||function(t,e){return t===e};const i=Array.isArray(t)?t:Array.prototype.slice.call(t),o=Array.isArray(e)?e:Array.prototype.slice.call(e),s=function(t,e,n){const r=cr(t,e,n);if(-1===r)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=dr(t,r),o=dr(e,r),s=cr(i,o,n),a=t.length-s,l=e.length-s;return{firstIndex:r,lastIndexOld:a,lastIndexNew:l}}(i,o,n),a=r?function(t,e){const{firstIndex:n,lastIndexOld:r,lastIndexNew:i}=t;if(-1===n)return Array(e).fill("equal");let o=[];n>0&&(o=o.concat(Array(n).fill("equal")));i-n>0&&(o=o.concat(Array(i-n).fill("insert")));r-n>0&&(o=o.concat(Array(r-n).fill("delete")));i<e&&(o=o.concat(Array(e-i).fill("equal")));return o}(s,o.length):function(t,e){const n=[],{firstIndex:r,lastIndexOld:i,lastIndexNew:o}=e;o-r>0&&n.push({index:r,type:"insert",values:t.slice(r,o)});i-r>0&&n.push({index:r+(o-r),type:"delete",howMany:i-r});return n}(o,s);return a}function cr(t,e,n){for(let r=0;r<Math.max(t.length,e.length);r++)if(void 0===t[r]||void 0===e[r]||!n(t[r],e[r]))return r;return-1}function dr(t,e){return t.slice(e).reverse()}function hr(t,e,n){n=n||function(t,e){return t===e};const r=t.length,i=e.length;if(r>200||i>200||r+i>300)return hr.fastDiff(t,e,n,!0);let o,s;if(i<r){const n=t;t=e,e=n,o="delete",s="insert"}else o="insert",s="delete";const a=t.length,l=e.length,c=l-a,d={},h={};function u(r){const i=(void 0!==h[r-1]?h[r-1]:-1)+1,c=void 0!==h[r+1]?h[r+1]:-1,u=i>c?-1:1;d[r+u]&&(d[r]=d[r+u].slice(0)),d[r]||(d[r]=[]),d[r].push(i>c?o:s);let m=Math.max(i,c),g=m-r;for(;g<a&&m<l&&n(t[g],e[m]);)g++,m++,d[r].push("equal");return m}let m,g=0;do{for(m=-g;m<c;m++)h[m]=u(m);for(m=c+g;m>c;m--)h[m]=u(m);h[c]=u(c),g++}while(h[c]!==l);return d[c].slice(1)}hr.fastDiff=lr;const ur=function(){return function t(){t.called=!0}};class mr{source;name;path;stop;off;return;constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=ur(),this.off=ur()}}const gr=new Array(256).fill("").map(((t,e)=>("0"+e.toString(16)).slice(-2)));function pr(){const[t,e,n,r]=crypto.getRandomValues(new Uint32Array(4));return"e"+gr[255&t]+gr[t>>8&255]+gr[t>>16&255]+gr[t>>24&255]+gr[255&e]+gr[e>>8&255]+gr[e>>16&255]+gr[e>>24&255]+gr[255&n]+gr[n>>8&255]+gr[n>>16&255]+gr[n>>24&255]+gr[255&r]+gr[r>>8&255]+gr[r>>16&255]+gr[r>>24&255]}const fr={get(t="normal"){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function br(t,e){const n=fr.get(e.priority);for(let r=0;r<t.length;r++)if(fr.get(t[r].priority)<n)return void t.splice(r,0,e);t.push(e)}class kr extends Error{context;data;constructor(t,e,n){super(function(t,e){const n=new WeakSet,r=(t,e)=>{if("object"==typeof e&&null!==e){if(n.has(e))return`[object ${e.constructor.name}]`;n.add(e)}return e},i=e?` ${JSON.stringify(e,r)}`:"",o=Ar(t);return t+i+o}(t,n)),this.name="CKEditorError",this.context=e,this.data=n}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new kr(t.message,e);throw n.stack=t.stack,n}}function wr(t,e){console.warn(..._r(t,e))}function Ar(t){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${t}`}function _r(t,e){const n=Ar(t);return e?[t,e,n]:[t,n]}const Cr="43.2.0",vr=new Date(2024,9,2);if(globalThis.CKEDITOR_VERSION)throw new kr("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=Cr;const yr=Symbol("listeningTo"),xr=Symbol("emitterId"),Er=Symbol("delegations"),Br=Dr(Object);function Dr(t){if(!t)return Br;return class extends t{on(t,e,n){this.listenTo(this,t,e,n)}once(t,e,n){let r=!1;this.listenTo(this,t,((t,...n)=>{r||(r=!0,t.off(),e.call(this,t,...n))}),n)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,n,r={}){let i,o;this[yr]||(this[yr]={});const s=this[yr];Tr(t)||Sr(t);const a=Tr(t);(i=s[a])||(i=s[a]={emitter:t,callbacks:{}}),(o=i.callbacks[e])||(o=i.callbacks[e]=[]),o.push(n),function(t,e,n,r,i){e._addEventListener?e._addEventListener(n,r,i):t._addEventListener.call(e,n,r,i)}(this,t,e,n,r)}stopListening(t,e,n){const r=this[yr];let i=t&&Tr(t);const o=r&&i?r[i]:void 0,s=o&&e?o.callbacks[e]:void 0;if(!(!r||t&&!o||e&&!s))if(n){Rr(this,t,e,n);-1!==s.indexOf(n)&&(1===s.length?delete o.callbacks[e]:Rr(this,t,e,n))}else if(s){for(;n=s.pop();)Rr(this,t,e,n);delete o.callbacks[e]}else if(o){for(e in o.callbacks)this.stopListening(t,e);delete r[i]}else{for(i in r)this.stopListening(r[i].emitter);delete this[yr]}}fire(t,...e){try{const n=t instanceof mr?t:new mr(this,t),r=n.name;let i=Vr(this,r);if(n.path.push(this),i){const t=[n,...e];i=Array.from(i);for(let e=0;e<i.length&&(i[e].callback.apply(this,t),n.off.called&&(delete n.off.called,this._removeEventListener(r,i[e].callback)),!n.stop.called);e++);}const o=this[Er];if(o){const t=o.get(r),i=o.get("*");t&&Fr(t,n,e),i&&Fr(i,n,e)}return n.return}catch(t){kr.rethrowUnexpectedError(t,this)}}delegate(...t){return{to:(e,n)=>{this[Er]||(this[Er]=new Map),t.forEach((t=>{const r=this[Er].get(t);r?r.set(e,n):this[Er].set(t,new Map([[e,n]]))}))}}}stopDelegating(t,e){if(this[Er])if(t)if(e){const n=this[Er].get(t);n&&n.delete(e)}else this[Er].delete(t);else this[Er].clear()}_addEventListener(t,e,n){!function(t,e){const n=Ir(t);if(n[e])return;let r=e,i=null;const o=[];for(;""!==r&&!n[r];)n[r]={callbacks:[],childEvents:[]},o.push(n[r]),i&&n[r].childEvents.push(i),i=r,r=r.substr(0,r.lastIndexOf(":"));if(""!==r){for(const t of o)t.callbacks=n[r].callbacks.slice();n[r].childEvents.push(i)}}(this,t);const r=Pr(this,t),i={callback:e,priority:fr.get(n.priority)};for(const t of r)br(t,i)}_removeEventListener(t,e){const n=Pr(this,t);for(const t of n)for(let n=0;n<t.length;n++)t[n].callback==e&&(t.splice(n,1),n--)}}}function Sr(t,e){t[xr]||(t[xr]=e||pr())}function Tr(t){return t[xr]}function Ir(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function Pr(t,e){const n=Ir(t)[e];if(!n)return[];let r=[n.callbacks];for(let e=0;e<n.childEvents.length;e++){const i=Pr(t,n.childEvents[e]);r=r.concat(i)}return r}function Vr(t,e){let n;return t._events&&(n=t._events[e])&&n.callbacks.length?n.callbacks:e.indexOf(":")>-1?Vr(t,e.substr(0,e.lastIndexOf(":"))):null}function Fr(t,e,n){for(let[r,i]of t){i?"function"==typeof i&&(i=i(e.name)):i=e.name;const t=new mr(e.source,i);t.path=[...e.path],r.fire(t,...n)}}function Rr(t,e,n,r){e._removeEventListener?e._removeEventListener(n,r):t._removeEventListener.call(e,n,r)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{Dr[t]=Br.prototype[t]}));const Lr=Symbol("observableProperties"),zr=Symbol("boundObservables"),Mr=Symbol("boundProperties"),Nr=Symbol("decoratedMethods"),Or=Symbol("decoratedOriginal"),Hr=jr(Dr());function jr(t){if(!t)return Hr;return class extends t{set(t,e){if(s(t))return void Object.keys(t).forEach((e=>{this.set(e,t[e])}),this);qr(this);const n=this[Lr];if(t in this&&!n.has(t))throw new kr("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(e){const r=n.get(t);let i=this.fire(`set:${t}`,t,e,r);void 0===i&&(i=e),r===i&&n.has(t)||(n.set(t,i),this.fire(`change:${t}`,t,i,r))}}),this[t]=e}bind(...t){if(!t.length||!$r(t))throw new kr("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new kr("observable-bind-duplicate-properties",this);qr(this);const e=this[Mr];t.forEach((t=>{if(e.has(t))throw new kr("observable-bind-rebind",this)}));const n=new Map;return t.forEach((t=>{const r={property:t,to:[]};e.set(t,r),n.set(t,r)})),{to:Ur,toMany:Wr,_observable:this,_bindProperties:t,_to:[],_bindings:n}}unbind(...t){if(!this[Lr])return;const e=this[Mr],n=this[zr];if(t.length){if(!$r(t))throw new kr("observable-unbind-wrong-properties",this);t.forEach((t=>{const r=e.get(t);r&&(r.to.forEach((([t,e])=>{const i=n.get(t),o=i[e];o.delete(r),o.size||delete i[e],Object.keys(i).length||(n.delete(t),this.stopListening(t,"change"))})),e.delete(t))}))}else n.forEach(((t,e)=>{this.stopListening(e,"change")})),n.clear(),e.clear()}decorate(t){qr(this);const e=this[t];if(!e)throw new kr("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,((t,n)=>{t.return=e.apply(this,n)})),this[t]=function(...e){return this.fire(t,e)},this[t][Or]=e,this[Nr]||(this[Nr]=[]),this[Nr].push(t)}stopListening(t,e,n){if(!t&&this[Nr]){for(const t of this[Nr])this[t]=this[t][Or];delete this[Nr]}super.stopListening(t,e,n)}[Lr];[Nr];[Mr];[zr]}}function qr(t){t[Lr]||(Object.defineProperty(t,Lr,{value:new Map}),Object.defineProperty(t,zr,{value:new Map}),Object.defineProperty(t,Mr,{value:new Map}))}function Ur(...t){const e=function(...t){if(!t.length)throw new kr("observable-bind-to-parse-error",null);const e={to:[]};let n;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach((t=>{if("string"==typeof t)n.properties.push(t);else{if("object"!=typeof t)throw new kr("observable-bind-to-parse-error",null);n={observable:t,properties:[]},e.to.push(n)}})),e}(...t),n=Array.from(this._bindings.keys()),r=n.length;if(!e.callback&&e.to.length>1)throw new kr("observable-bind-to-no-callback",this);if(r>1&&e.callback)throw new kr("observable-bind-to-extra-callback",this);var i;e.to.forEach((t=>{if(t.properties.length&&t.properties.length!==r)throw new kr("observable-bind-to-properties-length",this);t.properties.length||(t.properties=this._bindProperties)})),this._to=e.to,e.callback&&(this._bindings.get(n[0]).callback=e.callback),i=this._observable,this._to.forEach((t=>{const e=i[zr];let n;e.get(t.observable)||i.listenTo(t.observable,"change",((r,o)=>{n=e.get(t.observable)[o],n&&n.forEach((t=>{Gr(i,t.property)}))}))})),function(t){let e;t._bindings.forEach(((n,r)=>{t._to.forEach((i=>{e=i.properties[n.callback?0:t._bindProperties.indexOf(r)],n.to.push([i.observable,e]),function(t,e,n,r){const i=t[zr],o=i.get(n),s=o||{};s[r]||(s[r]=new Set);s[r].add(e),o||i.set(n,s)}(t._observable,n,i.observable,e)}))}))}(this),this._bindProperties.forEach((t=>{Gr(this._observable,t)}))}function Wr(t,e,n){if(this._bindings.size>1)throw new kr("observable-bind-to-many-not-one-binding",this);this.to(...function(t,e){const n=t.map((t=>[t,e]));return Array.prototype.concat.apply([],n)}(t,e),n)}function $r(t){return t.every((t=>"string"==typeof t))}function Gr(t,e){const n=t[Mr].get(e);let r;n.callback?r=n.callback.apply(t,n.to.map((t=>t[0][t[1]]))):(r=n.to[0],r=r[0][r[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=r:t.set(e,r)}function Kr(t){let e=0;for(const n of t)e++;return e}function Zr(t,e){const n=Math.min(t.length,e.length);for(let r=0;r<n;r++)if(t[r]!=e[r])return r;return t.length==e.length?"same":t.length<e.length?"prefix":"extension"}function Yr(t){return!(!t||!t[Symbol.iterator])}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{jr[t]=Hr.prototype[t]}));const Jr=function(t){return"string"==typeof t||!ne(t)&&x(t)&&"[object String]"==y(t)};function Qr(t,e,n={},r=[]){const i=n&&n.xmlns,o=i?t.createElementNS(i,e):t.createElement(e);for(const t in n)o.setAttribute(t,n[t]);!Jr(r)&&Yr(r)||(r=[r]);for(let e of r)Jr(e)&&(e=t.createTextNode(e)),o.appendChild(e);return o}class Xr{_config;constructor(t,e){this._config=Object.create(null),e&&this.define(ti(e)),t&&this._setObjectToTarget(this._config,t)}set(t,e){this._setToTarget(this._config,t,e)}define(t,e){this._setToTarget(this._config,t,e,!0)}get(t){return this._getFromSource(this._config,t)}*names(){for(const t of Object.keys(this._config))yield t}_setToTarget(t,e,n,r=!1){if(q(e))return void this._setObjectToTarget(t,e,r);const i=e.split(".");e=i.pop();for(const e of i)q(t[e])||(t[e]=Object.create(null)),t=t[e];if(q(n))return q(t[e])||(t[e]=Object.create(null)),t=t[e],void this._setObjectToTarget(t,n,r);r&&void 0!==t[e]||(t[e]=n)}_getFromSource(t,e){const n=e.split(".");e=n.pop();for(const e of n){if(!q(t[e])){t=null;break}t=t[e]}return t?ti(t[e]):void 0}_setObjectToTarget(t,e,n){Object.keys(e).forEach((r=>{this._setToTarget(t,r,e[r],n)}))}}function ti(t){return jn(t,ei)}function ei(t){return U(t)||"function"==typeof t?t:void 0}function ni(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 ri(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}const ii=oi(Dr());function oi(t){if(!t)return ii;return class extends t{listenTo(t,e,n,r={}){if(ni(t)||ri(t)){const i={capture:!!r.useCapture,passive:!!r.usePassive},o=this._getProxyEmitter(t,i)||new si(t,i);this.listenTo(o,e,n,r)}else super.listenTo(t,e,n,r)}stopListening(t,e,n){if(ni(t)||ri(t)){const r=this._getAllProxyEmitters(t);for(const t of r)this.stopListening(t,e,n)}else super.stopListening(t,e,n)}_getProxyEmitter(t,e){return function(t,e){const n=t[yr];return n&&n[e]?n[e].emitter:null}(this,ai(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=>{oi[t]=ii.prototype[t]}));class si extends(Dr()){_domNode;_options;constructor(t,e){super(),Sr(this,ai(t,e)),this._domNode=t,this._options=e}_domListeners;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,n){this.attach(t),Dr().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){Dr().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 ai(t,e){let n=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=pr())}(t);for(const t of Object.keys(e).sort())e[t]&&(n+="-"+t);return n}function li(t){const e=[];let n=t;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)e.unshift(n),n=n.parentNode;return e}function ci(t){return t instanceof HTMLTextAreaElement?t.value:t.innerHTML}function di(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)}}function hi(t){if(!t.target)return null;const e=t.target.ownerDocument,n=t.clientX,r=t.clientY;let i=null;return e.caretRangeFromPoint&&e.caretRangeFromPoint(n,r)?i=e.caretRangeFromPoint(n,r):t.rangeParent&&(i=e.createRange(),i.setStart(t.rangeParent,t.rangeOffset),i.collapse(!0)),i}function ui(t){return"[object Text]"==Object.prototype.toString.call(t)}function mi(t){return"[object Range]"==Object.prototype.toString.apply(t)}function gi(t){return t&&t.parentNode?t.offsetParent===Yn.document.body?null:t.offsetParent:null}const pi=["top","right","bottom","left","width","height"];class fi{top;right;bottom;left;width;height;_source;constructor(t){const e=mi(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),wi(t)||e)if(e){const e=fi.getDomRangeRects(t);bi(this,fi.getBoundingRect(e))}else bi(this,t.getBoundingClientRect());else if(ri(t)){const{innerWidth:e,innerHeight:n}=t;bi(this,{top:0,right:e,bottom:n,left:0,width:e,height:n})}else bi(this,t)}clone(){return new fi(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 fi(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(ki(t))return e;let n,r=t,i=t.parentNode||t.commonAncestorContainer;for(;i&&!ki(i);){const t="visible"===((o=i)instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).overflow:"visible");r instanceof HTMLElement&&"absolute"===Ai(r)&&(n=r);const s=Ai(i);if(t||n&&("relative"===s&&t||"relative"!==s)){r=i,i=i.parentNode;continue}const a=new fi(i),l=e.getIntersection(a);if(!l)return null;l.getArea()<e.getArea()&&(e=l),r=i,i=i.parentNode}var o;return e}isEqual(t){for(const e of pi)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}=Yn.window,n=this.clone().moveBy(t,e);if(wi(n._source)){const t=gi(n._source);t&&function(t,e){const n=new fi(e),r=di(e);let i=0,o=0;i-=n.left,o-=n.top,i+=e.scrollLeft,o+=e.scrollTop,i-=r.left,o-=r.top,t.moveBy(i,o)}(n,t)}return n}excludeScrollbarsAndBorders(){const t=this._source;let e,n,r;if(ri(t))e=t.innerWidth-t.document.documentElement.clientWidth,n=t.innerHeight-t.document.documentElement.clientHeight,r=t.getComputedStyle(t.document.documentElement).direction;else{const i=di(t);e=t.offsetWidth-t.clientWidth-i.left-i.right,n=t.offsetHeight-t.clientHeight-i.top-i.bottom,r=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===r?this.right-=e:this.left+=e,this.height-=n,this.bottom-=n,this}static getDomRangeRects(t){const e=[],n=Array.from(t.getClientRects());if(n.length)for(const t of n)e.push(new fi(t));else{let n=t.startContainer;ui(n)&&(n=n.parentNode);const r=new fi(n.getBoundingClientRect());r.right=r.left,r.width=0,e.push(r)}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 n=0;for(const r of t)n++,e.left=Math.min(e.left,r.left),e.top=Math.min(e.top,r.top),e.right=Math.max(e.right,r.right),e.bottom=Math.max(e.bottom,r.bottom);return 0==n?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new fi(e))}}function bi(t,e){for(const n of pi)t[n]=e[n]}function ki(t){return!!wi(t)&&t===t.ownerDocument.body}function wi(t){return null!==t&&"object"==typeof t&&1===t.nodeType&&"function"==typeof t.getBoundingClientRect}function Ai(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).position:"static"}class _i{_element;_callback;static _observerInstance=null;static _elementCallbacks=null;constructor(t,e){_i._observerInstance||_i._createObserver(),this._element=t,this._callback=e,_i._addElementCallback(t,e),_i._observerInstance.observe(t)}get element(){return this._element}destroy(){_i._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){_i._elementCallbacks||(_i._elementCallbacks=new Map);let n=_i._elementCallbacks.get(t);n||(n=new Set,_i._elementCallbacks.set(t,n)),n.add(e)}static _deleteElementCallback(t,e){const n=_i._getElementCallbacks(t);n&&(n.delete(e),n.size||(_i._elementCallbacks.delete(t),_i._observerInstance.unobserve(t))),_i._elementCallbacks&&!_i._elementCallbacks.size&&(_i._observerInstance=null,_i._elementCallbacks=null)}static _getElementCallbacks(t){return _i._elementCallbacks?_i._elementCallbacks.get(t):null}static _createObserver(){_i._observerInstance=new Yn.window.ResizeObserver((t=>{for(const e of t){const t=_i._getElementCallbacks(e.target);if(t)for(const n of t)n(e)}}))}}function Ci(t,e){t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}function vi(t){return e=>e+t}function yi(t){let e=0;for(;t.previousSibling;)t=t.previousSibling,e++;return e}function xi(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function Ei(t){return t&&t.nodeType===Node.COMMENT_NODE}function Bi(t){try{Yn.document.createAttribute(t)}catch(t){return!1}return!0}function Di(t){return!!t&&(ui(t)?Di(t.parentElement):!!t.getClientRects&&!!t.getClientRects().length)}function Si({element:t,target:e,positions:n,limiter:r,fitInViewport:i,viewportOffsetConfig:o}){st(e)&&(e=e()),st(r)&&(r=r());const s=gi(t),a=function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const e=new fi(Yn.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e}(o),l=new fi(t),c=Ti(e,a);let d;if(!c||!a.getIntersection(c))return null;const h={targetRect:c,elementRect:l,positionedElementAncestor:s,viewportRect:a};if(r||i){if(r){const t=Ti(r,a);t&&(h.limiterRect=t)}d=function(t,e){const{elementRect:n}=e,r=n.getArea(),i=t.map((t=>new Ii(t,e))).filter((t=>!!t.name));let o=0,s=null;for(const t of i){const{limiterIntersectionArea:e,viewportIntersectionArea:n}=t;if(e===r)return t;const i=n**2+e**2;i>o&&(o=i,s=t)}return s}(n,h)}else d=new Ii(n[0],h);return d}function Ti(t,e){const n=new fi(t).getVisible();return n?n.getIntersection(e):null}class Ii{name;config;_positioningFunctionCoordinates;_options;_cachedRect;_cachedAbsoluteRect;constructor(t,e){const n=t(e.targetRect,e.elementRect,e.viewportRect,e.limiterRect);if(!n)return;const{left:r,top:i,name:o,config:s}=n;this.name=o,this.config=s,this._positioningFunctionCoordinates={left:r,top:i},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;return t?t.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function Pi(t){const e=t.parentNode;e&&e.removeChild(t)}function Vi({target:t,viewportOffset:e=0,ancestorOffset:n=0,alignToTop:r,forceScroll:i}){const o=Oi(t);let s=o,a=null;for(e=function(t){if("number"==typeof t)return{top:t,bottom:t,left:t,right:t};return t}(e);s;){let l;l=Hi(s==o?t:a),Ri({parent:l,getRect:()=>ji(t,s),alignToTop:r,ancestorOffset:n,forceScroll:i});const c=ji(t,s);if(Fi({window:s,rect:c,viewportOffset:e,alignToTop:r,forceScroll:i}),s.parent!=s){if(a=s.frameElement,s=s.parent,!a)return}else s=null}}function Fi({window:t,rect:e,alignToTop:n,forceScroll:r,viewportOffset:i}){const o=e.clone().moveBy(0,i.bottom),s=e.clone().moveBy(0,-i.top),a=new fi(t).excludeScrollbarsAndBorders(),l=n&&r,c=[s,o].every((t=>a.contains(t)));let{scrollX:d,scrollY:h}=t;const u=d,m=h;l?h-=a.top-e.top+i.top:c||(zi(s,a)?h-=a.top-e.top+i.top:Li(o,a)&&(h+=n?e.top-a.top-i.top:e.bottom-a.bottom+i.bottom)),c||(Mi(e,a)?d-=a.left-e.left+i.left:Ni(e,a)&&(d+=e.right-a.right+i.right)),d==u&&h===m||t.scrollTo(d,h)}function Ri({parent:t,getRect:e,alignToTop:n,forceScroll:r,ancestorOffset:i=0,limiterElement:o}){const s=Oi(t),a=n&&r;let l,c,d;const h=o||s.document.body;for(;t!=h;)c=e(),l=new fi(t).excludeScrollbarsAndBorders(),d=l.contains(c),a?t.scrollTop-=l.top-c.top+i:d||(zi(c,l)?t.scrollTop-=l.top-c.top+i:Li(c,l)&&(t.scrollTop+=n?c.top-l.top-i:c.bottom-l.bottom+i)),d||(Mi(c,l)?t.scrollLeft-=l.left-c.left+i:Ni(c,l)&&(t.scrollLeft+=c.right-l.right+i)),t=t.parentNode}function Li(t,e){return t.bottom>e.bottom}function zi(t,e){return t.top<e.top}function Mi(t,e){return t.left<e.left}function Ni(t,e){return t.right>e.right}function Oi(t){return mi(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function Hi(t){if(mi(t)){let e=t.commonAncestorContainer;return ui(e)&&(e=e.parentNode),e}return t.parentNode}function ji(t,e){const n=Oi(t),r=new fi(t);if(n===e)return r;{let t=n;for(;t!=e;){const e=t.frameElement,n=new fi(e).excludeScrollbarsAndBorders();r.moveBy(n.left,n.top),t=t.parent}}return r}const qi={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Ui={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Wi={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},$i=Qi(),Gi=Object.fromEntries(Object.entries($i).map((([t,e])=>{let n;return n=e in Wi?Wi[e]:t.charAt(0).toUpperCase()+t.slice(1),[e,n]})));function Ki(t){let e;if("string"==typeof t){if(e=$i[t.toLowerCase()],!e)throw new kr("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?$i.alt:0)+(t.ctrlKey?$i.ctrl:0)+(t.shiftKey?$i.shift:0)+(t.metaKey?$i.cmd:0);return e}function Zi(t){return"string"==typeof t&&(t=function(t){return t.split("+").map((t=>t.trim()))}(t)),t.map((t=>"string"==typeof t?function(t){if(t.endsWith("!"))return Ki(t.slice(0,-1));const e=Ki(t);return(Xn.isMac||Xn.isiOS)&&e==$i.ctrl?$i.cmd:e}(t):t)).reduce(((t,e)=>e+t),0)}function Yi(t){let e=Zi(t);return Object.entries(Xn.isMac||Xn.isiOS?qi:Ui).reduce(((t,[n,r])=>(e&$i[n]&&(e&=~$i[n],t+=r),t)),"")+(e?Gi[e]:"")}function Ji(t,e){const n="ltr"===e;switch(t){case $i.arrowleft:return n?"left":"right";case $i.arrowright:return n?"right":"left";case $i.arrowup:return"up";case $i.arrowdown:return"down"}}function Qi(){const t={pageup:33,pagedown:34,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;return Object.assign(t,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),t}const Xi=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig"];function to(t){return Xi.includes(t)?"rtl":"ltr"}function eo(t){return Array.isArray(t)?t:[t]}const no=function(t,e,n){(void 0!==n&&!G(t[e],n)||void 0===n&&!(e in t))&&$t(t,e,n)};const ro=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(o[l],l,o))break}return e}}();const io=function(t){return x(t)&&Be(t)};const oo=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};const so=function(t){return Zt(t,Ve(t))};const ao=function(t,e,n,r,i,o,a){var l=oo(t,n),c=oo(e,n),d=a.get(c);if(d)no(t,n,d);else{var h=o?o(l,c,n+"",t,e,a):void 0,u=void 0===h;if(u){var m=ne(c),g=!m&&ae(c),p=!m&&!g&&we(c);h=c,m||g||p?ne(l)?h=l:io(l)?h=Oe(l):g?(u=!1,h=Ne(c,!0)):p?(u=!1,h=En(c,!0)):h=[]:q(c)||ee(c)?(h=l,ee(l)?h=so(l):s(l)&&!st(l)||(h=Tn(c))):u=!1}u&&(a.set(c,h),i(h,c,r,o,a),a.delete(c)),no(t,n,h)}};const lo=function t(e,n,r,i,o){e!==n&&ro(n,(function(a,l){if(o||(o=new qt),s(a))ao(e,n,l,r,t,i,o);else{var c=i?i(oo(e,l),a,l+"",e,n,o):void 0;void 0===c&&(c=a),no(e,l,c)}}),Ve)};const co=function(t){return t};const ho=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var uo=Math.max;const mo=function(t,e,n){return e=uo(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=uo(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(s),ho(t,this,a)}};const go=function(t){return function(){return t}};const po=Wt?function(t,e){return Wt(t,"toString",{configurable:!0,enumerable:!1,value:go(e),writable:!0})}:co;var fo=Date.now;const bo=function(t){var e=0,n=0;return function(){var r=fo(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const ko=bo(po);const wo=function(t,e){return ko(mo(t,e,co),t+"")};const Ao=function(t,e,n){if(!s(n))return!1;var r=typeof e;return!!("number"==r?Be(n)&&ce(e,n.length):"string"==r&&e in n)&&G(n[e],t)};const _o=function(t){return wo((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,s&&Ao(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e}))};const Co=_o((function(t,e,n){lo(t,e,n)}));function vo(t,e,n=1,r){if("number"!=typeof n)throw new kr("translation-service-quantity-not-a-number",null,{quantity:n});const i=r||Yn.window.CKEDITOR_TRANSLATIONS,o=function(t){return Object.keys(t).length}(i);1===o&&(t=Object.keys(i)[0]);const s=e.id||e.string;if(0===o||!function(t,e,n){return!!n[t]&&!!n[t].dictionary[e]}(t,s,i))return 1!==n?e.plural:e.string;const a=i[t].dictionary,l=i[t].getPluralForm||(t=>1===t?0:1),c=a[s];if("string"==typeof c)return c;return c[Number(l(n))]}Yn.window.CKEDITOR_TRANSLATIONS||(Yn.window.CKEDITOR_TRANSLATIONS={});class yo{uiLanguage;uiLanguageDirection;contentLanguage;contentLanguageDirection;t;translations;constructor({uiLanguage:t="en",contentLanguage:e,translations:n}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=to(this.uiLanguage),this.contentLanguageDirection=to(this.contentLanguage),this.translations=function(t){return Array.isArray(t)?t.reduce(((t,e)=>Co(t,e))):t}(n),this.t=(t,e)=>this._t(t,e)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){e=eo(e),"string"==typeof t&&(t={string:t});const n=!!t.plural?e[0]:1;return function(t,e){return t.replace(/%(\d+)/g,((t,n)=>n<e.length?e[n]:t))}(vo(this.uiLanguage,t,n,this.translations),e)}}class xo extends(Dr()){_items;_itemMap;_idProperty;_bindToCollection;_bindToExternalToInternalMap;_bindToInternalToExternalMap;_skippedIndexesFromExternal;constructor(t={},e={}){super();const n=Yr(t);if(n||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const e of t)this._items.push(e),this._itemMap.set(this._getItemIdBeforeAdding(e),e)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}addMany(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new kr("collection-add-item-invalid-index",this);let n=0;for(const r of t){const t=this._getItemIdBeforeAdding(r),i=e+n;this._items.splice(i,0,r),this._itemMap.set(t,r),this.fire("add",r,i),n++}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 kr("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,n]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:n}),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 kr("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,n=(n,r,i)=>{const o=e._bindToCollection==this,s=e._bindToInternalToExternalMap.get(r);if(o&&s)this._bindToExternalToInternalMap.set(r,s),this._bindToInternalToExternalMap.set(s,r);else{const n=t(r);if(!n)return void this._skippedIndexesFromExternal.push(i);let o=i;for(const t of this._skippedIndexesFromExternal)i>t&&o--;for(const t of e._skippedIndexesFromExternal)o>=t&&o++;this._bindToExternalToInternalMap.set(r,n),this._bindToInternalToExternalMap.set(n,r),this.add(n,o);for(let t=0;t<e._skippedIndexesFromExternal.length;t++)o<=e._skippedIndexesFromExternal[t]&&e._skippedIndexesFromExternal[t]++}};for(const t of e)n(0,t,e.getIndex(t));this.listenTo(e,"add",n),this.listenTo(e,"remove",((t,e,n)=>{const r=this._bindToExternalToInternalMap.get(e);r&&this.remove(r),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((t,e)=>(n<e&&t.push(e-1),n>e&&t.push(e),t)),[])}))}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],"string"!=typeof n)throw new kr("collection-add-invalid-id",this);if(this.get(n))throw new kr("collection-add-item-already-exists",this)}else t[e]=n=pr();return n}_remove(t){let e,n,r,i=!1;const o=this._idProperty;if("string"==typeof t?(n=t,r=this._itemMap.get(n),i=!r,r&&(e=this._items.indexOf(r))):"number"==typeof t?(e=t,r=this._items[e],i=!r,r&&(n=r[o])):(r=t,n=r[o],e=this._items.indexOf(r),i=-1==e||!this._itemMap.get(n)),i)throw new kr("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const s=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(s),this.fire("remove",r,e),[r,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Eo(t){const e=t.next();return e.done?null:e.value}class Bo extends(oi(jr())){_elements=new Set;_nextEventLoopTimeout=null;constructor(){super(),this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}add(t){if(this._elements.has(t))throw new kr("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",(()=>this._focus(t)),{useCapture:!0}),this.listenTo(t,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}class Do{_listener;constructor(){this._listener=new(oi())}listenTo(t){this._listener.listenTo(t,"keydown",((t,e)=>{this._listener.fire("_keydown:"+Ki(e),e)}))}set(t,e,n={}){const r=Zi(t),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+r,((t,r)=>{n.filter&&!n.filter(r)||(e(r,(()=>{r.preventDefault(),r.stopPropagation(),t.stop()})),t.return=!0)}),{priority:i})}press(t){return!!this._listener.fire("_keydown:"+Ki(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function So(t){return Yr(t)?new Map(t):function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}(t)}function To(t,e){let n;function r(...i){r.cancel(),n=setTimeout((()=>t(...i)),e)}return r.cancel=()=>{clearTimeout(n)},r}function Io(t,e){return!!(n=t.charAt(e-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t)}(t.charAt(e));var n}function Po(t,e){return!!(n=t.charAt(e))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}const Vo=Ro();function Fo(t,e){const n=String(t).matchAll(Vo);return Array.from(n).some((t=>t.index<e&&e<t.index+t[0].length))}function Ro(){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("|")+")";return new RegExp(`${t}|${e}(?:${e})*`,"ug")}class Lo extends(jr()){editor;_disableStack=new Set;constructor(t){super(),this.editor=t,this.set("isEnabled",!0)}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",zo,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",zo),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function zo(t){t.return=!1,t.stop()}class Mo extends(jr()){editor;_isEnabledBasedOnSelection;_affectsData;_disableStack;constructor(t){super(),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.listenTo(t,"change:isReadOnly",(()=>{this.refresh()})),this.on("set:isEnabled",(e=>{if(!this.affectsData)return;const n=t.model.document.selection,r=!("$graveyard"==n.getFirstPosition().root.rootName)&&t.model.canEditAt(n);(t.isReadOnly||this._isEnabledBasedOnSelection&&!r)&&(e.return=!1,e.stop())}),{priority:"highest"}),this.on("execute",(t=>{this.isEnabled||t.stop()}),{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(t){this._affectsData=t}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",No,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",No),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function No(t){t.return=!1,t.stop()}class Oo extends Mo{_childCommandsDefinitions=[];refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){br(this._childCommandsDefinitions,{command:t,priority:e.priority||"normal"}),t.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const t=this._childCommandsDefinitions.find((({command:t})=>t.isEnabled));return t&&t.command}}class Ho extends(Dr()){_context;_plugins=new Map;_availablePlugins;_contextPlugins;constructor(t,e=[],n=[]){super(),this._context=t,this._availablePlugins=new Map;for(const t of e)t.pluginName&&this._availablePlugins.set(t.pluginName,t);this._contextPlugins=new Map;for(const[t,e]of n)this._contextPlugins.set(t,e),this._contextPlugins.set(e,t),t.pluginName&&this._availablePlugins.set(t.pluginName,t)}*[Symbol.iterator](){for(const t of this._plugins)"function"==typeof t[0]&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){let e=t;throw"function"==typeof t&&(e=t.pluginName||t.name),new kr("plugincollection-plugin-not-loaded",this._context,{plugin:e})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const r=this,i=this._context;!function t(e,n=new Set){e.forEach((e=>{a(e)&&(n.has(e)||(n.add(e),e.pluginName&&!r._availablePlugins.has(e.pluginName)&&r._availablePlugins.set(e.pluginName,e),e.requires&&t(e.requires,n)))}))}(t),h(t);const o=[...function t(e,n=new Set){return e.map((t=>a(t)?t:r._availablePlugins.get(t))).reduce(((e,r)=>n.has(r)?e:(n.add(r),r.requires&&(h(r.requires,r),t(r.requires,n).forEach((t=>e.add(t)))),e.add(r))),new Set)}(t.filter((t=>!c(t,e))))];!function(t,e){for(const n of e){if("function"!=typeof n)throw new kr("plugincollection-replace-plugin-invalid-type",null,{pluginItem:n});const e=n.pluginName;if(!e)throw new kr("plugincollection-replace-plugin-missing-name",null,{pluginItem:n});if(n.requires&&n.requires.length)throw new kr("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:e});const i=r._availablePlugins.get(e);if(!i)throw new kr("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:e});const o=t.indexOf(i);if(-1===o){if(r._contextPlugins.has(i))return;throw new kr("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:e})}if(i.requires&&i.requires.length)throw new kr("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:e});t.splice(o,1,n),r._availablePlugins.set(e,n)}}(o,n);const s=o.map((t=>{let e=r._contextPlugins.get(t);return e=e||new t(i),r._add(t,e),e}));return u(s,"init").then((()=>u(s,"afterInit"))).then((()=>s));function a(t){return"function"==typeof t}function l(t){return a(t)&&!!t.isContextPlugin}function c(t,e){return e.some((e=>e===t||(d(t)===e||d(e)===t)))}function d(t){return a(t)?t.pluginName||t.name:t}function h(t,n=null){t.map((t=>a(t)?t:r._availablePlugins.get(t)||t)).forEach((t=>{!function(t,e){if(a(t))return;if(e)throw new kr("plugincollection-soft-required",i,{missingPlugin:t,requiredBy:d(e)});throw new kr("plugincollection-plugin-not-found",i,{plugin:t})}(t,n),function(t,e){if(!l(e))return;if(l(t))return;throw new kr("plugincollection-context-required",i,{plugin:d(t),requiredBy:d(e)})}(t,n),function(t,n){if(!n)return;if(!c(t,e))return;throw new kr("plugincollection-required",i,{plugin:d(t),requiredBy:d(n)})}(t,n)}))}function u(t,e){return t.reduce(((t,n)=>n[e]?r._contextPlugins.has(n)?t:t.then(n[e].bind(n)):t),Promise.resolve())}}destroy(){const t=[];for(const[,e]of this)"function"!=typeof e.destroy||this._contextPlugins.has(e)||t.push(e.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;if(n){if(this._plugins.has(n))throw new kr("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}class jo{config;plugins;locale;t;editors;static defaultConfig;static builtinPlugins;_contextOwner=null;constructor(t){const{translations:e,...n}=t||{};this.config=new Xr(n,this.constructor.defaultConfig);const r=this.constructor.builtinPlugins;this.config.define("plugins",r),this.plugins=new Ho(this,r);const i=this.config.get("language")||{};this.locale=new yo({uiLanguage:"string"==typeof i?i:i.ui,contentLanguage:this.config.get("language.content"),translations:e}),this.t=this.locale.t,this.editors=new xo}initPlugins(){const t=this.config.get("plugins")||[],e=this.config.get("substitutePlugins")||[];for(const n of t.concat(e)){if("function"!=typeof n)throw new kr("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new kr("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(t,[],e)}destroy(){return Promise.all(Array.from(this.editors,(t=>t.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(t,e){if(this._contextOwner)throw new kr("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}_removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}_getEditorConfig(){const t={};for(const e of this.config.names())["plugins","removePlugins","extraPlugins"].includes(e)||(t[e]=this.config.get(e));return t}static create(t){return new Promise((e=>{const n=new this(t);e(n.initPlugins().then((()=>n)))}))}}class qo extends(jr()){context;constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class Uo extends Do{editor;constructor(t){super(),this.editor=t}set(t,e,n={}){if("string"==typeof e){const t=e;e=(e,n)=>{this.editor.execute(t),n()}}super.set(t,e,n)}}var Wo=n(2591),$o=n.n(Wo),Go=n(4098),Ko={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Go.A,Ko);Go.A.locals;const Zo=new WeakMap;let Yo=!1;function Jo({view:t,element:e,text:n,isDirectHost:r=!0,keepOnFocus:i=!1}){const o=t.document;function s(n){Zo.get(o).set(e,{text:n,isDirectHost:r,keepOnFocus:i,hostElement:r?e:null}),t.change((t=>Xo(o,t)))}Zo.has(o)||(Zo.set(o,new Map),o.registerPostFixer((t=>Xo(o,t))),o.on("change:isComposing",(()=>{t.change((t=>Xo(o,t)))}),{priority:"high"})),e.is("editableElement")&&e.on("change:placeholder",((t,e,n)=>{s(n)})),e.placeholder?s(e.placeholder):n&&s(n),n&&function(){Yo||wr("enableplaceholder-deprecated-text-option");Yo=!0}()}function Qo(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}function Xo(t,e){const n=Zo.get(t),r=[];let i=!1;for(const[t,o]of n)o.isDirectHost&&(r.push(t),ts(e,t,o)&&(i=!0));for(const[t,o]of n){if(o.isDirectHost)continue;const n=es(t);n&&(r.includes(n)||(o.hostElement=n,ts(e,t,o)&&(i=!0)))}return i}function ts(t,e,n){const{text:r,isDirectHost:i,hostElement:o}=n;let s=!1;o.getAttribute("data-placeholder")!==r&&(t.setAttribute("data-placeholder",r,o),s=!0);return(i||1==e.childCount)&&function(t,e){if(!t.isAttached())return!1;if(Array.from(t.getChildren()).some((t=>!t.is("uiElement"))))return!1;const n=t.document,r=n.selection.anchor;return!(n.isComposing&&r&&r.parent===t||!e&&n.isFocused&&(!r||r.parent===t))}(o,n.keepOnFocus)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,o)&&(s=!0):Qo(t,o)&&(s=!0),s}function es(t){if(t.childCount){const e=t.getChild(0);if(e.is("element")&&!e.is("uiElement")&&!e.is("attributeElement"))return e}return null}class ns{is(){throw new Error("is() method is abstract")}}const rs=function(t){return Hn(t,4)};class is extends(Dr(ns)){document;parent;constructor(t){super(),this.document=t,this.parent=null}get index(){let t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new kr("view-node-not-found-in-parent",this);return t}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),r=t.getAncestors(e);let i=0;for(;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),r=Zr(e,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return e[r]<n[r]}}isAfter(t){return this!=t&&(this.root===t.root&&!this.isBefore(t))}_remove(){this.parent._removeChildren(this.index)}_fireChange(t,e){this.fire(`change:${t}`,e),this.parent&&this.parent._fireChange(t,e)}toJSON(){const t=rs(this);return delete t.parent,t}}is.prototype.is=function(t){return"node"===t||"view:node"===t};class os extends is{_textData;constructor(t,e){super(t),this._textData=e}get data(){return this._textData}get _data(){return this.data}set _data(t){this._fireChange("text",this),this._textData=t}isSimilar(t){return t instanceof os&&(this===t||this.data===t.data)}_clone(){return new os(this.document,this.data)}}os.prototype.is=function(t){return"$text"===t||"view:$text"===t||"text"===t||"view:text"===t||"node"===t||"view:node"===t};class ss extends ns{textNode;data;offsetInText;constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.data.length)throw new kr("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new kr("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(t={}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}ss.prototype.is=function(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t};class as{_patterns=[];constructor(...t){this.add(...t)}add(...t){for(let e of t)("string"==typeof e||e instanceof RegExp)&&(e={name:e}),this._patterns.push(e)}match(...t){for(const e of t)for(const t of this._patterns){const n=ls(e,t);if(n)return{element:e,pattern:t,match:n}}return null}matchAll(...t){const e=[];for(const n of t)for(const t of this._patterns){const r=ls(n,t);r&&e.push({element:n,pattern:t,match:r})}return e.length>0?e:null}getElementName(){if(1!==this._patterns.length)return null;const t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}function ls(t,e){if("function"==typeof e)return e(t);const n={};return e.name&&(n.name=function(t,e){if(t instanceof RegExp)return!!e.match(t);return t===e}(e.name,t.name),!n.name)||e.attributes&&(n.attributes=function(t,e){const n=new Set(e.getAttributeKeys());q(t)?(void 0!==t.style&&wr("matcher-pattern-deprecated-attributes-style-key",t),void 0!==t.class&&wr("matcher-pattern-deprecated-attributes-class-key",t)):(n.delete("style"),n.delete("class"));return cs(t,n,(t=>e.getAttribute(t)))}(e.attributes,t),!n.attributes)||e.classes&&(n.classes=function(t,e){return cs(t,e.getClassNames(),(()=>{}))}(e.classes,t),!n.classes)||e.styles&&(n.styles=function(t,e){return cs(t,e.getStyleNames(!0),(t=>e.getStyle(t)))}(e.styles,t),!n.styles)?null:n}function cs(t,e,n){const r=function(t){if(Array.isArray(t))return t.map((t=>q(t)?(void 0!==t.key&&void 0!==t.value||wr("matcher-pattern-missing-key-or-value",t),[t.key,t.value]):[t,!0]));if(q(t))return Object.entries(t);return[[t,!0]]}(t),i=Array.from(e),o=[];if(r.forEach((([t,e])=>{i.forEach((r=>{(function(t,e){return!0===t||t===e||t instanceof RegExp&&e.match(t)})(t,r)&&function(t,e,n){if(!0===t)return!0;const r=n(e);return t===r||t instanceof RegExp&&!!String(r).match(t)}(e,r,n)&&o.push(r)}))})),r.length&&!(o.length<r.length))return o}var ds=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hs=/^\w*$/;const us=function(t,e){if(ne(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!E(t))||(hs.test(t)||!ds.test(t)||null!=e&&t in Object(e))};function ms(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(ms.Cache||Ot),n}ms.Cache=Ot;const gs=ms;const ps=function(t){var e=gs(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e};var fs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bs=/\\(\\)?/g,ks=ps((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(fs,(function(t,n,r,i){e.push(r?i.replace(bs,"$1"):n||t)})),e}));const ws=ks;const As=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var _s=p?p.prototype:void 0,Cs=_s?_s.toString:void 0;const vs=function t(e){if("string"==typeof e)return e;if(ne(e))return As(e,t)+"";if(E(e))return Cs?Cs.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};const ys=function(t){return null==t?"":vs(t)};const xs=function(t,e){return ne(t)?t:us(t,e)?[t]:ws(ys(t))};const Es=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Bs=function(t){if("string"==typeof t||E(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};const Ds=function(t,e){for(var n=0,r=(e=xs(e,t)).length;null!=t&&n<r;)t=t[Bs(e[n++])];return n&&n==r?t:void 0};const Ss=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const Ts=function(t,e){return e.length<2?t:Ds(t,Ss(e,0,-1))};const Is=function(t,e){return e=xs(e,t),null==(t=Ts(t,e))||delete t[Bs(Es(e))]};const Ps=function(t,e){return null==t||Is(t,e)};const Vs=function(t,e,n){var r=null==t?void 0:Ds(t,e);return void 0===r?n:r};const Fs=function(t,e,n,r){if(!s(t))return t;for(var i=-1,o=(e=xs(e,t)).length,a=o-1,l=t;null!=l&&++i<o;){var c=Bs(e[i]),d=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=a){var h=l[c];void 0===(d=r?r(h,c,l):void 0)&&(d=s(h)?h:ce(e[i+1])?[]:{})}Kt(l,c,d),l=l[c]}return t};const Rs=function(t,e,n){return null==t?t:Fs(t,e,n)};class Ls{_styles;_styleProcessor;constructor(t){this._styles={},this._styleProcessor=t}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(t){this.clear();const e=function(t){let e=null,n=0,r=0,i=null;const o=new Map;if(""===t)return o;";"!=t.charAt(t.length-1)&&(t+=";");for(let s=0;s<t.length;s++){const a=t.charAt(s);if(null===e)switch(a){case":":i||(i=t.substr(n,s-n),r=s+1);break;case'"':case"'":e=a;break;case";":{const e=t.substr(r,s-r);i&&o.set(i.trim(),e.trim()),i=null,n=s+1;break}}else a===e&&(e=null)}return o}(t);for(const[t,n]of e)this._styleProcessor.toNormalizedForm(t,n,this._styles)}has(t){if(this.isEmpty)return!1;const e=this._styleProcessor.getReducedForm(t,this._styles).find((([e])=>e===t));return Array.isArray(e)}set(t,e){if(s(t))for(const[e,n]of Object.entries(t))this._styleProcessor.toNormalizedForm(e,n,this._styles);else this._styleProcessor.toNormalizedForm(t,e,this._styles)}remove(t){const e=Ms(t);Ps(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles)}toString(){return this.isEmpty?"":this.getStylesEntries().map((t=>t.join(":"))).sort().join(";")+";"}getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!s(this._styles[t]))return this._styles[t];const e=this._styleProcessor.getReducedForm(t,this._styles).find((([e])=>e===t));return Array.isArray(e)?e[1]:void 0}getStyleNames(t=!1){if(this.isEmpty)return[];if(t)return this._styleProcessor.getStyleNames(this._styles);return this.getStylesEntries().map((([t])=>t))}clear(){this._styles={}}getStylesEntries(){const t=[],e=Object.keys(this._styles);for(const n of e)t.push(...this._styleProcessor.getReducedForm(n,this._styles));return t}_cleanEmptyObjectsOnPath(t){const e=t.split(".");if(!(e.length>1))return;const n=e.splice(0,e.length-1).join("."),r=Vs(this._styles,n);if(!r)return;!Object.keys(r).length&&this.remove(n)}}class zs{_normalizers;_extractors;_reducers;_consumables;constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(s(e))Ns(n,Ms(t),e);else if(this._normalizers.has(t)){const r=this._normalizers.get(t),{path:i,value:o}=r(e);Ns(n,i,o)}else Ns(n,t,e)}getNormalized(t,e){if(!t)return Co({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){const n=this._extractors.get(t);if("string"==typeof n)return Vs(e,n);const r=n(t,e);if(r)return r}return Vs(e,Ms(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);if(void 0===n)return[];if(this._reducers.has(t)){return this._reducers.get(t)(n)}return[[t,n]]}getStyleNames(t){const e=new Set;for(const n of this._consumables.keys()){const r=this.getNormalized(n,t);r&&("object"!=typeof r||Object.keys(r).length)&&e.add(n)}for(const n of Object.keys(t))e.add(n);return Array.from(e)}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function Ms(t){return t.replace("-",".")}function Ns(t,e,n){let r=n;s(n)&&(r=Co({},Vs(t,e),n)),Rs(t,e,r)}class Os extends is{name;_unsafeAttributesToRender=[];_attrs;_children;_classes;_styles;_customProperties=new Map;constructor(t,e,n,r){if(super(t),this.name=e,this._attrs=function(t){const e=So(t);for(const[t,n]of e)null===n?e.delete(t):"string"!=typeof n&&e.set(t,String(n));return e}(n),this._children=[],r&&this._insertChild(0,r),this._classes=new Set,this._attrs.has("class")){const t=this._attrs.get("class");Hs(this._classes,t),this._attrs.delete("class")}this._styles=new Ls(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style"))}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if("class"==t)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==t){const t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(t)}hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof Os))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(t){return this._styles.getStyleNames(t)}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new as(...t);let n=this.parent;for(;n&&!n.is("documentFragment");){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map((t=>`${t[0]}="${t[1]}"`)).sort().join(" ");return this.name+(""==t?"":` class="${t}"`)+(e?` style="${e}"`:"")+(""==n?"":` ${n}`)}shouldRenderUnsafeAttribute(t){return this._unsafeAttributesToRender.includes(t)}_clone(t=!1){const e=[];if(t)for(const n of this.getChildren())e.push(n._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const r=function(t,e){if("string"==typeof e)return[new os(t,e)];Yr(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new os(t,e):e instanceof ss?new os(t,e.data):e))}(this.document,e);for(const e of r)null!==e.parent&&e._remove(),e.parent=this,e.document=this.document,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_setAttribute(t,e){const n=String(e);this._fireChange("attributes",this),"class"==t?Hs(this._classes,n):"style"==t?this._styles.setTo(n):this._attrs.set(t,n)}_removeAttribute(t){return this._fireChange("attributes",this),"class"==t?this._classes.size>0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of eo(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of eo(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),"string"!=typeof t?this._styles.set(t):this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of eo(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function Hs(t,e){const n=e.split(/\s+/);t.clear(),n.forEach((e=>t.add(e)))}Os.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t};class js extends Os{constructor(t,e,n,r){super(t,e,n,r),this.getFillerOffset=qs}}function qs(){const t=[...this.getChildren()],e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;for(const e of t)if(!e.is("uiElement"))return null;return this.childCount}js.prototype.is=function(t,e){return e?e===this.name&&("containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class Us extends(jr(js)){constructor(t,e,n,r){super(t,e,n,r),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",(e=>e&&t.selection.editableElement==this)),this.listenTo(t.selection,"change",(()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this}))}destroy(){this.stopListening()}}Us.prototype.is=function(t,e){return e?e===this.name&&("editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};const Ws=Symbol("rootName");class $s extends Us{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(Ws)}set rootName(t){this._setCustomProperty(Ws,t)}set _name(t){this.name=t}}$s.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class Gs{direction;boundaries;singleCharacters;shallow;ignoreElementEnd;_position;_boundaryStartParent;_boundaryEndParent;constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new kr("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new kr("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this._position=Ks._createAt(t.startPosition):this._position=Ks._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n;do{n=this.position,e=this.next()}while(!e.done&&t(e.value));e.done||(this._position=n)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let r;if(n instanceof os){if(t.isAtEnd)return this._position=Ks._createAfter(n),this._next();r=n.data[t.offset]}else r=n.getChild(t.offset);if(r instanceof Os){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t=new Ks(r,0);return this._position=t,this._formatReturnValue("elementStart",r,e,t,1)}if(r instanceof os){if(this.singleCharacters)return t=new Ks(r,0),this._position=t,this._next();let n,i=r.data.length;return r==this._boundaryEndParent?(i=this.boundaries.end.offset,n=new ss(r,0,i),t=Ks._createAfter(n)):(n=new ss(r,0,r.data.length),t.offset++),this._position=t,this._formatReturnValue("text",n,e,t,i)}if("string"==typeof r){let r;if(this.singleCharacters)r=1;else{r=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset}const i=new ss(n,t.offset,r);return t.offset+=r,this._position=t,this._formatReturnValue("text",i,e,t,r)}return t=Ks._createAfter(n),this._position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&0===t.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let r;if(n instanceof os){if(t.isAtStart)return this._position=Ks._createBefore(n),this._previous();r=n.data[t.offset-1]}else r=n.getChild(t.offset-1);if(r instanceof Os)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",r,e,t,1)):(t=new Ks(r,r.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",r,e,t));if(r instanceof os){if(this.singleCharacters)return t=new Ks(r,r.data.length),this._position=t,this._previous();let n,i=r.data.length;if(r==this._boundaryStartParent){const e=this.boundaries.start.offset;n=new ss(r,e,r.data.length-e),i=n.data.length,t=Ks._createBefore(n)}else n=new ss(r,0,r.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",n,e,t,i)}if("string"==typeof r){let r;if(this.singleCharacters)r=1;else{const e=n===this._boundaryStartParent?this.boundaries.start.offset:0;r=t.offset-e}t.offset-=r;const i=new ss(n,t.offset,r);return this._position=t,this._formatReturnValue("text",i,e,t,r)}return t=Ks._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,r,i){return e instanceof ss&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Ks._createAfter(e.textNode):(r=Ks._createAfter(e.textNode),this._position=r)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Ks._createBefore(e.textNode):(r=Ks._createBefore(e.textNode),this._position=r))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:r,length:i}}}}class Ks extends ns{parent;offset;constructor(t,e){super(),this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof Us);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=Ks._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new Gs(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let r=0;for(;e[r]==n[r]&&e[r];)r++;return 0===r?null:e[r-1]}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return"before"==this.compareWith(t)}isAfter(t){return"after"==this.compareWith(t)}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const r=Zr(e,n);switch(r){case"prefix":return"before";case"extension":return"after";default:return e[r]<n[r]?"before":"after"}}getWalker(t={}){return t.startPosition=this,new Gs(t)}clone(){return new Ks(this.parent,this.offset)}static _createAt(t,e){if(t instanceof Ks)return new this(t.parent,t.offset);{const n=t;if("end"==e)e=n.is("$text")?n.data.length:n.childCount;else{if("before"==e)return this._createBefore(n);if("after"==e)return this._createAfter(n);if(0!==e&&!e)throw new kr("view-createpositionat-offset-required",n)}return new Ks(n,e)}}static _createAfter(t){if(t.is("$textProxy"))return new Ks(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new kr("view-position-after-root",t,{root:t});return new Ks(t.parent,t.index+1)}static _createBefore(t){if(t.is("$textProxy"))return new Ks(t.textNode,t.offsetInText);if(!t.parent)throw new kr("view-position-before-root",t,{root:t});return new Ks(t.parent,t.index)}}Ks.prototype.is=function(t){return"position"===t||"view:position"===t};class Zs extends ns{start;end;constructor(t,e=null){super(),this.start=t.clone(),this.end=e?e.clone():t.clone()}*[Symbol.iterator](){yield*new Gs({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let t=this.start.getLastMatchingPosition(Ys,{direction:"backward"}),e=this.end.getLastMatchingPosition(Ys);return t.parent.is("$text")&&t.isAtStart&&(t=Ks._createBefore(t.parent)),e.parent.is("$text")&&e.isAtEnd&&(e=Ks._createAfter(e.parent)),new Zs(t,e)}getTrimmed(){let t=this.start.getLastMatchingPosition(Ys);if(t.isAfter(this.end)||t.isEqual(this.end))return new Zs(t,t);let e=this.end.getLastMatchingPosition(Ys,{direction:"backward"});const n=t.nodeAfter,r=e.nodeBefore;return n&&n.is("$text")&&(t=new Ks(n,0)),r&&r.is("$text")&&(e=new Ks(r,r.data.length)),new Zs(t,e)}isEqual(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end)}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),r=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&r}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Zs(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Zs(t.end,this.end))):e.push(this.clone()),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new Zs(e,n)}return null}getWalker(t={}){return t.boundaries=this,new Gs(t)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let t=this.start.nodeAfter,e=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(t=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(e=this.end.parent.previousSibling),t&&t.is("element")&&t===e?t:null}clone(){return new Zs(this.start,this.end)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Gs(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new Gs(t);yield e.position;for(const t of e)yield t.nextPosition}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}static _createFromParentsAndOffsets(t,e,n,r){return new this(new Ks(t,e),new Ks(n,r))}static _createFromPositionAndShift(t,e){const n=t,r=t.getShiftedBy(e);return e>0?new this(n,r):new this(r,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(Ks._createBefore(t),e)}}function Ys(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}Zs.prototype.is=function(t){return"range"===t||"view:range"===t};class Js extends(Dr(ns)){_ranges;_lastRangeBackward;_isFake;_fakeSelectionLabel;constructor(...t){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",t.length&&this.setTo(...t)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel)return!1;if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const r of t._ranges)if(e.isEqual(r)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=Kr(this.getRanges());if(e!=Kr(t.getRanges()))return!1;if(0==e)return!0;for(let e of this.getRanges()){e=e.getTrimmed();let n=!1;for(let r of t.getRanges())if(r=r.getTrimmed(),e.start.isEqual(r.start)&&e.end.isEqual(r.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...t){let[e,n,r]=t;if("object"==typeof n&&(r=n,n=void 0),null===e)this._setRanges([]),this._setFakeOptions(r);else if(e instanceof Js||e instanceof Qs)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof Zs)this._setRanges([e],r&&r.backward),this._setFakeOptions(r);else if(e instanceof Ks)this._setRanges([new Zs(e)]),this._setFakeOptions(r);else if(e instanceof is){const t=!!r&&!!r.backward;let i;if(void 0===n)throw new kr("view-selection-setto-required-second-parameter",this);i="in"==n?Zs._createIn(e):"on"==n?Zs._createOn(e):new Zs(Ks._createAt(e,n)),this._setRanges([i],t),this._setFakeOptions(r)}else{if(!Yr(e))throw new kr("view-selection-setto-not-selectable",this);this._setRanges(e,r&&r.backward),this._setFakeOptions(r)}this.fire("change")}setFocus(t,e){if(null===this.anchor)throw new kr("view-selection-setfocus-no-ranges",this);const n=Ks._createAt(t,e);if("same"==n.compareWith(this.focus))return;const r=this.anchor;this._ranges.pop(),"before"==n.compareWith(r)?this._addRange(new Zs(n,r),!0):this._addRange(new Zs(r,n)),this.fire("change")}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const e of t)this._addRange(e);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof Zs))throw new kr("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new kr("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new Zs(t.start,t.end))}}Js.prototype.is=function(t){return"selection"===t||"view:selection"===t};class Qs extends(Dr(ns)){_selection;constructor(...t){super(),this._selection=new Js,this._selection.delegate("change").to(this),t.length&&this._selection.setTo(...t)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}_setTo(...t){this._selection.setTo(...t)}_setFocus(t,e){this._selection.setFocus(t,e)}}Qs.prototype.is=function(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t};class Xs extends mr{startRange;_eventPhase;_currentTarget;constructor(t,e,n){super(t,e),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const ta=Symbol("bubbling contexts");function ea(t){return class extends t{fire(t,...e){try{const n=t instanceof mr?t:new mr(this,t),r=oa(this);if(!r.size)return;if(na(n,"capturing",this),ra(r,"$capture",n,...e))return n.return;const i=n.startRange||this.selection.getFirstRange(),o=i?i.getContainedElement():null,s=!!o&&Boolean(ia(r,o));let a=o||function(t){if(!t)return null;const e=t.start.parent,n=t.end.parent,r=e.getPath(),i=n.getPath();return r.length>i.length?e:n}(i);if(na(n,"atTarget",a),!s){if(ra(r,"$text",n,...e))return n.return;na(n,"bubbling",a)}for(;a;){if(a.is("rootElement")){if(ra(r,"$root",n,...e))return n.return}else if(a.is("element")&&ra(r,a.name,n,...e))return n.return;if(ra(r,a,n,...e))return n.return;a=a.parent,na(n,"bubbling",a)}return na(n,"bubbling",this),ra(r,"$document",n,...e),n.return}catch(t){kr.rethrowUnexpectedError(t,this)}}_addEventListener(t,e,n){const r=eo(n.context||"$document"),i=oa(this);for(const o of r){let r=i.get(o);r||(r=new(Dr()),i.set(o,r)),this.listenTo(r,t,e,n)}}_removeEventListener(t,e){const n=oa(this);for(const r of n.values())this.stopListening(r,t,e)}}}{const t=ea(Object);["fire","_addEventListener","_removeEventListener"].forEach((e=>{ea[e]=t.prototype[e]}))}function na(t,e,n){t instanceof Xs&&(t._eventPhase=e,t._currentTarget=n)}function ra(t,e,n,...r){const i="string"==typeof e?t.get(e):ia(t,e);return!!i&&(i.fire(n,...r),n.stop.called)}function ia(t,e){for(const[n,r]of t)if("function"==typeof n&&n(e))return r;return null}function oa(t){return t[ta]||(t[ta]=new Map),t[ta]}class sa extends(ea(jr())){selection;roots;stylesProcessor;_postFixers=new Set;constructor(t){super(),this.selection=new Qs,this.roots=new xo({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.forEach((t=>t.destroy())),this.stopListening()}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(e=n(t),e)break}while(e)}}class aa extends Os{static DEFAULT_PRIORITY=10;_priority=10;_id=null;_clonesGroup=null;constructor(t,e,n,r){super(t,e,n,r),this.getFillerOffset=la}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new kr("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(t){return null!==this.id||null!==t.id?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t=!1){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}function la(){if(ca(this))return null;let t=this.parent;for(;t&&t.is("attributeElement");){if(ca(t)>1)return null;t=t.parent}return!t||ca(t)>1?null:this.childCount}function ca(t){return Array.from(t.getChildren()).filter((t=>!t.is("uiElement"))).length}aa.prototype.is=function(t,e){return e?e===this.name&&("attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t):"attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class da extends Os{constructor(t,e,n,r){super(t,e,n,r),this.getFillerOffset=ha}_insertChild(t,e){if(e&&(e instanceof is||Array.from(e).length>0))throw new kr("view-emptyelement-cannot-add",[this,e]);return 0}}function ha(){return null}da.prototype.is=function(t,e){return e?e===this.name&&("emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t):"emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class ua extends Os{constructor(t,e,n,r){super(t,e,n,r),this.getFillerOffset=ga}_insertChild(t,e){if(e&&(e instanceof is||Array.from(e).length>0))throw new kr("view-uielement-cannot-add",[this,e]);return 0}render(t,e){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const t of this.getAttributeKeys())e.setAttribute(t,this.getAttribute(t));return e}}function ma(t){t.document.on("arrowKey",((e,n)=>function(t,e,n){if(e.keyCode==$i.arrowright){const t=e.domTarget.ownerDocument.defaultView.getSelection(),r=1==t.rangeCount&&t.getRangeAt(0).collapsed;if(r||e.shiftKey){const e=t.focusNode,i=t.focusOffset,o=n.domPositionToView(e,i);if(null===o)return;let s=!1;const a=o.getLastMatchingPosition((t=>(t.item.is("uiElement")&&(s=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement")))));if(s){const e=n.viewPositionToDom(a);r?t.collapse(e.parent,e.offset):t.extend(e.parent,e.offset)}}}}(0,n,t.domConverter)),{priority:"low"})}function ga(){return null}ua.prototype.is=function(t,e){return e?e===this.name&&("uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t):"uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class pa extends Os{constructor(t,e,n,r){super(t,e,n,r),this.getFillerOffset=fa}_insertChild(t,e){if(e&&(e instanceof is||Array.from(e).length>0))throw new kr("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}function fa(){return null}pa.prototype.is=function(t,e){return e?e===this.name&&("rawElement"===t||"view:rawElement"===t||"element"===t||"view:element"===t):"rawElement"===t||"view:rawElement"===t||t===this.name||t==="view:"+this.name||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class ba extends(Dr(ns)){document;_children=[];_customProperties=new Map;constructor(t,e){super(),this.document=t,e&&this._insertChild(0,e)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const r=function(t,e){if("string"==typeof e)return[new os(t,e)];Yr(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new os(t,e):e instanceof ss?new os(t,e.data):e))}(this.document,e);for(const e of r)null!==e.parent&&e._remove(),e.parent=this,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_fireChange(t,e){this.fire("change:"+t,e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}ba.prototype.is=function(t){return"documentFragment"===t||"view:documentFragment"===t};class ka{document;_cloneGroups=new Map;_slotFactory=null;constructor(t){this.document=t}setSelection(...t){this.document.selection._setTo(...t)}setSelectionFocus(t,e){this.document.selection._setFocus(t,e)}createDocumentFragment(t){return new ba(this.document,t)}createText(t){return new os(this.document,t)}createAttributeElement(t,e,n={}){const r=new aa(this.document,t,e);return"number"==typeof n.priority&&(r._priority=n.priority),n.id&&(r._id=n.id),n.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),r}createContainerElement(t,e,n={},r={}){let i=null;q(n)?r=n:i=n;const o=new js(this.document,t,e,i);return r.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...r.renderUnsafeAttributes),o}createEditableElement(t,e,n={}){const r=new Us(this.document,t,e);return n.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),r}createEmptyElement(t,e,n={}){const r=new da(this.document,t,e);return n.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),r}createUIElement(t,e,n){const r=new ua(this.document,t,e);return n&&(r.render=n),r}createRawElement(t,e,n,r={}){const i=new pa(this.document,t,e);return n&&(i.render=n),r.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...r.renderUnsafeAttributes),i}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){q(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}breakAttributes(t){return t instanceof Ks?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new kr("view-writer-break-non-container-element",this.document);if(!e.parent)throw new kr("view-writer-break-root",this.document);if(t.isAtStart)return Ks._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(Ks._createAfter(e),n);const r=new Zs(t,Ks._createAt(e,"end")),i=new Ks(n,0);this.move(r,i)}return Ks._createAfter(e)}mergeAttributes(t){const e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&0===n.childCount){const t=n.parent,e=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new Ks(t,e))}const r=n.getChild(e-1),i=n.getChild(e);if(!r||!i)return t;if(r.is("$text")&&i.is("$text"))return va(r,i);if(r.is("attributeElement")&&i.is("attributeElement")&&r.isSimilar(i)){const t=r.childCount;return r._appendChild(i.getChildren()),i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new Ks(r,t))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new kr("view-writer-merge-containers-invalid-position",this.document);const r=e.getChild(e.childCount-1),i=r instanceof os?Ks._createAt(r,"end"):Ks._createAt(e,"end");return this.move(Zs._createIn(n),Ks._createAt(e,"end")),this.remove(Zs._createOn(n)),i}insert(t,e){xa(e=Yr(e)?[...e]:[e],this.document);const n=e.reduce(((t,e)=>{const n=t[t.length-1],r=!e.is("uiElement");return n&&n.breakAttributes==r?n.nodes.push(e):t.push({breakAttributes:r,nodes:[e]}),t}),[]);let r=null,i=t;for(const{nodes:t,breakAttributes:e}of n){const n=this._insertNodes(i,t,e);r||(r=n.start),i=n.end}return r?new Zs(r,i):new Zs(t)}remove(t){const e=t instanceof Zs?t:Zs._createOn(t);if(Ba(e,this.document),e.isCollapsed)return new ba(this.document);const{start:n,end:r}=this._breakAttributesRange(e,!0),i=n.parent,o=r.offset-n.offset,s=i._removeChildren(n.offset,o);for(const t of s)this._removeFromClonedElementsGroup(t);const a=this.mergeAttributes(n);return e.start=a,e.end=a.clone(),new ba(this.document,s)}clear(t,e){Ba(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const r of n){const n=r.item;let i;if(n.is("element")&&e.isSimilar(n))i=Zs._createOn(n);else if(!r.nextPosition.isAfter(t.start)&&n.is("$textProxy")){const t=n.getAncestors().find((t=>t.is("element")&&e.isSimilar(t)));t&&(i=Zs._createIn(t))}i&&(i.end.isAfter(t.end)&&(i.end=t.end),i.start.isBefore(t.start)&&(i.start=t.start),this.remove(i))}}move(t,e){let n;if(e.isAfter(t.end)){const r=(e=this._breakAttributes(e,!0)).parent,i=r.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=r.childCount-i}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof aa))throw new kr("view-writer-wrap-invalid-attribute",this.document);if(Ba(t,this.document),t.isCollapsed){let r=t.start;r.parent.is("element")&&(n=r.parent,!Array.from(n.getChildren()).some((t=>!t.is("uiElement"))))&&(r=r.getLastMatchingPosition((t=>t.item.is("uiElement")))),r=this._wrapPosition(r,e);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(t.start)&&this.setSelection(r),new Zs(r)}return this._wrapRange(t,e);var n}unwrap(t,e){if(!(e instanceof aa))throw new kr("view-writer-unwrap-invalid-attribute",this.document);if(Ba(t,this.document),t.isCollapsed)return t;const{start:n,end:r}=this._breakAttributesRange(t,!0),i=n.parent,o=this._unwrapChildren(i,n.offset,r.offset,e),s=this.mergeAttributes(o.start);s.isEqual(o.start)||o.end.offset--;const a=this.mergeAttributes(o.end);return new Zs(s,a)}rename(t,e){const n=new js(this.document,t,e.getAttributes());return this.insert(Ks._createAfter(e),n),this.move(Zs._createIn(e),Ks._createAt(n,0)),this.remove(Zs._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return Ks._createAt(t,e)}createPositionAfter(t){return Ks._createAfter(t)}createPositionBefore(t){return Ks._createBefore(t)}createRange(t,e){return new Zs(t,e)}createRangeOn(t){return Zs._createOn(t)}createRangeIn(t){return Zs._createIn(t)}createSelection(...t){return new Js(...t)}createSlot(t="children"){if(!this._slotFactory)throw new kr("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}_registerSlotFactory(t){this._slotFactory=t}_clearSlotFactory(){this._slotFactory=null}_insertNodes(t,e,n){let r,i;if(r=n?wa(t):t.parent.is("$text")?t.parent.parent:t.parent,!r)throw new kr("view-writer-invalid-position-container",this.document);i=n?this._breakAttributes(t,!0):t.parent.is("$text")?Ca(t):t;const o=r._insertChild(i.offset,e);for(const t of e)this._addToClonedElementsGroup(t);const s=i.getShiftedBy(o),a=this.mergeAttributes(i);a.isEqual(i)||s.offset--;const l=this.mergeAttributes(s);return new Zs(a,l)}_wrapChildren(t,e,n,r){let i=e;const o=[];for(;i<n;){const e=t.getChild(i),n=e.is("$text"),s=e.is("attributeElement");if(s&&this._wrapAttributeElement(r,e))o.push(new Ks(t,i));else if(n||!s||Aa(r,e)){const n=r._clone();e._remove(),n._appendChild(e),t._insertChild(i,n),this._addToClonedElementsGroup(n),o.push(new Ks(t,i))}else this._wrapChildren(e,0,e.childCount,r);i++}let s=0;for(const t of o){if(t.offset-=s,t.offset==e)continue;this.mergeAttributes(t).isEqual(t)||(s++,n--)}return Zs._createFromParentsAndOffsets(t,e,t,n)}_unwrapChildren(t,e,n,r){let i=e;const o=[];for(;i<n;){const e=t.getChild(i);if(e.is("attributeElement"))if(e.isSimilar(r)){const r=e.getChildren(),s=e.childCount;e._remove(),t._insertChild(i,r),this._removeFromClonedElementsGroup(e),o.push(new Ks(t,i),new Ks(t,i+s)),i+=s,n+=s-1}else this._unwrapAttributeElement(r,e)?(o.push(new Ks(t,i),new Ks(t,i+1)),i++):(this._unwrapChildren(e,0,e.childCount,r),i++);else i++}let s=0;for(const t of o){if(t.offset-=s,t.offset==e||t.offset==n)continue;this.mergeAttributes(t).isEqual(t)||(s++,n--)}return Zs._createFromParentsAndOffsets(t,e,t,n)}_wrapRange(t,e){const{start:n,end:r}=this._breakAttributesRange(t,!0),i=n.parent,o=this._wrapChildren(i,n.offset,r.offset,e),s=this.mergeAttributes(o.start);s.isEqual(o.start)||o.end.offset--;const a=this.mergeAttributes(o.end);return new Zs(s,a)}_wrapPosition(t,e){if(e.isSimilar(t.parent))return _a(t.clone());t.parent.is("$text")&&(t=Ca(t));const n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,t.parent._insertChild(t.offset,n);const r=new Zs(t,t.getShiftedBy(1));this.wrap(r,e);const i=new Ks(n.parent,n.index);n._remove();const o=i.nodeBefore,s=i.nodeAfter;return o instanceof os&&s instanceof os?va(o,s):_a(i)}_wrapAttributeElement(t,e){if(!Da(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&(e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e));for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!Da(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,r=t.end;if(Ba(t,this.document),t.isCollapsed){const n=this._breakAttributes(t.start,e);return new Zs(n,n)}const i=this._breakAttributes(r,e),o=i.parent.childCount,s=this._breakAttributes(n,e);return i.offset+=i.parent.childCount-o,new Zs(s,i)}_breakAttributes(t,e=!1){const n=t.offset,r=t.parent;if(t.parent.is("emptyElement"))throw new kr("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new kr("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new kr("view-writer-cannot-break-raw-element",this.document);if(!e&&r.is("$text")&&Ea(r.parent))return t.clone();if(Ea(r))return t.clone();if(r.is("$text"))return this._breakAttributes(Ca(t),e);if(n==r.childCount){const t=new Ks(r.parent,r.index+1);return this._breakAttributes(t,e)}if(0===n){const t=new Ks(r.parent,r.index);return this._breakAttributes(t,e)}{const t=r.index+1,i=r._clone();r.parent._insertChild(t,i),this._addToClonedElementsGroup(i);const o=r.childCount-n,s=r._removeChildren(n,o);i._appendChild(s);const a=new Ks(r.parent,t);return this._breakAttributes(a,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const e of t.getChildren())this._addToClonedElementsGroup(e);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const e of t.getChildren())this._removeFromClonedElementsGroup(e);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}function wa(t){let e=t.parent;for(;!Ea(e);){if(!e)return;e=e.parent}return e}function Aa(t,e){return t.priority<e.priority||!(t.priority>e.priority)&&t.getIdentity()<e.getIdentity()}function _a(t){const e=t.nodeBefore;if(e&&e.is("$text"))return new Ks(e,e.data.length);const n=t.nodeAfter;return n&&n.is("$text")?new Ks(n,0):t}function Ca(t){if(t.offset==t.parent.data.length)return new Ks(t.parent.parent,t.parent.index+1);if(0===t.offset)return new Ks(t.parent.parent,t.parent.index);const e=t.parent.data.slice(t.offset);return t.parent._data=t.parent.data.slice(0,t.offset),t.parent.parent._insertChild(t.parent.index+1,new os(t.root.document,e)),new Ks(t.parent.parent,t.parent.index+1)}function va(t,e){const n=t.data.length;return t._data+=e.data,e._remove(),new Ks(t,n)}const ya=[os,aa,js,da,pa,ua];function xa(t,e){for(const n of t){if(!ya.some((t=>n instanceof t)))throw new kr("view-writer-insert-invalid-node-type",e);n.is("$text")||xa(n.getChildren(),e)}}function Ea(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function Ba(t,e){const n=wa(t.start),r=wa(t.end);if(!n||!r||n!==r)throw new kr("view-writer-invalid-range-container",e)}function Da(t,e){return null===t.id&&null===e.id}const Sa=t=>t.createTextNode(" "),Ta=t=>{const e=t.createElement("span");return e.dataset.ckeFiller="true",e.innerText=" ",e},Ia=t=>{const e=t.createElement("br");return e.dataset.ckeFiller="true",e},Pa="".repeat(7);function Va(t){return"string"==typeof t?t.substr(0,7)===Pa:ui(t)&&t.data.substr(0,7)===Pa}function Fa(t){return 7==t.data.length&&Va(t)}function Ra(t){const e="string"==typeof t?t:t.data;return Va(t)?e.slice(7):e}function La(t,e){if(e.keyCode==$i.arrowleft){const t=e.domTarget.ownerDocument.defaultView.getSelection();if(1==t.rangeCount&&t.getRangeAt(0).collapsed){const e=t.getRangeAt(0).startContainer,n=t.getRangeAt(0).startOffset;Va(e)&&n<=7&&t.collapse(e,0)}}}var za=n(8264),Ma={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(za.A,Ma);za.A.locals;class Na extends(jr()){domDocuments=new Set;domConverter;markedAttributes=new Set;markedChildren=new Set;markedTexts=new Set;selection;_inlineFiller=null;_fakeSelectionContainer=null;constructor(t,e){super(),this.domConverter=t,this.selection=e,this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),Xn.isBlink&&!Xn.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()}))}markToSync(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t){throw new kr("view-renderer-unknown-type",this)}this.markedChildren.add(e)}}}render(){if(this.isComposing&&!Xn.isAndroid)return;let t=null;const e=!(Xn.isBlink&&!Xn.isAndroid)||!this.isSelecting;for(const t of this.markedChildren)this._updateChildrenMappings(t);e?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller),t&&t.parent.is("$text")&&(t=Ks._createBefore(t.parent)));for(const t of this.markedAttributes)this._updateAttrs(t);for(const e of this.markedChildren)this._updateChildren(e,{inlineFillerPosition:t});for(const e of this.markedTexts)!this.markedChildren.has(e.parent)&&this.domConverter.mapViewToDom(e.parent)&&this._updateText(e,{inlineFillerPosition:t});if(e)if(t){const e=this.domConverter.viewPositionToDom(t),n=e.parent.ownerDocument;Va(e.parent)?this._inlineFiller=e.parent:this._inlineFiller=Oa(n,e.parent,e.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.childNodes),r=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),i=this._diffNodeLists(n,r),o=this._findUpdateActions(i,n,r,Ha);if(-1!==o.indexOf("update")){const e={equal:0,insert:0,delete:0};for(const i of o)if("update"===i){const i=e.equal+e.insert,o=e.equal+e.delete,s=t.getChild(i);!s||s.is("uiElement")||s.is("rawElement")||this._updateElementMappings(s,n[o]),Pi(r[i]),e.equal++}else e[i]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?Ks._createBefore(t.parent):t}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&ui(e.parent)&&Va(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!Va(t))throw new kr("view-renderer-filler-was-lost",this);Fa(t)?t.remove():t.data=t.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;const e=t.findAncestor((t=>t.hasAttribute("contenteditable")));return!e||"true"==e.getAttribute("contenteditable")}(e))return!1;const r=t.nodeBefore,i=t.nodeAfter;return!(r instanceof os||i instanceof os)&&(!!(n!==e.getFillerOffset()||r&&r.is("element","br"))&&(!Xn.isAndroid||!r&&!i))}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t);let r=this.domConverter.viewToDom(t).data;const i=e.inlineFillerPosition;i&&i.parent==t.parent&&i.offset==t.index&&(r=Pa+r),this._updateTextNode(n,r)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(e){for(const n of e.attributes){const r=n.name;t.hasAttribute(r)||this.domConverter.removeDomElementAttribute(e,r)}for(const n of t.getAttributeKeys())this.domConverter.setDomElementAttribute(e,n,t.getAttribute(n),t)}}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(Xn.isAndroid){let t=null;for(const e of Array.from(n.childNodes)){if(t&&ui(t)&&ui(e)){n.normalize();break}t=e}}const r=e.inlineFillerPosition,i=n.childNodes,o=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));r&&r.parent===t&&Oa(n.ownerDocument,o,r.offset);const s=this._diffNodeLists(i,o),a=this._findUpdateActions(s,i,o,ja);let l=0;const c=new Set;for(const t of a)"delete"===t?(c.add(i[l]),Pi(i[l])):"equal"!==t&&"update"!==t||l++;l=0;for(const t of a)"insert"===t?(xi(n,l,o[l]),l++):"update"===t?(this._updateTextNode(i[l],o[l].data),l++):"equal"===t&&(this._markDescendantTextToSync(this.domConverter.domToView(o[l])),l++);for(const t of c)t.parentNode||this.domConverter.unbindDomElement(t)}_diffNodeLists(t,e){return t=function(t,e){const n=Array.from(t);if(0==n.length||!e)return n;const r=n[n.length-1];r==e&&n.pop();return n}(t,this._fakeSelectionContainer),hr(t,e,qa.bind(null,this.domConverter))}_findUpdateActions(t,e,n,r){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;let i=[],o=[],s=[];const a={equal:0,insert:0,delete:0};for(const l of t)"insert"===l?s.push(n[a.equal+a.insert]):"delete"===l?o.push(e[a.equal+a.delete]):(i=i.concat(hr(o,s,r).map((t=>"equal"===t?"update":t))),i.push("equal"),o=[],s=[]),a[l]++;return i.concat(hr(o,s,r).map((t=>"equal"===t?"update":t)))}_updateTextNode(t,e){const n=t.data;n!=e&&(Xn.isAndroid&&this.isComposing&&n.replace(/\u00A0/g," ")==e.replace(/\u00A0/g," ")||this._updateTextNodeInternal(t,e))}_updateTextNodeInternal(t,e){const n=lr(t.data,e);for(const e of n)"insert"===e.type?t.insertData(e.index,e.values.join("")):t.deleteData(e.index,e.howMany)}_markDescendantTextToSync(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}_updateSelection(){if(Xn.isBlink&&!Xn.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(t)):this.isComposing&&Xn.isAndroid||this._updateDomSelection(t))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(t){const e=t.createElement("div");return e.className="ck-fake-selection-container",Object.assign(e.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),e.textContent=" ",e}(e));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";const r=e.getSelection(),i=e.createRange();r.removeAllRanges(),i.selectNodeContents(n),r.addRange(i)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);e.setBaseAndExtent(n.parent,n.offset,r.parent,r.offset),Xn.isGecko&&function(t,e){let n=t.parent,r=t.offset;ui(n)&&Fa(n)&&(r=yi(n)+1,n=n.parentNode);if(n.nodeType!=Node.ELEMENT_NODE||r!=n.childNodes.length-1)return;const i=n.childNodes[r];i&&"BR"==i.tagName&&e.addRange(e.getRangeAt(0))}(r,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return(!e||!this.selection.isEqual(e))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(e))}_fakeSelectionNeedsUpdate(t){const e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||(n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const t of this.domDocuments){const e=t.getSelection();if(e.rangeCount){const n=t.activeElement,r=this.domConverter.mapDomToView(n);n&&r&&e.removeAllRanges()}}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function Oa(t,e,n){const r=e instanceof Array?e:e.childNodes,i=r[n];if(ui(i))return i.data=Pa+i.data,i;{const i=t.createTextNode(Pa);return Array.isArray(e)?r.splice(n,0,i):xi(e,n,i),i}}function Ha(t,e){return ni(t)&&ni(e)&&!ui(t)&&!ui(e)&&!Ei(t)&&!Ei(e)&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}function ja(t,e){return ni(t)&&ni(e)&&ui(t)&&ui(e)}function qa(t,e,n){return e===n||(ui(e)&&ui(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)))}const Ua=Ia(Yn.document),Wa=Sa(Yn.document),$a=Ta(Yn.document),Ga="data-ck-unsafe-attribute-",Ka="data-ck-unsafe-element";class Za{document;renderingMode;blockFillerMode;preElements;blockElements;inlineObjectElements;unsafeElements;_domDocument;_domToViewMapping=new WeakMap;_viewToDomMapping=new WeakMap;_fakeSelectionMapping=new WeakMap;_rawContentElementMatcher=new as;_inlineObjectElementMatcher=new as;_elementsWithTemporaryCustomProperties=new Set;constructor(t,{blockFillerMode:e,renderingMode:n="editing"}={}){this.document=t,this.renderingMode=n,this.blockFillerMode=e||("editing"===n?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Yn.document:Yn.document.implementation.createHTMLDocument("")}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new Js(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const e of t.children)this.unbindDomElement(e)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}shouldRenderAttribute(t,e,n){return"data"===this.renderingMode||!(t=t.toLowerCase()).startsWith("on")&&(("srcdoc"!==t||!e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===t||"srcset"===t)||("source"===n&&"srcset"===t||!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(t,e){if("data"===this.renderingMode)return void(t.innerHTML=e);const n=(new DOMParser).parseFromString(e,"text/html"),r=n.createDocumentFragment(),i=n.body.childNodes;for(;i.length>0;)r.appendChild(i[0]);const o=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT),s=[];let a;for(;a=o.nextNode();)s.push(a);for(const t of s){for(const e of t.getAttributeNames())this.setDomElementAttribute(t,e,t.getAttribute(e));const e=t.tagName.toLowerCase();this._shouldRenameElement(e)&&(Qa(e),t.replaceWith(this._createReplacementDomElement(e,t)))}for(;t.firstChild;)t.firstChild.remove();t.append(r)}viewToDom(t,e={}){if(t.is("$text")){const e=this._processDataFromViewText(t);return this._domDocument.createTextNode(e)}{const n=t;if(this.mapViewToDom(n)){if(!n.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(n);this._elementsWithTemporaryCustomProperties.add(n)}let r;if(n.is("documentFragment"))r=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(r,n);else{if(n.is("uiElement"))return r="$comment"===n.name?this._domDocument.createComment(n.getCustomProperty("$rawContent")):n.render(this._domDocument,this),e.bind&&this.bindElements(r,n),r;this._shouldRenameElement(n.name)?(Qa(n.name),r=this._createReplacementDomElement(n.name)):r=n.hasAttribute("xmlns")?this._domDocument.createElementNS(n.getAttribute("xmlns"),n.name):this._domDocument.createElement(n.name),n.is("rawElement")&&n.render(r,this),e.bind&&this.bindElements(r,n);for(const t of n.getAttributeKeys())this.setDomElementAttribute(r,t,n.getAttribute(t),n)}if(!1!==e.withChildren)for(const t of this.viewChildrenToDom(n,e))r instanceof HTMLTemplateElement?r.content.appendChild(t):r.appendChild(t);return r}}setDomElementAttribute(t,e,n,r){const i=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||r&&r.shouldRenderUnsafeAttribute(e);i||wr("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),Bi(e)?(t.hasAttribute(e)&&!i?t.removeAttribute(e):t.hasAttribute(Ga+e)&&i&&t.removeAttribute(Ga+e),t.setAttribute(i?e:Ga+e,n)):wr("domconverter-invalid-attribute-detected",{domElement:t,key:e,value:n})}removeDomElementAttribute(t,e){e!=Ka&&(t.removeAttribute(e),t.removeAttribute(Ga+e))}*viewChildrenToDom(t,e={}){const n=t.getFillerOffset&&t.getFillerOffset();let r=0;for(const i of t.getChildren()){n===r&&(yield this._getBlockFiller());const t=i.is("element")&&!!i.getCustomProperty("dataPipeline:transparentRendering")&&!Eo(i.getAttributes());if(t&&"data"==this.renderingMode)if(i.is("rawElement")){const t=this._domDocument.createElement(i.name);i.render(t,this),yield*[...t.childNodes]}else yield*this.viewChildrenToDom(i,e);else t&&wr("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:i}),yield this.viewToDom(i,e);r++}n===r&&(yield this._getBlockFiller())}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),r=this._domDocument.createRange();return r.setStart(e.parent,e.offset),r.setEnd(n.parent,n.offset),r}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let r=t.offset;return Va(n)&&(r+=7),{parent:n,offset:r}}{let n,r,i;if(0===t.offset){if(n=this.mapViewToDom(e),!n)return null;i=n.childNodes[0]}else{const e=t.nodeBefore;if(r=e.is("$text")?this.findCorrespondingDomText(e):this.mapViewToDom(e),!r)return null;n=r.parentNode,i=r.nextSibling}if(ui(i)&&Va(i))return{parent:i,offset:7};return{parent:n,offset:r?yi(r)+1:0}}}domToView(t,e={}){const n=[],r=this._domToView(t,e,n),i=r.next().value;return i?(r.next(),this._processDomInlineNodes(null,n,e),i.is("$text")&&0==i.data.length?null:i):null}*domChildrenToView(t,e={},n=[]){let r=[];r=t instanceof HTMLTemplateElement?[...t.content.childNodes]:[...t.childNodes];for(let i=0;i<r.length;i++){const o=r[i],s=this._domToView(o,e,n),a=s.next().value;null!==a&&(this._isBlockViewElement(a)&&this._processDomInlineNodes(t,n,e),yield a,s.next())}this._processDomInlineNodes(t,n,e)}domSelectionToView(t){if(function(t){if(!Xn.isGecko)return!1;if(!t.rangeCount)return!1;const e=t.getRangeAt(0).startContainer;try{Object.prototype.toString.call(e)}catch(t){return!0}return!1}(t))return new Js([]);if(1===t.rangeCount){let e=t.getRangeAt(0).startContainer;ui(e)&&(e=e.parentNode);const n=this.fakeSelectionToView(e);if(n)return n}const e=this.isDomSelectionBackward(t),n=[];for(let e=0;e<t.rangeCount;e++){const r=t.getRangeAt(e),i=this.domRangeToView(r);i&&n.push(i)}return new Js(n,{backward:e})}domRangeToView(t){const e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new Zs(e,n):null}domPositionToView(t,e=0){if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,yi(t));const n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return Ks._createBefore(n);if(ui(t)){if(Fa(t))return this.domPositionToView(t.parentNode,yi(t));const n=this.findCorrespondingViewText(t);let r=e;return n?(Va(t)&&(r-=7,r=r<0?0:r),new Ks(n,r)):null}if(0===e){const e=this.mapDomToView(t);if(e)return new Ks(e,0)}else{const n=t.childNodes[e-1];if(ui(n)&&Fa(n)||n&&this.isBlockFiller(n))return this.domPositionToView(n.parentNode,yi(n));const r=ui(n)?this.findCorrespondingViewText(n):this.mapDomToView(n);if(r&&r.parent)return new Ks(r.parent,r.index+1)}return null}mapDomToView(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}findCorrespondingViewText(t){if(Fa(t))return null;const e=this.getHostViewElement(t);if(e)return e;const n=t.previousSibling;if(n){if(!this.isElement(n))return null;const t=this.mapDomToView(n);if(t){const e=t.nextSibling;return e instanceof os?e:null}}else{const e=this.mapDomToView(t.parentNode);if(e){const t=e.getChild(0);return t instanceof os?t:null}}return null}mapViewToDom(t){return this._viewToDomMapping.get(t)}findCorrespondingDomText(t){const e=t.previousSibling;return e&&this.mapViewToDom(e)?this.mapViewToDom(e).nextSibling:!e&&t.parent&&this.mapViewToDom(t.parent)?this.mapViewToDom(t.parent).childNodes[0]:null}focus(t){const e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){const{scrollX:t,scrollY:n}=Yn.window,r=[];Ya(e,(t=>{const{scrollLeft:e,scrollTop:n}=t;r.push([e,n])})),e.focus(),Ya(e,(t=>{const[e,n]=r.shift();t.scrollLeft=e,t.scrollTop=n})),Yn.window.scrollTo(t,n)}}_clearDomSelection(){const t=this.mapViewToDom(this.document.selection.editableElement);if(!t)return;const e=t.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(e);n&&n.rangeCount>0&&e.removeAllRanges()}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(t){return"br"==this.blockFillerMode?t.isEqualNode(Ua):!("BR"!==t.tagName||!Ja(t,this.blockElements)||1!==t.parentNode.childNodes.length)||(t.isEqualNode($a)||function(t,e){const n=t.isEqualNode(Wa);return n&&Ja(t,e)&&1===t.parentNode.childNodes.length}(t,this.blockElements))}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=this._domDocument.createRange();try{e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset)}catch(t){return!1}const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=li(t);for(e.pop();e.length;){const t=e.pop(),n=this._domToViewMapping.get(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return n}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}registerRawContentMatcher(t){this._rawContentElementMatcher.add(t)}registerInlineObjectMatcher(t){this._inlineObjectElementMatcher.add(t)}_clearTemporaryCustomProperties(){for(const t of this._elementsWithTemporaryCustomProperties)t._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Sa(this._domDocument);case"markedNbsp":return Ta(this._domDocument);case"br":return Ia(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(ui(t)&&Va(t)&&e<7)return!1;if(this.isElement(t)&&Va(t.childNodes[e]))return!1;const n=this.mapDomToView(t);return!n||!n.is("uiElement")&&!n.is("rawElement")}*_domToView(t,e,n){if(this.isBlockFiller(t))return null;const r=this.getHostViewElement(t);if(r)return r;if(Ei(t)&&e.skipComments)return null;if(ui(t)){if(Fa(t))return null;{const e=t.data;if(""===e)return null;const r=new os(this.document,e);return n.push(r),r}}{let r=this.mapDomToView(t);if(r)return this._isInlineObjectElement(r)&&n.push(r),r;if(this.isDocumentFragment(t))r=new ba(this.document),e.bind&&this.bindDocumentFragments(t,r);else{r=this._createViewElement(t,e),e.bind&&this.bindElements(t,r);const i=t.attributes;if(i)for(let t=i.length,e=0;e<t;e++)r._setAttribute(i[e].name,i[e].value);if(this._isViewElementWithRawContent(r,e))return r._setCustomProperty("$rawContent",t.innerHTML),this._isBlockViewElement(r)||n.push(r),r;if(Ei(t))return r._setCustomProperty("$rawContent",t.data),r}yield r;const i=[];if(!1!==e.withChildren)for(const n of this.domChildrenToView(t,e,i))r._appendChild(n);if(this._isInlineObjectElement(r))n.push(r);else for(const t of i)n.push(t)}}_processDomInlineNodes(t,e,n){if(!e.length)return;if(t&&!this.isDocumentFragment(t)&&!this._isBlockDomElement(t))return;let r=!1;for(let t=0;t<e.length;t++){const i=e[t];if(!i.is("$text")){r=!1;continue}let o,s=!1;if(this._isPreFormatted(i))o=Ra(i.data);else{o=i.data.replace(/[ \n\t\r]{1,}/g," "),s=/[^\S\u00A0]/.test(o.charAt(o.length-1));const a=t>0?e[t-1]:null,l=t+1<e.length?e[t+1]:null,c=!a||a.is("element")&&"br"==a.name||r,d=!l&&!Va(i.data);!1!==n.withChildren&&(c&&(o=o.replace(/^ /,"")),d&&(o=o.replace(/ $/,""))),o=Ra(o),o=o.replace(/ \u00A0/g," ");const h=l&&l.is("element")&&"br"!=l.name,u=l&&l.is("$text")&&" "==l.data.charAt(0);(/[ \u00A0]\u00A0$/.test(o)||!l||h||u)&&(o=o.replace(/\u00A0$/," ")),(c||a&&a.is("element")&&"br"!=a.name)&&(o=o.replace(/^\u00A0/," "))}0==o.length&&i.parent?(i._remove(),e.splice(t,1),t--):(i._data=o,r=s)}e.length=0}_processDataFromViewText(t){let e=t.data;if(this._isPreFormatted(t))return e;if(" "==e.charAt(0)){const n=this._getTouchingInlineViewNode(t,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(e=" "+e.substr(1))}if(" "==e.charAt(e.length-1)){const n=this._getTouchingInlineViewNode(t,!0),r=n&&n.is("$textProxy")&&" "==n.data.charAt(0);" "!=e.charAt(e.length-2)&&n&&!r||(e=e.substr(0,e.length-1)+" ")}return e.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(t){if(this._isPreFormatted(t))return!1;const e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1)}_isPreFormatted(t){if(function(t,e){return t.getAncestors().some((t=>t.is("element")&&e.includes(t.name)))}(t,this.preElements))return!0;for(const e of t.getAncestors({parentFirst:!0}))if(e.is("element")&&e.hasStyle("white-space")&&"inherit"!==e.getStyle("white-space"))return["pre","pre-wrap","break-spaces"].includes(e.getStyle("white-space"));return!1}_getTouchingInlineViewNode(t,e){const n=new Gs({startPosition:e?Ks._createAfter(t):Ks._createBefore(t),direction:e?"forward":"backward"});for(const{item:t}of n){if(t.is("$textProxy"))return t;if(!t.is("element")||!t.getCustomProperty("dataPipeline:transparentRendering")){if(t.is("element","br"))return null;if(this._isInlineObjectElement(t))return t;if(t.is("containerElement"))return null}}return null}_isBlockDomElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isBlockViewElement(t){return t.is("element")&&this.blockElements.includes(t.name)}_isInlineObjectElement(t){return!!t.is("element")&&("br"==t.name||this.inlineObjectElements.includes(t.name)||!!this._inlineObjectElementMatcher.match(t))}_createViewElement(t,e){if(Ei(t))return new ua(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new Os(this.document,n)}_isViewElementWithRawContent(t,e){return!1!==e.withChildren&&t.is("element")&&!!this._rawContentElementMatcher.match(t)}_shouldRenameElement(t){const e=t.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(e)}_createReplacementDomElement(t,e){const n=this._domDocument.createElement("span");if(n.setAttribute(Ka,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const t of e.getAttributeNames())n.setAttribute(t,e.getAttribute(t))}return n}}function Ya(t,e){let n=t;for(;n;)e(n),n=n.parentElement}function Ja(t,e){const n=t.parentNode;return!!n&&!!n.tagName&&e.includes(n.tagName.toLowerCase())}function Qa(t){"script"===t&&wr("domconverter-unsafe-script-element-detected"),"style"===t&&wr("domconverter-unsafe-style-element-detected")}class Xa extends(oi()){view;document;_isEnabled=!1;constructor(t){super(),this.view=t,this.document=t.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const tl=_o((function(t,e){Zt(e,Ve(e),t)}));class el{view;document;domEvent;domTarget;constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,tl(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class nl extends Xa{useCapture=!1;usePassive=!1;observe(t){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((e=>{this.listenTo(t,e,((t,e)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(e.target)&&this.onDomEvent(e)}),{useCapture:this.useCapture,usePassive:this.usePassive})}))}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new el(this.view,e,n))}}class rl extends nl{domEventType=["keydown","keyup"];onDomEvent(t){const e={keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return Ki(this)}};this.fire(t.type,t,e)}}class il extends Xa{_fireSelectionChangeDoneDebounced;constructor(t){super(t),this._fireSelectionChangeDoneDebounced=F((t=>{this.document.fire("selectionChangeDone",t)}),200)}observe(){const t=this.document;t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&n.preventDefault()}),{context:"$capture"}),t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)}),{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new Js(e.getRanges(),{backward:e.isBackward,fake:!1});t!=$i.arrowleft&&t!=$i.arrowup||n.setTo(n.getFirstPosition()),t!=$i.arrowright&&t!=$i.arrowdown||n.setTo(n.getLastPosition());const r={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}const ol=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const sl=function(t){return this.__data__.has(t)};function al(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ot;++e<n;)this.add(t[e])}al.prototype.add=al.prototype.push=ol,al.prototype.has=sl;const ll=al;const cl=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const dl=function(t,e){return t.has(e)};const hl=function(t,e,n,r,i,o){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(t),d=o.get(e);if(c&&d)return c==e&&d==t;var h=-1,u=!0,m=2&n?new ll:void 0;for(o.set(t,e),o.set(e,t);++h<a;){var g=t[h],p=e[h];if(r)var f=s?r(p,g,h,e,t,o):r(g,p,h,t,e,o);if(void 0!==f){if(f)continue;u=!1;break}if(m){if(!cl(e,(function(t,e){if(!dl(m,e)&&(g===t||i(g,t,n,r,o)))return m.push(e)}))){u=!1;break}}else if(g!==p&&!i(g,p,n,r,o)){u=!1;break}}return o.delete(t),o.delete(e),u};const ul=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const ml=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var gl=p?p.prototype:void 0,pl=gl?gl.valueOf:void 0;const fl=function(t,e,n,r,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new kn(t),new kn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return G(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=ul;case"[object Set]":var l=1&r;if(a||(a=ml),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var d=hl(a(t),a(e),r,i,o,s);return s.delete(t),d;case"[object Symbol]":if(pl)return pl.call(t)==pl.call(e)}return!1};var bl=Object.prototype.hasOwnProperty;const kl=function(t,e,n,r,i,o){var s=1&n,a=Je(t),l=a.length;if(l!=Je(e).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in e:bl.call(e,d)))return!1}var h=o.get(t),u=o.get(e);if(h&&u)return h==e&&u==t;var m=!0;o.set(t,e),o.set(e,t);for(var g=s;++c<l;){var p=t[d=a[c]],f=e[d];if(r)var b=s?r(f,p,d,e,t,o):r(p,f,d,t,e,o);if(!(void 0===b?p===f||i(p,f,n,r,o):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var k=t.constructor,w=e.constructor;k==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof k&&k instanceof k&&"function"==typeof w&&w instanceof w||(m=!1)}return o.delete(t),o.delete(e),m};var wl="[object Arguments]",Al="[object Array]",_l="[object Object]",Cl=Object.prototype.hasOwnProperty;const vl=function(t,e,n,r,i,o){var s=ne(t),a=ne(e),l=s?Al:pn(t),c=a?Al:pn(e),d=(l=l==wl?_l:l)==_l,h=(c=c==wl?_l:c)==_l,u=l==c;if(u&&ae(t)){if(!ae(e))return!1;s=!0,d=!1}if(u&&!d)return o||(o=new qt),s||we(t)?hl(t,e,n,r,i,o):fl(t,e,l,n,r,i,o);if(!(1&n)){var m=d&&Cl.call(t,"__wrapped__"),g=h&&Cl.call(e,"__wrapped__");if(m||g){var p=m?t.value():t,f=g?e.value():e;return o||(o=new qt),i(p,f,n,r,o)}}return!!u&&(o||(o=new qt),kl(t,e,n,r,i,o))};const yl=function t(e,n,r,i,o){return e===n||(null==e||null==n||!x(e)&&!x(n)?e!=e&&n!=n:vl(e,n,r,i,t,o))};const xl=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?yl(t,e,void 0,n):!!r};class El extends Xa{domConverter;_config;_domElements;_mutationObserver;constructor(t){super(t),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=t.domConverter,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(t){this._domElements.add(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}stopObserving(t){if(this._domElements.delete(t),this.isEnabled){this._mutationObserver.disconnect();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}}enable(){super.enable();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(t){if(0===t.length)return;const e=this.domConverter,n=new Set,r=new Set;for(const n of t){const t=e.mapDomToView(n.target);t&&(t.is("uiElement")||t.is("rawElement")||"childList"!==n.type||this._isBogusBrMutation(n)||r.add(t))}for(const i of t){const t=e.mapDomToView(i.target);if((!t||!t.is("uiElement")&&!t.is("rawElement"))&&"characterData"===i.type){const t=e.findCorrespondingViewText(i.target);t&&!r.has(t.parent)?n.add(t):!t&&Va(i.target)&&r.add(e.mapDomToView(i.target.parentNode))}}const i=[];for(const t of n)i.push({type:"text",node:t});for(const t of r){const n=e.mapViewToDom(t),r=Array.from(t.getChildren()),o=Array.from(e.domChildrenToView(n,{withChildren:!1}));xl(r,o,Bl)||i.push({type:"children",node:t})}i.length&&this.document.fire("mutations",{mutations:i})}_isBogusBrMutation(t){let e=null;return null===t.nextSibling&&0===t.removedNodes.length&&1==t.addedNodes.length&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}function Bl(t,e){if(!Array.isArray(t))return t===e||!(!t.is("$text")||!e.is("$text"))&&t.data===e.data}class Dl extends nl{_renderTimeoutId=null;_isFocusChanging=!1;domEventType=["focus","blur"];constructor(t){super(t),this.useCapture=!0;const e=this.document;e.on("focus",(()=>this._handleFocus())),e.on("blur",((t,e)=>this._handleBlur(e))),e.on("beforeinput",(()=>{e.isFocused||this._handleFocus()}),{priority:"highest"})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._clearTimeout(),super.destroy()}_handleFocus(){this._clearTimeout(),this._isFocusChanging=!0,this._renderTimeoutId=setTimeout((()=>{this._renderTimeoutId=null,this.flush(),this.view.change((()=>{}))}),50)}_handleBlur(t){const e=this.document.selection.editableElement;null!==e&&e!==t.target||(this.document.isFocused=!1,this._isFocusChanging=!1,this.view.change((()=>{})))}_clearTimeout(){this._renderTimeoutId&&(clearTimeout(this._renderTimeoutId),this._renderTimeoutId=null)}}class Sl extends Xa{mutationObserver;focusObserver;selection;domConverter;_documents;_fireSelectionChangeDoneDebounced;_clearInfiniteLoopInterval;_documentIsSelectingInactivityTimeoutDebounced;_loopbackCounter;constructor(t){super(t),this.mutationObserver=t.getObserver(El),this.focusObserver=t.getObserver(Dl),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=F((t=>{this.document.fire("selectionChangeDone",t)}),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=F((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(e),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(t,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(t,"keydown",n,{priority:"highest",useCapture:!0}),this.listenTo(t,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(e)||(this.listenTo(e,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",(()=>{this.document.isComposing&&!Xn.isAndroid||(this._handleSelectionChange(e),this._documentIsSelectingInactivityTimeoutDebounced())})),this.listenTo(this.view.document,"compositionstart",(()=>{this._handleSelectionChange(e)}),{priority:"lowest"}),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t){if(!this.isEnabled)return;const e=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(e.anchorNode))return;this.mutationObserver.flush();const n=this.domConverter.domSelectionToView(e);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(n)||!this.domConverter.isDomSelectionCorrect(e))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(n))this.view.forceRender();else{const t={oldSelection:this.selection,newSelection:n,domSelection:e};this.document.fire("selectionChange",t),this._fireSelectionChangeDoneDebounced(t)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Tl extends nl{domEventType=["compositionstart","compositionupdate","compositionend"];constructor(t){super(t);const e=this.document;e.on("compositionstart",(()=>{e.isComposing=!0}),{priority:"low"}),e.on("compositionend",(()=>{e.isComposing=!1}),{priority:"low"})}onDomEvent(t){this.fire(t.type,t,{data:t.data})}}class Il{_files;_native;constructor(t,e={}){this._files=e.cacheFiles?Pl(t):null,this._native=t}get files(){return this._files||(this._files=Pl(this._native)),this._files}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}set effectAllowed(t){this._native.effectAllowed=t}get effectAllowed(){return this._native.effectAllowed}set dropEffect(t){this._native.dropEffect=t}get dropEffect(){return this._native.dropEffect}setDragImage(t,e,n){this._native.setDragImage(t,e,n)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Pl(t){const e=Array.from(t.files||[]),n=Array.from(t.items||[]);return e.length?e:n.filter((t=>"file"===t.kind)).map((t=>t.getAsFile()))}class Vl extends nl{domEventType="beforeinput";onDomEvent(t){const e=t.getTargetRanges(),n=this.view,r=n.document;let i=null,o=null,s=[];if(t.dataTransfer&&(i=new Il(t.dataTransfer)),null!==t.data?o=t.data:i&&(o=i.getData("text/plain")),r.selection.isFake)s=Array.from(r.selection.getRanges());else if(e.length)s=e.map((t=>{const e=n.domConverter.domPositionToView(t.startContainer,t.startOffset),r=n.domConverter.domPositionToView(t.endContainer,t.endOffset);return e?n.createRange(e,r):r?n.createRange(r):void 0})).filter((t=>!!t));else if(Xn.isAndroid){const e=t.target.ownerDocument.defaultView.getSelection();s=Array.from(n.domConverter.domSelectionToView(e).getRanges())}if(Xn.isAndroid&&"insertCompositionText"==t.inputType&&o&&o.endsWith("\n"))this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(s[0].end)]});else if("insertText"==t.inputType&&o&&o.includes("\n")){const e=o.split(/\n{1,2}/g);let n=s;for(let o=0;o<e.length;o++){const s=e[o];""!=s&&(this.fire(t.type,t,{data:s,dataTransfer:i,targetRanges:n,inputType:t.inputType,isComposing:t.isComposing}),n=[r.selection.getFirstRange()]),o+1<e.length&&(this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:n}),n=[r.selection.getFirstRange()])}}else this.fire(t.type,t,{data:o,dataTransfer:i,targetRanges:s,inputType:t.inputType,isComposing:t.isComposing})}}class Fl extends Xa{constructor(t){super(t),this.document.on("keydown",((t,e)=>{if(this.isEnabled&&((n=e.keyCode)==$i.arrowright||n==$i.arrowleft||n==$i.arrowup||n==$i.arrowdown)){const n=new Xs(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(n,e),n.stop.called&&t.stop()}var n}))}observe(){}stopObserving(){}}class Rl extends Xa{constructor(t){super(t);const e=this.document;e.on("keydown",((t,n)=>{if(!this.isEnabled||n.keyCode!=$i.tab||n.ctrlKey)return;const r=new Xs(e,"tab",e.selection.getFirstRange());e.fire(r,n),r.stop.called&&t.stop()}))}observe(){}stopObserving(){}}const Ll=function(t){return Hn(t,5)};class zl extends(jr()){document;domConverter;domRoots=new Map;_renderer;_initialDomRootAttributes=new WeakMap;_observers=new Map;_writer;_ongoingChange=!1;_postFixersInProgress=!1;_renderingDisabled=!1;_hasChangedSinceTheLastRendering=!1;constructor(t){super(),this.document=new sa(t),this.domConverter=new Za(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Na(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new ka(this.document),this.addObserver(El),this.addObserver(Dl),this.addObserver(Sl),this.addObserver(rl),this.addObserver(il),this.addObserver(Tl),this.addObserver(Fl),this.addObserver(Vl),this.addObserver(Rl),this.document.on("arrowKey",La,{priority:"low"}),ma(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(()=>{this._hasChangedSinceTheLastRendering=!0})),Xn.isiOS&&this.listenTo(this.document,"blur",((t,e)=>{this.domConverter.mapDomToView(e.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})),this.listenTo(this.document,"mutations",((t,{mutations:e})=>{e.forEach((t=>this._renderer.markToSync(t.type,t.node)))}),{priority:"low"}),this.listenTo(this.document,"mutations",(()=>{this.forceRender()}),{priority:"lowest"})}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const r={};for(const{name:e,value:i}of Array.from(t.attributes))r[e]=i,"class"===e?this._writer.addClass(i.split(" "),n):n.hasAttribute(e)||this._writer.setAttribute(e,i,n);this._initialDomRootAttributes.set(t,r);const i=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};i(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",((t,e)=>this._renderer.markToSync("children",e))),n.on("change:attributes",((t,e)=>this._renderer.markToSync("attributes",e))),n.on("change:text",((t,e)=>this._renderer.markToSync("text",e))),n.on("change:isReadOnly",(()=>this.change(i))),n.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const n of this._observers.values())n.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach((({name:t})=>e.removeAttribute(t)));const n=this._initialDomRootAttributes.get(e);for(const t in n)e.setAttribute(t,n[t]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e);for(const t of this._observers.values())t.stopObserving(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[t,n]of this.domRoots)e.observe(n,t);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection({alignToTop:t,forceScroll:e,viewportOffset:n=20,ancestorOffset:r=20}={}){const i=this.document.selection.getFirstRange();if(!i)return;const o=Ll({alignToTop:t,forceScroll:e,viewportOffset:n,ancestorOffset:r});"number"==typeof n&&(n={top:n,bottom:n,left:n,right:n});const s={target:this.domConverter.viewRangeToDom(i),viewportOffset:n,ancestorOffset:r,alignToTop:t,forceScroll:e};this.fire("scrollToTheSelection",s,o),Vi(s)}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new kr("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(t){kr.rethrowUnexpectedError(t,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(Dl).flush(),this.change((()=>{}))}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return Ks._createAt(t,e)}createPositionAfter(t){return Ks._createAfter(t)}createPositionBefore(t){return Ks._createBefore(t)}createRange(t,e){return new Zs(t,e)}createRangeOn(t){return Zs._createOn(t)}createRangeIn(t){return Zs._createIn(t)}createSelection(...t){return new Js(...t)}_disableRendering(t){this._renderingDisabled=t,0==t&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Ml{is(){throw new Error("is() method is abstract")}}class Nl extends Ml{parent=null;_attrs;constructor(t){super(),this._attrs=So(t)}get document(){return null}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new kr("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new kr("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),r=t.getAncestors(e);let i=0;for(;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),r=Zr(e,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return e[r]<n[r]}}isAfter(t){return this!=t&&(this.root===t.root&&!this.isBefore(t))}hasAttribute(t){return this._attrs.has(t)}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const t={};return this._attrs.size&&(t.attributes=Array.from(this._attrs).reduce(((t,e)=>(t[e[0]]=e[1],t)),{})),t}_clone(t){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=So(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}Nl.prototype.is=function(t){return"node"===t||"model:node"===t};class Ol{_nodes=[];constructor(t){t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((t,e)=>t+e.offsetSize),0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);if(null===e)return null;let n=0;for(let t=0;t<e;t++)n+=this._nodes[t].offsetSize;return n}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new kr("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t<e+n.offsetSize)return this.getNodeIndex(n);e+=n.offsetSize}if(e!=t)throw new kr("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.length}_insertNodes(t,e){for(const t of e)if(!(t instanceof Nl))throw new kr("model-nodelist-insertnodes-not-node",this);this._nodes=function(t,e,n,r){if(Math.max(e.length,t.length)>1e4)return t.slice(0,n).concat(e).concat(t.slice(n+r,t.length));{const i=Array.from(t);return i.splice(n,r,...e),i}}(this._nodes,Array.from(e),t,0)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map((t=>t.toJSON()))}}class Hl extends Nl{_data;constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new Hl(this.data,this.getAttributes())}static fromJSON(t){return new Hl(t.data,t.attributes)}}Hl.prototype.is=function(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t};class jl extends Ml{textNode;data;offsetInText;constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new kr("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new kr("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}jl.prototype.is=function(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t};class ql extends Nl{name;_children=new Ol;constructor(t,e,n){super(e),this.name=t,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map((t=>t._clone(!0))):void 0;return new ql(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new Hl(t)];Yr(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Hl(t):t instanceof jl?new Hl(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}static fromJSON(t){let e;if(t.children){e=[];for(const n of t.children)n.name?e.push(ql.fromJSON(n)):e.push(Hl.fromJSON(n))}return new ql(t.name,t.attributes,e)}}ql.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t};class Ul{direction;boundaries;singleCharacters;shallow;ignoreElementEnd;_position;_boundaryStartParent;_boundaryEndParent;_visitedParent;constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new kr("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new kr("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this._position=t.startPosition.clone():this._position=$l._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n,r,i;do{r=this.position,i=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this._position=r,this._visitedParent=i)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const r=Gl(e,n),i=r||Kl(e,n,r);if(i instanceof ql){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e.path.push(0),this._visitedParent=i;return this._position=e,Wl("elementStart",i,t,e,1)}if(i instanceof Hl){let r;if(this.singleCharacters)r=1;else{let t=i.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<t&&(t=this.boundaries.end.offset),r=t-e.offset}const o=e.offset-i.startOffset,s=new jl(i,o,r);return e.offset+=r,this._position=e,Wl("text",s,t,e,r)}return e.path.pop(),e.offset++,this._position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Wl("elementEnd",n,t,e)}_previous(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===e.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const r=e.parent,i=Gl(e,r),o=i||Zl(e,r,i);if(o instanceof ql)return e.offset--,this.shallow?(this._position=e,Wl("elementStart",o,t,e,1)):(e.path.push(o.maxOffset),this._position=e,this._visitedParent=o,this.ignoreElementEnd?this._previous():Wl("elementEnd",o,t,e));if(o instanceof Hl){let r;if(this.singleCharacters)r=1;else{let t=o.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>t&&(t=this.boundaries.start.offset),r=e.offset-t}const i=e.offset-o.startOffset,s=new jl(o,i-r,r);return e.offset-=r,this._position=e,Wl("text",s,t,e,r)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,Wl("elementStart",n,t,e,1)}}function Wl(t,e,n,r,i){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:r,length:i}}}class $l extends Ml{root;path;stickiness;constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new kr("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new kr("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e<this.path.length-1;e++)if(t=t.getChild(t.offsetToIndex(this.path[e])),!t)throw new kr("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new kr("model-position-path-incorrect",this,{position:this});return t}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Gl(this,this.parent)}get nodeAfter(){const t=this.parent;return Kl(this,t,Gl(this,t))}get nodeBefore(){const t=this.parent;return Zl(this,t,Gl(this,t))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(t){if(this.root!=t.root)return"different";const e=Zr(this.path,t.path);switch(e){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[e]<t.path[e]?"before":"after"}}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new Ul(e);return n.skip(t),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const t=this.parent;return t.is("documentFragment")?[t]:t.getAncestors({includeSelf:!0})}findAncestor(t){const e=this.parent;return e.is("element")?e.findAncestor(t,{includeSelf:!0}):null}getCommonPath(t){if(this.root!=t.root)return[];const e=Zr(this.path,t.path),n="string"==typeof e?Math.min(this.path.length,t.path.length):e;return this.path.slice(0,n)}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let r=0;for(;e[r]==n[r]&&e[r];)r++;return 0===r?null:e[r-1]}getShiftedBy(t){const e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e}isAfter(t){return"after"==this.compareWith(t)}isBefore(t){return"before"==this.compareWith(t)}isEqual(t){return"same"==this.compareWith(t)}isTouching(t){if(this.root!==t.root)return!1;const e=Math.min(this.path.length,t.path.length);for(let n=0;n<e;n++){const e=this.path[n]-t.path[n];if(e<-1||e>1)return!1;if(1===e)return Yl(t,this,n);if(-1===e)return Yl(this,t,n)}return this.path.length===t.path.length||(this.path.length>t.path.length?Jl(this.path,e):Jl(t.path,e))}hasSameParentAs(t){if(this.root!==t.root)return!1;return"same"==Zr(this.getParentPath(),t.getParentPath())}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=$l._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?$l._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=$l._createAt(this);if(this.root!=t.root)return n;if("same"==Zr(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+e>this.offset)return null;n.offset-=e}}else if("prefix"==Zr(t.getParentPath(),this.getParentPath())){const r=t.path.length-1;if(t.offset<=this.path[r]){if(t.offset+e>this.path[r])return null;n.path[r]-=e}}return n}_getTransformedByInsertion(t,e){const n=$l._createAt(this);if(this.root!=t.root)return n;if("same"==Zr(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=e);else if("prefix"==Zr(t.getParentPath(),this.getParentPath())){const r=t.path.length-1;t.offset<=this.path[r]&&(n.path[r]+=e)}return n}_getTransformedByMove(t,e,n){if(e=e._getTransformedByDeletion(t,n),t.isEqual(e))return $l._createAt(this);const r=this._getTransformedByDeletion(t,n);return null===r||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,e):r._getTransformedByInsertion(e,n)}_getCombined(t,e){const n=t.path.length-1,r=$l._createAt(e);return r.stickiness=this.stickiness,r.offset=r.offset+this.path[n]-t.offset,r.path=[...r.path,...this.path.slice(n+1)],r}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(t,e,n="toNone"){if(t instanceof $l)return new $l(t.root,t.path,t.stickiness);{const r=t;if("end"==e)e=r.maxOffset;else{if("before"==e)return this._createBefore(r,n);if("after"==e)return this._createAfter(r,n);if(0!==e&&!e)throw new kr("model-createpositionat-offset-required",[this,t])}if(!r.is("element")&&!r.is("documentFragment"))throw new kr("model-position-parent-incorrect",[this,t]);const i=r.getPath();return i.push(e),new this(r.root,i,n)}}static _createAfter(t,e){if(!t.parent)throw new kr("model-position-after-root",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e)}static _createBefore(t,e){if(!t.parent)throw new kr("model-position-before-root",t,{root:t});return this._createAt(t.parent,t.startOffset,e)}static fromJSON(t,e){if("$graveyard"===t.root){const n=new $l(e.graveyard,t.path);return n.stickiness=t.stickiness,n}if(!e.getRoot(t.root))throw new kr("model-position-fromjson-no-root",e,{rootName:t.root});return new $l(e.getRoot(t.root),t.path,t.stickiness)}}function Gl(t,e){const n=e.getChild(e.offsetToIndex(t.offset));return n&&n.is("$text")&&n.startOffset<t.offset?n:null}function Kl(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset))}function Zl(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset)-1)}function Yl(t,e,n){return n+1!==t.path.length&&(!!Jl(e.path,n+1)&&!!function(t,e){let n=t.parent,r=t.path.length-1,i=0;for(;r>=e;){if(t.path[r]+i!==n.maxOffset)return!1;i=1,r--,n=n.parent}return!0}(t,n+1))}function Jl(t,e){for(;e<t.length;){if(0!==t[e])return!1;e++}return!0}$l.prototype.is=function(t){return"position"===t||"model:position"===t};class Ql extends Ml{start;end;constructor(t,e){super(),this.start=$l._createAt(t),this.end=e?$l._createAt(e):$l._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Ul({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==Zr(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),r=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&r}containsItem(t){const e=$l._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}isEqual(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Ql(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Ql(t.end,this.end))):e.push(new Ql(this.start,this.end)),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new Ql(e,n)}return null}getJoined(t,e=!1){let n=this.isIntersecting(t);if(n||(n=this.start.isBefore(t.start)?e?this.end.isTouching(t.start):this.end.isEqual(t.start):e?t.end.isTouching(this.start):t.end.isEqual(this.start)),!n)return null;let r=this.start,i=this.end;return t.start.isBefore(r)&&(r=t.start),t.end.isAfter(i)&&(i=t.end),new Ql(r,i)}getMinimalFlatRanges(){const t=[],e=this.start.getCommonPath(this.end).length,n=$l._createAt(this.start);let r=n.parent;for(;n.path.length>e+1;){const e=r.maxOffset-n.offset;0!==e&&t.push(new Ql(n,n.getShiftedBy(e))),n.path=n.path.slice(0,-1),n.offset++,r=r.parent}for(;n.path.length<=this.end.path.length;){const e=this.end.path[n.path.length-1],r=e-n.offset;0!==r&&t.push(new Ql(n,n.getShiftedBy(r))),n.offset=e,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new Ul(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Ul(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new Ul(t);yield e.position;for(const t of e)yield t.nextPosition}getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new Ql(this.start,this.end)]}getTransformedByOperations(t){const e=[new Ql(this.start,this.end)];for(const n of t)for(let t=0;t<e.length;t++){const r=e[t].getTransformedByOperation(n);e.splice(t,1,...r),t+=r.length-1}for(let t=0;t<e.length;t++){const n=e[t];for(let r=t+1;r<e.length;r++){const t=e[r];(n.containsRange(t)||t.containsRange(n)||n.isEqual(t))&&e.splice(r,1)}}return e}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const t=this.start.nodeAfter,e=this.end.nodeBefore;return t&&t.is("element")&&t===e?t:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(t,e=!1){return this._getTransformedByInsertion(t.position,t.howMany,e)}_getTransformedByMoveOperation(t,e=!1){const n=t.sourcePosition,r=t.howMany,i=t.targetPosition;return this._getTransformedByMove(n,i,r,e)}_getTransformedBySplitOperation(t){const e=this.start._getTransformedBySplitOperation(t);let n=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(n=this.end.getShiftedBy(1)),e.root!=n.root&&(n=this.end.getShiftedBy(-1)),new Ql(e,n)}_getTransformedByMergeOperation(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new Ql(this.start);let e=this.start._getTransformedByMergeOperation(t),n=this.end._getTransformedByMergeOperation(t);return e.root!=n.root&&(n=this.end.getShiftedBy(-1)),e.isAfter(n)?(t.sourcePosition.isBefore(t.targetPosition)?(e=$l._createAt(n),e.offset=0):(t.deletionPosition.isEqual(e)||(n=t.deletionPosition),e=t.targetPosition),new Ql(e,n)):new Ql(e,n)}_getTransformedByInsertion(t,e,n=!1){if(n&&this.containsPosition(t))return[new Ql(this.start,t),new Ql(t.getShiftedBy(e),this.end._getTransformedByInsertion(t,e))];{const n=new Ql(this.start,this.end);return n.start=n.start._getTransformedByInsertion(t,e),n.end=n.end._getTransformedByInsertion(t,e),[n]}}_getTransformedByMove(t,e,n,r=!1){if(this.isCollapsed){const r=this.start._getTransformedByMove(t,e,n);return[new Ql(r)]}const i=Ql._createFromPositionAndShift(t,n),o=e._getTransformedByDeletion(t,n);if(this.containsPosition(e)&&!r&&(i.containsPosition(this.start)||i.containsPosition(this.end))){const r=this.start._getTransformedByMove(t,e,n),i=this.end._getTransformedByMove(t,e,n);return[new Ql(r,i)]}let s;const a=this.getDifference(i);let l=null;const c=this.getIntersection(i);if(1==a.length?l=new Ql(a[0].start._getTransformedByDeletion(t,n),a[0].end._getTransformedByDeletion(t,n)):2==a.length&&(l=new Ql(this.start,this.end._getTransformedByDeletion(t,n))),s=l?l._getTransformedByInsertion(o,n,null!==c||r):[],c){const t=new Ql(c.start._getCombined(i.start,o),c.end._getCombined(i.start,o));2==s.length?s.splice(1,0,t):s.push(t)}return s}_getTransformedByDeletion(t,e){let n=this.start._getTransformedByDeletion(t,e),r=this.end._getTransformedByDeletion(t,e);return null==n&&null==r?null:(null==n&&(n=t),null==r&&(r=t),new Ql(n,r))}static _createFromPositionAndShift(t,e){const n=t,r=t.getShiftedBy(e);return e>0?new this(n,r):new this(r,n)}static _createIn(t){return new this($l._createAt(t,0),$l._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift($l._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(0===t.length)throw new kr("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();const e=t[0];t.sort(((t,e)=>t.start.isAfter(e.start)?1:-1));const n=t.indexOf(e),r=new this(e.start,e.end);for(let e=n-1;e>=0&&t[e].end.isEqual(r.start);e--)r.start=$l._createAt(t[e].start);for(let e=n+1;e<t.length&&t[e].start.isEqual(r.end);e++)r.end=$l._createAt(t[e].end);return r}static fromJSON(t,e){return new this($l.fromJSON(t.start,e),$l.fromJSON(t.end,e))}}Ql.prototype.is=function(t){return"range"===t||"model:range"===t};class Xl extends(Dr()){_modelToViewMapping=new WeakMap;_viewToModelMapping=new WeakMap;_viewToModelLengthCallbacks=new Map;_markerNameToElements=new Map;_elementToMarkerNames=new Map;_deferredBindingRemovals=new Map;_unboundMarkerNames=new Set;constructor(){super(),this.on("modelToViewPosition",((t,e)=>{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new kr("mapping-model-position-view-parent-not-found",this,{modelPosition:e.modelPosition});e.viewPosition=this.findPositionIn(n,e.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),r=this._viewToModelMapping.get(n),i=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=$l._createAt(r,i)}),{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t,e={}){const n=this.toModelElement(t);if(this._elementToMarkerNames.has(t))for(const e of this._elementToMarkerNames.get(t))this._unboundMarkerNames.add(e);e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n))}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t);const r=this._elementToMarkerNames.get(t)||new Set;r.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,r)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));const r=this._elementToMarkerNames.get(t);r&&(r.delete(e),0==r.size&&this._elementToMarkerNames.delete(t))}flushUnboundMarkerNames(){const t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}flushDeferredBindings(){for(const[t,e]of this._deferredBindingRemovals)t.root==e&&this.unbindViewElement(t);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new Ql(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new Zs(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const t of e)if(t.is("attributeElement"))for(const e of t.getElementsWithSameId())n.add(e);else n.add(t);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t){return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t)}if(t.is("$text"))return e;let r=0;for(let n=0;n<e;n++)r+=this.getModelLength(t.getChild(n));return r}getModelLength(t){if(this._viewToModelLengthCallbacks.get(t.name)){return this._viewToModelLengthCallbacks.get(t.name)(t)}if(this._viewToModelMapping.has(t))return 1;if(t.is("$text"))return t.data.length;if(t.is("uiElement"))return 0;{let e=0;for(const n of t.getChildren())e+=this.getModelLength(n);return e}}findPositionIn(t,e){let n,r=0,i=0,o=0;if(t.is("$text"))return new Ks(t,e);for(;i<e;)n=t.getChild(o),r=this.getModelLength(n),i+=r,o++;return i==e?this._moveViewPositionToTextNode(new Ks(t,o)):this.findPositionIn(n,e-(i-r))}_moveViewPositionToTextNode(t){const e=t.nodeBefore,n=t.nodeAfter;return e instanceof os?new Ks(e,e.data.length):n instanceof os?new Ks(n,0):t}}class tc{_consumable=new Map;_textProxyRegistry=new Map;add(t,e){e=ec(e),t instanceof jl&&(t=this._getSymbolForTextProxy(t)),this._consumable.has(t)||this._consumable.set(t,new Map),this._consumable.get(t).set(e,!0)}consume(t,e){return e=ec(e),t instanceof jl&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}test(t,e){e=ec(e),t instanceof jl&&(t=this._getSymbolForTextProxy(t));const n=this._consumable.get(t);if(void 0===n)return null;const r=n.get(e);return void 0===r?null:r}revert(t,e){e=ec(e),t instanceof jl&&(t=this._getSymbolForTextProxy(t));const n=this.test(t,e);return!1===n?(this._consumable.get(t).set(e,!0),!0):!0!==n&&null}verifyAllConsumed(t){const e=[];for(const[n,r]of this._consumable)for(const[i,o]of r){const r=i.split(":")[0];o&&t==r&&e.push({event:i,item:n.name||n.description})}if(e.length)throw new kr("conversion-model-consumable-not-consumed",null,{items:e})}_getSymbolForTextProxy(t){let e=null;const n=this._textProxyRegistry.get(t.startOffset);if(n){const r=n.get(t.endOffset);r&&(e=r.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t)),e}_addSymbolForTextProxy(t){const e=t.startOffset,n=t.endOffset,r=t.parent,i=Symbol("$textProxy:"+t.data);let o,s;return o=this._textProxyRegistry.get(e),o||(o=new Map,this._textProxyRegistry.set(e,o)),s=o.get(n),s||(s=new Map,o.set(n,s)),s.set(r,i),i}}function ec(t){const e=t.split(":");return"insert"==e[0]?e[0]:"addMarker"==e[0]||"removeMarker"==e[0]?t:e.length>1?e[0]+":"+e[1]:e[0]}class nc extends(Dr()){_conversionApi;_firedEventsMap;constructor(t){super(),this._conversionApi={dispatcher:this,...t},this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const r=this._createConversionApi(n,t.getRefreshedItems());for(const e of t.getMarkersToRemove())this._convertMarkerRemove(e.name,e.range,r);const i=this._reduceChanges(t.getChanges());for(const t of i)"insert"===t.type?this._convertInsert(Ql._createFromPositionAndShift(t.position,t.length),r):"reinsert"===t.type?this._convertReinsert(Ql._createFromPositionAndShift(t.position,t.length),r):"remove"===t.type?this._convertRemove(t.position,t.length,t.name,r):this._convertAttribute(t.range,t.attributeKey,t.attributeOldValue,t.attributeNewValue,r);r.mapper.flushDeferredBindings();for(const t of r.mapper.flushUnboundMarkerNames()){const n=e.get(t).getRange();this._convertMarkerRemove(t,n,r),this._convertMarkerAdd(t,n,r)}for(const e of t.getMarkersToAdd())this._convertMarkerAdd(e.name,e.range,r);r.consumable.verifyAllConsumed("insert")}convert(t,e,n,r={}){const i=this._createConversionApi(n,void 0,r);this._convertInsert(t,i);for(const[t,n]of e)this._convertMarkerAdd(t,n,i);i.consumable.verifyAllConsumed("insert")}convertSelection(t,e,n){const r=this._createConversionApi(n);this.fire("cleanSelection",{selection:t},r);const i=t.getFirstPosition().root;if(!r.mapper.toViewElement(i))return;const o=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this._addConsumablesForSelection(r.consumable,t,o),this.fire("selection",{selection:t},r),t.isCollapsed){for(const e of o)if(r.consumable.test(t,"addMarker:"+e.name)){const n=e.getRange();if(!rc(t.getFirstPosition(),e,r.mapper))continue;const i={item:t,markerName:e.name,markerRange:n};this.fire(`addMarker:${e.name}`,i,r)}for(const e of t.getAttributeKeys())if(r.consumable.test(t,"attribute:"+e)){const n={item:t,range:t.getFirstRange(),attributeKey:e,attributeOldValue:null,attributeNewValue:t.getAttribute(e)};this.fire(`attribute:${e}:$text`,n,r)}}}_convertInsert(t,e,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,t);for(const n of Array.from(t.getWalker({shallow:!0})).map(ic))this._testAndFire("insert",n,e)}_convertRemove(t,e,n,r){this.fire(`remove:${n}`,{position:t,length:e},r)}_convertAttribute(t,e,n,r,i){this._addConsumablesForRange(i.consumable,t,`attribute:${e}`);for(const o of t){const t={item:o.item,range:Ql._createFromPositionAndShift(o.previousPosition,o.length),attributeKey:e,attributeOldValue:n,attributeNewValue:r};this._testAndFire(`attribute:${e}`,t,i)}}_convertReinsert(t,e){const n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);for(const t of n.map(ic))this._testAndFire("insert",{...t,reconversion:!0},e)}_convertMarkerAdd(t,e,n){if("$graveyard"==e.root.rootName)return;const r=`addMarker:${t}`;if(n.consumable.add(e,r),this.fire(r,{markerName:t,markerRange:e},n),n.consumable.consume(e,r)){this._addConsumablesForRange(n.consumable,e,r);for(const i of e.getItems()){if(!n.consumable.test(i,r))continue;const o={item:i,range:Ql._createOn(i),markerName:t,markerRange:e};this.fire(r,o,n)}}}_convertMarkerRemove(t,e,n){"$graveyard"!=e.root.rootName&&this.fire(`removeMarker:${t}`,{markerName:t,markerRange:e},n)}_reduceChanges(t){const e={changes:t};return this.fire("reduceChanges",e),e.changes}_addConsumablesForInsert(t,e){for(const n of e){const e=n.item;if(null===t.test(e,"insert")){t.add(e,"insert");for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n)}}return t}_addConsumablesForRange(t,e,n){for(const r of e.getItems())t.add(r,n);return t}_addConsumablesForSelection(t,e,n){t.add(e,"selection");for(const r of n)t.add(e,"addMarker:"+r.name);for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n);return t}_testAndFire(t,e,n){const r=function(t,e){const n=e.item.is("element")?e.item.name:"$text";return`${t}:${n}`}(t,e),i=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,o=this._firedEventsMap.get(n),s=o.get(i);if(s){if(s.has(r))return;s.add(r)}else o.set(i,new Set([r]));this.fire(r,e,n)}_testAndFireAddAttributes(t,e){const n={item:t,range:Ql._createOn(t)};for(const t of n.item.getAttributeKeys())n.attributeKey=t,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(t),this._testAndFire(`attribute:${t}`,n,e)}_createConversionApi(t,e=new Set,n={}){const r={...this._conversionApi,consumable:new tc,writer:t,options:n,convertItem:t=>this._convertInsert(Ql._createOn(t),r),convertChildren:t=>this._convertInsert(Ql._createIn(t),r,{doNotAddConsumables:!0}),convertAttributes:t=>this._testAndFireAddAttributes(t,r),canReuseView:t=>!e.has(r.mapper.toModelElement(t))};return this._firedEventsMap.set(r,new Map),r}}function rc(t,e,n){const r=e.getRange(),i=Array.from(t.getAncestors());i.shift(),i.reverse();return!i.some((t=>{if(r.containsItem(t)){return!!n.toViewElement(t).getCustomProperty("addHighlight")}}))}function ic(t){return{item:t.item,range:Ql._createFromPositionAndShift(t.previousPosition,t.length)}}class oc extends(Dr(Ml)){_lastRangeBackward=!1;_attrs=new Map;_ranges=[];constructor(...t){super(),t.length&&this.setTo(...t)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const r of t._ranges)if(e.isEqual(r)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new Ql(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?new Ql(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new Ql(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(...t){let[e,n,r]=t;if("object"==typeof n&&(r=n,n=void 0),null===e)this._setRanges([]);else if(e instanceof oc)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof Ql)this._setRanges([e],!!r&&!!r.backward);else if(e instanceof $l)this._setRanges([new Ql(e)]);else if(e instanceof Nl){const t=!!r&&!!r.backward;let i;if("in"==n)i=Ql._createIn(e);else if("on"==n)i=Ql._createOn(e);else{if(void 0===n)throw new kr("model-selection-setto-required-second-parameter",[this,e]);i=new Ql($l._createAt(e,n))}this._setRanges([i],t)}else{if(!Yr(e))throw new kr("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,r&&!!r.backward)}}_setRanges(t,e=!1){const n=Array.from(t),r=n.some((e=>{if(!(e instanceof Ql))throw new kr("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every((t=>!t.isEqual(e)))}));(n.length!==this._ranges.length||r)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0}))}setFocus(t,e){if(null===this.anchor)throw new kr("model-selection-setfocus-no-ranges",[this,t]);const n=$l._createAt(t,e);if("same"==n.compareWith(this.focus))return;const r=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(r)?(this._pushRange(new Ql(n,r)),this._lastRangeBackward=!0):(this._pushRange(new Ql(r,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=lc(e.start,t);dc(n,e)&&(yield n);for(const n of e.getWalker()){const r=n.item;"elementEnd"==n.type&&ac(r,t,e)&&(yield r)}const r=lc(e.end,t);hc(r,e)&&(yield r)}}containsEntireContent(t=this.anchor.root){const e=$l._createAt(t,0),n=$l._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new Ql(t.start,t.end))}_checkRange(t){for(let e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new kr("model-selection-range-intersects",[this,t],{addedRange:t,intersectingRange:this._ranges[e]})}_replaceAllRanges(t){this._removeAllRanges();for(const e of t)this._pushRange(e)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function sc(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&!!t.parent)}function ac(t,e,n){return sc(t,e)&&cc(t,n)}function lc(t,e){const n=t.parent.root.document.model.schema,r=t.parent.getAncestors({parentFirst:!0,includeSelf:!0});let i=!1;const o=r.find((t=>!i&&(i=n.isLimit(t),!i&&sc(t,e))));return r.forEach((t=>e.add(t))),o}function cc(t,e){const n=function(t){const e=t.root.document.model.schema;let n=t.parent;for(;n;){if(e.isBlock(n))return n;n=n.parent}}(t);if(!n)return!0;return!e.containsRange(Ql._createOn(n),!0)}function dc(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.start.isTouching($l._createAt(t,t.maxOffset))&&cc(t,e))}function hc(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.end.isTouching($l._createAt(t,0))&&cc(t,e))}oc.prototype.is=function(t){return"selection"===t||"model:selection"===t};class uc extends(Dr(Ql)){constructor(t,e){super(t,e),mc.call(this)}detach(){this.stopListening()}toRange(){return new Ql(this.start,this.end)}static fromRange(t){return new uc(t.start,t.end)}}function mc(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&gc.call(this,n)}),{priority:"low"})}function gc(t){const e=this.getTransformedByOperation(t),n=Ql._createFromRanges(e),r=!n.isEqual(this),i=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}(this,t);let o=null;if(r){"$graveyard"==n.root.rootName&&(o="remove"==t.type?t.sourcePosition:t.deletionPosition);const e=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",e,{deletionPosition:o})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:o})}uc.prototype.is=function(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t};const pc="selection:";class fc extends(Dr(Ml)){_selection;constructor(t){super(),this._selection=new bc(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(...t){this._selection.setTo(...t)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return pc+t}static _isStoreAttributeKey(t){return t.startsWith(pc)}}fc.prototype.is=function(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t};class bc extends oc{markers=new xo({idProperty:"name"});_model;_document;_attributePriority=new Map;_selectionRestorePosition=null;_hasChangedRange=!1;_overriddenGravityRegister=new Set;_observedMarkers=new Set;constructor(t){super(),this._model=t.model,this._document=t,this.listenTo(this._model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{this._validateSelectionRanges(this.getRanges())})),this.listenTo(this._model.markers,"update",((t,e,n,r)=>{this._updateMarker(e,r)})),this.listenTo(this._document,"change",((t,e)=>{!function(t,e){const n=t.document.differ;for(const r of n.getChanges()){if("insert"!=r.type)continue;const n=r.position.parent;r.length===n.maxOffset&&t.enqueueChange(e,(t=>{const e=Array.from(n.getAttributeKeys()).filter((t=>t.startsWith(pc)));for(const r of e)t.removeAttribute(r,n)}))}}(this._model,e)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t<this._ranges.length;t++)this._ranges[t].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(...t){super.setTo(...t),this._updateAttributes(!0),this.updateMarkers()}setFocus(t,e){super.setFocus(t,e),this._updateAttributes(!0),this.updateMarkers()}setAttribute(t,e){if(this._setAttribute(t,e)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}removeAttribute(t){if(this._removeAttribute(t)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}overrideGravity(){const t=pr();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new kr("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(t){this._observedMarkers.add(t),this.updateMarkers()}_replaceAllRanges(t){this._validateSelectionRanges(t),super._replaceAllRanges(t)}_popRange(){this._ranges.pop().detach()}_pushRange(t){const e=this._prepareRange(t);e&&this._ranges.push(e)}_validateSelectionRanges(t){for(const e of t)if(!this._document._validateSelectionRange(e))throw new kr("document-selection-wrong-position",this,{range:e})}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return;const e=uc.fromRange(t);return e.on("change:range",((t,n,r)=>{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=r.deletionPosition;const t=this._ranges.indexOf(e);this._ranges.splice(t,1),e.detach()}})),e}updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const e of this._model.markers){const n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;const r=e.getRange();for(const n of this.getRanges())r.containsRange(n,!n.isCollapsed)&&t.push(e)}const n=Array.from(this.markers);for(const n of t)this.markers.has(n)||(this.markers.add(n),e=!0);for(const n of Array.from(this.markers))t.includes(n)||(this.markers.remove(n),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let r=!1;const i=Array.from(this.markers),o=this.markers.has(t);if(e){let n=!1;for(const t of this.getRanges())if(e.containsRange(t,!t.isCollapsed)){n=!0;break}n&&!o?(this.markers.add(t),r=!0):!n&&o&&(this.markers.remove(t),r=!0)}else o&&(this.markers.remove(t),r=!0);r&&this.fire("change:marker",{oldMarkers:i,directChange:!1})}_updateAttributes(t){const e=So(this._getSurroundingAttributes()),n=So(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[t,e]of this._attributePriority)"low"==e&&(this._attrs.delete(t),this._attributePriority.delete(t));this._setAttributesTo(e);const r=[];for(const[t,e]of this.getAttributes())n.has(t)&&n.get(t)===e||r.push(t);for(const[t]of n)this.hasAttribute(t)||r.push(t);r.length>0&&this.fire("change:attribute",{attributeKeys:r,directChange:!1})}_setAttribute(t,e,n=!0){const r=n?"normal":"low";if("low"==r&&"normal"==this._attributePriority.get(t))return!1;return super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,r),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(t))&&(this._attributePriority.set(t,n),!!super.hasAttribute(t)&&(this._attrs.delete(t),!0))}_setAttributesTo(t){const e=new Set;for(const[e,n]of this.getAttributes())t.get(e)!==n&&this._removeAttribute(e,!1);for(const[n,r]of t){this._setAttribute(n,r,!1)&&e.add(n)}return e}*getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())if(e.startsWith(pc)){const n=e.substr(10);yield[n,t.getAttribute(e)]}}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;if("$graveyard"==t.root.rootName)return null;let n=null;if(this.isCollapsed){const r=t.textNode?t.textNode:t.nodeBefore,i=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=kc(r,e)),n||(n=kc(i,e)),!this.isGravityOverridden&&!n){let t=r;for(;t&&!n;)t=t.previousSibling,n=kc(t,e)}if(!n){let t=i;for(;t&&!n;)t=t.nextSibling,n=kc(t,e)}n||(n=this.getStoredAttributes())}else{const t=this.getFirstRange();for(const r of t){if(r.item.is("element")&&e.isObject(r.item)){n=kc(r.item,e);break}if("text"==r.type){n=r.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function kc(t,e){if(!t)return null;if(t instanceof jl||t instanceof Hl)return t.getAttributes();if(!e.isInline(t))return null;if(!e.isObject(t))return[];const n=[];for(const[r,i]of t.getAttributes())e.checkAttribute("$text",r)&&!1!==e.getAttributeProperties(r).copyFromObject&&n.push([r,i]);return n}class wc{_dispatchers;constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class Ac extends wc{elementToElement(t){return this.add(function(t){const e=Ec(t.model),n=Bc(t.view,"container");e.attributes.length&&(e.children=!0);return r=>{r.on(`insert:${e.name}`,vc(n,Pc(e)),{priority:t.converterPriority||"normal"}),(e.children||e.attributes.length)&&r.on("reduceChanges",Ic(e),{priority:"low"})}}(t))}elementToStructure(t){return this.add(function(t){const e=Ec(t.model),n=Bc(t.view,"container");return e.children=!0,r=>{if(r._conversionApi.schema.checkChild(e.name,"$text"))throw new kr("conversion-element-to-structure-disallowed-text",r,{elementName:e.name});var i,o;r.on(`insert:${e.name}`,(i=n,o=Pc(e),(t,e,n)=>{if(!o(e.item,n.consumable,{preflight:!0}))return;const r=new Map;n.writer._registerSlotFactory(function(t,e,n){return(r,i)=>{const o=r.createContainerElement("$slot");let s=null;if("children"===i)s=Array.from(t.getChildren());else{if("function"!=typeof i)throw new kr("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:i});s=Array.from(t.getChildren()).filter((t=>i(t)))}return e.set(o,s),o}}(e.item,r,n));const s=i(e.item,n,e);if(n.writer._clearSlotFactory(),!s)return;!function(t,e,n){const r=Array.from(e.values()).flat(),i=new Set(r);if(i.size!=r.length)throw new kr("conversion-slot-filter-overlap",n.dispatcher,{element:t});if(i.size!=t.childCount)throw new kr("conversion-slot-filter-incomplete",n.dispatcher,{element:t})}(e.item,r,n),o(e.item,n.consumable);const a=n.mapper.toViewPosition(e.range.start);n.mapper.bindElements(e.item,s),n.writer.insert(a,s),n.convertAttributes(e.item),function(t,e,n,r){n.mapper.on("modelToViewPosition",s,{priority:"highest"});let i=null,o=null;for([i,o]of e)Vc(t,o,n,r),n.writer.move(n.writer.createRangeIn(i),n.writer.createPositionBefore(i)),n.writer.remove(i);function s(t,e){const n=e.modelPosition.nodeAfter,r=o.indexOf(n);r<0||(e.viewPosition=e.mapper.findPositionIn(i,r))}n.mapper.off("modelToViewPosition",s)}(s,r,n,{reconversion:e.reconversion})}),{priority:t.converterPriority||"normal"}),r.on("reduceChanges",Ic(e),{priority:"low"})}}(t))}attributeToElement(t){return this.add(function(t){t=Ll(t);let e=t.model;"string"==typeof e&&(e={key:e});let n=`attribute:${e.key}`;e.name&&(n+=":"+e.name);if(e.values)for(const n of e.values)t.view[n]=Bc(t.view[n],"attribute");else t.view=Bc(t.view,"attribute");const r=Dc(t);return e=>{e.on(n,Cc(r),{priority:t.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=Ll(t);let e=t.model;"string"==typeof e&&(e={key:e});let n=`attribute:${e.key}`;e.name&&(n+=":"+e.name);if(e.values)for(const n of e.values)t.view[n]=Sc(t.view[n]);else t.view=Sc(t.view);const r=Dc(t);return e=>{var i;e.on(n,(i=r,(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const r=i(e.attributeOldValue,n,e),o=i(e.attributeNewValue,n,e);if(!r&&!o)return;n.consumable.consume(e.item,t.name);const s=n.mapper.toViewElement(e.item),a=n.writer;if(!s)throw new kr("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(null!==e.attributeOldValue&&r)if("class"==r.key){const t="string"==typeof r.value?r.value.split(/\s+/):r.value;for(const e of t)a.removeClass(e,s)}else if("style"==r.key)if("string"==typeof r.value){const t=new Ls(a.document.stylesProcessor);t.setTo(r.value);for(const[e]of t.getStylesEntries())a.removeStyle(e,s)}else{const t=Object.keys(r.value);for(const e of t)a.removeStyle(e,s)}else a.removeAttribute(r.key,s);if(null!==e.attributeNewValue&&o)if("class"==o.key){const t="string"==typeof o.value?o.value.split(/\s+/):o.value;for(const e of t)a.addClass(e,s)}else if("style"==o.key)if("string"==typeof o.value){const t=new Ls(a.document.stylesProcessor);t.setTo(o.value);for(const[e,n]of t.getStylesEntries())a.setStyle(e,n,s)}else{const t=Object.keys(o.value);for(const e of t)a.setStyle(e,o.value[e],s)}else a.setAttribute(o.key,o.value,s)}),{priority:t.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(t){const e=Bc(t.view,"ui");return n=>{n.on(`addMarker:${t.model}`,yc(e),{priority:t.converterPriority||"normal"}),n.on(`removeMarker:${t.model}`,((t,e,n)=>{const r=n.mapper.markerNameToElements(e.markerName);if(r){for(const t of r)n.mapper.unbindElementFromMarkerName(t,e.markerName),n.writer.clear(n.writer.createRangeOn(t),t);n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}),{priority:t.converterPriority||"normal"})}}(t))}markerToHighlight(t){return this.add(function(t){return e=>{var n;e.on(`addMarker:${t.model}`,(n=t.view,(t,e,r)=>{if(!e.item)return;if(!(e.item instanceof oc||e.item instanceof fc||e.item.is("$textProxy")))return;const i=Tc(n,e,r);if(!i)return;if(!r.consumable.consume(e.item,t.name))return;const o=r.writer,s=_c(o,i),a=o.document.selection;if(e.item instanceof oc||e.item instanceof fc)o.wrap(a.getFirstRange(),s);else{const t=r.mapper.toViewRange(e.range),n=o.wrap(t,s);for(const t of n.getItems())if(t.is("attributeElement")&&t.isSimilar(s)){r.mapper.bindElementToMarker(t,e.markerName);break}}}),{priority:t.converterPriority||"normal"}),e.on(`addMarker:${t.model}`,function(t){return(e,n,r)=>{if(!n.item)return;if(!(n.item instanceof ql))return;const i=Tc(t,n,r);if(!i)return;if(!r.consumable.test(n.item,e.name))return;const o=r.mapper.toViewElement(n.item);if(o&&o.getCustomProperty("addHighlight")){r.consumable.consume(n.item,e.name);for(const t of Ql._createIn(n.item))r.consumable.consume(t.item,e.name);o.getCustomProperty("addHighlight")(o,i,r.writer),r.mapper.bindElementToMarker(o,n.markerName)}}}(t.view),{priority:t.converterPriority||"normal"}),e.on(`removeMarker:${t.model}`,function(t){return(e,n,r)=>{if(n.markerRange.isCollapsed)return;const i=Tc(t,n,r);if(!i)return;const o=_c(r.writer,i),s=r.mapper.markerNameToElements(n.markerName);if(s){for(const t of s)if(r.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("attributeElement"))r.writer.unwrap(r.writer.createRangeOn(t),o);else{t.getCustomProperty("removeHighlight")(t,i.id,r.writer)}r.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}markerToData(t){return this.add(function(t){t=Ll(t);const e=t.model;let n=t.view;n||(n=n=>({group:e,name:n.substr(t.model.length+1)}));return r=>{var i;r.on(`addMarker:${e}`,(i=n,(t,e,n)=>{const r=i(e.markerName,n);if(!r)return;const o=e.markerRange;n.consumable.consume(o,t.name)&&(xc(o,!1,n,e,r),xc(o,!0,n,e,r),t.stop())}),{priority:t.converterPriority||"normal"}),r.on(`removeMarker:${e}`,function(t){return(e,n,r)=>{const i=t(n.markerName,r);if(!i)return;const o=r.mapper.markerNameToElements(n.markerName);if(o){for(const t of o)r.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("containerElement")?(s(`data-${i.group}-start-before`,t),s(`data-${i.group}-start-after`,t),s(`data-${i.group}-end-before`,t),s(`data-${i.group}-end-after`,t)):r.writer.clear(r.writer.createRangeOn(t),t);r.writer.clearClonedElementsGroup(n.markerName),e.stop()}function s(t,e){if(e.hasAttribute(t)){const n=new Set(e.getAttribute(t).split(","));n.delete(i.name),0==n.size?r.writer.removeAttribute(t,e):r.writer.setAttribute(t,Array.from(n).join(","),e)}}}}(n),{priority:t.converterPriority||"normal"})}}(t))}}function _c(t,e){const n=t.createAttributeElement("span",e.attributes);return e.classes&&n._addClass(e.classes),"number"==typeof e.priority&&(n._priority=e.priority),n._id=e.id,n}function Cc(t){return(e,n,r)=>{if(!r.consumable.test(n.item,e.name))return;const i=t(n.attributeOldValue,r,n),o=t(n.attributeNewValue,r,n);if(!i&&!o)return;r.consumable.consume(n.item,e.name);const s=r.writer,a=s.document.selection;if(n.item instanceof oc||n.item instanceof fc)s.wrap(a.getFirstRange(),o);else{let t=r.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(t=s.unwrap(t,i)),null!==n.attributeNewValue&&o&&s.wrap(t,o)}}}function vc(t,e=Rc){return(n,r,i)=>{if(!e(r.item,i.consumable,{preflight:!0}))return;const o=t(r.item,i,r);if(!o)return;e(r.item,i.consumable);const s=i.mapper.toViewPosition(r.range.start);i.mapper.bindElements(r.item,o),i.writer.insert(s,o),i.convertAttributes(r.item),Vc(o,r.item.getChildren(),i,{reconversion:r.reconversion})}}function yc(t){return(e,n,r)=>{n.isOpening=!0;const i=t(n,r);n.isOpening=!1;const o=t(n,r);if(!i||!o)return;const s=n.markerRange;if(s.isCollapsed&&!r.consumable.consume(s,e.name))return;for(const t of s)if(!r.consumable.consume(t.item,e.name))return;const a=r.mapper,l=r.writer;l.insert(a.toViewPosition(s.start),i),r.mapper.bindElementToMarker(i,n.markerName),s.isCollapsed||(l.insert(a.toViewPosition(s.end),o),r.mapper.bindElementToMarker(o,n.markerName)),e.stop()}}function xc(t,e,n,r,i){const o=e?t.start:t.end,s=o.nodeAfter&&o.nodeAfter.is("element")?o.nodeAfter:null,a=o.nodeBefore&&o.nodeBefore.is("element")?o.nodeBefore:null;if(s||a){let t,o;e&&s||!e&&!a?(t=s,o=!0):(t=a,o=!1);const l=n.mapper.toViewElement(t);if(l)return void function(t,e,n,r,i,o){const s=`data-${o.group}-${e?"start":"end"}-${n?"before":"after"}`,a=t.hasAttribute(s)?t.getAttribute(s).split(","):[];a.unshift(o.name),r.writer.setAttribute(s,a.join(","),t),r.mapper.bindElementToMarker(t,i.markerName)}(l,e,o,n,r,i)}!function(t,e,n,r,i){const o=`${i.group}-${e?"start":"end"}`,s=i.name?{name:i.name}:null,a=n.writer.createUIElement(o,s);n.writer.insert(t,a),n.mapper.bindElementToMarker(a,r.markerName)}(n.mapper.toViewPosition(o),e,n,r,i)}function Ec(t){return"string"==typeof t&&(t={name:t}),{name:t.name,attributes:t.attributes?eo(t.attributes):[],children:!!t.children}}function Bc(t,e){return"function"==typeof t?t:(n,r)=>function(t,e,n){"string"==typeof t&&(t={name:t});let r;const i=e.writer,o=Object.assign({},t.attributes);if("container"==n)r=i.createContainerElement(t.name,o);else if("attribute"==n){const e={priority:t.priority||aa.DEFAULT_PRIORITY};r=i.createAttributeElement(t.name,o,e)}else r=i.createUIElement(t.name,o);if(t.styles){const e=Object.keys(t.styles);for(const n of e)i.setStyle(n,t.styles[n],r)}if(t.classes){const e=t.classes;if("string"==typeof e)i.addClass(e,r);else for(const t of e)i.addClass(t,r)}return r}(t,r,e)}function Dc(t){return t.model.values?(e,n,r)=>{const i=t.view[e];return i?i(e,n,r):null}:t.view}function Sc(t){return"string"==typeof t?e=>({key:t,value:e}):"object"==typeof t?t.value?()=>t:e=>({key:t.key,value:e}):t}function Tc(t,e,n){const r="function"==typeof t?t(e,n):t;return r?(r.priority||(r.priority=10),r.id||(r.id=e.markerName),r):null}function Ic(t){const e=function(t){return(e,n)=>{if(!e.is("element",t.name))return!1;if("attribute"==n.type){if(t.attributes.includes(n.attributeKey))return!0}else if(t.children)return!0;return!1}}(t);return(t,n)=>{const r=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const t of n.changes){const i="attribute"==t.type?t.range.start.nodeAfter:t.position.parent;if(i&&e(i,t)){if(!n.reconvertedElements.has(i)){n.reconvertedElements.add(i);const t=$l._createBefore(i);let e=r.length;for(let n=r.length-1;n>=0;n--){const i=r[n],o=("attribute"==i.type?i.range.start:i.position).compareWith(t);if("before"==o||"remove"==i.type&&"same"==o)break;e=n}r.splice(e,0,{type:"remove",name:i.name,position:t,length:1},{type:"reinsert",name:i.name,position:t,length:1})}}else r.push(t)}n.changes=r}}function Pc(t){return(e,n,r={})=>{const i=["insert"];for(const n of t.attributes)e.hasAttribute(n)&&i.push(`attribute:${n}`);return!!i.every((t=>n.test(e,t)))&&(r.preflight||i.forEach((t=>n.consume(e,t))),!0)}}function Vc(t,e,n,r){for(const i of e)Fc(t.root,i,n,r)||n.convertItem(i)}function Fc(t,e,n,r){const{writer:i,mapper:o}=n;if(!r.reconversion)return!1;const s=o.toViewElement(e);return!(!s||s.root==t)&&(!!n.canReuseView(s)&&(i.move(i.createRangeOn(s),o.toViewPosition($l._createBefore(e))),!0))}function Rc(t,e,{preflight:n}={}){return n?e.test(t,"insert"):e.consume(t,"insert")}function Lc(t){const{schema:e,document:n}=t.model;for(const r of n.getRoots())if(r.isEmpty&&!e.checkChild(r,"$text")&&e.checkChild(r,"paragraph"))return t.insertElement("paragraph",r),!0;return!1}function zc(t,e,n){const r=n.createContext(t);return!!n.checkChild(r,"paragraph")&&!!n.checkChild(r.push("paragraph"),e)}function Mc(t,e){const n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0)}class Nc extends wc{elementToElement(t){return this.add(Oc(t))}elementToAttribute(t){return this.add(function(t){t=Ll(t),qc(t);const e=Uc(t,!1),n=Hc(t.view),r=n?`element:${n}`:"element";return n=>{n.on(r,e,{priority:t.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=Ll(t);let e=null;("string"==typeof t.view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});const e=t.view.key,n=void 0===t.view.value?/[\s\S]*/:t.view.value;let r;if("class"==e||"style"==e){const t="class"==e?"classes":"styles";r={[t]:n}}else r={attributes:{[e]:n}};t.view.name&&(r.name=t.view.name);return t.view=r,e}(t));qc(t,e);const n=Uc(t,!0);return e=>{e.on("element",n,{priority:t.converterPriority||"low"})}}(t))}elementToMarker(t){return this.add(function(t){const e=function(t){return(e,n)=>{const r="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":r})}}(t.model);return Oc({...t,model:e})}(t))}dataToMarker(t){return this.add(function(t){t=Ll(t),t.model||(t.model=e=>e?t.view+":"+e:t.view);const e={view:t.view,model:t.model},n=jc(Wc(e,"start")),r=jc(Wc(e,"end"));return i=>{i.on(`element:${t.view}-start`,n,{priority:t.converterPriority||"normal"}),i.on(`element:${t.view}-end`,r,{priority:t.converterPriority||"normal"});const o=fr.low,s=fr.highest,a=fr.get(t.converterPriority)/s;i.on("element",function(t){return(e,n,r)=>{const i=`data-${t.view}`;function o(e,i){for(const o of i){const i=t.model(o,r),s=r.writer.createElement("$marker",{"data-name":i});r.writer.insert(s,e),n.modelCursor.isEqual(e)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(e,1),n.modelRange=n.modelRange._getTransformedByInsertion(e,1)[0]}}(r.consumable.test(n.viewItem,{attributes:i+"-end-after"})||r.consumable.test(n.viewItem,{attributes:i+"-start-after"})||r.consumable.test(n.viewItem,{attributes:i+"-end-before"})||r.consumable.test(n.viewItem,{attributes:i+"-start-before"}))&&(n.modelRange||Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor)),r.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(",")))}}(e),{priority:o+a})}}(t))}}function Oc(t){const e=jc(t=Ll(t)),n=Hc(t.view),r=n?`element:${n}`:"element";return n=>{n.on(r,e,{priority:t.converterPriority||"normal"})}}function Hc(t){return"string"==typeof t?t:"object"==typeof t&&"string"==typeof t.name?t.name:null}function jc(t){const e=new as(t.view);return(n,r,i)=>{const o=e.match(r.viewItem);if(!o)return;const s=o.match;if(s.name=!0,!i.consumable.test(r.viewItem,s))return;const a=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t)}(t.model,r.viewItem,i);a&&i.safeInsert(a,r.modelCursor)&&(i.consumable.consume(r.viewItem,s),i.convertChildren(r.viewItem,a),i.updateConversionResult(a,r))}}function qc(t,e=null){const n=null===e||(t=>t.getAttribute(e)),r="object"!=typeof t.model?t.model:t.model.key,i="object"!=typeof t.model||void 0===t.model.value?n:t.model.value;t.model={key:r,value:i}}function Uc(t,e){const n=new as(t.view);return(r,i,o)=>{if(!i.modelRange&&e)return;const s=n.match(i.viewItem);if(!s)return;if(!function(t,e){const n="function"==typeof t?t(e):t;if("object"==typeof n&&!Hc(n))return!1;return!n.classes&&!n.attributes&&!n.styles}(t.view,i.viewItem)?delete s.match.name:s.match.name=!0,!o.consumable.test(i.viewItem,s.match))return;const a=t.model.key,l="function"==typeof t.model.value?t.model.value(i.viewItem,o):t.model.value;if(null===l)return;i.modelRange||Object.assign(i,o.convertChildren(i.viewItem,i.modelCursor));const c=function(t,e,n,r){let i=!1;for(const o of Array.from(t.getItems({shallow:n})))r.schema.checkAttribute(o,e.key)&&(i=!0,o.hasAttribute(e.key)||r.writer.setAttribute(e.key,e.value,o));return i}(i.modelRange,{key:a,value:l},e,o);c&&(o.consumable.test(i.viewItem,{name:!0})&&(s.match.name=!0),o.consumable.consume(i.viewItem,s.match))}}function Wc(t,e){return{view:`${t.view}-${e}`,model:(e,n)=>{const r=e.getAttribute("name"),i=t.model(r,n);return n.writer.createElement("$marker",{"data-name":i})}}}function $c(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.selection,r=e.schema,i=[];let o=!1;for(const t of n.getRanges()){const e=Gc(t,r);e&&!e.isEqual(t)?(i.push(e),o=!0):i.push(t)}o&&t.setSelection(function(t){const e=[...t],n=new Set;let r=1;for(;r<e.length;){const t=e[r],i=e.slice(0,r);for(const[o,s]of i.entries())if(!n.has(o))if(t.isEqual(s))n.add(o);else if(t.isIntersecting(s)){n.add(o),n.add(r);const i=t.getJoined(s);e.push(i)}r++}return e.filter(((t,e)=>!n.has(e)))}(i),{backward:n.isBackward});return!1}(e,t)))}function Gc(t,e){return t.isCollapsed?function(t,e){const n=t.start,r=e.getNearestSelectionRange(n);if(!r){const t=n.getAncestors().reverse().find((t=>e.isObject(t)));return t?Ql._createOn(t):null}if(!r.isCollapsed)return r;const i=r.start;if(n.isEqual(i))return null;return new Ql(i)}(t,e):function(t,e){const{start:n,end:r}=t,i=e.checkChild(n,"$text"),o=e.checkChild(r,"$text"),s=e.getLimitElement(n),a=e.getLimitElement(r);if(s===a){if(i&&o)return null;if(function(t,e,n){const r=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),i=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return r||i}(n,r,e)){const t=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),i=r.nodeBefore&&e.isSelectable(r.nodeBefore)?null:e.getNearestSelectionRange(r,"backward"),o=t?t.start:n,s=i?i.end:r;return new Ql(o,s)}}const l=s&&!s.is("rootElement"),c=a&&!a.is("rootElement");if(l||c){const t=n.nodeAfter&&r.nodeBefore&&n.nodeAfter.parent===r.nodeBefore.parent,i=l&&(!t||!Zc(n.nodeAfter,e)),o=c&&(!t||!Zc(r.nodeBefore,e));let d=n,h=r;return i&&(d=$l._createBefore(Kc(s,e))),o&&(h=$l._createAfter(Kc(a,e))),new Ql(d,h)}return null}(t,e)}function Kc(t,e){let n=t,r=n;for(;e.isLimit(r)&&r.parent;)n=r,r=r.parent;return n}function Zc(t,e){return t&&e.isSelectable(t)}class Yc extends(jr()){model;view;mapper;downcastDispatcher;constructor(t,e){super(),this.model=t,this.view=new zl(e),this.mapper=new Xl,this.downcastDispatcher=new nc({mapper:this.mapper,schema:t.schema});const n=this.model.document,r=n.selection,i=this.model.markers;var o,s,a;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(n,"change",(()=>{this.view.change((t=>{this.downcastDispatcher.convertChanges(n.differ,i,t),this.downcastDispatcher.convertSelection(r,i,t)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(t,e){return(n,r)=>{const i=r.newSelection,o=[];for(const t of i.getRanges())o.push(e.toModelRange(t));const s=t.createSelection(o,{backward:i.isBackward});s.isEqual(t.document.selection)||t.change((t=>{t.setSelection(s)}))}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(o=this.mapper,s=this.model.schema,a=this.view,(t,e)=>{if(!a.document.isComposing||Xn.isAndroid)for(let t=0;t<e.targetRanges.length;t++){const n=e.targetRanges[t],r=o.toModelRange(n),i=Gc(r,s);i&&!i.isEqual(r)&&(e.targetRanges[t]=o.toViewRange(i))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const r=n.writer,i=n.mapper.toViewPosition(e.range.start),o=r.createText(e.item.data);r.insert(i,o)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((t,e,n)=>{n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((t,e,n)=>{const r=n.mapper.toViewPosition(e.position),i=e.position.getShiftedBy(e.length),o=n.mapper.toViewPosition(i,{isPhantom:!0}),s=n.writer.createRange(r,o),a=n.writer.remove(s.getTrimmed());for(const t of n.writer.createRangeIn(a).getItems())n.mapper.unbindViewElement(t,{defer:!0})}),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",((t,e,n)=>{const r=n.writer,i=r.document.selection;for(const t of i.getRanges())t.isCollapsed&&t.end.parent.isAttached()&&n.writer.mergeAttributes(t.start);r.setSelection(null)})),this.downcastDispatcher.on("selection",((t,e,n)=>{const r=e.selection;if(r.isCollapsed)return;if(!n.consumable.consume(r,"selection"))return;const i=[];for(const t of r.getRanges())i.push(n.mapper.toViewRange(t));n.writer.setSelection(i,{backward:r.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const r=e.selection;if(!r.isCollapsed)return;if(!n.consumable.consume(r,"selection"))return;const i=n.writer,o=r.getFirstPosition(),s=n.mapper.toViewPosition(o),a=i.breakAttributes(s);i.setSelection(a)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((t=>{if("$graveyard"==t.rootName)return null;const e=new $s(this.view.document,t.name);return e.rootName=t.rootName,this.mapper.bindElements(t,e),e}))}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(t){const e="string"==typeof t?t:t.name,n=this.model.markers.get(e);if(!n)throw new kr("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:e});this.model.change((()=>{this.model.markers._refresh(n)}))}reconvertItem(t){this.model.change((()=>{this.model.document.differ._refreshItem(t)}))}}class Jc{_consumables=new Map;add(t,e){let n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new Xc(t),this._consumables.set(t,n)),n.add(e))}test(t,e){const n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}revert(t,e){const n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const t of n)"style"!=t&&"class"!=t&&e.attributes.push(t);const r=t.getClassNames();for(const t of r)e.classes.push(t);const i=t.getStyleNames();for(const t of i)e.styles.push(t);return e}static createFrom(t,e){if(e||(e=new Jc),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,Jc.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=Jc.createFrom(n,e);return e}}const Qc=["attributes","classes","styles"];class Xc{element;_canConsumeName;_consumables;constructor(t){this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e of Qc)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of Qc)if(e in t){const n=this._test(e,t[e]);if(!0!==n)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e of Qc)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of Qc)e in t&&this._revert(e,t[e])}_add(t,e){const n=eo(e),r=this._consumables[t];for(const e of n){if("attributes"===t&&("class"===e||"style"===e))throw new kr("viewconsumable-invalid-attribute",this);if(r.set(e,!0),"styles"===t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))r.set(t,!0)}}_test(t,e){const n=eo(e),r=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){const t=r.get(e);if(void 0===t)return null;if(!t)return!1}else{const t="class"==e?"classes":"styles",n=this._test(t,[...this._consumables[t].keys()]);if(!0!==n)return n}return!0}_consume(t,e){const n=eo(e),r=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){if(r.set(e,!1),"styles"==t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))r.set(t,!1)}else{const t="class"==e?"classes":"styles";this._consume(t,[...this._consumables[t].keys()])}}_revert(t,e){const n=eo(e),r=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){!1===r.get(e)&&r.set(e,!0)}else{const t="class"==e?"classes":"styles";this._revert(t,[...this._consumables[t].keys()])}}}class td extends(jr()){_sourceDefinitions={};_attributeProperties=Object.create(null);_customChildChecks=new Map;_customAttributeChecks=new Map;_genericCheckSymbol=Symbol("$generic");_compiledDefinitions;constructor(){super(),this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((t,e)=>{e[0]=new ed(e[0])}),{priority:"highest"}),this.on("checkChild",((t,e)=>{e[0]=new ed(e[0]),e[1]=this.getDefinition(e[1])}),{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new kr("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new kr("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return e="string"==typeof t?t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!(!e||!e.isBlock)}isLimit(t){const e=this.getDefinition(t);return!!e&&!(!e.isLimit&&!e.isObject)}isObject(t){const e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}isInline(t){const e=this.getDefinition(t);return!(!e||!e.isInline)}isSelectable(t){const e=this.getDefinition(t);return!!e&&!(!e.isSelectable&&!e.isObject)}isContent(t){const e=this.getDefinition(t);return!!e&&!(!e.isContent&&!e.isObject)}checkChild(t,e){return!!e&&this._checkContextMatch(t,e)}checkAttribute(t,e){const n=this.getDefinition(t.last);if(!n)return!1;const r=this._evaluateAttributeChecks(t,e);return void 0!==r?r:n.allowAttributes.includes(e)}checkMerge(t,e){if(t instanceof $l){const e=t.nodeBefore,n=t.nodeAfter;if(!(e instanceof ql))throw new kr("schema-check-merge-no-element-before",this);if(!(n instanceof ql))throw new kr("schema-check-merge-no-element-after",this);return this.checkMerge(e,n)}if(this.isLimit(t)||this.isLimit(e))return!1;for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t,e){const n=void 0!==e?e:this._genericCheckSymbol,r=this._customChildChecks.get(n)||[];r.push(t),this._customChildChecks.set(n,r)}addAttributeCheck(t,e){const n=void 0!==e?e:this._genericCheckSymbol,r=this._customAttributeChecks.get(n)||[];r.push(t),this._customAttributeChecks.set(n,r)}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||Object.create(null)}getLimitElement(t){let e;if(t instanceof $l)e=t.parent;else{e=(t instanceof Ql?[t]:Array.from(t.getRanges())).reduce(((t,e)=>{const n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n}),null)}for(;!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const n=[...t.getFirstPosition().getAncestors(),new Hl("",t.getAttributes())];return this.checkAttribute(n,e)}{const n=t.getRanges();for(const t of n)for(const n of t)if(this.checkAttribute(n.item,e))return!0}return!1}*getValidRanges(t,e){t=function*(t){for(const e of t)yield*e.getMinimalFlatRanges()}(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if("$graveyard"==t.root.rootName)return null;if(this.checkChild(t,"$text"))return new Ql(t);let n,r;const i=t.getAncestors().reverse().find((t=>this.isLimit(t)))||t.root;"both"!=e&&"backward"!=e||(n=new Ul({boundaries:Ql._createIn(i),startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(r=new Ul({boundaries:Ql._createIn(i),startPosition:t}));for(const t of function*(t,e){let n=!1;for(;!n;){if(n=!0,t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}if(e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}}}(n,r)){const e=t.walker==n?"elementEnd":"elementStart",r=t.value;if(r.type==e&&this.isObject(r.item))return Ql._createOn(r.item);if(this.checkChild(r.nextPosition,"$text"))return new Ql(r.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(t,e,n){const r=n.model;for(const[i,o]of Object.entries(e))r.schema.checkAttribute(t,i)&&n.setAttribute(i,o,t)}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))gd(this,n,e);else{const t=Ql._createIn(n).getPositions();for(const n of t){gd(this,n.nodeBefore||n.parent,e)}}}getAttributesWithProperty(t,e,n){const r={};for(const[i,o]of t.getAttributes()){const t=this.getAttributeProperties(i);void 0!==t[e]&&(void 0!==n&&n!==t[e]||(r[i]=o))}return r}createContext(t){return new ed(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const r of n)t[r]=nd(e[r],r);const r=Object.values(t);for(const e of r)rd(t,e),id(t,e),od(t,e),sd(t,e);for(const e of r)ad(t,e);for(const e of r)ld(t,e);for(const e of r)cd(t,e);for(const e of r)dd(t,e);for(const e of r)hd(t,e);this._compiledDefinitions=function(t){const e={};for(const n of Object.values(t))e[n.name]={name:n.name,isBlock:!!n.isBlock,isContent:!!n.isContent,isInline:!!n.isInline,isLimit:!!n.isLimit,isObject:!!n.isObject,isSelectable:!!n.isSelectable,allowIn:Array.from(n.allowIn).filter((e=>!!t[e])),allowChildren:Array.from(n.allowChildren).filter((e=>!!t[e])),allowAttributes:Array.from(n.allowAttributes)};return e}(t)}_checkContextMatch(t,e){const n=t.last;let r=this._evaluateChildChecks(t,e);if(r=void 0!==r?r:e.allowIn.includes(n.name),!r)return!1;const i=this.getDefinition(n),o=t.trimLast();return!!i&&(0==o.length||this._checkContextMatch(o,i))}_evaluateChildChecks(t,e){const n=this._customChildChecks.get(this._genericCheckSymbol)||[],r=this._customChildChecks.get(e.name)||[];for(const i of[...n,...r]){const n=i(t,e);if(void 0!==n)return n}}_evaluateAttributeChecks(t,e){const n=this._customAttributeChecks.get(this._genericCheckSymbol)||[],r=this._customAttributeChecks.get(e)||[];for(const i of[...n,...r]){const n=i(t,e);if(void 0!==n)return n}}*_getValidRangesForRange(t,e){let n=t.start,r=t.start;for(const i of t.getItems({shallow:!0}))i.is("element")&&(yield*this._getValidRangesForRange(Ql._createIn(i),e)),this.checkAttribute(i,e)||(n.isEqual(r)||(yield new Ql(n,r)),n=$l._createAfter(i)),r=$l._createAfter(i);n.isEqual(r)||(yield new Ql(n,r))}findOptimalInsertionRange(t,e){const n=t.getSelectedElement();if(n&&this.isObject(n)&&!this.isInline(n))return"before"==e||"after"==e?new Ql($l._createAt(n,e)):Ql._createOn(n);const r=Eo(t.getSelectedBlocks());if(!r)return new Ql(t.focus);if(r.isEmpty)return new Ql($l._createAt(r,0));const i=$l._createAfter(r);return t.focus.isTouching(i)?new Ql(i):new Ql($l._createBefore(r))}}class ed{_items;constructor(t){if(t instanceof ed)return t;let e;e="string"==typeof t?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=e.map(md)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new ed([t]);return e._items=[...this._items,...e._items],e}trimLast(){const t=new ed([]);return t._items=this._items.slice(0,-1),t}getItem(t){return this._items[t]}*getNames(){yield*this._items.map((t=>t.name))}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function nd(t,e){const n={name:e,allowIn:new Set,allowChildren:new Set,disallowIn:new Set,disallowChildren:new Set,allowContentOf:new Set,allowWhere:new Set,allowAttributes:new Set,disallowAttributes:new Set,allowAttributesOf:new Set,inheritTypesFrom:new Set};return function(t,e){for(const n of t){const t=Object.keys(n).filter((t=>t.startsWith("is")));for(const r of t)e[r]=!!n[r]}}(t,n),ud(t,n,"allowIn"),ud(t,n,"allowChildren"),ud(t,n,"disallowIn"),ud(t,n,"disallowChildren"),ud(t,n,"allowContentOf"),ud(t,n,"allowWhere"),ud(t,n,"allowAttributes"),ud(t,n,"disallowAttributes"),ud(t,n,"allowAttributesOf"),ud(t,n,"inheritTypesFrom"),function(t,e){for(const n of t){const t=n.inheritAllFrom;t&&(e.allowContentOf.add(t),e.allowWhere.add(t),e.allowAttributesOf.add(t),e.inheritTypesFrom.add(t))}}(t,n),n}function rd(t,e){for(const n of e.allowIn){const r=t[n];r?r.allowChildren.add(e.name):e.allowIn.delete(n)}}function id(t,e){for(const n of e.allowChildren){const r=t[n];r?r.allowIn.add(e.name):e.allowChildren.delete(n)}}function od(t,e){for(const n of e.disallowIn){const r=t[n];r?r.disallowChildren.add(e.name):e.disallowIn.delete(n)}}function sd(t,e){for(const n of e.disallowChildren){const r=t[n];r?r.disallowIn.add(e.name):e.disallowChildren.delete(n)}}function ad(t,e){for(const t of e.disallowChildren)e.allowChildren.delete(t);for(const t of e.disallowIn)e.allowIn.delete(t);for(const t of e.disallowAttributes)e.allowAttributes.delete(t)}function ld(t,e){for(const n of e.allowContentOf){const r=t[n];r&&(r.disallowChildren.forEach((n=>{e.allowChildren.has(n)||(e.disallowChildren.add(n),t[n].disallowIn.add(e.name))})),r.allowChildren.forEach((n=>{e.disallowChildren.has(n)||(e.allowChildren.add(n),t[n].allowIn.add(e.name))})))}}function cd(t,e){for(const n of e.allowWhere){const r=t[n];r&&(r.disallowIn.forEach((n=>{e.allowIn.has(n)||(e.disallowIn.add(n),t[n].disallowChildren.add(e.name))})),r.allowIn.forEach((n=>{e.disallowIn.has(n)||(e.allowIn.add(n),t[n].allowChildren.add(e.name))})))}}function dd(t,e){for(const n of e.allowAttributesOf){const r=t[n];if(!r)return;r.allowAttributes.forEach((t=>{e.disallowAttributes.has(t)||e.allowAttributes.add(t)}))}}function hd(t,e){for(const n of e.inheritTypesFrom){const r=t[n];if(r){const t=Object.keys(r).filter((t=>t.startsWith("is")));for(const n of t)n in e||(e[n]=r[n])}}}function ud(t,e,n){for(const r of t){let t=r[n];"string"==typeof t&&(t=[t]),Array.isArray(t)&&t.forEach((t=>e[n].add(t)))}}function md(t){return"string"==typeof t||t.is("documentFragment")?{name:"string"==typeof t?t:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:t.is("element")?t.name:"$text",*getAttributeKeys(){yield*t.getAttributeKeys()},getAttribute:e=>t.getAttribute(e)}}function gd(t,e,n){for(const r of e.getAttributeKeys())t.checkAttribute(e,r)||n.removeAttribute(r,e)}class pd extends(Dr()){conversionApi;_splitParts=new Map;_cursorParents=new Map;_modelCursor=null;_emptyElementsToKeep=new Set;constructor(t){super(),this.conversionApi={...t,consumable:null,writer:null,store:null,convertItem:(t,e)=>this._convertItem(t,e),convertChildren:(t,e)=>this._convertChildren(t,e),safeInsert:(t,e)=>this._safeInsert(t,e),updateConversionResult:(t,e)=>this._updateConversionResult(t,e),splitToAllowedParent:(t,e)=>this._splitToAllowedParent(t,e),getSplitParts:t=>this._getSplitParts(t),keepEmptyElement:t=>this._keepEmptyElement(t)}}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=function(t,e){let n;for(const r of new ed(t)){const t={};for(const e of r.getAttributeKeys())t[e]=r.getAttribute(e);const i=e.createElement(r.name,t);n&&e.insert(i,n),n=$l._createAt(i,0)}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=Jc.createFrom(t),this.conversionApi.store={};const{modelRange:r}=this._convertItem(t,this._modelCursor),i=e.createDocumentFragment();if(r){this._removeEmptyElements();for(const t of Array.from(this._modelCursor.parent.getChildren()))e.append(t,i);i.markers=function(t,e){const n=new Set,r=new Map,i=Ql._createIn(t).getItems();for(const t of i)t.is("element","$marker")&&n.add(t);for(const t of n){const n=t.getAttribute("data-name"),i=e.createPositionBefore(t);r.has(n)?r.get(n).end=i.clone():r.set(n,new Ql(i.clone())),e.remove(t)}return r}(i,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i}_convertItem(t,e){const n={viewItem:t,modelCursor:e,modelRange:null};if(t.is("element")?this.fire(`element:${t.name}`,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof Ql))throw new kr("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:$l._createAt(e,0);const r=new Ql(n);for(const e of Array.from(t.getChildren())){const t=this._convertItem(e,n);t.modelRange instanceof Ql&&(r.end=t.modelRange.end,n=t.modelCursor)}return{modelRange:r,modelCursor:n}}_safeInsert(t,e){const n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}_updateConversionResult(t,e){const n=this._getSplitParts(t),r=this.conversionApi.writer;e.modelRange||(e.modelRange=r.createRange(r.createPositionBefore(t),r.createPositionAfter(n[n.length-1])));const i=this._cursorParents.get(t);e.modelCursor=i?r.createPositionAt(i,0):e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:r}=this.conversionApi;let i=n.findAllowedParent(e,t);if(i){if(i===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(i)&&(i=null)}if(!i)return zc(e,t,n)?{position:Mc(e,r)}:null;const o=this.conversionApi.writer.split(e,i),s=[];for(const t of o.range.getWalker())if("elementEnd"==t.type)s.push(t.item);else{const e=s.pop(),n=t.item;this._registerSplitPair(e,n)}const a=o.range.end.parent;return this._cursorParents.set(t,a),{position:o.position,cursorParent:a}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e}_keepEmptyElement(t){this._emptyElementsToKeep.add(t)}_removeEmptyElements(){let t=!1;for(const e of this._splitParts.keys())e.isEmpty&&!this._emptyElementsToKeep.has(e)&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}class fd{getHtml(t){const e=Yn.document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class bd{domParser;domConverter;htmlWriter;skipComments=!0;constructor(t){this.domParser=new DOMParser,this.domConverter=new Za(t,{renderingMode:"data"}),this.htmlWriter=new fd}toData(t){const e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this.domConverter.domToView(e,{skipComments:this.skipComments})}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}_toDom(t){/<(?:html|body|head|meta)(?:\s[^>]*)?>/i.test(t.trim().slice(0,1e4))||(t=`<body>${t}</body>`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),r=e.body.childNodes;for(;r.length>0;)n.appendChild(r[0]);return n}}class kd extends(Dr()){model;mapper;downcastDispatcher;upcastDispatcher;viewDocument;stylesProcessor;htmlProcessor;processor;_viewWriter;constructor(t,e){super(),this.model=t,this.mapper=new Xl,this.downcastDispatcher=new nc({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const r=n.writer,i=n.mapper.toViewPosition(e.range.start),o=r.createText(e.item.data);r.insert(i,o)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((t,e,n)=>{n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),this.upcastDispatcher=new pd({schema:t.schema}),this.viewDocument=new sa(e),this.stylesProcessor=e,this.htmlProcessor=new bd(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new ka(this.viewDocument),this.upcastDispatcher.on("text",((t,e,{schema:n,consumable:r,writer:i})=>{let o=e.modelCursor;if(!r.test(e.viewItem))return;if(!n.checkChild(o,"$text")){if(!zc(o,"$text",n))return;if(0==e.viewItem.data.trim().length)return;o=Mc(o,i)}r.consume(e.viewItem);const s=i.createText(e.viewItem.data);i.insert(s,o),e.modelRange=i.createRange(o,o.getShiftedBy(s.offsetSize)),e.modelCursor=e.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:r}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=r}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:r}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=r}}),{priority:"lowest"}),jr().prototype.decorate.call(this,"init"),jr().prototype.decorate.call(this,"set"),jr().prototype.decorate.call(this,"get"),jr().prototype.decorate.call(this,"toView"),jr().prototype.decorate.call(this,"toModel"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},Lc)}),{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new kr("datacontroller-get-non-existent-root",this);const r=this.model.document.getRoot(e);return r.isAttached()||wr("datacontroller-get-detached-root",this),"empty"!==n||this.model.hasContent(r,{ignoreWhitespaces:!0})?this.stringify(r,t):""}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,r=this._viewWriter;this.mapper.clearBindings();const i=Ql._createIn(t),o=new ba(n);this.mapper.bindElements(t,o);const s=t.is("documentFragment")?t.markers:function(t){const e=[],n=t.root.document;if(!n)return new Map;const r=Ql._createIn(t);for(const t of n.model.markers){const n=t.getRange(),i=n.isCollapsed,o=n.start.isEqual(r.start)||n.end.isEqual(r.end);if(i&&o)e.push([t.name,n]);else{const i=r.getIntersection(n);i&&e.push([t.name,i])}}return e.sort((([t,e],[n,r])=>{if("after"!==e.end.compareWith(r.start))return 1;if("before"!==e.start.compareWith(r.end))return-1;switch(e.start.compareWith(r.start)){case"before":return 1;case"after":return-1;default:switch(e.end.compareWith(r.end)){case"before":return 1;case"after":return-1;default:return n.localeCompare(t)}}})),new Map(e)}(t);return this.downcastDispatcher.convert(i,s,r,e),o}init(t){if(this.model.document.version)throw new kr("datacontroller-init-document-not-empty",this);let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new kr("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(t=>{for(const n of Object.keys(e)){const r=this.model.document.getRoot(n);t.insert(this.parse(e[n],r),r,0)}})),Promise.resolve()}set(t,e={}){let n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new kr("datacontroller-set-non-existent-root",this);this.model.enqueueChange(e.batchType||{},(t=>{t.setSelection(null),t.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const e of Object.keys(n)){const r=this.model.document.getRoot(e);t.remove(t.createRangeIn(r)),t.insert(this.parse(n[e],r),r,0)}}))}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change((n=>this.upcastDispatcher.convert(t,n,e)))}addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRoot(e))return!1;return!0}}class wd{_helpers=new Map;_downcast;_upcast;constructor(t,e){this._downcast=eo(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=eo(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new kr("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new kr("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of Ad(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of Ad(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of Ad(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new kr("conversion-group-exists",this);const r=n?new Ac(e):new Nc(e);this._helpers.set(t,r)}}function*Ad(t){if(t.model.values)for(const e of t.model.values){const n={key:t.model.key,value:e},r=t.view[e],i=t.upcastAlso?t.upcastAlso[e]:void 0;yield*_d(n,r,i)}else yield*_d(t.model,t.view,t.upcastAlso)}function*_d(t,e,n){if(yield{model:t,view:e},n)for(const e of eo(n))yield{model:t,view:e}}class Cd{baseVersion;isDocumentOperation;batch;constructor(t){this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t,e){return new this(t.baseVersion)}}function vd(t,e){const n=Ed(e),r=n.reduce(((t,e)=>t+e.offsetSize),0),i=t.parent;Dd(t);const o=t.index;return i._insertChild(o,n),Bd(i,o+n.length),Bd(i,o),new Ql(t,t.getShiftedBy(r))}function yd(t){if(!t.isFlat)throw new kr("operation-utils-remove-range-not-flat",this);const e=t.start.parent;Dd(t.start),Dd(t.end);const n=e._removeChildren(t.start.index,t.end.index-t.start.index);return Bd(e,t.start.index),n}function xd(t,e){if(!t.isFlat)throw new kr("operation-utils-move-range-not-flat",this);const n=yd(t);return vd(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function Ed(t){const e=[];!function t(n){if("string"==typeof n)e.push(new Hl(n));else if(n instanceof jl)e.push(new Hl(n.data,n.getAttributes()));else if(n instanceof Nl)e.push(n);else if(Yr(n))for(const e of n)t(e);else{}}(t);for(let t=1;t<e.length;t++){const n=e[t],r=e[t-1];n instanceof Hl&&r instanceof Hl&&Sd(n,r)&&(e.splice(t-1,2,new Hl(r.data+n.data,r.getAttributes())),t--)}return e}function Bd(t,e){const n=t.getChild(e-1),r=t.getChild(e);if(n&&r&&n.is("$text")&&r.is("$text")&&Sd(n,r)){const i=new Hl(n.data+r.data,n.getAttributes());t._removeChildren(e-1,2),t._insertChild(e-1,i)}}function Dd(t){const e=t.textNode,n=t.parent;if(e){const r=t.offset-e.startOffset,i=e.index;n._removeChildren(i,1);const o=new Hl(e.data.substr(0,r),e.getAttributes()),s=new Hl(e.data.substr(r),e.getAttributes());n._insertChild(i,[o,s])}}function Sd(t,e){const n=t.getAttributes(),r=e.getAttributes();for(const t of n){if(t[1]!==e.getAttribute(t[0]))return!1;r.next()}return r.next().done}class Td extends Cd{sourcePosition;howMany;targetPosition;constructor(t,e,n,r){super(r),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toNext",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}get affectedSelectable(){return[Ql._createFromPositionAndShift(this.sourcePosition,this.howMany),Ql._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new Td(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new Td(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,r=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new kr("move-operation-nodes-do-not-exist",this);if(t===e&&n<r&&r<n+this.howMany)throw new kr("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==Zr(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const t=this.sourcePosition.path.length-1;if(this.targetPosition.path[t]>=n&&this.targetPosition.path[t]<n+this.howMany)throw new kr("move-operation-node-into-itself",this)}}_execute(){xd(Ql._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t}static get className(){return"MoveOperation"}static fromJSON(t,e){const n=$l.fromJSON(t.sourcePosition,e),r=$l.fromJSON(t.targetPosition,e);return new this(n,t.howMany,r,t.baseVersion)}}class Id extends Cd{position;nodes;shouldReceiveAttributes;constructor(t,e,n){super(n),this.position=t.clone(),this.position.stickiness="toNone",this.nodes=new Ol(Ed(e)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const t=new Ol([...this.nodes].map((t=>t._clone(!0)))),e=new Id(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new $l(t,[0]);return new Td(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new kr("insert-operation-position-invalid",this)}_execute(){const t=this.nodes;this.nodes=new Ol([...t].map((t=>t._clone(!0)))),vd(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const e of t.nodes)e.name?n.push(ql.fromJSON(e)):n.push(Hl.fromJSON(e));const r=new Id($l.fromJSON(t.position,e),n,t.baseVersion);return r.shouldReceiveAttributes=t.shouldReceiveAttributes,r}}class Pd extends Cd{splitPosition;howMany;insertionPosition;graveyardPosition;constructor(t,e,n,r,i){super(i),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=r?r.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new $l(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Ql(this.splitPosition,t)}get affectedSelectable(){const t=[Ql._createFromPositionAndShift(this.splitPosition,0),Ql._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&t.push(Ql._createFromPositionAndShift(this.graveyardPosition,0)),t}clone(){return new Pd(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new $l(t,[0]);return new Vd(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new kr("split-operation-position-invalid",this);if(!t.parent)throw new kr("split-operation-split-in-root",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new kr("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new kr("split-operation-graveyard-position-invalid",this)}_execute(){const t=this.splitPosition.parent;if(this.graveyardPosition)xd(Ql._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const e=t._clone();vd(this.insertionPosition,e)}xd(new Ql($l._createAt(t,this.splitPosition.offset),$l._createAt(t,t.maxOffset)),this.moveTargetPosition)}toJSON(){const t=super.toJSON();return t.splitPosition=this.splitPosition.toJSON(),t.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(t.graveyardPosition=this.graveyardPosition.toJSON()),t}static get className(){return"SplitOperation"}static getInsertionPosition(t){const e=t.path.slice(0,-1);return e[e.length-1]++,new $l(t.root,e,"toPrevious")}static fromJSON(t,e){const n=$l.fromJSON(t.splitPosition,e),r=$l.fromJSON(t.insertionPosition,e),i=t.graveyardPosition?$l.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,r,i,t.baseVersion)}}class Vd extends Cd{sourcePosition;howMany;targetPosition;graveyardPosition;constructor(t,e,n,r,i){super(i),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=r.clone()}get type(){return"merge"}get deletionPosition(){return new $l(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Ql(this.sourcePosition,t)}get affectedSelectable(){const t=this.sourcePosition.parent;return[Ql._createOn(t),Ql._createFromPositionAndShift(this.targetPosition,0),Ql._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new Vd(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new $l(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new Pd(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new kr("merge-operation-source-position-invalid",this);if(!e.parent)throw new kr("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new kr("merge-operation-how-many-invalid",this)}_execute(){const t=this.sourcePosition.parent;xd(Ql._createIn(t),this.targetPosition),xd(Ql._createOn(t),this.graveyardPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t}static get className(){return"MergeOperation"}static fromJSON(t,e){const n=$l.fromJSON(t.sourcePosition,e),r=$l.fromJSON(t.targetPosition,e),i=$l.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,r,i,t.baseVersion)}}class Fd extends Cd{name;oldRange;newRange;affectsData;_markers;constructor(t,e,n,r,i,o){super(o),this.name=t,this.oldRange=e?e.clone():null,this.newRange=n?n.clone():null,this.affectsData=i,this._markers=r}get type(){return"marker"}get affectedSelectable(){const t=[];return this.oldRange&&t.push(this.oldRange.clone()),this.newRange&&(this.oldRange?t.push(...this.newRange.getDifference(this.oldRange)):t.push(this.newRange.clone())),t}clone(){return new Fd(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Fd(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const t=super.toJSON();return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t}static get className(){return"MarkerOperation"}static fromJSON(t,e){return new Fd(t.name,t.oldRange?Ql.fromJSON(t.oldRange,e):null,t.newRange?Ql.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}const Rd=function(t,e){return yl(t,e)};class Ld extends Cd{range;key;oldValue;newValue;constructor(t,e,n,r,i){super(i),this.range=t.clone(),this.key=e,this.oldValue=void 0===n?null:n,this.newValue=void 0===r?null:r}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new Ld(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Ld(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const t=super.toJSON();return t.range=this.range.toJSON(),t}_validate(){if(!this.range.isFlat)throw new kr("attribute-operation-range-not-flat",this);for(const t of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Rd(t.getAttribute(this.key),this.oldValue))throw new kr("attribute-operation-wrong-old-value",this,{item:t,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&t.hasAttribute(this.key))throw new kr("attribute-operation-attribute-exists",this,{node:t,key:this.key})}}_execute(){Rd(this.oldValue,this.newValue)||function(t,e,n){Dd(t.start),Dd(t.end);for(const r of t.getItems({shallow:!0})){const t=r.is("$textProxy")?r.textNode:r;null!==n?t._setAttribute(e,n):t._removeAttribute(e),Bd(t.parent,t.index)}Bd(t.end.parent,t.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new Ld(Ql.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}class zd extends Cd{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new zd(this.baseVersion)}getReversed(){return new zd(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class Md extends Cd{position;oldName;newName;constructor(t,e,n,r){super(r),this.position=t,this.position.stickiness="toNext",this.oldName=e,this.newName=n}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new Md(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Md(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(!(t instanceof ql))throw new kr("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new kr("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t}static get className(){return"RenameOperation"}static fromJSON(t,e){return new Md($l.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class Nd extends Cd{root;key;oldValue;newValue;constructor(t,e,n,r,i){super(i),this.root=t,this.key=e,this.oldValue=void 0===n?null:n,this.newValue=void 0===r?null:r}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new Nd(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Nd(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new kr("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new kr("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new kr("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const t=super.toJSON();return t.root=this.root.toJSON(),t}static get className(){return"RootAttributeOperation"}static fromJSON(t,e){if(!e.getRoot(t.root))throw new kr("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new Nd(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}class Od extends Cd{rootName;elementName;isAdd;_document;constructor(t,e,n,r,i){if(super(i),this.rootName=t,this.elementName=e,this.isAdd=n,this._document=r,!this._document.getRoot(this.rootName)){this._document.createRoot(this.elementName,this.rootName)._isAttached=!1}}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new Od(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new Od(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1)}_execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd}toJSON(){const t=super.toJSON();return delete t._document,t}static get className(){return"RootOperation"}static fromJSON(t,e){return new Od(t.rootName,t.elementName,t.isAdd,e,t.baseVersion)}}const Hd={};Hd[Ld.className]=Ld,Hd[Id.className]=Id,Hd[Fd.className]=Fd,Hd[Td.className]=Td,Hd[zd.className]=zd,Hd[Cd.className]=Cd,Hd[Md.className]=Md,Hd[Nd.className]=Nd,Hd[Od.className]=Od,Hd[Pd.className]=Pd,Hd[Vd.className]=Vd;class jd{static fromJSON(t,e){return Hd[t.__className].fromJSON(t,e)}}const qd=new Map;function Ud(t,e,n){let r=qd.get(t);r||(r=new Map,qd.set(t,r)),r.set(e,n)}function Wd(t){return[t]}function $d(t,e,n={}){const r=function(t,e){const n=qd.get(t);return n&&n.has(e)?n.get(e):Wd}(t.constructor,e.constructor);try{return r(t=t.clone(),e,n)}catch(t){throw t}}function Gd(t,e,n){t=t.slice(),e=e.slice();const r=new Kd(n.document,n.useRelations,n.forceWeakRemove);r.setOriginalOperations(t),r.setOriginalOperations(e);const i=r.originalOperations;if(0==t.length||0==e.length)return{operationsA:t,operationsB:e,originalOperations:i};const o=new WeakMap;for(const e of t)o.set(e,0);const s={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length};let a=0;for(;a<t.length;){const n=t[a],i=o.get(n);if(i==e.length){a++;continue}const s=e[i],l=$d(n,s,r.getContext(n,s,!0)),c=$d(s,n,r.getContext(s,n,!1));r.updateRelation(n,s),r.setOriginalOperations(l,n),r.setOriginalOperations(c,s);for(const t of l)o.set(t,i+c.length);t.splice(a,1,...l),e.splice(i,1,...c)}if(Jd(t),Jd(e),n.padWithNoOps){const n=t.length-s.originalOperationsACount,r=e.length-s.originalOperationsBCount;Yd(t,r-n),Yd(e,n-r)}return Zd(t,s.nextBaseVersionB),Zd(e,s.nextBaseVersionA),{operationsA:t,operationsB:e,originalOperations:i}}class Kd{originalOperations;_history;_useRelations;_forceWeakRemove;_relations;constructor(t,e,n=!1){this.originalOperations=new Map,this._history=t.history,this._useRelations=e,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(t,e=null){const n=e?this.originalOperations.get(e):null;for(const e of t)this.originalOperations.set(e,n||e)}updateRelation(t,e){if(t instanceof Td)e instanceof Vd?t.targetPosition.isEqual(e.sourcePosition)||e.movedRange.containsPosition(t.targetPosition)?this._setRelation(t,e,"insertAtSource"):t.targetPosition.isEqual(e.deletionPosition)?this._setRelation(t,e,"insertBetween"):t.targetPosition.isAfter(e.sourcePosition)&&this._setRelation(t,e,"moveTargetAfter"):e instanceof Td&&(t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter"));else if(t instanceof Pd){if(e instanceof Vd)t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");else if(e instanceof Td)if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{const n=Ql._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.splitPosition)){const r=n.end.offset-t.splitPosition.offset,i=t.splitPosition.offset-n.start.offset;this._setRelation(t,e,{howMany:r,offset:i})}}}else if(t instanceof Vd)e instanceof Vd?(t.targetPosition.isEqual(e.sourcePosition)||this._setRelation(t,e,"mergeTargetNotMoved"),t.sourcePosition.isEqual(e.targetPosition)&&this._setRelation(t,e,"mergeSourceNotMoved"),t.sourcePosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeSameElement")):e instanceof Pd?t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource"):e instanceof Td&&e.howMany>0&&(t.sourcePosition.isEqual(e.sourcePosition.getShiftedBy(e.howMany))&&this._setRelation(t,e,"mergeSourceAffected"),t.targetPosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeTargetWasBefore"));else if(t instanceof Fd){const n=t.newRange;if(!n)return;if(e instanceof Vd){const r=n.start.isEqual(e.targetPosition),i=n.start.isEqual(e.deletionPosition),o=n.end.isEqual(e.deletionPosition),s=n.end.isEqual(e.sourcePosition);(r||i||o||s)&&this._setRelation(t,e,{wasInLeftElement:r,wasStartBeforeMergedElement:i,wasEndBeforeMergedElement:o,wasInRightElement:s})}}}getContext(t,e,n){return{aIsStrong:n,aWasUndone:this._wasUndone(t),bWasUndone:this._wasUndone(e),abRelation:this._useRelations?this._getRelation(t,e):null,baRelation:this._useRelations?this._getRelation(e,t):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(t){const e=this.originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e)}_getRelation(t,e){const n=this.originalOperations.get(e),r=this._history.getUndoneOperation(n);if(!r)return null;const i=this.originalOperations.get(t),o=this._relations.get(i);return o&&o.get(r)||null}_setRelation(t,e,n){const r=this.originalOperations.get(t),i=this.originalOperations.get(e);let o=this._relations.get(r);o||(o=new Map,this._relations.set(r,o)),o.set(i,n)}}function Zd(t,e){for(const n of t)n.baseVersion=e++}function Yd(t,e){for(let n=0;n<e;n++)t.push(new zd(0))}function Jd(t){const e=new Map;for(let n=0;n<t.length;n++){const r=t[n];r instanceof Fd&&(-1!==r.baseVersion?e.set(r.name,{op:r,ranges:r.newRange?[r.newRange]:[]}):(r.newRange&&e.get(r.name).ranges.push(r.newRange),t.splice(n,1),n--))}for(const{op:t,ranges:n}of e.values())n.length?t.newRange=Ql._createFromRanges(n):t.newRange=null}function Qd(t,e,n){const r=t.nodes.getNode(0).getAttribute(e);if(r==n)return null;const i=new Ql(t.position,t.position.getShiftedBy(t.howMany));return new Ld(i,e,r,n,0)}function Xd(t,e){return null===t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany)}function th(t,e){const n=[];for(let r=0;r<t.length;r++){const i=t[r],o=new Td(i.start,i.end.offset-i.start.offset,e,0);n.push(o);for(let e=r+1;e<t.length;e++)t[e]=t[e]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];e=e._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}Ud(Ld,Ld,((t,e,n)=>{if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){const r=t.range.getDifference(e.range).map((e=>new Ld(e,t.key,t.oldValue,t.newValue,0))),i=t.range.getIntersection(e.range);return i&&n.aIsStrong&&r.push(new Ld(i,e.key,e.newValue,t.newValue,0)),0==r.length?[new zd(0)]:r}return[t]})),Ud(Ld,Id,((t,e)=>{if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){const n=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map((e=>new Ld(e,t.key,t.oldValue,t.newValue,t.baseVersion)));if(e.shouldReceiveAttributes){const r=Qd(e,t.key,t.oldValue);r&&n.unshift(r)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]})),Ud(Ld,Vd,((t,e)=>{const n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(Ql._createFromPositionAndShift(e.graveyardPosition,1));const r=t.range._getTransformedByMergeOperation(e);return r.isCollapsed||n.push(r),n.map((e=>new Ld(e,t.key,t.oldValue,t.newValue,t.baseVersion)))})),Ud(Ld,Td,((t,e)=>{const n=function(t,e){const n=Ql._createFromPositionAndShift(e.sourcePosition,e.howMany);let r=null,i=[];n.containsRange(t,!0)?r=t:t.start.hasSameParentAs(n.start)?(i=t.getDifference(n),r=t.getIntersection(n)):i=[t];const o=[];for(let t of i){t=t._getTransformedByDeletion(e.sourcePosition,e.howMany);const n=e.getMovedRangeStart(),r=t.start.hasSameParentAs(n),i=t._getTransformedByInsertion(n,e.howMany,r);o.push(...i)}r&&o.push(r._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]);return o}(t.range,e);return n.map((e=>new Ld(e,t.key,t.oldValue,t.newValue,t.baseVersion)))})),Ud(Ld,Pd,((t,e)=>{if(t.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.range.end.offset++,[t];if(t.range.start.hasSameParentAs(e.splitPosition)&&t.range.containsPosition(e.splitPosition)){const n=t.clone();return n.range=new Ql(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,n]}return t.range=t.range._getTransformedBySplitOperation(e),[t]})),Ud(Id,Ld,((t,e)=>{const n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){const r=Qd(t,e.key,e.newValue);r&&n.push(r)}return n})),Ud(Id,Id,((t,e,n)=>(t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t]))),Ud(Id,Td,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),Ud(Id,Pd,((t,e)=>(t.position=t.position._getTransformedBySplitOperation(e),[t]))),Ud(Id,Vd,((t,e)=>(t.position=t.position._getTransformedByMergeOperation(e),[t]))),Ud(Fd,Id,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t]))),Ud(Fd,Fd,((t,e,n)=>{if(t.name==e.name){if(!n.aIsStrong)return[new zd(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]})),Ud(Fd,Vd,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t]))),Ud(Fd,Td,((t,e)=>{const n=[t];if(t.oldRange&&(t.oldRange=Ql._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){const r=t.newRange._getTransformedByMoveOperation(e);t.newRange=r[0];for(let e=1;e<r.length;e++){const i=t.clone();i.oldRange=null,i.newRange=r[e],i.baseVersion=-1,n.push(i)}}return n})),Ud(Fd,Pd,((t,e,n)=>{if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){const r=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=$l._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement?t.newRange.start=$l._createAt(e.moveTargetPosition):t.newRange.start=r.start,t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=$l._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=$l._createAt(e.insertionPosition):t.newRange.end=r.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]})),Ud(Vd,Id,((t,e)=>(t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t]))),Ud(Vd,Vd,((t,e,n)=>{if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){const n=e.graveyardPosition.path.slice();return n.push(0),t.sourcePosition=new $l(e.graveyardPosition.root,n),t.howMany=0,[t]}return[new zd(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const r="$graveyard"==t.targetPosition.root.rootName,i="$graveyard"==e.targetPosition.root.rootName;if(i&&!r||!(r&&!i)&&n.aIsStrong){const n=e.targetPosition._getTransformedByMergeOperation(e),r=t.targetPosition._getTransformedByMergeOperation(e);return[new Td(n,t.howMany,r,0)]}return[new zd(0)]}return t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMergeOperation(e),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),t.graveyardPosition.isEqual(e.graveyardPosition)&&n.aIsStrong||(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),Ud(Vd,Td,((t,e,n)=>{const r=Ql._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition)?[new zd(0)]:(e.sourcePosition.getShiftedBy(e.howMany).isEqual(t.sourcePosition)?t.sourcePosition.stickiness="toNone":e.targetPosition.isEqual(t.sourcePosition)&&"mergeSourceAffected"==n.abRelation?t.sourcePosition.stickiness="toNext":e.sourcePosition.isEqual(t.targetPosition)?(t.targetPosition.stickiness="toNone",t.howMany-=e.howMany):e.targetPosition.isEqual(t.targetPosition)&&"mergeTargetWasBefore"==n.abRelation?(t.targetPosition.stickiness="toPrevious",t.howMany+=e.howMany):(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany)),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.sourcePosition.stickiness="toPrevious",t.targetPosition.stickiness="toNext",t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t])})),Ud(Vd,Pd,((t,e,n)=>{if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){if(e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition)||"mergeTargetNotMoved"==n.abRelation)return t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),[t]}if(t.sourcePosition.isEqual(e.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return t.howMany=0,t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];if("mergeSameElement"==n.abRelation||t.sourcePosition.offset>0)return t.sourcePosition=e.moveTargetPosition.clone(),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]}return t.sourcePosition.hasSameParentAs(e.splitPosition)&&(t.howMany=e.splitPosition.offset),t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]})),Ud(Td,Id,((t,e)=>{const n=Ql._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByInsertOperation(e,!1)[0];return t.sourcePosition=n.start,t.howMany=n.end.offset-n.start.offset,t.targetPosition.isEqual(e.position)||(t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e)),[t]})),Ud(Td,Td,((t,e,n)=>{const r=Ql._createFromPositionAndShift(t.sourcePosition,t.howMany),i=Ql._createFromPositionAndShift(e.sourcePosition,e.howMany);let o,s=n.aIsStrong,a=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?a=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(a=!1),o=t.targetPosition.isEqual(e.targetPosition)&&a?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Xd(t,e)&&Xd(e,t))return[e.getReversed()];if(r.containsPosition(e.targetPosition)&&r.containsRange(i,!0))return r.start=r.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),r.end=r.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),th([r],o);if(i.containsPosition(t.targetPosition)&&i.containsRange(r,!0))return r.start=r.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),r.end=r.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),th([r],o);const l=Zr(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return r.start=r.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),r.end=r.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),th([r],o);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(s=!1):s=!0;const c=[],d=r.getDifference(i);for(const t of d){t.start=t.start._getTransformedByDeletion(e.sourcePosition,e.howMany),t.end=t.end._getTransformedByDeletion(e.sourcePosition,e.howMany);const n="same"==Zr(t.start.getParentPath(),e.getMovedRangeStart().getParentPath()),r=t._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,n);c.push(...r)}const h=r.getIntersection(i);return null!==h&&s&&(h.start=h.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),h.end=h.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===c.length?c.push(h):1==c.length?i.start.isBefore(r.start)||i.start.isEqual(r.start)?c.unshift(h):c.push(h):c.splice(1,0,h)),0===c.length?[new zd(t.baseVersion)]:th(c,o)})),Ud(Td,Pd,((t,e,n)=>{let r=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(r=t.targetPosition._getTransformedBySplitOperation(e));const i=Ql._createFromPositionAndShift(t.sourcePosition,t.howMany);if(i.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=r,[t];if(i.start.hasSameParentAs(e.splitPosition)&&i.containsPosition(e.splitPosition)){let t=new Ql(e.splitPosition,i.end);t=t._getTransformedBySplitOperation(e);return th([new Ql(i.start,e.splitPosition),t],r)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(r=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(r=t.targetPosition);const o=[i._getTransformedBySplitOperation(e)];if(e.graveyardPosition){const r=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);t.howMany>1&&r&&!n.aWasUndone&&o.push(Ql._createFromPositionAndShift(e.insertionPosition,1))}return th(o,r)})),Ud(Td,Vd,((t,e,n)=>{const r=Ql._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.sourcePosition))if("remove"!=t.type||n.forceWeakRemove){if(1==t.howMany)return n.bWasUndone?(t.sourcePosition=e.graveyardPosition.clone(),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]):[new zd(0)]}else if(!n.aWasUndone){const n=[];let r=e.graveyardPosition.clone(),i=e.targetPosition._getTransformedByMergeOperation(e);const o=t.targetPosition.getTransformedByOperation(e);t.howMany>1&&(n.push(new Td(t.sourcePosition,t.howMany-1,o,0)),r=r._getTransformedByMove(t.sourcePosition,o,t.howMany-1),i=i._getTransformedByMove(t.sourcePosition,o,t.howMany-1));const s=e.deletionPosition._getCombined(t.sourcePosition,o),a=new Td(r,1,s,0),l=a.getMovedRangeStart().path.slice();l.push(0);const c=new $l(a.targetPosition.root,l);i=i._getTransformedByMove(r,s,1);const d=new Td(i,e.howMany,c,0);return n.push(a),n.push(d),n}const i=Ql._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=i.start,t.howMany=i.end.offset-i.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]})),Ud(Md,Id,((t,e)=>(t.position=t.position._getTransformedByInsertOperation(e),[t]))),Ud(Md,Vd,((t,e)=>t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t]))),Ud(Md,Td,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),Ud(Md,Md,((t,e,n)=>{if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new zd(0)];t.oldName=e.newName}return[t]})),Ud(Md,Pd,((t,e)=>{if("same"==Zr(t.position.path,e.splitPosition.getParentPath())&&!e.graveyardPosition){const e=new Md(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,e]}return t.position=t.position._getTransformedBySplitOperation(e),[t]})),Ud(Nd,Nd,((t,e,n)=>{if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new zd(0)];t.oldValue=e.newValue}return[t]})),Ud(Od,Od,((t,e)=>t.rootName===e.rootName&&t.isAdd===e.isAdd?[new zd(0)]:[t])),Ud(Pd,Id,((t,e)=>(t.splitPosition.hasSameParentAs(e.position)&&t.splitPosition.offset<e.position.offset&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByInsertOperation(e),t.insertionPosition=t.insertionPosition._getTransformedByInsertOperation(e),[t]))),Ud(Pd,Vd,((t,e,n)=>{if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){const n=e.graveyardPosition.path.slice();n.push(0);const r=new $l(e.graveyardPosition.root,n),i=Pd.getInsertionPosition(new $l(e.graveyardPosition.root,n)),o=new Pd(r,0,i,null,0);return t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Pd.getInsertionPosition(t.splitPosition),t.graveyardPosition=o.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[o,t]}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Pd.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),Ud(Pd,Td,((t,e,n)=>{const r=Ql._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){const i=r.start.isEqual(t.graveyardPosition)||r.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&i){const n=t.splitPosition._getTransformedByMoveOperation(e),r=t.graveyardPosition._getTransformedByMoveOperation(e),i=r.path.slice();i.push(0);const o=new $l(r.root,i);return[new Td(n,t.howMany,o,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}const i=t.splitPosition.isEqual(e.targetPosition);if(i&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=Pd.getInsertionPosition(t.splitPosition),[t];if(i&&n.abRelation&&n.abRelation.howMany){const{howMany:e,offset:r}=n.abRelation;return t.howMany+=e,t.splitPosition=t.splitPosition.getShiftedBy(r),[t]}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.splitPosition)){const n=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=n,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany),t.splitPosition=e.sourcePosition.clone(),t.insertionPosition=Pd.getInsertionPosition(t.splitPosition),[t]}return e.sourcePosition.isEqual(e.targetPosition)||(t.splitPosition.hasSameParentAs(e.sourcePosition)&&t.splitPosition.offset<=e.sourcePosition.offset&&(t.howMany-=e.howMany),t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany)),t.splitPosition.stickiness="toNone",t.splitPosition=t.splitPosition._getTransformedByMoveOperation(e),t.splitPosition.stickiness="toNext",t.graveyardPosition?t.insertionPosition=t.insertionPosition._getTransformedByMoveOperation(e):t.insertionPosition=Pd.getInsertionPosition(t.splitPosition),[t]})),Ud(Pd,Pd,((t,e,n)=>{if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new zd(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new zd(0)];if("splitBefore"==n.abRelation)return t.howMany=0,t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e),[t]}if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition)){const r="$graveyard"==t.splitPosition.root.rootName,i="$graveyard"==e.splitPosition.root.rootName;if(i&&!r||!(r&&!i)&&n.aIsStrong){const n=[];return e.howMany&&n.push(new Td(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&n.push(new Td(t.splitPosition,t.howMany,t.moveTargetPosition,0)),n}return[new zd(0)]}if(t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e)),t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.abRelation)return t.howMany++,[t];if(e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.baRelation){const n=e.insertionPosition.path.slice();n.push(0);const r=new $l(e.insertionPosition.root,n);return[t,new Td(t.insertionPosition,1,r,0)]}return t.splitPosition.hasSameParentAs(e.splitPosition)&&t.splitPosition.offset<e.splitPosition.offset&&(t.howMany-=e.howMany),t.splitPosition=t.splitPosition._getTransformedBySplitOperation(e),t.insertionPosition=Pd.getInsertionPosition(t.splitPosition),[t]}));class eh extends(Dr($l)){constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new kr("model-liveposition-root-not-rootelement",t);nh.call(this)}detach(){this.stopListening()}toPosition(){return new $l(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}function nh(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&rh.call(this,n)}),{priority:"low"})}function rh(t){const e=this.getTransformedByOperation(t);if(!this.isEqual(e)){const t=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",t)}}eh.prototype.is=function(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t};class ih{operations;isUndoable;isLocal;isUndo;isTyping;constructor(t={}){"string"==typeof t&&(t="transparent"===t?{isUndoable:!1}:{},wr("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:n=!0,isUndo:r=!1,isTyping:i=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=r,this.isTyping=i}get type(){return wr("batch-type-deprecated"),"default"}get baseVersion(){for(const t of this.operations)if(null!==t.baseVersion)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}class oh{static _statesPriority=[void 0,"refresh","rename","move"];_markerCollection;_changesInElement=new Map;_elementsSnapshots=new Map;_elementChildrenSnapshots=new Map;_elementState=new Map;_changedMarkers=new Map;_changedRoots=new Map;_changeCount=0;_cachedChanges=null;_cachedChangesWithGraveyard=null;_refreshedItems=new Set;constructor(t){this._markerCollection=t}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(t){const e=t;switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const t of e.range.getItems({shallow:!0}))this._isInInsertedElement(t.parent)||this._markAttribute(t);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const t=this._isInInsertedElement(e.sourcePosition.parent),n=this._isInInsertedElement(e.targetPosition.parent);t||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),n||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);const r=Ql._createFromPositionAndShift(e.sourcePosition,e.howMany);for(const t of r.getItems({shallow:!0}))this._setElementState(t,"move");break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const t=Ql._createFromPositionAndShift(e.position,1);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getData();this.bufferMarkerChange(e.name,t,t)}this._setElementState(e.position.nodeAfter,"rename");break}case"split":{const t=e.splitPosition.parent;if(!this._isInInsertedElement(t)){this._markRemove(t,e.splitPosition.offset,e.howMany);const n=Ql._createFromPositionAndShift(e.splitPosition,e.howMany);for(const t of n.getItems({shallow:!0}))this._setElementState(t,"move")}this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&(this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1),this._setElementState(e.graveyardPosition.nodeAfter,"move"));break}case"merge":{const t=e.sourcePosition.parent;this._isInInsertedElement(t.parent)||this._markRemove(t.parent,t.startOffset,1);const n=e.graveyardPosition.parent;this._markInsert(n,e.graveyardPosition.offset,1),this._setElementState(t,"move");const r=e.targetPosition.parent;if(!this._isInInsertedElement(r)){this._markInsert(r,e.targetPosition.offset,t.maxOffset);const n=Ql._createFromPositionAndShift(e.sourcePosition,e.howMany);for(const t of n.getItems({shallow:!0}))this._setElementState(t,"move")}break}case"detachRoot":case"addRoot":{const t=e.affectedSelectable;if(!t._isLoaded)return;if(t.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!e.root._isLoaded)return;const t=e.root.rootName;this._bufferRootAttributeChange(t,e.key,e.oldValue,e.newValue);break}}this._cachedChanges=null}bufferMarkerChange(t,e,n){e.range&&e.range.root.is("rootElement")&&!e.range.root._isLoaded&&(e.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let r=this._changedMarkers.get(t);r?r.newMarkerData=n:(r={newMarkerData:n,oldMarkerData:e},this._changedMarkers.set(t,r)),null==r.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(t)}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.oldMarkerData.range&&t.push({name:e,range:n.oldMarkerData.range});return t}getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.newMarkerData.range&&t.push({name:e,range:n.newMarkerData.range});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map((([t,e])=>({name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}})))}hasDataChanges(){if(this.getChanges().length)return!0;if(this._changedRoots.size>0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const n=t.range&&!e.range,r=!t.range&&e.range,i=t.range&&e.range&&!t.range.isEqual(e.range);if(n||r||i)return!0}}return!1}getChanges(t={}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const t of this._changesInElement.keys()){const n=this._changesInElement.get(t).sort(((t,e)=>t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offset<e.offset?-1:1)),r=this._elementChildrenSnapshots.get(t),i=ah(t.getChildren()),o=lh(r.length,n);let s=0,a=0;for(const n of o)if("i"===n){const n=this._getDiffActionForNode(i[s].node,"insert"),r=this._elementsSnapshots.get(i[s].node),o=this._getInsertDiff(t,s,n,i[s],r);e.push(o),s++}else if("r"===n){const n=this._getDiffActionForNode(r[a].node,"remove"),i=this._getRemoveDiff(t,s,n,r[a]);e.push(i),a++}else if("a"===n){const n=r[a].attributes,o=i[s].attributes;let l;if("$text"==i[s].name)l=new Ql($l._createAt(t,s),$l._createAt(t,s+1));else{const e=t.offsetToIndex(s);l=new Ql($l._createAt(t,s),$l._createAt(t.getChild(e),0))}const c=this._getAttributesDiff(l,n,o);e.push(...c),s++,a++}else s++,a++}e.sort(((t,e)=>t.position.root!=e.position.root?t.position.root.rootName<e.position.root.rootName?-1:1:t.position.isEqual(e.position)?t.changeCount-e.changeCount:t.position.isBefore(e.position)?-1:1));for(let t=1,n=0;t<e.length;t++){const r=e[n],i=e[t],o="remove"==r.type&&"remove"==i.type&&"$text"==r.name&&"$text"==i.name&&r.position.isEqual(i.position),s="insert"==r.type&&"insert"==i.type&&"$text"==r.name&&"$text"==i.name&&r.position.parent==i.position.parent&&r.position.offset+r.length==i.position.offset,a="attribute"==r.type&&"attribute"==i.type&&r.position.parent==i.position.parent&&r.range.isFlat&&i.range.isFlat&&r.position.offset+r.length==i.position.offset&&r.attributeKey==i.attributeKey&&r.attributeOldValue==i.attributeOldValue&&r.attributeNewValue==i.attributeNewValue;o||s||a?(r.length++,a&&(r.range.end=r.range.end.getShiftedBy(1)),e[t]=null):n=t}e=e.filter((t=>t));for(const t of e)delete t.changeCount,"attribute"==t.type&&(delete t.position,delete t.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(ch),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map((t=>{const e={...t};return void 0!==e.state&&delete e.attributes,e}))}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementChildrenSnapshots.clear(),this._elementsSnapshots.clear(),this._elementState.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems.clear(),this._cachedChanges=null}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t),this._setElementState(t,"refresh");const e=Ql._createOn(t);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getData();this.bufferMarkerChange(t.name,e,e)}this._cachedChanges=null}_bufferRootLoad(t){if(t.isAttached()){this._bufferRootStateChange(t.rootName,!0),this._markInsert(t,0,t.maxOffset);for(const e of t.getAttributeKeys())this._bufferRootAttributeChange(t.rootName,e,null,t.getAttribute(e));for(const e of this._markerCollection)if(e.getRange().root==t){const t=e.getData();this.bufferMarkerChange(e.name,{...t,range:null},t)}}}_bufferRootStateChange(t,e){if(!this._changedRoots.has(t))return void this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});const n=this._changedRoots.get(t);void 0!==n.state?(delete n.state,void 0===n.attributes&&this._changedRoots.delete(t)):n.state=e?"attached":"detached"}_bufferRootAttributeChange(t,e,n,r){const i=this._changedRoots.get(t)||{name:t},o=i.attributes||{};if(o[e]){const t=o[e];r===t.oldValue?delete o[e]:t.newValue=r}else o[e]={oldValue:n,newValue:r};0===Object.entries(o).length?(delete i.attributes,void 0===i.state&&this._changedRoots.delete(t)):(i.attributes=o,this._changedRoots.set(t,i))}_markInsert(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const r={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,r)}_markRemove(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const r={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,r),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshots(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let t=0;t<n.length;t++)n[t].howMany<1&&(n.splice(t,1),t--)}_setElementState(t,e){if(!t.is("element"))return;const n=oh._statesPriority.indexOf(this._elementState.get(t));oh._statesPriority.indexOf(e)>n&&this._elementState.set(t,e)}_getDiffActionForNode(t,e){if(!t.is("element"))return e;if(!this._elementsSnapshots.has(t))return e;const n=this._elementState.get(t);return n&&"move"!=n?n:e}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshots(t){if(this._elementChildrenSnapshots.has(t))return;const e=ah(t.getChildren());this._elementChildrenSnapshots.set(t,e);for(const t of e)this._elementsSnapshots.set(t.node,t)}_handleChange(t,e){t.nodesToHandle=t.howMany;for(const n of e){const r=t.offset+t.howMany,i=n.offset+n.howMany;if("insert"==t.type&&("insert"==n.type&&(t.offset<=n.offset?n.offset+=t.howMany:t.offset<i&&(n.howMany+=t.nodesToHandle,t.nodesToHandle=0)),"remove"==n.type&&t.offset<n.offset&&(n.offset+=t.howMany),"attribute"==n.type))if(t.offset<=n.offset)n.offset+=t.howMany;else if(t.offset<i){const i=n.howMany;n.howMany=t.offset-n.offset,e.unshift({type:"attribute",offset:r,howMany:i-n.howMany,count:this._changeCount++})}if("remove"==t.type){if("insert"==n.type)if(r<=n.offset)n.offset-=t.howMany;else if(r<=i)if(t.offset<n.offset){const e=r-n.offset;n.offset=t.offset,n.howMany-=e,t.nodesToHandle-=e}else n.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=n.offset)t.nodesToHandle-=n.howMany,n.howMany=0;else if(t.offset<i){const e=i-t.offset;n.howMany-=e,t.nodesToHandle-=e}if("remove"==n.type&&(r<=n.offset?n.offset-=t.howMany:t.offset<n.offset&&(t.nodesToHandle+=n.howMany,n.howMany=0)),"attribute"==n.type)if(r<=n.offset)n.offset-=t.howMany;else if(t.offset<n.offset){const e=r-n.offset;n.offset=t.offset,n.howMany-=e}else if(t.offset<i)if(r<=i){const r=n.howMany;n.howMany=t.offset-n.offset;const i=r-n.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:i,count:this._changeCount++})}else n.howMany-=i-t.offset}if("attribute"==t.type){if("insert"==n.type)if(t.offset<n.offset&&r>n.offset){if(r>i){const t={type:"attribute",offset:i,howMany:r-i,count:this._changeCount++};this._handleChange(t,e),e.push(t)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offset<i&&(r>i?(t.nodesToHandle=r-i,t.offset=i):t.nodesToHandle=0);if("remove"==n.type&&t.offset<n.offset&&r>n.offset){const i={type:"attribute",offset:n.offset,howMany:r-n.offset,count:this._changeCount++};this._handleChange(i,e),e.push(i),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==n.type&&(t.offset>=n.offset&&r<=i?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&r>=i&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n,r,i){const o={type:"insert",position:$l._createAt(t,e),name:r.name,attributes:new Map(r.attributes),length:1,changeCount:this._changeCount++,action:n};return"insert"!=n&&i&&(o.before={name:i.name,attributes:new Map(i.attributes)}),o}_getRemoveDiff(t,e,n,r){return{type:"remove",action:n,position:$l._createAt(t,e),name:r.name,attributes:new Map(r.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const r=[];n=new Map(n);for(const[i,o]of e){const e=n.has(i)?n.get(i):null;e!==o&&r.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:i,attributeOldValue:o,attributeNewValue:e,changeCount:this._changeCount++}),n.delete(i)}for(const[e,i]of n)r.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:e,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return r}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),r=t.startOffset;if(n)for(const t of n)if("insert"==t.type&&r>=t.offset&&r<t.offset+t.howMany)return!0;return this._isInInsertedElement(e)}_removeAllNestedChanges(t,e,n){const r=new Ql($l._createAt(t,e),$l._createAt(t,e+n));for(const t of r.getItems({shallow:!0}))t.is("element")&&(this._changesInElement.delete(t),this._removeAllNestedChanges(t,0,t.maxOffset))}}function sh(t){return{node:t,name:t.is("$text")?"$text":t.name,attributes:new Map(t.getAttributes())}}function ah(t){const e=[];for(const n of t)if(n.is("$text"))for(let t=0;t<n.data.length;++t)e.push(sh(n));else e.push(sh(n));return e}function lh(t,e){const n=[];let r=0,i=0;for(const t of e){if(t.offset>r){for(let e=0;e<t.offset-r;e++)n.push("e");i+=t.offset-r}if("insert"==t.type){for(let e=0;e<t.howMany;e++)n.push("i");r=t.offset+t.howMany}else if("remove"==t.type){for(let e=0;e<t.howMany;e++)n.push("r");r=t.offset,i+=t.howMany}else{if(t.howMany>1500)for(let e=0;e<t.howMany;e++)n.push("a");else n.push(..."a".repeat(t.howMany).split(""));r=t.offset+t.howMany,i+=t.howMany}}if(i<t)for(let e=0;e<t-i-r;e++)n.push("e");return n}function ch(t){const e="position"in t&&"$graveyard"==t.position.root.rootName,n="range"in t&&"$graveyard"==t.range.root.rootName;return!e&&!n}class dh{_operations=[];_undoPairs=new Map;_undoneOperations=new Set;_baseVersionToOperationIndex=new Map;_version=0;_gaps=new Map;get version(){return this._version}set version(t){this._operations.length&&t>this._version+1&&this._gaps.set(this._version,t),this._version=t}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(t){if(t.baseVersion!==this.version)throw new kr("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const n=this._operations[0];void 0===t&&(t=n.baseVersion);let r=e-1;for(const[e,n]of this._gaps)t>e&&t<n&&(t=n),r>e&&r<n&&(r=e-1);if(r<n.baseVersion||t>this.lastOperation.baseVersion)return[];let i=this._baseVersionToOperationIndex.get(t);void 0===i&&(i=0);let o=this._baseVersionToOperationIndex.get(r);return void 0===o&&(o=this._operations.length-1),this._operations.slice(i,o+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(void 0!==e)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class hh extends ql{rootName;_document;_isAttached=!0;_isLoaded=!0;constructor(t,e,n="main"){super(e),this._document=t,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}hh.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t):"rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t||"node"===t||"model:node"===t};const uh="$graveyard";class mh extends(Dr()){model;history;selection;roots;differ;isReadOnly;_postFixers;_hasSelectionChangedFromTheLastChangeBlock;constructor(t){super(),this.model=t,this.history=new dh,this.selection=new fc(this),this.roots=new xo({idProperty:"rootName"}),this.differ=new oh(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",uh),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&this.differ.bufferOperation(n)}),{priority:"high"}),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&this.history.addOperation(n)}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",((t,e,n,r,i)=>{const o={...e.getData(),range:r};this.differ.bufferMarkerChange(e.name,i,o),null===n&&e.on("change",((t,n)=>{const r=e.getData();this.differ.bufferMarkerChange(e.name,{...r,range:n},r)}))})),this.registerPostFixer((t=>{let e=!1;for(const n of this.roots)n.isAttached()||n.isEmpty||(t.remove(t.createRangeIn(n)),e=!0);for(const n of this.model.markers)n.getRange().root.isAttached()||(t.removeMarker(n),e=!0);return e}))}get version(){return this.history.version}set version(t){this.history.version=t}get graveyard(){return this.getRoot(uh)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new kr("model-document-createroot-name-exists",this,{name:e});const n=new hh(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(t=!1){return this.getRoots(t).map((t=>t.rootName))}getRoots(t=!1){return this.roots.filter((e=>e!=this.graveyard&&(t||e.isAttached())&&e._isLoaded))}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=rs(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const t=this.getRoots();return t.length?t[0]:this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,r=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(r)||e.createRange(r)}_validateSelectionRange(t){return gh(t.start)&&gh(t.end)}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),e=n(t),e)break}while(e)}}function gh(t){const e=t.textNode;if(e){const n=e.data,r=t.offset-e.startOffset;return!Io(n,r)&&!Po(n,r)}return!0}class ph extends(Dr()){_markers=new Map;[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof fh?t.name:t;return this._markers.has(e)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,r=!1){const i=t instanceof fh?t.name:t;if(i.includes(","))throw new kr("markercollection-incorrect-marker-name",this);const o=this._markers.get(i);if(o){const t=o.getData(),s=o.getRange();let a=!1;return s.isEqual(e)||(o._attachLiveRange(uc.fromRange(e)),a=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,a=!0),"boolean"==typeof r&&r!=o.affectsData&&(o._affectsData=r,a=!0),a&&this.fire(`update:${i}`,o,s,e,t),o}const s=uc.fromRange(e),a=new fh(i,s,n,r);return this._markers.set(i,a),this.fire(`update:${i}`,a,null,e,{...a.getData(),range:null}),a}_remove(t){const e=t instanceof fh?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire(`update:${e}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}_refresh(t){const e=t instanceof fh?t.name:t,n=this._markers.get(e);if(!n)throw new kr("markercollection-refresh-marker-not-exists",this);const r=n.getRange();this.fire(`update:${e}`,n,r,r,n.getData())}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)null!==e.getRange().getIntersection(t)&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}class fh extends(Dr(Ml)){name;_managedUsingOperations;_affectsData;_liveRange;constructor(t,e,n,r){super(),this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=r}get managedUsingOperations(){if(!this._liveRange)throw new kr("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new kr("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new kr("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new kr("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new kr("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}fh.prototype.is=function(t){return"marker"===t||"model:marker"===t};class bh extends Cd{sourcePosition;howMany;constructor(t,e){super(null),this.sourcePosition=t.clone(),this.howMany=e}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t}_validate(){if(this.sourcePosition.root.document)throw new kr("detach-operation-on-document-node",this)}_execute(){yd(Ql._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class kh extends Ml{markers=new Map;_children=new Ol;constructor(t){super(),t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)n.name?e.push(ql.fromJSON(n)):e.push(Hl.fromJSON(n));return new kh(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new Hl(t)];Yr(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Hl(t):t instanceof jl?new Hl(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}}kh.prototype.is=function(t){return"documentFragment"===t||"model:documentFragment"===t};class wh{model;batch;constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new Hl(t,e)}createElement(t,e){return new ql(t,e)}createDocumentFragment(){return new kh}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof Hl&&""==t.data)return;const r=$l._createAt(e,n);if(t.parent){if(yh(t.root,r.root))return void this.move(Ql._createOn(t),r);if(t.root.document)throw new kr("model-writer-insert-forbidden-move",this);this.remove(t)}const i=r.root.document?r.root.document.version:null,o=new Id(r,t,i);if(t instanceof Hl&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),t instanceof kh)for(const[e,n]of t.markers){const t=$l._createAt(n.root,0),i={range:new Ql(n.start._getCombined(t,r),n.end._getCombined(t,r)),usingOperation:!0,affectsData:!0};this.model.markers.has(e)?this.updateMarker(e,i):this.addMarker(e,i)}}insertText(t,e,n,r){e instanceof kh||e instanceof ql||e instanceof $l?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,r)}insertElement(t,e,n,r){e instanceof kh||e instanceof ql||e instanceof $l?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,r)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof kh||e instanceof ql?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof kh||e instanceof ql?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof Ql){const r=n.getMinimalFlatRanges();for(const n of r)Ah(this,t,e,n)}else _h(this,t,e,n)}setAttributes(t,e){for(const[n,r]of So(t))this.setAttribute(n,r,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof Ql){const n=e.getMinimalFlatRanges();for(const e of n)Ah(this,t,null,e)}else _h(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=t=>{for(const e of t.getAttributeKeys())this.removeAttribute(e,t)};if(t instanceof Ql)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof Ql))throw new kr("writer-move-invalid-range",this);if(!t.isFlat)throw new kr("writer-move-range-not-flat",this);const r=$l._createAt(e,n);if(r.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!yh(t.root,r.root))throw new kr("writer-move-different-document",this);const i=t.root.document?t.root.document.version:null,o=new Td(t.start,t.end.offset-t.start.offset,r,i);this.batch.addOperation(o),this.model.applyOperation(o)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof Ql?t:Ql._createOn(t)).getMinimalFlatRanges().reverse();for(const t of e)this._addOperationForAffectedMarkers("move",t),vh(t.start,t.end.offset-t.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof ql))throw new kr("writer-merge-no-element-before",this);if(!(n instanceof ql))throw new kr("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(...t){return this.model.createSelection(...t)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(Ql._createIn(n),$l._createAt(e,"end")),this.remove(n)}_merge(t){const e=$l._createAt(t.nodeBefore,"end"),n=$l._createAt(t.nodeAfter,0),r=t.root.document.graveyard,i=new $l(r,[0]),o=t.root.document.version,s=new Vd(n,t.nodeAfter.maxOffset,e,i,o);this.batch.addOperation(s),this.model.applyOperation(s)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof ql))throw new kr("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,r=new Md($l._createBefore(t),t.name,e,n);this.batch.addOperation(r),this.model.applyOperation(r)}split(t,e){this._assertWriterUsedCorrectly();let n,r,i=t.parent;if(!i.parent)throw new kr("writer-split-element-no-parent",this);if(e||(e=i.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new kr("writer-split-invalid-limit-element",this);do{const e=i.root.document?i.root.document.version:null,o=i.maxOffset-t.offset,s=Pd.getInsertionPosition(t),a=new Pd(t,o,s,null,e);this.batch.addOperation(a),this.model.applyOperation(a),n||r||(n=i,r=t.parent.nextSibling),i=(t=this.createPositionAfter(t.parent)).parent}while(i!==e);return{position:t,range:new Ql($l._createAt(n,"end"),$l._createAt(r,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new kr("writer-wrap-range-not-flat",this);const n=e instanceof ql?e:new ql(e);if(n.childCount>0)throw new kr("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new kr("writer-wrap-element-attached",this);this.insert(n,t.start);const r=new Ql(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(r,$l._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new kr("writer-unwrap-element-no-parent",this);this.move(Ql._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new kr("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,r=e.range,i=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new kr("writer-addmarker-marker-exists",this);if(!r)throw new kr("writer-addmarker-no-range",this);return n?(Ch(this,t,null,r,i),this.model.markers.get(t)):this.model.markers._set(t,r,n,i)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n="string"==typeof t?t:t.name,r=this.model.markers.get(n);if(!r)throw new kr("writer-updatemarker-marker-not-exists",this);if(!e)return wr("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(r);const i="boolean"==typeof e.usingOperation,o="boolean"==typeof e.affectsData,s=o?e.affectsData:r.affectsData;if(!i&&!e.range&&!o)throw new kr("writer-updatemarker-wrong-options",this);const a=r.getRange(),l=e.range?e.range:a;i&&e.usingOperation!==r.managedUsingOperations?e.usingOperation?Ch(this,n,null,l,s):(Ch(this,n,a,null,s),this.model.markers._set(n,l,void 0,s)):r.managedUsingOperations?Ch(this,n,a,l,s):this.model.markers._set(n,l,void 0,s)}removeMarker(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new kr("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations)return void this.model.markers._remove(e);Ch(this,e,n.getRange(),null,n.affectsData)}addRoot(t,e="$root"){this._assertWriterUsedCorrectly();const n=this.model.document.getRoot(t);if(n&&n.isAttached())throw new kr("writer-addroot-root-exists",this);const r=this.model.document,i=new Od(t,e,!0,r,r.version);return this.batch.addOperation(i),this.model.applyOperation(i),this.model.document.getRoot(t)}detachRoot(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?this.model.document.getRoot(t):t;if(!e||!e.isAttached())throw new kr("writer-detachroot-no-root",this);for(const t of this.model.markers)t.getRange().root===e&&this.removeMarker(t);for(const t of e.getAttributeKeys())this.removeAttribute(t,e);this.remove(this.createRangeIn(e));const n=this.model.document,r=new Od(e.rootName,e.name,!1,n,n.version);this.batch.addOperation(r),this.model.applyOperation(r)}setSelection(...t){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...t)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else for(const[e,n]of So(t))this._setSelectionAttribute(e,n)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const r=fc._getStoreAttributeKey(t);this.setAttribute(r,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=fc._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new kr("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const r=n.getRange();let i=!1;if("move"===t){const t=e;i=t.containsPosition(r.start)||t.start.isEqual(r.start)||t.containsPosition(r.end)||t.end.isEqual(r.end)}else{const t=e,n=t.nodeBefore,o=t.nodeAfter,s=r.start.parent==n&&r.start.isAtEnd,a=r.end.parent==o&&0==r.end.offset,l=r.end.nodeAfter==o,c=r.start.nodeAfter==o;i=s||a||l||c}i&&this.updateMarker(n.name,{range:r})}}}function Ah(t,e,n,r){const i=t.model,o=i.document;let s,a,l,c=r.start;for(const t of r.getWalker({shallow:!0}))l=t.item.getAttribute(e),s&&a!=l&&(a!=n&&d(),c=s),s=t.nextPosition,a=l;function d(){const r=new Ql(c,s),l=r.root.document?o.version:null,d=new Ld(r,e,a,n,l);t.batch.addOperation(d),i.applyOperation(d)}s instanceof $l&&s!=c&&a!=n&&d()}function _h(t,e,n,r){const i=t.model,o=i.document,s=r.getAttribute(e);let a,l;if(s!=n){if(r.root===r){const t=r.document?o.version:null;l=new Nd(r,e,s,n,t)}else{a=new Ql($l._createBefore(r),t.createPositionAfter(r));const i=a.root.document?o.version:null;l=new Ld(a,e,s,n,i)}t.batch.addOperation(l),i.applyOperation(l)}}function Ch(t,e,n,r,i){const o=t.model,s=o.document,a=new Fd(e,n,r,o.markers,!!i,s.version);t.batch.addOperation(a),o.applyOperation(a)}function vh(t,e,n,r){let i;if(t.root.document){const n=r.document,o=new $l(n.graveyard,[0]);i=new Td(t,e,o,n.version)}else i=new bh(t,e);n.addOperation(i),r.applyOperation(i)}function yh(t,e){return t===e||t instanceof hh&&e instanceof hh}function xh(t,e,n={}){if(e.isCollapsed)return;const r=e.getFirstRange();if("$graveyard"==r.root.rootName)return;const i=t.schema;t.change((t=>{if(!n.doNotResetEntireContent&&function(t,e){const n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;const r=e.getFirstRange();if(r.start.parent==r.end.parent)return!1;return t.checkChild(n,"paragraph")}(i,e))return void function(t,e){const n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),Sh(t,t.createPositionAt(n,0),e)}(t,e);const o={};if(!n.doNotAutoparagraph){const t=e.getSelectedElement();t&&Object.assign(o,i.getAttributesWithProperty(t,"copyOnReplace",!0))}const[s,a]=function(t){const e=t.root.document.model,n=t.start;let r=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){const n=function(t){const e=t.parent,n=e.root.document.model.schema,r=e.getAncestors({parentFirst:!0,includeSelf:!0});for(const t of r){if(n.isLimit(t))return null;if(n.isBlock(t))return t}}(r);if(n&&r.isTouching(e.createPositionAt(n,0))){const n=e.createSelection(t);e.modifySelection(n,{direction:"backward"});const i=n.getLastPosition(),o=e.createRange(i,r);e.hasContent(o,{ignoreMarkers:!0})||(r=i)}}return[eh.fromPosition(n,"toPrevious"),eh.fromPosition(r,"toNext")]}(r);s.isTouching(a)||t.remove(t.createRange(s,a)),n.leaveUnmerged||(!function(t,e,n){const r=t.model;if(!Dh(t.model.schema,e,n))return;const[i,o]=function(t,e){const n=t.getAncestors(),r=e.getAncestors();let i=0;for(;n[i]&&n[i]==r[i];)i++;return[n[i],r[i]]}(e,n);if(!i||!o)return;!r.hasContent(i,{ignoreMarkers:!0})&&r.hasContent(o,{ignoreMarkers:!0})?Bh(t,e,n,i.parent):Eh(t,e,n,i.parent)}(t,s,a),i.removeDisallowedAttributes(s.parent.getChildren(),t)),Th(t,e,s),!n.doNotAutoparagraph&&function(t,e){const n=t.checkChild(e,"$text"),r=t.checkChild(e,"paragraph");return!n&&r}(i,s)&&Sh(t,s,e,o),s.detach(),a.detach()}))}function Eh(t,e,n,r){const i=e.parent,o=n.parent;if(i!=r&&o!=r){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(o)).isEqual(e)||t.insert(o,e),t.merge(e);n.parent.isEmpty;){const e=n.parent;n=t.createPositionBefore(e),t.remove(e)}Dh(t.model.schema,e,n)&&Eh(t,e,n,r)}}function Bh(t,e,n,r){const i=e.parent,o=n.parent;if(i!=r&&o!=r){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(o)).isEqual(e)||t.insert(i,n);e.parent.isEmpty;){const n=e.parent;e=t.createPositionBefore(n),t.remove(n)}n=t.createPositionBefore(o),function(t,e){const n=e.nodeBefore,r=e.nodeAfter;n.name!=r.name&&t.rename(n,r.name);t.clearAttributes(n),t.setAttributes(Object.fromEntries(r.getAttributes()),n),t.merge(e)}(t,n),Dh(t.model.schema,e,n)&&Bh(t,e,n,r)}}function Dh(t,e,n){const r=e.parent,i=n.parent;return r!=i&&(!t.isLimit(r)&&!t.isLimit(i)&&function(t,e,n){const r=new Ql(t,e);for(const t of r.getWalker())if(n.isLimit(t.item))return!1;return!0}(e,n,t))}function Sh(t,e,n,r={}){const i=t.createElement("paragraph");t.model.schema.setAllowedAttributes(i,r,t),t.insert(i,e),Th(t,n,t.createPositionAt(i,0))}function Th(t,e,n){e instanceof fc?t.setSelection(n):e.setTo(n)}function Ih(t,e){const n=[];Array.from(t.getItems({direction:"backward"})).map((t=>e.createRangeOn(t))).filter((e=>(e.start.isAfter(t.start)||e.start.isEqual(t.start))&&(e.end.isBefore(t.end)||e.end.isEqual(t.end)))).forEach((t=>{n.push(t.start.parent),e.remove(t)})),n.forEach((t=>{let n=t;for(;n.parent&&n.isEmpty;){const t=e.createRangeOn(n);n=n.parent,e.remove(t)}}))}class Ph{model;writer;position;canMergeWith;schema;_documentFragment;_documentFragmentPosition;_firstNode=null;_lastNode=null;_lastAutoParagraph=null;_filterAttributesOf=[];_affectedStart=null;_affectedEnd=null;_nodeToSelect=null;constructor(t,e,n){this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0)}handleNodes(t){for(const e of Array.from(t))this._handleNode(e);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(t){const e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new kr("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Ql._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Ql(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){this._checkAndSplitToAllowedPosition(t)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this.schema.isObject(t)||this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=eh.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleDisallowedNode(t){t.is("element")&&this.handleNodes(t.getChildren())}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new kr("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=t:this._nodeToSelect=null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=eh.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=eh.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof ql))return;if(!this._canMergeLeft(t))return;const e=eh._createBefore(t);e.stickiness="toNext";const n=eh.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=eh._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=eh._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_mergeOnRight(){const t=this._lastNode;if(!(t instanceof ql))return;if(!this._canMergeRight(t))return;const e=eh._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new kr("insertcontent-invalid-insertion-position",this);this.position=$l._createAt(e.nodeBefore,"end");const n=eh.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=eh._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=eh._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_canMergeLeft(t){const e=t.previousSibling;return e instanceof ql&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof ql&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_insertAutoParagraph(){this._insertPartialFragment();const t=this.writer.createElement("paragraph");this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0)}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const t=this.position.parent;this.position=this.writer.createPositionBefore(t),t.isEmpty&&t.parent===e&&this.writer.remove(t)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const t=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=t,this.canMergeWith.add(this.position.nodeAfter)}return this.schema.checkChild(this.position.parent,t)||this._insertAutoParagraph(),!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)||this.schema.checkChild(t,"paragraph")&&this.schema.checkChild("paragraph",e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function Vh(t,e,n,r={}){if(!t.schema.isObject(e))throw new kr("insertobject-element-not-an-object",t,{object:e});const i=n||t.document.selection;let o=i;r.findOptimalPosition&&t.schema.isBlock(e)&&(o=t.createSelection(t.schema.findOptimalInsertionRange(i,r.findOptimalPosition)));const s=Eo(i.getSelectedBlocks()),a={};return s&&Object.assign(a,t.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),t.change((n=>{o.isCollapsed||t.deleteContent(o,{doNotAutoparagraph:!0});let i=e;const s=o.anchor.parent;!t.schema.checkChild(s,e)&&t.schema.checkChild(s,"paragraph")&&t.schema.checkChild("paragraph",e)&&(i=n.createElement("paragraph"),n.insert(e,i)),t.schema.setAllowedAttributes(i,a,n);const l=t.insertContent(i,o);return l.isCollapsed||r.setSelection&&function(t,e,n,r){const i=t.model;if("on"==n)return void t.setSelection(e,"on");if("after"!=n)throw new kr("insertobject-invalid-place-parameter-value",i);let o=e.nextSibling;if(i.schema.isInline(e))return void t.setSelection(e,"after");const s=o&&i.schema.checkChild(o,"$text");!s&&i.schema.checkChild(e.parent,"paragraph")&&(o=t.createElement("paragraph"),i.schema.setAllowedAttributes(o,r,t),i.insertContent(o,t.createPositionAfter(e)));o&&t.setSelection(o,0)}(n,e,r.setSelection,a),l}))}function Fh(t,e){const{isForward:n,walker:r,unit:i,schema:o,treatEmojiAsSingleUnit:s}=t,{type:a,item:l,nextPosition:c}=e;if("text"==a)return"word"===t.unit?function(t,e){let n=t.position.textNode;n||(n=e?t.position.nodeAfter:t.position.nodeBefore);for(;n&&n.is("$text");){const r=t.position.offset-n.startOffset;if(zh(n,r,e))n=e?t.position.nodeAfter:t.position.nodeBefore;else{if(Lh(n.data,r,e))break;t.next()}}return t.position}(r,n):function(t,e,n){const r=t.position.textNode;if(r){const i=r.data;let o=t.position.offset-r.startOffset;for(;Io(i,o)||"character"==e&&Po(i,o)||n&&Fo(i,o);)t.next(),o=t.position.offset-r.startOffset}return t.position}(r,i,s);if(a==(n?"elementStart":"elementEnd")){if(o.isSelectable(l))return $l._createAt(l,n?"after":"before");if(o.checkChild(c,"$text"))return c}else{if(o.isLimit(l))return void r.skip((()=>!0));if(o.checkChild(c,"$text"))return c}}function Rh(t,e){const n=t.root,r=$l._createAt(n,e?"end":0);return e?new Ql(t,r):new Ql(r,t)}function Lh(t,e,n){const r=e+(n?0:-1);return' ,.?!:;"-()'.includes(t.charAt(r))}function zh(t,e,n){return e===(n?t.offsetSize:0)}class Mh extends(jr()){markers;document;schema;_pendingChanges;_currentWriter;constructor(){super(),this.markers=new ph,this.document=new mh(this),this.schema=new td,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((t=>this.decorate(t))),this.on("applyOperation",((t,e)=>{e[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((()=>!0),"$marker"),$c(this),this.document.registerPostFixer(Lc),this.on("insertContent",((t,[e,n])=>{t.return=function(t,e,n){return t.change((r=>{const i=n||t.document.selection;i.isCollapsed||t.deleteContent(i,{doNotAutoparagraph:!0});const o=new Ph(t,r,i.anchor),s=[];let a;if(e.is("documentFragment")){if(e.markers.size){const t=[];for(const[n,r]of e.markers){const{start:e,end:i}=r,o=e.isEqual(i);t.push({position:e,name:n,isCollapsed:o},{position:i,name:n,isCollapsed:o})}t.sort((({position:t},{position:e})=>t.isBefore(e)?1:-1));for(const{position:n,name:i,isCollapsed:o}of t){let t=null,a=null;const l=n.parent===e&&n.isAtStart,c=n.parent===e&&n.isAtEnd;l||c?o&&(a=l?"start":"end"):(t=r.createElement("$marker"),r.insert(t,n)),s.push({name:i,element:t,collapsed:a})}}a=e.getChildren()}else a=[e];o.handleNodes(a);let l=o.getSelectionRange();if(e.is("documentFragment")&&s.length){const t=l?uc.fromRange(l):null,e={};for(let t=s.length-1;t>=0;t--){const{name:n,element:i,collapsed:a}=s[t],l=!e[n];if(l&&(e[n]=[]),i){const t=r.createPositionAt(i,"before");e[n].push(t),r.remove(i)}else{const t=o.getAffectedRange();if(!t){a&&e[n].push(o.position);continue}a?e[n].push(t[a]):e[n].push(l?t.start:t.end)}}for(const[t,[n,i]]of Object.entries(e))n&&i&&n.root===i.root&&n.root.document&&!r.model.markers.has(t)&&r.addMarker(t,{usingOperation:!0,affectsData:!0,range:new Ql(n,i)});t&&(l=t.toRange(),t.detach())}l&&(i instanceof fc?r.setSelection(l):i.setTo(l));const c=o.getAffectedRange()||t.createRange(i.anchor);return o.destroy(),c}))}(this,e,n)})),this.on("insertObject",((t,[e,n,r])=>{t.return=Vh(this,e,n,r)})),this.on("canEditAt",(t=>{const e=!this.document.isReadOnly;t.return=e,e||t.stop()}))}change(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new ih,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(t){kr.rethrowUnexpectedError(t,this)}}enqueueChange(t,e){try{t?"function"==typeof t?(e=t,t=new ih):t instanceof ih||(t=new ih(t)):t=new ih,this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(t){kr.rethrowUnexpectedError(t,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...r){const i=Nh(e,n);return this.fire("insertContent",[t,i,n,...r])}insertObject(t,e,n,r,...i){const o=Nh(e,n);return this.fire("insertObject",[t,o,r,r,...i])}deleteContent(t,e){xh(this,t,e)}modifySelection(t,e){!function(t,e,n={}){const r=t.schema,i="backward"!=n.direction,o=n.unit?n.unit:"character",s=!!n.treatEmojiAsSingleUnit,a=e.focus,l=new Ul({boundaries:Rh(a,i),singleCharacters:!0,direction:i?"forward":"backward"}),c={walker:l,schema:r,isForward:i,unit:o,treatEmojiAsSingleUnit:s};let d;for(;d=l.next();){if(d.done)return;const n=Fh(c,d.value);if(n)return void(e instanceof fc?t.change((t=>{t.setSelectionFocus(n)})):e.setFocus(n))}}(this,t,e)}getSelectedContent(t){return function(t,e){return t.change((t=>{const n=t.createDocumentFragment(),r=e.getFirstRange();if(!r||r.isCollapsed)return n;const i=r.start.root,o=r.start.getCommonPath(r.end),s=i.getNodeByPath(o);let a;a=r.start.parent==r.end.parent?r:t.createRange(t.createPositionAt(s,r.start.path[o.length]),t.createPositionAt(s,r.end.path[o.length]+1));const l=a.end.offset-a.start.offset;for(const e of a.getItems({shallow:!0}))e.is("$textProxy")?t.appendText(e.data,e.getAttributes(),n):t.append(t.cloneElement(e,!0),n);if(a!=r){const e=r._getTransformedByMove(a.start,t.createPositionAt(n,0),l)[0],i=t.createRange(t.createPositionAt(n,0),e.start);Ih(t.createRange(e.end,t.createPositionAt(n,"end")),t),Ih(i,t)}return n}))}(this,t)}hasContent(t,e={}){const n=t instanceof Ql?t:Ql._createIn(t);if(n.isCollapsed)return!1;const{ignoreWhitespaces:r=!1,ignoreMarkers:i=!1}=e;if(!i)for(const t of this.markers.getMarkersIntersectingRange(n))if(t.affectsData)return!0;for(const t of n.getItems())if(this.schema.isContent(t)){if(!t.is("$textProxy"))return!0;if(!r)return!0;if(-1!==t.data.search(/\S/))return!0}return!1}canEditAt(t){const e=Nh(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new $l(t,e,n)}createPositionAt(t,e){return $l._createAt(t,e)}createPositionAfter(t){return $l._createAfter(t)}createPositionBefore(t){return $l._createBefore(t)}createRange(t,e){return new Ql(t,e)}createRangeIn(t){return Ql._createIn(t)}createRangeOn(t){return Ql._createOn(t)}createSelection(...t){return new oc(...t)}createBatch(t){return new ih(t)}createOperationFromJSON(t){return jd.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const e=this._pendingChanges[0].batch;this._currentWriter=new wh(this,e);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return t}}function Nh(t,e){if(t)return t instanceof oc||t instanceof fc?t:t instanceof Nl?e||0===e?new oc(t,e):t.is("rootElement")?new oc(t,"in"):new oc(t,"on"):new oc(t)}class Oh extends nl{domEventType="click";onDomEvent(t){this.fire(t.type,t)}}class Hh extends nl{domEventType=["mousedown","mouseup","mouseover","mouseout"];onDomEvent(t){this.fire(t.type,t)}}class jh{document;constructor(t){this.document=t}createDocumentFragment(t){return new ba(this.document,t)}createElement(t,e,n){return new Os(this.document,t,e,n)}createText(t){return new os(this.document,t)}clone(t,e=!1){return t._clone(e)}appendChild(t,e){return e._appendChild(t)}insertChild(t,e,n){return n._insertChild(t,e)}removeChildren(t,e,n){return n._removeChildren(t,e)}remove(t){const e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}replace(t,e){const n=t.parent;if(n){const r=n.getChildIndex(t);return this.removeChildren(r,1,n),this.insertChild(r,e,n),!0}return!1}unwrapElement(t){const e=t.parent;if(e){const n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}rename(t,e){const n=new Os(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){q(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}createPositionAt(t,e){return Ks._createAt(t,e)}createPositionAfter(t){return Ks._createAfter(t)}createPositionBefore(t){return Ks._createBefore(t)}createRange(t,e){return new Zs(t,e)}createRangeOn(t){return Zs._createOn(t)}createRangeIn(t){return Zs._createIn(t)}createSelection(...t){return new Js(...t)}}const qh=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Uh=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,Wh=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,$h=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,Gh=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Kh=/\w+\((?:[^()]|\([^()]*\))*\)|\S+/gi,Zh=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function Yh(t){return t.startsWith("#")?qh.test(t):t.startsWith("rgb")?Uh.test(t)||Wh.test(t):t.startsWith("hsl")?$h.test(t)||Gh.test(t):Zh.has(t.toLowerCase())}const Jh=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Qh(t){return Jh.includes(t)}const Xh=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function tu(t){return Xh.test(t)}const eu=/^[+-]?[0-9]*([.][0-9]+)?%$/;function nu(t){return eu.test(t)}const ru=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function iu(t){return ru.includes(t)}const ou=["center","top","bottom","left","right"];function su(t){return ou.includes(t)}const au=["fixed","scroll","local"];function lu(t){return au.includes(t)}const cu=/^url\(/;function du(t){return cu.test(t)}function hu(t=""){if(""===t)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const e=pu(t),n=e[0],r=e[2]||n,i=e[1]||n;return{top:n,bottom:r,right:i,left:e[3]||i}}function uu(t){return e=>{const{top:n,right:r,bottom:i,left:o}=e,s=[];return[n,r,o,i].every((t=>!!t))?s.push([t,mu(e)]):(n&&s.push([t+"-top",n]),r&&s.push([t+"-right",r]),i&&s.push([t+"-bottom",i]),o&&s.push([t+"-left",o])),s}}function mu({top:t,right:e,bottom:n,left:r}){const i=[];return r!==e?i.push(t,e,n,r):n!==t?i.push(t,e,n):e!==t?i.push(t,e):i.push(t),i.join(" ")}function gu(t){return e=>({path:t,value:hu(e)})}function pu(t){const e=t.trim().slice(0,1500).matchAll(Kh);return Array.from(e).map((t=>t[0]))}function fu(t){t.setNormalizer("background",(t=>{const e={},n=pu(t);for(const t of n)iu(t)?(e.repeat=e.repeat||[],e.repeat.push(t)):su(t)?(e.position=e.position||[],e.position.push(t)):lu(t)?e.attachment=t:Yh(t)?e.color=t:du(t)&&(e.image=t);return{path:"background",value:e}})),t.setNormalizer("background-color",(t=>({path:"background.color",value:t}))),t.setReducer("background",(t=>{const e=[];return e.push(["background-color",t.color]),e})),t.setStyleRelation("background",["background-color"])}function bu(t){t.setNormalizer("border",(t=>{const{color:e,style:n,width:r}=yu(t);return{path:"border",value:{color:hu(e),style:hu(n),width:hu(r)}}})),t.setNormalizer("border-top",ku("top")),t.setNormalizer("border-right",ku("right")),t.setNormalizer("border-bottom",ku("bottom")),t.setNormalizer("border-left",ku("left")),t.setNormalizer("border-color",wu("color")),t.setNormalizer("border-width",wu("width")),t.setNormalizer("border-style",wu("style")),t.setNormalizer("border-top-color",_u("color","top")),t.setNormalizer("border-top-style",_u("style","top")),t.setNormalizer("border-top-width",_u("width","top")),t.setNormalizer("border-right-color",_u("color","right")),t.setNormalizer("border-right-style",_u("style","right")),t.setNormalizer("border-right-width",_u("width","right")),t.setNormalizer("border-bottom-color",_u("color","bottom")),t.setNormalizer("border-bottom-style",_u("style","bottom")),t.setNormalizer("border-bottom-width",_u("width","bottom")),t.setNormalizer("border-left-color",_u("color","left")),t.setNormalizer("border-left-style",_u("style","left")),t.setNormalizer("border-left-width",_u("width","left")),t.setExtractor("border-top",Cu("top")),t.setExtractor("border-right",Cu("right")),t.setExtractor("border-bottom",Cu("bottom")),t.setExtractor("border-left",Cu("left")),t.setExtractor("border-top-color","border.color.top"),t.setExtractor("border-right-color","border.color.right"),t.setExtractor("border-bottom-color","border.color.bottom"),t.setExtractor("border-left-color","border.color.left"),t.setExtractor("border-top-width","border.width.top"),t.setExtractor("border-right-width","border.width.right"),t.setExtractor("border-bottom-width","border.width.bottom"),t.setExtractor("border-left-width","border.width.left"),t.setExtractor("border-top-style","border.style.top"),t.setExtractor("border-right-style","border.style.right"),t.setExtractor("border-bottom-style","border.style.bottom"),t.setExtractor("border-left-style","border.style.left"),t.setReducer("border-color",uu("border-color")),t.setReducer("border-style",uu("border-style")),t.setReducer("border-width",uu("border-width")),t.setReducer("border-top",xu("top")),t.setReducer("border-right",xu("right")),t.setReducer("border-bottom",xu("bottom")),t.setReducer("border-left",xu("left")),t.setReducer("border",function(){return e=>{const n=vu(e,"top"),r=vu(e,"right"),i=vu(e,"bottom"),o=vu(e,"left"),s=[n,r,i,o],a={width:t(s,"width"),style:t(s,"style"),color:t(s,"color")},l=Eu(a,"all");if(l.length)return l;const c=Object.entries(a).reduce(((t,[e,n])=>(n&&(t.push([`border-${e}`,n]),s.forEach((t=>delete t[e]))),t)),[]);return[...c,...Eu(n,"top"),...Eu(r,"right"),...Eu(i,"bottom"),...Eu(o,"left")]};function t(t,e){return t.map((t=>t[e])).reduce(((t,e)=>t==e?t:null))}}()),t.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),t.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),t.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),t.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),t.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),t.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function ku(t){return e=>{const{color:n,style:r,width:i}=yu(e),o={};return void 0!==n&&(o.color={[t]:n}),void 0!==r&&(o.style={[t]:r}),void 0!==i&&(o.width={[t]:i}),{path:"border",value:o}}}function wu(t){return e=>({path:"border",value:Au(e,t)})}function Au(t,e){return{[e]:hu(t)}}function _u(t,e){return n=>({path:"border",value:{[t]:{[e]:n}}})}function Cu(t){return(e,n)=>{if(n.border)return vu(n.border,t)}}function vu(t,e){const n={};return t.width&&t.width[e]&&(n.width=t.width[e]),t.style&&t.style[e]&&(n.style=t.style[e]),t.color&&t.color[e]&&(n.color=t.color[e]),n}function yu(t){const e={},n=pu(t);for(const t of n)tu(t)||/thin|medium|thick/.test(t)?e.width=t:Qh(t)?e.style=t:e.color=t;return e}function xu(t){return e=>Eu(e,t)}function Eu(t,e){const n=[];if(t&&t.width&&n.push("width"),t&&t.style&&n.push("style"),t&&t.color&&n.push("color"),3==n.length){const r=n.map((e=>t[e])).join(" ");return["all"==e?["border",r]:[`border-${e}`,r]]}return"all"==e?[]:n.map((n=>[`border-${e}-${n}`,t[n]]))}function Bu(t){t.setNormalizer("margin",gu("margin")),t.setNormalizer("margin-top",(t=>({path:"margin.top",value:t}))),t.setNormalizer("margin-right",(t=>({path:"margin.right",value:t}))),t.setNormalizer("margin-bottom",(t=>({path:"margin.bottom",value:t}))),t.setNormalizer("margin-left",(t=>({path:"margin.left",value:t}))),t.setReducer("margin",uu("margin")),t.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function Du(t){t.setNormalizer("padding",gu("padding")),t.setNormalizer("padding-top",(t=>({path:"padding.top",value:t}))),t.setNormalizer("padding-right",(t=>({path:"padding.right",value:t}))),t.setNormalizer("padding-bottom",(t=>({path:"padding.bottom",value:t}))),t.setNormalizer("padding-left",(t=>({path:"padding.left",value:t}))),t.setReducer("padding",uu("padding")),t.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}class Su{_commands;constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new kr("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}const Tu="contentEditing",Iu="common";class Pu{keystrokeInfos=new Map;_editor;constructor(t){this._editor=t;const e=t.config.get("menuBar.isVisible"),n=t.locale.t;this.addKeystrokeInfoCategory({id:Tu,label:n("Content editing keystrokes"),description:n("These keyboard shortcuts allow for quick access to content editing features.")});const r=[{label:n("Close contextual balloons, dropdowns, and dialogs"),keystroke:"Esc"},{label:n("Open the accessibility help dialog"),keystroke:"Alt+0"},{label:n("Move focus between form fields (inputs, buttons, etc.)"),keystroke:[["Tab"],["Shift+Tab"]]},{label:n("Move focus to the toolbar, navigate between toolbars"),keystroke:"Alt+F10",mayRequireFn:!0},{label:n("Navigate through the toolbar or menu bar"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]},{label:n("Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content."),keystroke:[["Enter"],["Space"]]}];e&&r.push({label:n("Move focus to the menu bar, navigate between menu bars"),keystroke:"Alt+F9",mayRequireFn:!0}),this.addKeystrokeInfoCategory({id:"navigation",label:n("User interface and content navigation keystrokes"),description:n("Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface."),groups:[{id:"common",keystrokes:r}]})}addKeystrokeInfoCategory({id:t,label:e,description:n,groups:r}){this.keystrokeInfos.set(t,{id:t,label:e,description:n,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:t,id:Iu}),r&&r.forEach((e=>{this.addKeystrokeInfoGroup({categoryId:t,...e})}))}addKeystrokeInfoGroup({categoryId:t=Tu,id:e,label:n,keystrokes:r}){const i=this.keystrokeInfos.get(t);if(!i)throw new kr("accessibility-unknown-keystroke-info-category",this._editor,{groupId:e,categoryId:t});i.groups.set(e,{id:e,label:n,keystrokes:r||[]})}addKeystrokeInfos({categoryId:t=Tu,groupId:e=Iu,keystrokes:n}){if(!this.keystrokeInfos.has(t))throw new kr("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:t,keystrokes:n});const r=this.keystrokeInfos.get(t);if(!r.groups.has(e))throw new kr("accessibility-unknown-keystroke-info-group",this._editor,{groupId:e,categoryId:t,keystrokes:n});r.groups.get(e).keystrokes.push(...n)}}class Vu extends(jr()){accessibility;commands;config;conversion;data;editing;locale;model;plugins;keystrokes;t;static defaultConfig;static builtinPlugins;_context;_readOnlyLocks;constructor(t={}){if(super(),"sanitizeHtml"in t)throw new kr("editor-config-sanitizehtml-not-supported");const e=this.constructor,{translations:n,...r}=e.defaultConfig||{},{translations:i=n,...o}=t,s=t.language||r.language;this._context=t.context||new jo({language:s,translations:i}),this._context._addEditor(this,!t.context);const a=Array.from(e.builtinPlugins||[]);this.config=new Xr(o,r),this.config.define("plugins",a),this.config.define(this._context._getEditorConfig()),this.plugins=new Ho(this,a,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new Su,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new Mh,this.on("change:isReadOnly",(()=>{this.model.document.isReadOnly=this.isReadOnly}));const l=new zs;this.data=new kd(this.model,l),this.editing=new Yc(this.model,l),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new wd([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Uo(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new Pu(this)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new kr("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new kr("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new kr("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}setData(t){this.data.set(t)}getData(t){return this.data.get(t)}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],r=t.get("extraPlugins")||[],i=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(r),n,i)}destroy(){let t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((t=>this.once("ready",t)))),t.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(t,...e){try{return this.commands.execute(t,...e)}catch(t){kr.rethrowUnexpectedError(t,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}static Context=jo;static EditorWatchdog=qn;static ContextWatchdog=$n}function Fu(t){return class extends t{sourceElement;updateSourceElement(t){if(!this.sourceElement)throw new kr("editor-missing-sourceelement",this);const e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;if(!e&&!n)return void Ci(this.sourceElement,"");const r="string"==typeof t?t:this.data.get();Ci(this.sourceElement,r)}}}function Ru(t,e){if(e.ckeditorInstance)throw new kr("editor-source-element-already-used",t);e.ckeditorInstance=t,t.once("destroy",(()=>{delete e.ckeditorInstance}))}Fu.updateSourceElement=Fu(Object).prototype.updateSourceElement;class Lu extends qo{_actions;static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new xo({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if("string"!=typeof t)throw new kr("pendingactions-add-invalid-message",this);const e=new(jr());return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const zu={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',colorPalette:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.209 18.717A8.5 8.5 0 1 1 18.686 9.6h-.008l.002.12a3 3 0 0 1-2.866 2.997h-.268l-.046-.002v.002h-4.791a2 2 0 1 0 0 4 1 1 0 1 1-.128 1.992 8.665 8.665 0 0 1-.372.008Zm-3.918-7.01a1.25 1.25 0 1 0-2.415-.648 1.25 1.25 0 0 0 2.415.647ZM5.723 8.18a1.25 1.25 0 1 0 .647-2.414 1.25 1.25 0 0 0-.647 2.414ZM9.76 6.155a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Zm4.028 1.759a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',history:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v14.362c0 .64-.532 1.038-1.184 1.038H2.184C1.532 17.5 1 17.103 1 16.462V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.128 2.128 0 0 1 .157-2.364A2.133 2.133 0 1 1 12.145 7Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h9.494a2.97 2.97 0 0 1-.414-.287 2.998 2.998 0 0 1-1.055-2.03 3.003 3.003 0 0 1 .693-2.185l.383-.455-.02.018-3.65-3.41a.695.695 0 0 0-.957-.034L1.5 13.6V2.5h15v5.535a2.97 2.97 0 0 1 1.412.932l.088.105V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.146 2.146 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.644-3.11 2.134 2.134 0 0 0-1.875-.978Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1c-.662 0-1.2.47-1.2 1.1v14.248c0 .64.533 1.152 1.185 1.152h6.623v-7.236L6.617 9.15a.694.694 0 0 0-.957-.033L1.602 13.55V2.553l14.798.003V9.7H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.094 2.094 0 0 0-1.621.832 2.127 2.127 0 0 0 1.136 3.357 2.13 2.13 0 0 0 2.611-1.506 2.133 2.133 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.366-.44Z"/><path clip-rule="evenodd" d="M19.898 12.369v6.187a.844.844 0 0 1-.844.844h-8.719a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.531a.843.843 0 0 1 .597.248l.838.852h4.75c.223 0 .441.114.6.272a.844.844 0 0 1 .247.597Zm-1.52.654-4.377.02-1.1-1.143H11v6h7.4l-.023-4.877Z"/></svg>',imageUrl:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h7.029a5.401 5.401 0 0 1 .615-4.338l.762-1.232-2.975-2.78a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v6.023c.449.131.887.32 1.307.573l.058.033c.046.028.09.057.135.086V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.15 2.15 0 0 0-1.611.834 2.118 2.118 0 0 0-.438 1.158 2.14 2.14 0 0 0 1.277 2.096 2.132 2.132 0 0 0 2.645-3.11 2.13 2.13 0 0 0-1.873-.978Z"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.647.647 0 0 0-.096.492.664.664 0 0 0 .278.418.7.7 0 0 0 .944-.234 1.741 1.741 0 0 1 2.478-.463 1.869 1.869 0 0 1 .476 2.55.637.637 0 0 0-.071.5.646.646 0 0 0 .309.396.627.627 0 0 0 .869-.19l.027-.041a3.226 3.226 0 0 0-.956-4.492Zm-6.061 3.78-.044.066a3.228 3.228 0 0 0 .82 4.403 3.005 3.005 0 0 0 4.275-.798l.13-.197a.626.626 0 0 0 .092-.475.638.638 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.029a1.741 1.741 0 0 1-2.477.461 1.87 1.87 0 0 1-.475-2.55l.029-.047a.647.647 0 0 0 .086-.485.66.66 0 0 0-.275-.408l-.04-.027a.609.609 0 0 0-.845.17Z"/><path d="M15.312 13.925c.24-.36.154-.838-.19-1.067-.346-.23-.82-.124-1.059.236l-1.268 1.907c-.239.36-.153.838.192 1.067.345.23.818.123 1.057-.236l1.268-1.907Z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.035 1C2.446 1 2 1.54 2 2.098V10.5h1.5v-8h13v8H18V2.098C18 1.539 17.48 1 16.9 1H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.89 1.89 0 0 0 1.011 2.976 1.903 1.903 0 0 0 2.253-1.114 1.887 1.887 0 0 0-1.822-2.598ZM7.463 8.163a.611.611 0 0 0-.432.154L5.071 10.5h5.119L7.88 8.348a.628.628 0 0 0-.417-.185Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 10.5h2.969l-.92-1.113a.618.618 0 0 0-.42-.165ZM.91 11.5a.91.91 0 0 0-.91.912v6.877c0 .505.405.91.91.91h18.178a.91.91 0 0 0 .912-.91v-6.877a.908.908 0 0 0-.912-.912H.91ZM3.668 13h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516L3.668 13Zm4.947 0h1.801v4.3h2.7v1.4h-4.5V13h-.001Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9V13h-.001Zm-8.517 1.457-.614 2.059h1.262l-.648-2.059Z"/></svg>',loupe:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.68 13.74h-.001l4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474ZM13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/></svg>',previousArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>',nextArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeCustom:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:v="https://vecta.io/nano" viewBox="0 0 20 20"><path d="M.95 1.43a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h.75v6.3H.95a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-.65h1.932l1.539-1.5H5v-.95a.95.95 0 0 0-.95-.95H3.2v-6.3h.85A.95.95 0 0 0 5 5.48v-.55h10v.55a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-3.1a.95.95 0 0 0-.95-.95h-3.1a.95.95 0 0 0-.95.95v1.05H5V2.38a.95.95 0 0 0-.95-.95H.95zm.55 3.5v-2h2v2h-2zm0 9.3v2h2v-2h-2zm15-11.3v2h2v-2h-2z"/><path d="M8.139 20.004v-2.388l7.045-7.048 2.391 2.391-7.046 7.046h-2.39zm11.421-9.101a.64.64 0 0 1-.138.206l-1.165 1.168-2.391-2.391 1.167-1.163a.63.63 0 0 1 .206-.138.635.635 0 0 1 .243-.049.63.63 0 0 1 .449.187l1.491 1.488c.059.059.108.129.138.206s.049.16.049.243a.6.6 0 0 1-.049.243z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M13 5.5H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2ZM13 7a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-8A.5.5 0 0 1 2 7h11Z"/></svg>',objectSizeSmall:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M7 9.5H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2ZM7 11a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4A.5.5 0 0 1 2 11h5Z"/></svg>',objectSizeMedium:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M10 7.5H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2ZM10 9a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6A.5.5 0 0 1 2 9h8Z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',dragIndicator:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>',redo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',undo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',bulletedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>',numberedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',todoList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',codeBlock:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.87 12.61a.75.75 0 0 1-.089.976l-.085.07-3.154 2.254 3.412 2.414a.75.75 0 0 1 .237.95l-.057.095a.75.75 0 0 1-.95.237l-.096-.058-4.272-3.022-.003-1.223 4.01-2.867a.75.75 0 0 1 1.047.174zm2.795-.231.095.057 4.011 2.867-.003 1.223-4.272 3.022-.095.058a.75.75 0 0 1-.88-.151l-.07-.086-.058-.095a.75.75 0 0 1 .15-.88l.087-.07 3.412-2.414-3.154-2.253-.085-.071a.75.75 0 0 1 .862-1.207zM16 0a2 2 0 0 1 2 2v9.354l-.663-.492-.837-.001V2a.5.5 0 0 0-.5-.5H2a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3.118L7.156 19H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14zM5.009 15l.003 1H3v-1h2.009zm2.188-2-1.471 1H5v-1h2.197zM10 11v.095L8.668 12H7v-1h3zm4-2v1H7V9h7zm0-2v1H7V7h7zm-4-2v1H5V5h5zM6 3v1H3V3h3z"/></svg>',browseFiles:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',heading1:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 9v10h-2v-8h-2V9h4zM4 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1V11H4v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v4.5z"/></svg>',heading2:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm16.076 8.343V18.5h-6.252c.067-.626.27-1.22.61-1.78.338-.561 1.006-1.305 2.005-2.232.804-.749 1.297-1.257 1.479-1.523.245-.368.368-.732.368-1.092 0-.398-.107-.703-.32-.917-.214-.214-.51-.32-.886-.32-.372 0-.669.111-.889.336-.22.224-.347.596-.38 1.117l-1.778-.178c.106-.982.438-1.686.997-2.114.558-.427 1.257-.64 2.095-.64.918 0 1.64.247 2.164.742.525.495.787 1.11.787 1.847 0 .419-.075.818-.225 1.197-.15.378-.388.775-.714 1.19-.216.275-.605.67-1.168 1.187-.563.516-.92.859-1.07 1.028a3.11 3.11 0 0 0-.365.495h3.542z"/></svg>',heading3:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm9.989 7.53 1.726-.209c.055.44.203.777.445 1.01.24.232.533.349.876.349.368 0 .678-.14.93-.42.251-.279.377-.655.377-1.13 0-.448-.12-.803-.362-1.066a1.153 1.153 0 0 0-.882-.393c-.228 0-.501.044-.819.133l.197-1.453c.482.012.85-.092 1.105-.315.253-.222.38-.517.38-.885 0-.313-.093-.563-.279-.75-.186-.185-.434-.278-.743-.278a1.07 1.07 0 0 0-.78.317c-.216.212-.347.52-.394.927l-1.644-.28c.114-.562.287-1.012.517-1.348.231-.337.553-.601.965-.794a3.24 3.24 0 0 1 1.387-.289c.876 0 1.579.28 2.108.838.436.457.653.973.653 1.549 0 .817-.446 1.468-1.339 1.955.533.114.96.37 1.28.768.319.398.478.878.478 1.441 0 .817-.298 1.513-.895 2.088-.596.576-1.339.864-2.228.864-.842 0-1.54-.243-2.094-.727-.555-.485-.876-1.118-.965-1.901z"/></svg>',heading4:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm13.55 10v-1.873h-3.81v-1.561l4.037-5.91h1.498v5.904h1.156v1.567h-1.156V18.5H17.05zm0-3.44v-3.18l-2.14 3.18h2.14z"/></svg>',heading5:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm9.578 7.607 1.777-.184c.05.402.201.72.45.955a1.223 1.223 0 0 0 1.81-.101c.258-.303.387-.759.387-1.368 0-.572-.128-1-.384-1.286-.256-.285-.59-.428-1-.428-.512 0-.971.226-1.377.679l-1.448-.21.915-4.843h4.716v1.67H15.56l-.28 1.58a2.697 2.697 0 0 1 1.219-.298 2.68 2.68 0 0 1 2.012.863c.55.576.825 1.323.825 2.241a3.36 3.36 0 0 1-.666 2.05c-.605.821-1.445 1.232-2.52 1.232-.86 0-1.56-.23-2.101-.692-.542-.461-.866-1.081-.971-1.86z"/></svg>',heading6:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm15.595 2.973-1.726.19c-.043-.355-.153-.617-.33-.787-.178-.169-.409-.253-.692-.253-.377 0-.695.169-.956.507-.26.339-.424 1.043-.492 2.114.445-.525.997-.787 1.657-.787.745 0 1.383.284 1.914.85.531.568.797 1.3.797 2.197 0 .952-.28 1.716-.838 2.291-.559.576-1.276.864-2.152.864-.94 0-1.712-.365-2.317-1.095-.605-.73-.908-1.927-.908-3.59 0-1.705.316-2.935.946-3.688.63-.753 1.45-1.13 2.457-1.13.706 0 1.291.198 1.755.594.463.395.758.97.885 1.723zm-4.043 3.891c0 .58.133 1.028.4 1.343.266.315.57.473.914.473.33 0 .605-.13.825-.388.22-.258.33-.68.33-1.27 0-.604-.118-1.047-.355-1.329a1.115 1.115 0 0 0-.89-.422c-.342 0-.632.134-.869.403s-.355.666-.355 1.19z"/></svg>',horizontalLine:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',html:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17 0a2 2 0 0 1 2 2v7a1 1 0 0 1 1 1v5a1 1 0 0 1-.883.993l-.118.006L19 17a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2l-.001-1.001-.116-.006A1 1 0 0 1 0 15v-5a1 1 0 0 1 .999-1L1 2a2 2 0 0 1 2-2h14zm.499 15.999h-15L2.5 17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5l-.001-1.001zm-3.478-6.013-.014.014H14v.007l-1.525 1.525-1.46-1.46-.015.013V10h-1v5h1v-3.53l1.428 1.43.048.043.131-.129L14 11.421V15h1v-5h-.965l-.014-.014zM2 10H1v5h1v-2h2v2h1v-5H4v2H2v-2zm7 0H6v1h1v4h1v-4h1v-1zm8 0h-1v5h3v-1h-2v-4zm0-8.5H3a.5.5 0 0 0-.5.5l-.001 6.999h15L17.5 2a.5.5 0 0 0-.5-.5zM10 7v1H4V7h6zm3-2v1H4V5h9zm-3-2v1H4V3h6z"/></svg>',indent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',outdent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',table:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5.5v3h4v-3H3Zm0 4v3h4v-3H3Zm0 4v3h4v-3H3Zm5 3h4v-3H8v3Zm5 0h4v-3h-4v3Zm4-4v-3h-4v3h4Zm0-4v-3h-4v3h4Zm1.5 8A1.5 1.5 0 0 1 17 18H3a1.5 1.5 0 0 1-1.5-1.5V3c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13.5Zm-6.5-4v-3H8v3h4Zm0-4v-3H8v3h4Z"/></svg>'};class Mu extends xo{_parentElement;constructor(t=[]){super(t,{idProperty:"viewUid"}),this.on("add",((t,e,n)=>{this._renderViewIntoCollectionParent(e,n)})),this.on("remove",((t,e)=>{e.element&&this._parentElement&&e.element.remove()})),this._parentElement=null}destroy(){this.map((t=>t.destroy()))}setParent(t){this._parentElement=t;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...t){if(!t.length||!t.every((t=>"string"==typeof t)))throw new kr("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const r of t)n.delegate(r).to(e);this.on("add",((n,r)=>{for(const n of t)r.delegate(n).to(e)})),this.on("remove",((n,r)=>{for(const n of t)r.stopDelegating(n,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)}}class Nu extends(Dr()){ns;tag;text;attributes;children;eventListeners;_isRendered;_revertData;constructor(t){super(),Object.assign(this,Zu(Ku(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 kr("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const n of e.children)em(n)?yield n:nm(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,r)=>new Hu({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:r}),if:(n,r,i)=>new ju({observable:t,emitter:e,attribute:n,valueIfTrue:r,callback:i})}}static extend(t,e){if(t._isRendered)throw new kr("template-extend-render",[this,t]);Xu(t,Zu(Ku(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new kr("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(""),qu(this.text)?this._bindToObservable({schema:this.text,updater:Wu(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,n=t.revertData;for(const r in this.attributes){const i=e.getAttribute(r),o=this.attributes[r];n&&(n.attributes[r]=i);const s=im(o)?o[0].ns:null;if(qu(o)){const a=im(o)?o[0].value:o;n&&om(r)&&a.unshift(i),this._bindToObservable({schema:a,updater:$u(e,r,s),data:t})}else if("style"==r&&"string"!=typeof o[0])this._renderStyleAttribute(o[0],t);else{n&&i&&om(r)&&o.unshift(i);const t=o.map((t=>t&&t.value||t)).reduce(((t,e)=>t.concat(e)),[]).reduce(Ju,"");tm(t)||e.setAttributeNS(s,r,t)}}}_renderStyleAttribute(t,e){const n=e.node;for(const r in t){const i=t[r];qu(i)?this._bindToObservable({schema:[i],updater:Gu(n,r),data:e}):n.style[r]=i}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,r=t.isApplying;let i=0;for(const o of this.children)if(rm(o)){if(!r){o.setParent(e);for(const t of o)n.appendChild(t.element)}}else if(em(o))r||(o.isRendered||o.render(),n.appendChild(o.element));else if(ni(o))n.appendChild(o);else if(r){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),o._renderNode({intoFragment:!1,node:n.childNodes[i++],isApplying:!0,revertData:e})}else n.appendChild(o.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map((n=>{const[r,i]=e.split("@");return n.activateDomEventListener(r,i,t)}));t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const r=n.revertData;Uu(t,e,n);const i=t.filter((t=>!tm(t))).filter((t=>t.observable)).map((r=>r.activateAttributeListener(t,e,n)));r&&r.bindings.push(i)}_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 n=t;for(const t in e.attributes){const r=e.attributes[t];null===r?n.removeAttribute(t):n.setAttribute(t,r)}for(let t=0;t<e.children.length;++t)this._revertTemplateFromNode(n.childNodes[t],e.children[t])}}class Ou{attribute;observable;emitter;callback;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,n){const r=()=>Uu(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,r),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,r)}}}class Hu extends Ou{eventNameOrFunction;constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,n){const r=(t,n)=>{e&&!n.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,t,r),()=>{this.emitter.stopListening(n.node,t,r)}}}class ju extends Ou{valueIfTrue;constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!tm(super.getValue(t))&&(this.valueIfTrue||!0)}}function qu(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(qu):t instanceof Ou)}function Uu(t,e,{node:n}){const r=function(t,e){return t.map((t=>t instanceof Ou?t.getValue(e):t))}(t,n);let i;i=1==t.length&&t[0]instanceof ju?r[0]:r.reduce(Ju,""),tm(i)?e.remove():e.set(i)}function Wu(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}function $u(t,e,n){return{set(r){t.setAttributeNS(n,e,r)},remove(){t.removeAttributeNS(n,e)}}}function Gu(t,e){return{set(n){t.style[e]=n},remove(){t.style[e]=null}}}function Ku(t){return jn(t,(t=>{if(t&&(t instanceof Ou||nm(t)||em(t)||rm(t)))return t}))}function Zu(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=eo(t.text)}(t),t.on&&(t.eventListeners=function(t){for(const e in t)Yu(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=eo(t[e].value)),Yu(t,e)}(t.attributes);const e=[];if(t.children)if(rm(t.children))e.push(t.children);else for(const n of t.children)nm(n)||em(n)||ni(n)?e.push(n):e.push(new Nu(n));t.children=e}return t}function Yu(t,e){t[e]=eo(t[e])}function Ju(t,e){return tm(e)?t:tm(t)?e:`${t} ${e}`}function Qu(t,e){for(const n in e)t[n]?t[n].push(...e[n]):t[n]=e[n]}function Xu(t,e){if(e.attributes&&(t.attributes||(t.attributes={}),Qu(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),Qu(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 kr("ui-template-extend-children-mismatch",t);let n=0;for(const r of e.children)Xu(t.children[n++],r)}}function tm(t){return!t&&0!==t}function em(t){return t instanceof lm}function nm(t){return t instanceof Nu}function rm(t){return t instanceof Mu}function im(t){return s(t[0])&&t[0].ns}function om(t){return"class"==t||"style"==t}var sm=n(7676),am={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(sm.A,am);sm.A.locals;class lm extends(oi(jr())){element;isRendered;locale;t;template;_viewCollections;_unboundChildren;_bindTemplate;constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new xo,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((e,n)=>{n.locale=t,n.t=t&&t.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Nu.bind(this,this)}createCollection(t){const e=new Mu(t);return this._viewCollections.add(e),e}registerChild(t){Yr(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){Yr(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new Nu(t)}extendTemplate(t){Nu.extend(this.template,t)}render(){if(this.isRendered)throw new kr("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)}}function cm({emitter:t,activator:e,callback:n,contextElements:r,listenerOptions:i}){t.listenTo(document,"mousedown",((t,i)=>{if(!e())return;const o="function"==typeof i.composedPath?i.composedPath():[],s="function"==typeof r?r():r;for(const t of s)if(t.contains(i.target)||o.includes(t))return;n()}),i)}function dm(t){return class extends t{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...t){super(...t),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function hm({view:t}){t.listenTo(t.element,"submit",((e,n)=>{n.preventDefault(),t.fire("submit")}),{useCapture:!0})}function um({keystrokeHandler:t,focusTracker:e,gridItems:n,numberOfColumns:r,uiLanguageDirection:i}){const o="number"==typeof r?()=>r:r;function s(t){return r=>{const i=n.find((t=>t.element===e.focusedElement)),o=n.getIndex(i),s=t(o,n);n.get(s).focus(),r.stopPropagation(),r.preventDefault()}}function a(t,e){return t===e-1?0:t+1}function l(t,e){return 0===t?e-1:t-1}t.set("arrowright",s(((t,e)=>"rtl"===i?l(t,e.length):a(t,e.length)))),t.set("arrowleft",s(((t,e)=>"rtl"===i?a(t,e.length):l(t,e.length)))),t.set("arrowup",s(((t,e)=>{let n=t-o();return n<0&&(n=t+o()*Math.floor(e.length/o()),n>e.length-1&&(n-=o())),n}))),t.set("arrowdown",s(((t,e)=>{let n=t+o();return n>e.length-1&&(n=t%o()),n})))}var mm=n(7621),gm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(mm.A,gm);mm.A.locals;class pm extends lm{static presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];constructor(){super();const t=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",t.if("isVisible","ck-hidden",(t=>!t)),"ck-reset_all-excluded",t.if("isColorInherited","ck-icon_inherit-color")],viewBox:t.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const t=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");e&&(this.viewBox=e);for(const{name:e,value:n}of Array.from(t.attributes))pm.presentationalAttributeNames.includes(e)&&this.element.setAttribute(e,n);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((t=>{t.style.fill=this.fillColor}))}}class fm extends lm{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:t.to("style"),id:t.to("id")},children:[{text:t.to("text")}]})}}var bm=n(9715),km={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(bm.A,km);bm.A.locals;class wm extends lm{children;labelView;iconView;keystrokeView;_focusDelayed=null;constructor(t,e=new fm){super(t);const n=this.bindTemplate,r=pr();this.set("_ariaPressed",!1),this.set("_ariaChecked",!1),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${r}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(e),this.iconView=new pm,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const i={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",(t=>!t)),n.if("isVisible","ck-hidden",(t=>!t)),n.to("isOn",(t=>t?"ck-on":"ck-off")),n.if("withText","ck-button_with-text"),n.if("withKeystroke","ck-button_with-keystroke")],role:n.to("role"),type:n.to("type",(t=>t||"button")),tabindex:n.to("tabindex"),"aria-checked":n.to("_ariaChecked"),"aria-pressed":n.to("_ariaPressed"),"aria-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,(t=>!t)),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to((t=>{this.isEnabled?this.fire("execute"):t.preventDefault()}))}};this.bind("_ariaPressed").to(this,"isOn",this,"isToggleable",this,"role",((t,e,n)=>!(!e||Am(n))&&String(!!t))),this.bind("_ariaChecked").to(this,"isOn",this,"isToggleable",this,"role",((t,e,n)=>!(!e||!Am(n))&&String(!!t))),Xn.isSafari&&(this._focusDelayed||(this._focusDelayed=To((()=>this.focus()),0)),i.on.mousedown=n.to((()=>{this._focusDelayed()})),i.on.mouseup=n.to((()=>{this._focusDelayed.cancel()}))),this.setTemplate(i)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(t){return t.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),t}_createKeystrokeView(){const t=new lm;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(t=>Yi(t)))}]}),t}_getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=Yi(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}function Am(t){switch(t){case"radio":case"checkbox":case"option":case"switch":case"menuitemcheckbox":case"menuitemradio":return!0;default:return!1}}var _m=n(7913),Cm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(_m.A,Cm);_m.A.locals;class vm extends lm{children;iconView;constructor(t,e={}){super(t);const n=this.bindTemplate;this.set("label",e.label||""),this.set("class",e.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",n.to("class")]},children:this.children}),e.icon&&(this.iconView=new pm,this.iconView.content=e.icon,this.children.add(this.iconView));const r=new lm(t);r.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"],role:"presentation"},children:[{text:n.to("label")}]}),this.children.add(r)}}class ym extends(Dr()){focusables;focusTracker;keystrokeHandler;actions;constructor(t){if(super(),this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];"string"==typeof n&&(n=[n]);for(const r of n)t.keystrokeHandler.set(r,((t,n)=>{this[e](),n()}),t.keystrokeHandlerOptions)}this.on("forwardCycle",(()=>this.focusFirst()),{priority:"low"}),this.on("backwardCycle",(()=>this.focusLast()),{priority:"low"})}get first(){return this.focusables.find(xm)||null}get last(){return this.focusables.filter(xm).slice(-1)[0]||null}get next(){return this._getDomFocusableItem(1)}get previous(){return this._getDomFocusableItem(-1)}get current(){let t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((e,n)=>{const r=e.element===this.focusTracker.focusedElement;return r&&(t=n),r})),t)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const t=this.next;t&&this.focusables.getIndex(t)===this.current||t===this.first?this.fire("forwardCycle"):this._focus(t,1)}focusPrevious(){const t=this.previous;t&&this.focusables.getIndex(t)===this.current||t===this.last?this.fire("backwardCycle"):this._focus(t,-1)}chain(t){const e=()=>null===this.current?null:this.focusables.get(this.current);this.listenTo(t,"forwardCycle",(t=>{const n=e();this.focusNext(),n!==e()&&t.stop()}),{priority:"low"}),this.listenTo(t,"backwardCycle",(t=>{const n=e();this.focusPrevious(),n!==e()&&t.stop()}),{priority:"low"})}unchain(t){this.stopListening(t)}_focus(t,e){t&&this.focusTracker.focusedElement!==t.element&&t.focus(e)}_getDomFocusableItem(t){const e=this.focusables.length;if(!e)return null;const n=this.current;if(null===n)return this[1===t?"first":"last"];let r=this.focusables.get(n),i=(n+e+t)%e;do{const n=this.focusables.get(i);if(xm(n)){r=n;break}i=(i+e+t)%e}while(i!==n);return r}}function xm(t){return Em(t)&&Di(t.element)}function Em(t){return!(!("focus"in t)||"function"!=typeof t.focus)}function Bm(t){return class extends t{_onDragBound=this._onDrag.bind(this);_onDragEndBound=this._onDragEnd.bind(this);_lastDraggingCoordinates={x:0,y:0};constructor(...t){super(...t),this.on("render",(()=>{this._attachListeners()})),this.set("isDragging",!1)}_attachListeners(){this.listenTo(this.element,"mousedown",this._onDragStart.bind(this)),this.listenTo(this.element,"touchstart",this._onDragStart.bind(this))}_attachDragListeners(){this.listenTo(Yn.document,"mouseup",this._onDragEndBound),this.listenTo(Yn.document,"touchend",this._onDragEndBound),this.listenTo(Yn.document,"mousemove",this._onDragBound),this.listenTo(Yn.document,"touchmove",this._onDragBound)}_detachDragListeners(){this.stopListening(Yn.document,"mouseup",this._onDragEndBound),this.stopListening(Yn.document,"touchend",this._onDragEndBound),this.stopListening(Yn.document,"mousemove",this._onDragBound),this.stopListening(Yn.document,"touchmove",this._onDragBound)}_onDragStart(t,e){if(!this._isHandleElementPressed(e))return;this._attachDragListeners();let n=0,r=0;e instanceof MouseEvent?(n=e.clientX,r=e.clientY):(n=e.touches[0].clientX,r=e.touches[0].clientY),this._lastDraggingCoordinates={x:n,y:r},this.isDragging=!0}_onDrag(t,e){if(!this.isDragging)return void this._detachDragListeners();let n=0,r=0;e instanceof MouseEvent?(n=e.clientX,r=e.clientY):(n=e.touches[0].clientX,r=e.touches[0].clientY),e.preventDefault(),this.fire("drag",{deltaX:Math.round(n-this._lastDraggingCoordinates.x),deltaY:Math.round(r-this._lastDraggingCoordinates.y)}),this._lastDraggingCoordinates={x:n,y:r}}_onDragEnd(){this._detachDragListeners(),this.isDragging=!1}_isHandleElementPressed(t){return!!this.dragHandleElement&&(this.dragHandleElement===t.target||t.target instanceof HTMLElement&&this.dragHandleElement.contains(t.target))}}}var Dm=n(9822),Sm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Dm.A,Sm);Dm.A.locals;class Tm extends lm{children;keystrokes;focusCycler;_focusTracker;_focusables;constructor(t){super(t),this.children=this.createCollection(),this.keystrokes=new Do,this._focusTracker=new Bo,this._focusables=new Mu,this.focusCycler=new ym({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__actions"]},children:this.children})}render(){super.render(),this.keystrokes.listenTo(this.element)}setButtons(t){for(const e of t){const t=new wm(this.locale);let n;for(n in t.on("execute",(()=>e.onExecute())),e.onCreate&&e.onCreate(t),e)"onExecute"!=n&&"onCreate"!=n&&t.set(n,e[n]);this.children.add(t)}this._updateFocusCyclableItems()}focus(t){-1===t?this.focusCycler.focusLast():this.focusCycler.focusFirst()}_updateFocusCyclableItems(){Array.from(this.children).forEach((t=>{this._focusables.add(t),this._focusTracker.add(t.element)}))}}class Im extends lm{children;constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__content"]},children:this.children})}reset(){for(;this.children.length;)this.children.remove(0)}}var Pm=n(9819),Vm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Pm.A,Vm);Pm.A.locals;const Fm="screen-center",Rm="editor-center",Lm="editor-top-side",zm="editor-top-center",Mm="editor-bottom-center",Nm="editor-above-center",Om="editor-below-center",Hm=vi("px");class jm extends(Bm(lm)){parts;headerView;closeButtonView;actionsView;static defaultOffset=15;contentView;keystrokes;focusTracker;wasMoved=!1;_getCurrentDomRoot;_getViewportOffset;_focusables;_focusCycler;constructor(t,{getCurrentDomRoot:e,getViewportOffset:n}){super(t);const r=this.bindTemplate,i=t.t;this.set("className",""),this.set("ariaLabel",i("Editor dialog")),this.set("isModal",!1),this.set("position",Fm),this.set("_isVisible",!1),this.set("_isTransparent",!1),this.set("_top",0),this.set("_left",0),this._getCurrentDomRoot=e,this._getViewportOffset=n,this.decorate("moveTo"),this.parts=this.createCollection(),this.keystrokes=new Do,this.focusTracker=new Bo,this._focusables=new Mu,this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog-overlay",r.if("isModal","ck-dialog-overlay__transparent",(t=>!t)),r.if("_isVisible","ck-hidden",(t=>!t))],tabindex:"-1"},children:[{tag:"div",attributes:{tabindex:"-1",class:["ck","ck-dialog",r.to("className")],role:"dialog","aria-label":r.to("ariaLabel"),style:{top:r.to("_top",(t=>Hm(t))),left:r.to("_left",(t=>Hm(t))),visibility:r.if("_isTransparent","hidden")}},children:this.parts}]})}render(){super.render(),this.keystrokes.set("Esc",((t,e)=>{this.fire("close",{source:"escKeyPress"}),e()})),this.on("drag",((t,{deltaX:e,deltaY:n})=>{this.wasMoved=!0,this.moveBy(e,n)})),this.listenTo(Yn.window,"resize",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.listenTo(Yn.document,"scroll",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.on("change:_isVisible",((t,e,n)=>{n&&(this._isTransparent=!0,setTimeout((()=>{this.updatePosition(),this._isTransparent=!1,this.focus()}),10))})),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView?this.headerView.element:null}setupParts({icon:t,title:e,hasCloseButton:n=!0,content:r,actionButtons:i}){e&&(this.headerView=new vm(this.locale,{icon:t}),n&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=e,this.ariaLabel=e,this.parts.add(this.headerView,0)),r&&(r instanceof lm&&(r=[r]),this.contentView=new Im(this.locale),this.contentView.children.addMany(r),this.parts.add(this.contentView)),i&&(this.actionsView=new Tm(this.locale),this.actionsView.setButtons(i),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(t,e){const n=this._getViewportRect(),r=this._getDialogRect();t+r.width>n.right&&(t=n.right-r.width),t<n.left&&(t=n.left),e<n.top&&(e=n.top),this._moveTo(t,e)}_moveTo(t,e){this._left=t,this._top=e}moveBy(t,e){this.moveTo(this._left+t,this._top+e)}_moveOffScreen(){this._moveTo(-9999,-9999)}updatePosition(){if(!this.element||!this.element.parentNode)return;const t=this._getViewportRect();let e,n=this.position;this._getCurrentDomRoot()?e=this._getVisibleDomRootRect(t):n=Fm;const r=jm.defaultOffset,i=this._getDialogRect();switch(n){case Lm:if(e){const t="ltr"===this.locale.contentLanguageDirection?e.right-i.width-r:e.left+r;this.moveTo(t,e.top+r)}else this._moveOffScreen();break;case Rm:e?this.moveTo(Math.round(e.left+e.width/2-i.width/2),Math.round(e.top+e.height/2-i.height/2)):this._moveOffScreen();break;case Fm:this.moveTo(Math.round((t.width-i.width)/2),Math.round((t.height-i.height)/2));break;case zm:e?this.moveTo(Math.round(e.left+e.width/2-i.width/2),e.top+r):this._moveOffScreen();break;case Mm:e?this.moveTo(Math.round(e.left+e.width/2-i.width/2),e.bottom-i.height-r):this._moveOffScreen();break;case Nm:e?this.moveTo(Math.round(e.left+e.width/2-i.width/2),e.top-i.height-r):this._moveOffScreen();break;case Om:e?this.moveTo(Math.round(e.left+e.width/2-i.width/2),e.bottom+r):this._moveOffScreen()}}_getVisibleDomRootRect(t){let e=new fi(this._getCurrentDomRoot()).getVisible();return e?(e=t.getIntersection(e),e||null):null}_getDialogRect(){return new fi(this.element.firstElementChild)}_getViewportRect(){return function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const e=new fi(Yn.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e.left+=t.left,e.right-=t.right,e.width-=t.left+t.right,e}(this._getViewportOffset())}_updateFocusCyclableItems(){const t=[];if(this.contentView)for(const e of this.contentView.children)Em(e)&&t.push(e);this.actionsView&&t.push(this.actionsView),this.closeButtonView&&t.push(this.closeButtonView),t.forEach((t=>{var e;this._focusables.add(t),this.focusTracker.add(t.element),Em(e=t)&&"focusCycler"in e&&e.focusCycler instanceof ym&&this._focusCycler.chain(t.focusCycler)}))}_createCloseButton(){const t=new wm(this.locale),e=this.locale.t;return t.set({label:e("Close"),tooltip:!0,icon:zu.cancel}),t.on("execute",(()=>this.fire("close",{source:"closeButton"}))),t}}class qm extends Lo{view;static _visibleDialogPlugin;_onHide;static get pluginName(){return"Dialog"}constructor(t){super(t);const e=t.t;this._initShowHideListeners(),this._initFocusToggler(),this._initMultiRootIntegration(),this.set({id:null,isOpen:!1}),t.accessibility.addKeystrokeInfos({categoryId:"navigation",keystrokes:[{label:e("Move focus in and out of an active dialog window"),keystroke:"Ctrl+F6",mayRequireFn:!0}]})}_initShowHideListeners(){this.on("show",((t,e)=>{this._show(e)})),this.on("show",((t,e)=>{e.onShow&&e.onShow(this)}),{priority:"low"}),this.on("hide",(()=>{qm._visibleDialogPlugin&&qm._visibleDialogPlugin._hide()})),this.on("hide",(()=>{this._onHide&&(this._onHide(this),this._onHide=void 0)}),{priority:"low"})}_initFocusToggler(){const t=this.editor;t.keystrokes.set("Ctrl+F6",((e,n)=>{this.isOpen&&!this.view.isModal&&(this.view.focusTracker.isFocused?t.editing.view.focus():this.view.focus(),n())}))}_initMultiRootIntegration(){const t=this.editor.model;t.document.on("change:data",(()=>{if(!this.view)return;const e=t.document.differ.getChangedRoots();for(const t of e)t.state&&this.view.updatePosition()}))}show(t){this.hide(),this.fire(`show:${t.id}`,t)}_show({id:t,icon:e,title:n,hasCloseButton:r=!0,content:i,actionButtons:o,className:s,isModal:a,position:l,onHide:c}){const d=this.editor;this.view=new jm(d.locale,{getCurrentDomRoot:()=>d.editing.view.getDomRoot(d.model.document.selection.anchor.root.rootName),getViewportOffset:()=>d.ui.viewportOffset});const h=this.view;h.on("close",(()=>{this.hide()})),d.ui.view.body.add(h),d.keystrokes.listenTo(h.element),l||(l=a?Fm:Rm),h.set({position:l,_isVisible:!0,className:s,isModal:a}),h.setupParts({icon:e,title:n,hasCloseButton:r,content:i,actionButtons:o}),this.id=t,c&&(this._onHide=c),this.isOpen=!0,qm._visibleDialogPlugin=this}hide(){qm._visibleDialogPlugin&&qm._visibleDialogPlugin.fire(`hide:${qm._visibleDialogPlugin.id}`)}_hide(){if(!this.view)return;const t=this.editor,e=this.view;e.contentView&&e.contentView.reset(),t.ui.view.body.remove(e),t.ui.focusTracker.remove(e.element),t.keystrokes.stopListening(e.element),e.destroy(),t.editing.view.focus(),this.id=null,this.isOpen=!1,qm._visibleDialogPlugin=null}}var Um=n(278),Wm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Um.A,Wm);Um.A.locals;class $m extends wm{_checkIconHolderView=new Gm;constructor(t,e=new fm){super(t,e),this.set({hasCheckSpace:!1,_hasCheck:this.isToggleable});const n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-list-item-button",n.if("isToggleable","ck-list-item-button_toggleable")]}}),this.bind("_hasCheck").to(this,"hasCheckSpace",this,"isToggleable",((t,e)=>t||e))}render(){super.render(),this._hasCheck&&this.children.add(this._checkIconHolderView,0),this._watchCheckIconHolderMount()}_watchCheckIconHolderMount(){this._checkIconHolderView.bind("isOn").to(this,"isOn",(t=>this.isToggleable&&t)),this.on("change:_hasCheck",((t,e,n)=>{const{children:r,_checkIconHolderView:i}=this;n?r.add(i,0):r.remove(i)}))}}class Gm extends lm{children;_checkIconView=this._createCheckIconView();constructor(){super();const t=this.bindTemplate;this.children=this.createCollection(),this.set("isOn",!1),this.setTemplate({tag:"span",children:this.children,attributes:{class:["ck","ck-list-item-button__check-holder",t.to("isOn",(t=>t?"ck-on":"ck-off"))]}})}render(){super.render(),this.isOn&&this.children.add(this._checkIconView,0),this._watchCheckIconMount()}_watchCheckIconMount(){this.on("change:isOn",((t,e,n)=>{const{children:r,_checkIconView:i}=this;n&&!r.has(i)?r.add(i):!n&&r.has(i)&&r.remove(i)}))}_createCheckIconView(){const t=new pm;return t.content=zu.check,t.extendTemplate({attributes:{class:"ck-list-item-button__check-icon"}}),t}}var Km=n(977),Zm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Km.A,Zm);Km.A.locals;class Ym extends $m{constructor(t){super(t),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}var Jm=n(7801),Qm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Jm.A,Qm);Jm.A.locals;class Xm extends lm{id;constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${pr()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}var tg=n(8527),eg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(tg.A,eg);tg.A.locals;class ng extends Mu{locale;_bodyCollectionContainer;constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Nu({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection,role:"application"},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=Qr(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}var rg=n(4391),ig={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(rg.A,ig);rg.A.locals;class og extends wm{toggleSwitchView;constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new lm;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}class sg extends(lg(wm)){}class ag extends(lg($m)){}function lg(t){return class extends t{buttonView;_fileInputView;constructor(...t){super(...t),this.buttonView=this,this._fileInputView=new cg(this.locale),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",(()=>{this._fileInputView.open()})),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}}class cg extends lm{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}const dg='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';var hg=n(25),ug={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(hg.A,ug);hg.A.locals;class mg extends lm{buttonView;children;constructor(t,e){super(t);const n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),e&&this.children.addMany(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",n.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:n.if("isCollapsed","hidden"),"aria-labelledby":n.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const t=new wm(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:dg}),t.extendTemplate({attributes:{"aria-expanded":e.to("isOn",(t=>String(t)))}}),t.bind("label").to(this),t.bind("isOn").to(this,"isCollapsed",(t=>!t)),t.on("execute",(()=>{this.isCollapsed=!this.isCollapsed})),t}}function gg(t,e){const n=t.t,r={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return e.map((t=>{const e=r[t.label];return e&&e!=t.label&&(t.label=e),t}))}function pg(t){return t.map(fg).filter((t=>!!t))}function fg(t){return"string"==typeof t?{model:t,label:t,hasBorder:!1,view:{name:"span",styles:{color:t}}}:{model:t.color,label:t.label||t.color,hasBorder:void 0!==t.hasBorder&&t.hasBorder,view:{name:"span",styles:{color:`${t.color}`}}}}class bg extends wm{constructor(t){super(t);const e=this.bindTemplate;this.set("color",void 0),this.set("hasBorder",!1),this.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',this.extendTemplate({attributes:{style:{backgroundColor:e.to("color",(t=>Xn.isMediaForcedColors?null:t))},class:["ck","ck-color-grid__tile",e.if("hasBorder","ck-color-selector__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var kg=n(7317),wg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(kg.A,wg);kg.A.locals;class Ag extends lm{columns;items;focusTracker;keystrokes;constructor(t,e){super(t);const n=e&&e.colorDefinitions?e.colorDefinitions:[];this.columns=e&&e.columns?e.columns:5;const r={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new Bo,this.keystrokes=new Do,this.items.on("add",((t,e)=>{e.isOn=e.color===this.selectedColor})),n.forEach((t=>{const e=new bg;e.set({color:t.color,label:t.label,tooltip:!0,hasBorder:t.options.hasBorder}),e.on("execute",(()=>{this.fire("execute",{value:t.color,hasBorder:t.options.hasBorder,label:t.label})})),this.items.add(e)})),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:r}}),this.on("change:selectedColor",((t,e,n)=>{for(const t of this.items)t.isOn=t.color===n}))}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element),um({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var _g=n(6931);const Cg=function(t){var e,n,r=[],i=1;if("string"==typeof t)if(_g[t])r=_g[t].slice(),n="rgb";else if("transparent"===t)i=0,n="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var o=t.slice(1);i=1,(l=o.length)<=4?(r=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],4===l&&(i=parseInt(o[3]+o[3],16)/255)):(r=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],8===l&&(i=parseInt(o[6]+o[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var s=e[1],a="rgb"===s;n=o=s.replace(/a$/,"");var l="cmyk"===o?4:"gray"===o?1:3;r=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(t,e){if(/%$/.test(t))return e===l?parseFloat(t)/100:"rgb"===o?255*parseFloat(t)/100:parseFloat(t);if("h"===o[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==vg[t])return vg[t]}return parseFloat(t)})),s===o&&r.push(1),i=a||void 0===r[l]?1:r[l],r=r.slice(0,l)}else t.length>10&&/[0-9](?:\s|\/)/.test(t)&&(r=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),n=t.match(/([a-z])/gi).join("").toLowerCase());else isNaN(t)?Array.isArray(t)||t.length?(r=[t[0],t[1],t[2]],n="rgb",i=4===t.length?t[3]:1):t instanceof Object&&(null!=t.r||null!=t.red||null!=t.R?(n="rgb",r=[t.r||t.red||t.R||0,t.g||t.green||t.G||0,t.b||t.blue||t.B||0]):(n="hsl",r=[t.h||t.hue||t.H||0,t.s||t.saturation||t.S||0,t.l||t.lightness||t.L||t.b||t.brightness]),i=t.a||t.alpha||t.opacity||1,null!=t.opacity&&(i/=100)):(n="rgb",r=[t>>>16,(65280&t)>>>8,255&t]);return{space:n,values:r,alpha:i}};var vg={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};var yg=n(9047);function xg(t,e){if(!t)return"";const n=Eg(t);if(!n)return"";if(n.space===e)return t;if(r=n,!Object.keys(yg).includes(r.space))return"";var r;const i=yg[n.space][e];if(!i)return"";return function(t,e){switch(e){case"hex":return`#${t}`;case"rgb":return`rgb( ${t[0]}, ${t[1]}, ${t[2]} )`;case"hsl":return`hsl( ${t[0]}, ${t[1]}%, ${t[2]}% )`;case"hwb":return`hwb( ${t[0]}, ${t[1]}, ${t[2]} )`;case"lab":return`lab( ${t[0]}% ${t[1]} ${t[2]} )`;case"lch":return`lch( ${t[0]}% ${t[1]} ${t[2]} )`;default:return""}}(i("hex"===n.space?n.hexValue:n.values),e)}function Eg(t){if(t.startsWith("#")){const e=Cg(t);return{space:"hex",values:e.values,hexValue:t,alpha:e.alpha}}const e=Cg(t);return e.space?e:null}var Bg=n(4962),Dg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Bg.A,Dg);Bg.A.locals;class Sg extends lm{fieldView;labelView;statusView;fieldWrapperChildren;constructor(t,e){super(t);const n=`ck-labeled-field-view-${pr()}`,r=`ck-labeled-field-view-status-${pr()}`;this.fieldView=e(this,n,r),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(r),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",((t,e)=>t||e));const i=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",i.to("class"),i.if("isEnabled","ck-disabled",(t=>!t)),i.if("isEmpty","ck-labeled-field-view_empty"),i.if("isFocused","ck-labeled-field-view_focused"),i.if("placeholder","ck-labeled-field-view_placeholder"),i.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(t){const e=new Xm(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new lm(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(t=>!t))],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(t){this.fieldView.focus(t)}}class Tg extends lm{focusTracker;constructor(t){super(t),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("tabIndex",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.set("ariaLabel",void 0),this.focusTracker=new Bo,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),tabindex:e.to("tabIndex"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById"),"aria-label":e.to("ariaLabel")},on:{input:e.to(((...t)=>{this.fire("input",...t),this._updateIsEmpty()})),change:e.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((t,e,n)=>{this._setDomElementValue(n),this._updateIsEmpty()}))}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(t){this.element.value=t||0===t?t:""}}var Ig=n(253),Pg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Ig.A,Pg);Ig.A.locals;class Vg extends Tg{constructor(t){super(t),this.set("inputMode","text");const e=this.bindTemplate;this.extendTemplate({attributes:{inputmode:e.to("inputMode")}})}}class Fg extends Vg{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class Rg extends Vg{constructor(t,{min:e,max:n,step:r}={}){super(t);const i=this.bindTemplate;this.set("min",e),this.set("max",n),this.set("step",r),this.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:i.to("min"),max:i.to("max"),step:i.to("step")}})}}var Lg=n(1671),zg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Lg.A,zg);Lg.A.locals;class Mg extends lm{children;constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",(t=>`ck-dropdown__panel_${t}`)),e.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:e.to((t=>{"input"!==t.target.tagName.toLocaleLowerCase()&&t.preventDefault()}))}})}focus(){if(this.children.length){const t=this.children.first;"function"==typeof t.focus?t.focus():wr("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}var Ng=n(8149),Og={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Ng.A,Og);Ng.A.locals;class Hg extends lm{buttonView;panelView;focusTracker;keystrokes;listView;toolbarView;menuView;constructor(t,e,n){super(t);const r=this.bindTemplate;this.buttonView=e,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new Do,this.focusTracker=new Bo,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",r.to("class"),r.if("isEnabled","ck-disabled",(t=>!t))],id:r.to("id"),"aria-describedby":r.to("ariaDescribedById")},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":r.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.on("change:isOpen",((t,e,n)=>{if(n)if("auto"===this.panelPosition){const t=Hg._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=t?t.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition})),this.keystrokes.listenTo(this.element);const t=(t,e)=>{this.isOpen&&(this.isOpen=!1,e())};this.keystrokes.set("arrowdown",((t,e)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,e())})),this.keystrokes.set("arrowright",((t,e)=>{this.isOpen&&e()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:t,north:e,southEast:n,southWest:r,northEast:i,northWest:o,southMiddleEast:s,southMiddleWest:a,northMiddleEast:l,northMiddleWest:c}=Hg.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[n,r,s,a,t,i,o,l,c,e]:[r,n,a,s,t,o,i,c,l,e]}static defaultPanelPositions={south:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/2,name:"s"}),southEast:t=>({top:t.bottom,left:t.left,name:"se"}),southWest:(t,e)=>({top:t.bottom,left:t.left-e.width+t.width,name:"sw"}),southMiddleEast:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/4,name:"sme"}),southMiddleWest:(t,e)=>({top:t.bottom,left:t.left-3*(e.width-t.width)/4,name:"smw"}),north:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/2,name:"n"}),northEast:(t,e)=>({top:t.top-e.height,left:t.left,name:"ne"}),northWest:(t,e)=>({top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}),northMiddleEast:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/4,name:"nme"}),northMiddleWest:(t,e)=>({top:t.top-e.height,left:t.left-3*(e.width-t.width)/4,name:"nmw"})};static _getOptimalPosition=Si}class jg extends wm{arrowView;constructor(t){super(t),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",(t=>String(t)))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new pm;return t.content=dg,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}var qg=n(4767),Ug={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(qg.A,Ug);qg.A.locals;var Wg=n(9554),$g={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Wg.A,$g);Wg.A.locals;class Gg extends lm{children;constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",e.if("isVisible","ck-hidden",(t=>!t))],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Kg extends lm{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class Zg extends lm{labelView;items;children;constructor(t,e=new Xm){super(t);const n=this.bindTemplate,r=new Qg(t);this.set({label:"",isVisible:!0}),this.labelView=e,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,r]),r.set({role:"group",ariaLabelledBy:e.id}),r.focusTracker.destroy(),r.keystrokes.destroy(),this.items=r.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",n.if("isVisible","ck-hidden",(t=>!t))]},children:this.children})}focus(){if(this.items){const t=this.items.find((t=>!(t instanceof Kg)));t&&t.focus()}}}var Yg=n(5199),Jg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Yg.A,Jg);Yg.A.locals;class Qg extends lm{focusables;items;focusTracker;keystrokes;_focusCycler;_listItemGroupToChangeListeners=new WeakMap;constructor(t){super(t);const e=this.bindTemplate;this.focusables=new Mu,this.items=this.createCollection(),this.focusTracker=new Bo,this.keystrokes=new Do,this._focusCycler=new ym({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:e.to("role"),"aria-label":e.to("ariaLabel"),"aria-labelledby":e.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const t of this.items)t instanceof Zg?this._registerFocusableItemsGroup(t):t instanceof Gg&&this._registerFocusableListItem(t);this.items.on("change",((t,e)=>{for(const t of e.removed)t instanceof Zg?this._deregisterFocusableItemsGroup(t):t instanceof Gg&&this._deregisterFocusableListItem(t);for(const t of Array.from(e.added).reverse())t instanceof Zg?this._registerFocusableItemsGroup(t,e.index):this._registerFocusableListItem(t,e.index)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(t,e){this.focusTracker.add(t.element),this.focusables.add(t,e)}_deregisterFocusableListItem(t){this.focusTracker.remove(t.element),this.focusables.remove(t)}_getOnGroupItemsChangeCallback(t){return(e,n)=>{for(const t of n.removed)this._deregisterFocusableListItem(t);for(const e of Array.from(n.added).reverse())this._registerFocusableListItem(e,this.items.getIndex(t)+n.index)}}_registerFocusableItemsGroup(t,e){Array.from(t.items).forEach(((t,n)=>{const r=void 0!==e?e+n:void 0;this._registerFocusableListItem(t,r)}));const n=this._getOnGroupItemsChangeCallback(t);this._listItemGroupToChangeListeners.set(t,n),t.items.on("change",n)}_deregisterFocusableItemsGroup(t){for(const e of t.items)this._deregisterFocusableListItem(e);t.items.off("change",this._listItemGroupToChangeListeners.get(t)),this._listItemGroupToChangeListeners.delete(t)}}var Xg=n(2171),tp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Xg.A,tp);Xg.A.locals;var ep=n(3710),np={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(ep.A,np);ep.A.locals;const rp=vi("px"),ip={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}};class op extends lm{content;_pinWhenIsVisibleCallback;_resizeObserver;constructor(t){super(t);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this._resizeObserver=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",(t=>`ck-balloon-panel_${t}`)),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",rp),left:e.to("left",rp)}},children:this.content})}destroy(){this.hide(),super.destroy()}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){const e=sp(t.target);if(e&&!Di(e))return!1;this.show();const n=op.defaultPositions,r=Object.assign({},{element:this.element,positions:[n.southArrowNorth,n.southArrowNorthMiddleWest,n.southArrowNorthMiddleEast,n.southArrowNorthWest,n.southArrowNorthEast,n.northArrowSouth,n.northArrowSouthMiddleWest,n.northArrowSouthMiddleEast,n.northArrowSouthWest,n.northArrowSouthEast,n.viewportStickyNorth],limiter:Yn.document.body,fitInViewport:!0},t),i=op._getOptimalPosition(r)||ip,o=parseInt(i.left),s=parseInt(i.top),a=i.name,l=i.config||{},{withArrow:c=!0}=l;return this.top=s,this.left=o,this.position=a,this.withArrow=c,!0}pin(t){this.unpin(),this._startPinning(t)&&(this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(t):this._stopPinning()},this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback))}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){if(!this.attachTo(t))return!1;let e=sp(t.target);const n=t.limiter?sp(t.limiter):Yn.document.body;if(this.listenTo(Yn.document,"scroll",((r,i)=>{const o=i.target,s=e&&o.contains(e),a=n&&o.contains(n);!s&&!a&&e&&n||this.attachTo(t)}),{useCapture:!0}),this.listenTo(Yn.window,"resize",(()=>{this.attachTo(t)})),!this._resizeObserver&&(e&&ui(e)&&(e=e.parentElement),e)){const t=()=>{Di(e)||this.unpin()};this._resizeObserver=new _i(e,t)}return!0}_stopPinning(){this.stopListening(Yn.document,"scroll"),this.stopListening(Yn.window,"resize"),this._resizeObserver&&(this._resizeObserver.destroy(),this._resizeObserver=null)}static generatePositions(t={}){const{sideOffset:e=op.arrowSideOffset,heightOffset:n=op.arrowHeightOffset,stickyVerticalOffset:r=op.stickyVerticalOffset,config:i}=t;return{northWestArrowSouthWest:(t,n)=>({top:o(t,n),left:t.left-e,name:"arrow_sw",...i&&{config:i}}),northWestArrowSouthMiddleWest:(t,n)=>({top:o(t,n),left:t.left-.25*n.width-e,name:"arrow_smw",...i&&{config:i}}),northWestArrowSouth:(t,e)=>({top:o(t,e),left:t.left-e.width/2,name:"arrow_s",...i&&{config:i}}),northWestArrowSouthMiddleEast:(t,n)=>({top:o(t,n),left:t.left-.75*n.width+e,name:"arrow_sme",...i&&{config:i}}),northWestArrowSouthEast:(t,n)=>({top:o(t,n),left:t.left-n.width+e,name:"arrow_se",...i&&{config:i}}),northArrowSouthWest:(t,n)=>({top:o(t,n),left:t.left+t.width/2-e,name:"arrow_sw",...i&&{config:i}}),northArrowSouthMiddleWest:(t,n)=>({top:o(t,n),left:t.left+t.width/2-.25*n.width-e,name:"arrow_smw",...i&&{config:i}}),northArrowSouth:(t,e)=>({top:o(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s",...i&&{config:i}}),northArrowSouthMiddleEast:(t,n)=>({top:o(t,n),left:t.left+t.width/2-.75*n.width+e,name:"arrow_sme",...i&&{config:i}}),northArrowSouthEast:(t,n)=>({top:o(t,n),left:t.left+t.width/2-n.width+e,name:"arrow_se",...i&&{config:i}}),northEastArrowSouthWest:(t,n)=>({top:o(t,n),left:t.right-e,name:"arrow_sw",...i&&{config:i}}),northEastArrowSouthMiddleWest:(t,n)=>({top:o(t,n),left:t.right-.25*n.width-e,name:"arrow_smw",...i&&{config:i}}),northEastArrowSouth:(t,e)=>({top:o(t,e),left:t.right-e.width/2,name:"arrow_s",...i&&{config:i}}),northEastArrowSouthMiddleEast:(t,n)=>({top:o(t,n),left:t.right-.75*n.width+e,name:"arrow_sme",...i&&{config:i}}),northEastArrowSouthEast:(t,n)=>({top:o(t,n),left:t.right-n.width+e,name:"arrow_se",...i&&{config:i}}),southWestArrowNorthWest:t=>({top:s(t),left:t.left-e,name:"arrow_nw",...i&&{config:i}}),southWestArrowNorthMiddleWest:(t,n)=>({top:s(t),left:t.left-.25*n.width-e,name:"arrow_nmw",...i&&{config:i}}),southWestArrowNorth:(t,e)=>({top:s(t),left:t.left-e.width/2,name:"arrow_n",...i&&{config:i}}),southWestArrowNorthMiddleEast:(t,n)=>({top:s(t),left:t.left-.75*n.width+e,name:"arrow_nme",...i&&{config:i}}),southWestArrowNorthEast:(t,n)=>({top:s(t),left:t.left-n.width+e,name:"arrow_ne",...i&&{config:i}}),southArrowNorthWest:t=>({top:s(t),left:t.left+t.width/2-e,name:"arrow_nw",...i&&{config:i}}),southArrowNorthMiddleWest:(t,n)=>({top:s(t),left:t.left+t.width/2-.25*n.width-e,name:"arrow_nmw",...i&&{config:i}}),southArrowNorth:(t,e)=>({top:s(t),left:t.left+t.width/2-e.width/2,name:"arrow_n",...i&&{config:i}}),southArrowNorthMiddleEast:(t,n)=>({top:s(t),left:t.left+t.width/2-.75*n.width+e,name:"arrow_nme",...i&&{config:i}}),southArrowNorthEast:(t,n)=>({top:s(t),left:t.left+t.width/2-n.width+e,name:"arrow_ne",...i&&{config:i}}),southEastArrowNorthWest:t=>({top:s(t),left:t.right-e,name:"arrow_nw",...i&&{config:i}}),southEastArrowNorthMiddleWest:(t,n)=>({top:s(t),left:t.right-.25*n.width-e,name:"arrow_nmw",...i&&{config:i}}),southEastArrowNorth:(t,e)=>({top:s(t),left:t.right-e.width/2,name:"arrow_n",...i&&{config:i}}),southEastArrowNorthMiddleEast:(t,n)=>({top:s(t),left:t.right-.75*n.width+e,name:"arrow_nme",...i&&{config:i}}),southEastArrowNorthEast:(t,n)=>({top:s(t),left:t.right-n.width+e,name:"arrow_ne",...i&&{config:i}}),westArrowEast:(t,e)=>({top:t.top+t.height/2-e.height/2,left:t.left-e.width-n,name:"arrow_e",...i&&{config:i}}),eastArrowWest:(t,e)=>({top:t.top+t.height/2-e.height/2,left:t.right+n,name:"arrow_w",...i&&{config:i}}),viewportStickyNorth:(t,e,n,o)=>{const s=o||n;return t.getIntersection(s)?s.height-t.height>r?null:{top:s.top+r,left:t.left+t.width/2-e.width/2,name:"arrowless",config:{withArrow:!1,...i}}:null}};function o(t,e){return t.top-e.height-n}function s(t){return t.bottom+n}}static arrowSideOffset=25;static arrowHeightOffset=10;static stickyVerticalOffset=20;static _getOptimalPosition=Si;static defaultPositions=op.generatePositions()}function sp(t){return U(t)?t:mi(t)?t.commonAncestorContainer:"function"==typeof t?sp(t()):null}var ap=n(3610),lp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(ap.A,lp);ap.A.locals;var cp=n(7218),dp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(cp.A,dp);cp.A.locals;class hp extends lm{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class up extends lm{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function mp(t){if(Array.isArray(t))return{items:t,removeItems:[]};const e={items:[],removeItems:[]};return t?{...e,...t}:e}var gp=n(9677),pp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(gp.A,pp);gp.A.locals;const fp=(()=>({alignLeft:zu.alignLeft,bold:zu.bold,importExport:zu.importExport,paragraph:zu.paragraph,plus:zu.plus,text:zu.text,threeVerticalDots:zu.threeVerticalDots,pilcrow:zu.pilcrow,dragIndicator:zu.dragIndicator}))();class bp extends lm{options;items;focusTracker;keystrokes;itemsView;children;focusables;_focusCycler;_behavior;constructor(t,e){super(t);const n=this.bindTemplate,r=this.t;this.options=e||{},this.set("ariaLabel",r("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Bo,this.keystrokes=new Do,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new kp(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const i="rtl"===t.uiLanguageDirection;this._focusCycler=new ym({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[i?"arrowright":"arrowleft","arrowup"],focusNext:[i?"arrowleft":"arrowright","arrowdown"]}});const o=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var s;this.options.shouldGroupWhenFull&&this.options.isFloating&&o.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:o,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(s=this,s.bindTemplate.to((t=>{t.target===s.element&&t.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new Ap(this):new wp(this)}render(){super.render(),this.focusTracker.add(this.element);for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e,n){this.items.addMany(this._buildItemsFromConfig(t,e,n))}_buildItemsFromConfig(t,e,n){const r=mp(t),i=n||r.removeItems;return this._cleanItemsConfiguration(r.items,e,i).map((t=>s(t)?this._createNestedToolbarDropdown(t,e,i):"|"===t?new hp:"-"===t?new up:e.create(t))).filter((t=>!!t))}_cleanItemsConfiguration(t,e,n){const r=t.filter(((t,r,i)=>"|"===t||-1===n.indexOf(t)&&("-"===t?!this.options.shouldGroupWhenFull||(wr("toolbarview-line-break-ignored-when-grouping-items",i),!1):!(!s(t)&&!e.has(t))||(wr("toolbarview-item-unavailable",{item:t}),!1))));return this._cleanSeparatorsAndLineBreaks(r)}_cleanSeparatorsAndLineBreaks(t){const e=t=>"-"!==t&&"|"!==t,n=t.length,r=t.findIndex(e);if(-1===r)return[];const i=n-t.slice().reverse().findIndex(e);return t.slice(r,i).filter(((t,n,r)=>{if(e(t))return!0;return!(n>0&&r[n-1]===t)}))}_createNestedToolbarDropdown(t,e,n){let{label:r,icon:i,items:o,tooltip:s=!0,withText:a=!1}=t;if(o=this._cleanItemsConfiguration(o,e,n),!o.length)return null;const l=Dp(this.locale);return r||wr("toolbarview-nested-toolbar-dropdown-missing-label",t),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:r,tooltip:s,withText:!!a}),!1!==i?l.buttonView.icon=fp[i]||i||zu.threeVerticalDots:l.buttonView.withText=!0,Sp(l,(()=>l.toolbarView._buildItemsFromConfig(o,e,n))),l}}class kp extends lm{children;constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class wp{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((t=>t)),t.focusables.bindTo(t.items).using((t=>Em(t)?t:null)),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class Ap{view;viewChildren;viewFocusables;viewItemsView;viewFocusTracker;viewLocale;ungroupedItems;groupedItems;groupedItemsDropdown;resizeObserver=null;cachedPadding=null;shouldUpdateGroupingOnNextResize=!1;viewElement;constructor(t){this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),t.itemsView.children.bindTo(this.ungroupedItems).using((t=>t)),this.ungroupedItems.on("change",this._updateFocusCyclableItems.bind(this)),t.children.on("change",this._updateFocusCyclableItems.bind(this)),t.items.on("change",((t,e)=>{const n=e.index,r=Array.from(e.added);for(const t of e.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(t):this.ungroupedItems.remove(t);for(let t=n;t<n+r.length;t++){const e=r[t-n];t>this.ungroupedItems.length?this.groupedItems.add(e,t-this.ungroupedItems.length):this.ungroupedItems.add(e,t)}this._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!Di(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const t=this.groupedItems.length;let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new fi(t.lastChild),r=new fi(t);if(!this.cachedPadding){const n=Yn.window.getComputedStyle(t),r="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(n[r])}return"ltr"===e?n.right>r.right-this.cachedPadding:n.left<r.left+this.cachedPadding}_enableGroupingOnResize(){let t;this.resizeObserver=new _i(this.viewElement,(e=>{t&&t===e.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),t=e.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(t){t.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new hp),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const t=this.viewLocale,e=t.t,n=Dp(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",Sp(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:zu.threeVerticalDots}),n}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((t=>{Em(t)&&this.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var _p=n(1792),Cp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(_p.A,Cp);_p.A.locals;class vp extends lm{children;actionView;arrowView;keystrokes;focusTracker;constructor(t,e){super(t);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(e),this.arrowView=this._createArrowView(),this.keystrokes=new Do,this.focusTracker=new Bo,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",(t=>!t)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())})),this.keystrokes.set("arrowleft",((t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(t){const e=t||new wm;return t||e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const t=new wm,e=t.bindTemplate;return t.icon=dg,t.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":e.to("isOn"),"aria-haspopup":!0,"aria-expanded":e.to("isOn",(t=>String(t)))}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t}}var yp=n(1666),xp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(yp.A,xp);yp.A.locals;var Ep=n(3629),Bp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Ep.A,Bp);Ep.A.locals;function Dp(t,e=jg){const n="function"==typeof e?new e(t):e,r=new Mg(t),i=new Hg(t,n,r);return n.bind("isEnabled").to(i),n instanceof vp?n.arrowView.bind("isOn").to(i,"isOpen"):n.bind("isOn").to(i,"isOpen"),function(t){(function(t){cm({emitter:t,activator:()=>t.isRendered&&t.isOpen,callback:()=>{t.isOpen=!1},contextElements:()=>[t.element,...t.focusTracker.elements]})})(t),function(t){t.on("execute",(e=>{e.source instanceof og||(t.isOpen=!1)}))}(t),function(t){t.focusTracker.on("change:isFocused",((e,n,r)=>{!r&&t.isOpen&&(t.isOpen=!1)}))}(t),function(t){t.keystrokes.set("arrowdown",((e,n)=>{t.isOpen&&(t.panelView.focus(),n())})),t.keystrokes.set("arrowup",((e,n)=>{t.isOpen&&(t.panelView.focusLast(),n())}))}(t),function(t){t.on("change:isOpen",((e,n,r)=>{if(r)return;t.focusTracker.elements.some((t=>t.contains(Yn.document.activeElement)))&&t.buttonView.focus()}))}(t),function(t){t.on("change:isOpen",((e,n,r)=>{r&&t.panelView.focus()}),{priority:"low"})}(t)}(i),i}function Sp(t,e,n={}){t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.isOpen?Tp(t,e,n):t.once("change:isOpen",(()=>Tp(t,e,n)),{priority:"highest"}),n.enableActiveItemFocusOnDropdownOpen&&Vp(t,(()=>t.toolbarView.items.find((t=>t.isOn))))}function Tp(t,e,n){const r=t.locale,i=r.t,o=t.toolbarView=new bp(r),s="function"==typeof e?e():e;o.ariaLabel=n.ariaLabel||i("Dropdown toolbar"),n.maxWidth&&(o.maxWidth=n.maxWidth),n.class&&(o.class=n.class),n.isCompact&&(o.isCompact=n.isCompact),n.isVertical&&(o.isVertical=!0),s instanceof Mu?o.items.bindTo(s).using((t=>t)):o.items.addMany(s),t.panelView.children.add(o),o.items.delegate("execute").to(t)}function Ip(t,e,n={}){t.isOpen?Pp(t,e,n):t.once("change:isOpen",(()=>Pp(t,e,n)),{priority:"highest"}),Vp(t,(()=>t.listView.items.find((t=>t instanceof Gg&&t.children.first.isOn))))}function Pp(t,e,n){const r=t.locale,i=t.listView=new Qg(r),o="function"==typeof e?e():e;i.ariaLabel=n.ariaLabel,i.role=n.role,Fp(t,i.items,o,r),t.panelView.children.add(i),i.items.delegate("execute").to(t)}function Vp(t,e){t.on("change:isOpen",(()=>{if(!t.isOpen)return;const n=e();n&&("function"==typeof n.focus?n.focus():wr("ui-dropdown-focus-child-on-open-child-missing-focus",{view:n}))}),{priority:fr.low-10})}function Fp(t,e,n,r){e.on("change",(()=>{const t=[...e].reduce(((t,e)=>(e instanceof Gg&&e.children.first instanceof $m&&t.push(e.children.first),t)),[]),n=t.some((t=>t.isToggleable));t.forEach((t=>{t.hasCheckSpace=n}))})),e.bindTo(n).using((e=>{if("separator"===e.type)return new Kg(r);if("group"===e.type){const n=new Zg(r);return n.set({label:e.label}),Fp(t,n.items,e.items,r),n.items.delegate("execute").to(t),n}if("button"===e.type||"switchbutton"===e.type){const t="menuitemcheckbox"===e.model.role||"menuitemradio"===e.model.role,n=new Gg(r);let i;return"button"===e.type?(i=new $m(r),i.set({isToggleable:t})):i=new og(r),i.bind(...Object.keys(e.model)).to(e.model),i.delegate("execute").to(n),n.children.add(i),n}return null}))}const Rp=(t,e,n)=>{const r=new Fg(t.locale);return r.set({id:e,ariaDescribedById:n}),r.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),r.bind("hasError").to(t,"errorText",(t=>!!t)),r.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(r),r},Lp=(t,e,n)=>{const r=new Rg(t.locale);return r.set({id:e,ariaDescribedById:n,inputMode:"numeric"}),r.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),r.bind("hasError").to(t,"errorText",(t=>!!t)),r.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(r),r},zp=(t,e,n)=>{const r=Dp(t.locale);return r.set({id:e,ariaDescribedById:n}),r.bind("isEnabled").to(t),r},Mp=(t,e=0,n=1)=>t>n?n:t<e?e:t,Np=(t,e=0,n=Math.pow(10,e))=>Math.round(n*t)/n,Op=(Math.PI,t=>("#"===t[0]&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?Np(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:8===t.length?Np(parseInt(t.substring(6,8),16)/255,2):1})),Hp=({h:t,s:e,v:n,a:r})=>{const i=(200-e)*n/100;return{h:Np(t),s:Np(i>0&&i<200?e*n/100/(i<=100?i:200-i)*100:0),l:Np(i/2),a:Np(r,2)}},jp=t=>{const{h:e,s:n,l:r}=Hp(t);return`hsl(${e}, ${n}%, ${r}%)`},qp=({h:t,s:e,v:n,a:r})=>{t=t/360*6,e/=100,n/=100;const i=Math.floor(t),o=n*(1-e),s=n*(1-(t-i)*e),a=n*(1-(1-t+i)*e),l=i%6;return{r:Np(255*[n,s,o,o,a,n][l]),g:Np(255*[a,n,n,s,o,o][l]),b:Np(255*[o,o,a,n,n,s][l]),a:Np(r,2)}},Up=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},Wp=({r:t,g:e,b:n,a:r})=>{const i=r<1?Up(Np(255*r)):"";return"#"+Up(t)+Up(e)+Up(n)+i},$p=({r:t,g:e,b:n,a:r})=>{const i=Math.max(t,e,n),o=i-Math.min(t,e,n),s=o?i===t?(e-n)/o:i===e?2+(n-t)/o:4+(t-e)/o:0;return{h:Np(60*(s<0?s+6:s)),s:Np(i?o/i*100:0),v:Np(i/255*100),a:r}},Gp=(t,e)=>{if(t===e)return!0;for(const n in t)if(t[n]!==e[n])return!1;return!0},Kp={},Zp=t=>{let e=Kp[t];return e||(e=document.createElement("template"),e.innerHTML=t,Kp[t]=e),e},Yp=(t,e,n)=>{t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:n}))};let Jp=!1;const Qp=t=>"touches"in t,Xp=(t,e)=>{const n=Qp(e)?e.touches[0]:e,r=t.el.getBoundingClientRect();Yp(t.el,"move",t.getMove({x:Mp((n.pageX-(r.left+window.pageXOffset))/r.width),y:Mp((n.pageY-(r.top+window.pageYOffset))/r.height)}))};class tf{constructor(t,e,n,r){const i=Zp(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(i.content.cloneNode(!0));const o=t.querySelector(`[part=${e}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=r,this.nodes=[o.firstChild,o]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(Jp?"touchmove":"mousemove",this),e(Jp?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!(t=>!(Jp&&!Qp(t)||(Jp||(Jp=Qp(t)),0)))(t)||!Jp&&0!=t.button)return;this.el.focus(),Xp(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),Xp(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((t,e)=>{const n=e.keyCode;n>40||t.xy&&n<37||n<33||(e.preventDefault(),Yp(t.el,"move",t.getMove({x:39===n?.01:37===n?-.01:34===n?.05:33===n?-.05:35===n?1:36===n?-1:0,y:40===n?.01:38===n?-.01:0},!0)))})(this,t)}}style(t){t.forEach(((t,e)=>{for(const n in t)this.nodes[e].style.setProperty(n,t[n])}))}}class ef extends tf{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:t/360*100+"%",color:jp({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Np(t)}`)}getMove(t,e){return{h:e?Mp(this.h+360*t.x,0,360):360*t.x}}}class nf extends tf{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:100-t.v+"%",left:`${t.s}%`,color:jp(t)},{"background-color":jp({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Np(t.s)}%, Brightness ${Np(t.v)}%`)}getMove(t,e){return{s:e?Mp(this.hsva.s+100*t.x,0,100):100*t.x,v:e?Mp(this.hsva.v-100*t.y,0,100):Math.round(100-100*t.y)}}}const rf=Symbol("same"),of=Symbol("color"),sf=Symbol("hsva"),af=Symbol("update"),lf=Symbol("parts"),cf=Symbol("css"),df=Symbol("sliders");class hf extends HTMLElement{static get observedAttributes(){return["color"]}get[cf](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[df](){return[nf,ef]}get color(){return this[of]}set color(t){if(!this[rf](t)){const e=this.colorModel.toHsva(t);this[af](e),this[of]=t}}constructor(){super();const t=Zp(`<style>${this[cf].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[lf]=this[df].map((t=>new t(e)))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const r=this.colorModel.fromAttr(n);this[rf](r)||(this.color=r)}handleEvent(t){const e=this[sf],n={...e,...t.detail};let r;this[af](n),Gp(n,e)||this[rf](r=this.colorModel.fromHsva(n))||(this[of]=r,Yp(this,"color-changed",{value:r}))}[rf](t){return this.color&&this.colorModel.equal(t,this.color)}[af](t){this[sf]=t,this[lf].forEach((e=>e.update(t)))}}const uf={defaultColor:"#000",toHsva:t=>$p(Op(t)),fromHsva:({h:t,s:e,v:n})=>Wp(qp({h:t,s:e,v:n,a:1})),equal:(t,e)=>t.toLowerCase()===e.toLowerCase()||Gp(Op(t),Op(e)),fromAttr:t=>t};class mf extends hf{get colorModel(){return uf}}var gf=n(1905),pf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(gf.A,pf);gf.A.locals;class ff extends lm{hexInputRow;_debounceColorPickerEvent;_config;constructor(t,e={}){super(t),this.set({color:"",_hexColor:""}),this.hexInputRow=this._createInputRow();const n=this.createCollection();e.hideInput||n.add(this.hexInputRow),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker"],tabindex:-1},children:n}),this._config=e,this._debounceColorPickerEvent=F((t=>{this.set("color",t),this.fire("colorSelected",{color:this.color})}),150,{leading:!0}),this.on("set:color",((t,e,n)=>{t.return=xg(n,this._config.format||"hsl")})),this.on("change:color",(()=>{this._hexColor=bf(this.color)})),this.on("change:_hexColor",(()=>{document.activeElement!==this.picker&&this.picker.setAttribute("color",this._hexColor),bf(this.color)!=bf(this._hexColor)&&(this.color=this._hexColor)}))}render(){var t,e;if(super.render(),t="hex-color-picker",e=mf,void 0===customElements.get(t)&&customElements.define(t,e),this.picker=Yn.document.createElement("hex-color-picker"),this.picker.setAttribute("class","hex-color-picker"),this.picker.setAttribute("tabindex","-1"),this._createSlidersView(),this.element){this.hexInputRow.element?this.element.insertBefore(this.picker,this.hexInputRow.element):this.element.appendChild(this.picker);const t=document.createElement("style");t.textContent='[role="slider"]:focus [part$="pointer"] {border: 1px solid #fff;outline: 1px solid var(--ck-color-focus-border);box-shadow: 0 0 0 2px #fff;}',this.picker.shadowRoot.appendChild(t)}this.picker.addEventListener("color-changed",(t=>{const e=t.detail.value;this._debounceColorPickerEvent(e)}))}focus(){if(!this._config.hideInput&&(Xn.isGecko||Xn.isiOS||Xn.isSafari)){this.hexInputRow.children.get(1).focus()}this.slidersView.first.focus()}_createSlidersView(){const t=[...this.picker.shadowRoot.children].filter((t=>"slider"===t.getAttribute("role"))).map((t=>new kf(t)));this.slidersView=this.createCollection(),t.forEach((t=>{this.slidersView.add(t)}))}_createInputRow(){const t=this._createColorInput();return new Af(this.locale,t)}_createColorInput(){const t=new Sg(this.locale,Rp),{t:e}=this.locale;return t.set({label:e("HEX"),class:"color-picker-hex-input"}),t.fieldView.bind("value").to(this,"_hexColor",(e=>t.isFocused?t.fieldView.value:e.startsWith("#")?e.substring(1):e)),t.fieldView.on("input",(()=>{const e=t.fieldView.element.value;if(e){const t=_f(e);t&&this._debounceColorPickerEvent(t)}})),t}isValid(){const{t}=this.locale;return!!this._config.hideInput||(this.resetValidationStatus(),!!this.hexInputRow.getParsedColor()||(this.hexInputRow.inputView.errorText=t('Please enter a valid color (e.g. "ff0000").'),!1))}resetValidationStatus(){this.hexInputRow.inputView.errorText=null}}function bf(t){let e=function(t){if(!t)return"";const e=Eg(t);return e?"hex"===e.space?e.hexValue:xg(t,"hex"):"#000"}(t);return e||(e="#000"),4===e.length&&(e="#"+[e[1],e[1],e[2],e[2],e[3],e[3]].join("")),e.toLowerCase()}class kf extends lm{constructor(t){super(),this.element=t}focus(){this.element.focus()}}class wf extends lm{constructor(t){super(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__hash-view"]},children:"#"})}}class Af extends lm{children;inputView;constructor(t,e){super(t),this.inputView=e,this.children=this.createCollection([new wf,this.inputView]),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__row"]},children:this.children})}getParsedColor(){return _f(this.inputView.fieldView.element.value)}}function _f(t){if(!t)return null;const e=t.trim().replace(/^#/,"");return[3,4,6,8].includes(e.length)&&/^(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})$/.test(e)?`#${e}`:null}class Cf extends(jr(xo)){constructor(t){super(t),this.set("isEmpty",!0),this.on("change",(()=>{this.set("isEmpty",0===this.length)}))}add(t,e){return this.find((e=>e.color===t.color))?this:super.add(t,e)}hasColor(t){return!!this.find((e=>e.color===t))}}class vf extends lm{items;colorDefinitions;focusTracker;columns;documentColors;documentColorsCount;staticColorsGrid;documentColorsGrid;colorPickerButtonView;removeColorButtonView;_focusables;_documentColorsLabel;_removeButtonLabel;_colorPickerLabel;constructor(t,{colors:e,columns:n,removeButtonLabel:r,documentColorsLabel:i,documentColorsCount:o,colorPickerLabel:s,focusTracker:a,focusables:l}){super(t);const c=this.bindTemplate;this.set("isVisible",!0),this.focusTracker=a,this.items=this.createCollection(),this.colorDefinitions=e,this.columns=n,this.documentColors=new Cf,this.documentColorsCount=o,this._focusables=l,this._removeButtonLabel=r,this._colorPickerLabel=s,this._documentColorsLabel=i,this.setTemplate({tag:"div",attributes:{class:["ck-color-grids-fragment",c.if("isVisible","ck-hidden",(t=>!t))]},children:this.items}),this.removeColorButtonView=this._createRemoveColorButton(),this.items.add(this.removeColorButtonView)}updateDocumentColors(t,e){const n=t.document,r=this.documentColorsCount;this.documentColors.clear();for(const i of n.getRoots()){const n=t.createRangeIn(i);for(const t of n.getItems())if(t.is("$textProxy")&&t.hasAttribute(e)&&(this._addColorToDocumentColors(t.getAttribute(e)),this.documentColors.length>=r))return}}updateSelectedColors(){const t=this.documentColorsGrid,e=this.staticColorsGrid,n=this.selectedColor;e.selectedColor=n,t&&(t.selectedColor=n)}render(){if(super.render(),this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount){const t=Nu.bind(this.documentColors,this.documentColors),e=new lm(this.locale);e.setTemplate({tag:"span",attributes:{class:["ck","ck-color-grid__label",t.if("isEmpty","ck-hidden")]},children:[{text:this._documentColorsLabel}]}),this.items.add(e),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}this._createColorPickerButton(),this._addColorSelectorElementsToFocusTracker()}focus(){this.removeColorButtonView.focus()}destroy(){super.destroy()}addColorPickerButton(){this.colorPickerButtonView&&(this.items.add(this.colorPickerButtonView),this.focusTracker.add(this.colorPickerButtonView.element),this._focusables.add(this.colorPickerButtonView))}_addColorSelectorElementsToFocusTracker(){this.focusTracker.add(this.removeColorButtonView.element),this._focusables.add(this.removeColorButtonView),this.staticColorsGrid&&(this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid)),this.documentColorsGrid&&(this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid))}_createColorPickerButton(){this.colorPickerButtonView=new wm,this.colorPickerButtonView.set({label:this._colorPickerLabel,withText:!0,icon:zu.colorPalette,class:"ck-color-selector__color-picker"}),this.colorPickerButtonView.on("execute",(()=>{this.fire("colorPicker:show")}))}_createRemoveColorButton(){const t=new wm;return t.set({withText:!0,icon:zu.eraser,label:this._removeButtonLabel}),t.class="ck-color-selector__remove-color",t.on("execute",(()=>{this.fire("execute",{value:null,source:"removeColorButton"})})),t.render(),t}_createStaticColorsGrid(){const t=new Ag(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return t.on("execute",((t,e)=>{this.fire("execute",{value:e.value,source:"staticColorsGrid"})})),t}_createDocumentColorsGrid(){const t=Nu.bind(this.documentColors,this.documentColors),e=new Ag(this.locale,{columns:this.columns});return e.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),e.items.bindTo(this.documentColors).using((t=>{const e=new bg;return e.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&e.set({label:t.label,tooltip:!0}),e.on("execute",(()=>{this.fire("execute",{value:t.color,source:"documentColorsGrid"})})),e})),this.documentColors.on("change:isEmpty",((t,n,r)=>{r&&(e.selectedColor=null)})),e}_addColorToDocumentColors(t){const e=this.colorDefinitions.find((e=>e.color===t));e?this.documentColors.add(Object.assign({},e)):this.documentColors.add({color:t,label:t,options:{hasBorder:!1}})}}class yf extends lm{items;colorPickerView;saveButtonView;cancelButtonView;actionBarView;focusTracker;keystrokes;_focusables;_colorPickerViewConfig;constructor(t,{focusTracker:e,focusables:n,keystrokes:r,colorPickerViewConfig:i}){super(t),this.items=this.createCollection(),this.focusTracker=e,this.keystrokes=r,this.set("isVisible",!1),this.set("selectedColor",void 0),this._focusables=n,this._colorPickerViewConfig=i;const o=this.bindTemplate,{saveButtonView:s,cancelButtonView:a}=this._createActionButtons();this.saveButtonView=s,this.cancelButtonView=a,this.actionBarView=this._createActionBarView({saveButtonView:s,cancelButtonView:a}),this.setTemplate({tag:"div",attributes:{class:["ck-color-picker-fragment",o.if("isVisible","ck-hidden",(t=>!t))]},children:this.items})}render(){super.render();const t=new ff(this.locale,{...this._colorPickerViewConfig});this.colorPickerView=t,this.colorPickerView.render(),this.selectedColor&&(t.color=this.selectedColor),this.listenTo(this,"change:selectedColor",((e,n,r)=>{t.color=r})),this.items.add(this.colorPickerView),this.items.add(this.actionBarView),this._addColorPickersElementsToFocusTracker(),this._stopPropagationOnArrowsKeys(),this._executeOnEnterPress(),this._executeUponColorChange()}destroy(){super.destroy()}focus(){this.colorPickerView.focus()}resetValidationStatus(){this.colorPickerView.resetValidationStatus()}_executeOnEnterPress(){this.keystrokes.set("enter",(t=>{this.isVisible&&this.focusTracker.focusedElement!==this.cancelButtonView.element&&this.colorPickerView.isValid()&&(this.fire("execute",{value:this.selectedColor}),t.stopPropagation(),t.preventDefault())}))}_stopPropagationOnArrowsKeys(){const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}_addColorPickersElementsToFocusTracker(){for(const t of this.colorPickerView.slidersView)this.focusTracker.add(t.element),this._focusables.add(t);const t=this.colorPickerView.hexInputRow.children.get(1);t.element&&(this.focusTracker.add(t.element),this._focusables.add(t)),this.focusTracker.add(this.saveButtonView.element),this._focusables.add(this.saveButtonView),this.focusTracker.add(this.cancelButtonView.element),this._focusables.add(this.cancelButtonView)}_createActionBarView({saveButtonView:t,cancelButtonView:e}){const n=new lm,r=this.createCollection();return r.add(t),r.add(e),n.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector_action-bar"]},children:r}),n}_createActionButtons(){const t=this.locale,e=t.t,n=new wm(t),r=new wm(t);return n.set({icon:zu.check,class:"ck-button-save",type:"button",withText:!1,label:e("Accept")}),r.set({icon:zu.cancel,class:"ck-button-cancel",type:"button",withText:!1,label:e("Cancel")}),n.on("execute",(()=>{this.colorPickerView.isValid()&&this.fire("execute",{source:"colorPickerSaveButton",value:this.selectedColor})})),r.on("execute",(()=>{this.fire("colorPicker:cancel")})),{saveButtonView:n,cancelButtonView:r}}_executeUponColorChange(){this.colorPickerView.on("colorSelected",((t,e)=>{this.fire("execute",{value:e.color,source:"colorPicker"}),this.set("selectedColor",e.color)}))}}var xf=n(6309),Ef={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(xf.A,Ef);xf.A.locals;class Bf extends lm{focusTracker;keystrokes;items;colorGridsFragmentView;colorPickerFragmentView;_focusCycler;_focusables;_colorPickerViewConfig;constructor(t,{colors:e,columns:n,removeButtonLabel:r,documentColorsLabel:i,documentColorsCount:o,colorPickerLabel:s,colorPickerViewConfig:a}){super(t),this.items=this.createCollection(),this.focusTracker=new Bo,this.keystrokes=new Do,this._focusables=new Mu,this._colorPickerViewConfig=a,this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.colorGridsFragmentView=new vf(t,{colors:e,columns:n,removeButtonLabel:r,documentColorsLabel:i,documentColorsCount:o,colorPickerLabel:s,focusTracker:this.focusTracker,focusables:this._focusables}),this.colorPickerFragmentView=new yf(t,{focusables:this._focusables,focusTracker:this.focusTracker,keystrokes:this.keystrokes,colorPickerViewConfig:a}),this.set("_isColorGridsFragmentVisible",!0),this.set("_isColorPickerFragmentVisible",!1),this.set("selectedColor",void 0),this.colorGridsFragmentView.bind("isVisible").to(this,"_isColorGridsFragmentVisible"),this.colorPickerFragmentView.bind("isVisible").to(this,"_isColorPickerFragmentVisible"),this.on("change:selectedColor",((t,e,n)=>{this.colorGridsFragmentView.set("selectedColor",n),this.colorPickerFragmentView.set("selectedColor",n)})),this.colorGridsFragmentView.on("change:selectedColor",((t,e,n)=>{this.set("selectedColor",n)})),this.colorPickerFragmentView.on("change:selectedColor",((t,e,n)=>{this.set("selectedColor",n)})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector"]},children:this.items})}render(){super.render(),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendUI(){this._appendColorGridsFragment(),this._colorPickerViewConfig&&this._appendColorPickerFragment()}showColorPickerFragment(){this.colorPickerFragmentView.colorPickerView&&!this._isColorPickerFragmentVisible&&(this._isColorPickerFragmentVisible=!0,this.colorPickerFragmentView.focus(),this.colorPickerFragmentView.resetValidationStatus(),this._isColorGridsFragmentVisible=!1)}showColorGridsFragment(){this._isColorGridsFragmentVisible||(this._isColorGridsFragmentVisible=!0,this.colorGridsFragmentView.focus(),this._isColorPickerFragmentVisible=!1)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}updateDocumentColors(t,e){this.colorGridsFragmentView.updateDocumentColors(t,e)}updateSelectedColors(){this.colorGridsFragmentView.updateSelectedColors()}_appendColorGridsFragment(){this.items.length||(this.items.add(this.colorGridsFragmentView),this.colorGridsFragmentView.delegate("execute").to(this),this.colorGridsFragmentView.delegate("colorPicker:show").to(this))}_appendColorPickerFragment(){2!==this.items.length&&(this.items.add(this.colorPickerFragmentView),this.colorGridsFragmentView.colorPickerButtonView&&this.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{this.showColorPickerFragment()})),this.colorGridsFragmentView.addColorPickerButton(),this.colorPickerFragmentView.delegate("execute").to(this),this.colorPickerFragmentView.delegate("colorPicker:cancel").to(this))}}class Df{editor;_components=new Map;constructor(t){this.editor=t}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(Sf(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new kr("componentfactory-item-missing",this,{name:t});return this._components.get(Sf(t)).callback(this.editor.locale)}has(t){return this._components.has(Sf(t))}}function Sf(t){return String(t).toLowerCase()}var Tf=n(9205),If={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Tf.A,If);Tf.A.locals;const Pf="ck-tooltip";class Vf extends(oi()){tooltipTextView;balloonPanelView;static defaultBalloonPositions=op.generatePositions({heightOffset:5,sideOffset:13});_currentElementWithTooltip=null;_currentTooltipPosition=null;_mutationObserver=null;_pinTooltipDebounced;_unpinTooltipDebounced;_watchdogExcluded;static _editors=new Set;static _instance=null;constructor(t){if(super(),Vf._editors.add(t),Vf._instance)return Vf._instance;Vf._instance=this,this.tooltipTextView=new lm(t.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new op(t.locale),this.balloonPanelView.class=Pf,this.balloonPanelView.content.add(this.tooltipTextView),this._mutationObserver=function(t){const e=new MutationObserver((()=>{t()}));return{attach(t){e.observe(t,{attributes:!0,attributeFilter:["data-cke-tooltip-text","data-cke-tooltip-position"]})},detach(){e.disconnect()}}}((()=>{this._updateTooltipPosition()})),this._pinTooltipDebounced=F(this._pinTooltip,600),this._unpinTooltipDebounced=F(this._unpinTooltip,400),this.listenTo(Yn.document,"keydown",this._onKeyDown.bind(this),{useCapture:!0}),this.listenTo(Yn.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Yn.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Yn.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Yn.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Yn.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(t){const e=t.ui.view&&t.ui.view.body;Vf._editors.delete(t),this.stopListening(t.ui),e&&e.has(this.balloonPanelView)&&e.remove(this.balloonPanelView),Vf._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Vf._instance=null)}static getPositioningFunctions(t){const e=Vf.defaultBalloonPositions;return{s:[e.southArrowNorth,e.southArrowNorthEast,e.southArrowNorthWest],n:[e.northArrowSouth],e:[e.eastArrowWest],w:[e.westArrowEast],sw:[e.southArrowNorthEast],se:[e.southArrowNorthWest]}[t]}_onKeyDown(t,e){"Escape"===e.key&&this._currentElementWithTooltip&&(this._unpinTooltip(),e.stopPropagation())}_onEnterOrFocus(t,{target:e}){const n=Ff(e);n?n!==this._currentElementWithTooltip&&(this._unpinTooltip(),"focus"!==t.name||n.matches(":hover")?this._pinTooltipDebounced(n,Rf(n)):this._pinTooltip(n,Rf(n))):"focus"===t.name&&this._unpinTooltip()}_onLeaveOrBlur(t,{target:e,relatedTarget:n}){if("mouseleave"===t.name){if(!U(e))return;const t=this.balloonPanelView.element,r=t&&(t===n||t.contains(n)),i=!r&&e===t;if(r)return void this._unpinTooltipDebounced.cancel();if(!i&&this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;const o=Ff(e),s=Ff(n);(i||o&&o!==s)&&this._unpinTooltipDebounced()}else{if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;this._unpinTooltipDebounced()}}_onScroll(t,{target:e}){this._currentElementWithTooltip&&(e.contains(this.balloonPanelView.element)&&e.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(t,{text:e,position:n,cssClass:r}){this._unpinTooltip();const i=Eo(Vf._editors.values()).ui.view.body;i.has(this.balloonPanelView)||i.add(this.balloonPanelView),this.tooltipTextView.text=e,this.balloonPanelView.class=[Pf,r].filter((t=>t)).join(" "),this.balloonPanelView.pin({target:t,positions:Vf.getPositioningFunctions(n)}),this._mutationObserver.attach(t);for(const t of Vf._editors)this.listenTo(t.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=t,this._currentTooltipPosition=n}_unpinTooltip(){this._unpinTooltipDebounced.cancel(),this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const t of Vf._editors)this.stopListening(t.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this.tooltipTextView.text="",this._mutationObserver.detach()}_updateTooltipPosition(){if(!this._currentElementWithTooltip)return;const t=Rf(this._currentElementWithTooltip);Di(this._currentElementWithTooltip)&&t.text?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Vf.getPositioningFunctions(t.position)}):this._unpinTooltip()}}function Ff(t){return U(t)?t.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function Rf(t){return{text:t.dataset.ckeTooltipText,position:t.dataset.ckeTooltipPosition||"s",cssClass:t.dataset.ckeTooltipClass||""}}class Lf extends(oi()){editor;_balloonView;_showBalloonThrottled;_lastFocusedEditableElement;constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=R(this._showBalloon.bind(this),50,{leading:!0}),t.on("ready",this._handleEditorReady.bind(this))}destroy(){const t=this._balloonView;t&&(t.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const t=this.editor;(!!t.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(t){function e(t){return t.length>=40&&t.length<=255?"VALID":"INVALID"}if(!t)return"INVALID";let n="";try{n=atob(t)}catch(t){return"INVALID"}const r=n.split("-"),i=r[0],o=r[1];if(!o)return e(t);try{atob(o)}catch(n){try{if(atob(i),!atob(i).length)return e(t)}catch(n){return e(t)}}if(i.length<40||i.length>255)return"INVALID";let s="";try{atob(i),s=atob(o)}catch(t){return"INVALID"}if(8!==s.length)return"INVALID";const a=Number(s.substring(0,4)),l=Number(s.substring(4,6))-1,c=Number(s.substring(6,8)),d=new Date(a,l,c);return d<vr||isNaN(Number(d))?"INVALID":"VALID"}(t.config.get("licenseKey")))&&t.ui.view&&(t.ui.focusTracker.on("change:isFocused",((t,e,n)=>{this._updateLastFocusedEditableElement(),n?this._showBalloon():this._hideBalloon()})),t.ui.focusTracker.on("change:focusedElement",((t,e,n)=>{this._updateLastFocusedEditableElement(),n&&this._showBalloon()})),t.ui.on("update",(()=>{this._showBalloonThrottled()})))}_createBalloonView(){const t=this.editor,e=this._balloonView=new op,n=Nf(t),r=new zf(t.locale,n.label);e.content.add(r),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=function(t,e){const n=Nf(t),r="right"===n.side?function(t,e){return Mf(t,e,((t,n)=>t.left+t.width-n.width-e.horizontalOffset))}(e,n):function(t,e){return Mf(t,e,(t=>t.left+e.horizontalOffset))}(e,n);return{target:e,positions:[r]}}(this.editor,this._lastFocusedEditableElement);t&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(t))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const t=this.editor,e=t.ui.focusTracker.isFocused,n=t.ui.focusTracker.focusedElement;if(!e||!n)return void(this._lastFocusedEditableElement=null);const r=Array.from(t.ui.getEditableElementsNames()).map((e=>t.ui.getEditableElement(e)));r.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=r[0]}}class zf extends lm{constructor(t,e){super(t);const n=new pm,r=this.bindTemplate;n.set({content:'<svg xmlns="http://www.w3.org/2000/svg" width="53" height="10" viewBox="0 0 53 10"><path fill="#1C2331" d="M31.724 1.492a15.139 15.139 0 0 0 .045 1.16 2.434 2.434 0 0 0-.687-.34 3.68 3.68 0 0 0-1.103-.166 2.332 2.332 0 0 0-1.14.255 1.549 1.549 0 0 0-.686.87c-.15.41-.225.98-.225 1.712 0 .939.148 1.659.444 2.161.297.503.792.754 1.487.754.452.015.9-.094 1.294-.316.296-.174.557-.4.771-.669l.14.852h1.282V.007h-1.623v1.485ZM31 6.496a1.77 1.77 0 0 1-.494.061.964.964 0 0 1-.521-.127.758.758 0 0 1-.296-.466 3.984 3.984 0 0 1-.093-.992 4.208 4.208 0 0 1 .098-1.052.753.753 0 0 1 .307-.477 1.08 1.08 0 0 1 .55-.122c.233-.004.466.026.69.089l.483.144v2.553c-.11.076-.213.143-.307.2a1.73 1.73 0 0 1-.417.189ZM35.68 0l-.702.004c-.322.002-.482.168-.48.497l.004.581c.002.33.164.493.486.49l.702-.004c.322-.002.481-.167.48-.496L36.165.49c-.002-.33-.164-.493-.486-.491ZM36.145 2.313l-1.612.01.034 5.482 1.613-.01-.035-5.482ZM39.623.79 37.989.8 38 2.306l-.946.056.006 1.009.949-.006.024 2.983c.003.476.143.844.419 1.106.275.26.658.39 1.148.387.132 0 .293-.01.483-.03.19-.02.38-.046.57-.08.163-.028.324-.068.482-.119l-.183-1.095-.702.004a.664.664 0 0 1-.456-.123.553.553 0 0 1-.14-.422l-.016-2.621 1.513-.01-.006-1.064-1.514.01-.01-1.503ZM46.226 2.388c-.41-.184-.956-.274-1.636-.27-.673.004-1.215.101-1.627.29-.402.179-.72.505-.888.91-.18.419-.268.979-.264 1.68.004.688.1 1.24.285 1.655.172.404.495.724.9.894.414.18.957.268 1.63.264.68-.004 1.224-.099 1.632-.284.4-.176.714-.501.878-.905.176-.418.263-.971.258-1.658-.004-.702-.097-1.261-.28-1.677a1.696 1.696 0 0 0-.888-.9Zm-.613 3.607a.77.77 0 0 1-.337.501 1.649 1.649 0 0 1-1.317.009.776.776 0 0 1-.343-.497 4.066 4.066 0 0 1-.105-1.02 4.136 4.136 0 0 1 .092-1.03.786.786 0 0 1 .337-.507 1.59 1.59 0 0 1 1.316-.008.79.79 0 0 1 .344.502c.078.337.113.683.105 1.03.012.343-.019.685-.092 1.02ZM52.114 2.07a2.67 2.67 0 0 0-1.128.278c-.39.191-.752.437-1.072.73l-.157-.846-1.273.008.036 5.572 1.623-.01-.024-3.78c.35-.124.646-.22.887-.286.26-.075.53-.114.8-.118l.45-.003.144-1.546-.286.001ZM22.083 7.426l-1.576-2.532a2.137 2.137 0 0 0-.172-.253 1.95 1.95 0 0 0-.304-.29.138.138 0 0 1 .042-.04 1.7 1.7 0 0 0 .328-.374l1.75-2.71c.01-.015.025-.028.024-.048-.01-.01-.021-.007-.031-.007L20.49 1.17a.078.078 0 0 0-.075.045l-.868 1.384c-.23.366-.46.732-.688 1.099a.108.108 0 0 1-.112.06c-.098-.005-.196-.001-.294-.002-.018 0-.038.006-.055-.007.002-.02.002-.039.005-.058a4.6 4.6 0 0 0 .046-.701V1.203c0-.02-.009-.032-.03-.03h-.033L16.93 1.17c-.084 0-.073-.01-.073.076v6.491c-.001.018.006.028.025.027h1.494c.083 0 .072.007.072-.071v-2.19c0-.055-.003-.11-.004-.166a3.366 3.366 0 0 0-.05-.417h.06c.104 0 .209.002.313-.002a.082.082 0 0 1 .084.05c.535.913 1.07 1.824 1.607 2.736a.104.104 0 0 0 .103.062c.554-.003 1.107-.002 1.66-.002l.069-.003-.019-.032-.188-.304ZM27.112 6.555c-.005-.08-.004-.08-.082-.08h-2.414c-.053 0-.106-.003-.159-.011a.279.279 0 0 1-.246-.209.558.558 0 0 1-.022-.15c0-.382 0-.762-.002-1.143 0-.032.007-.049.042-.044h2.504c.029.003.037-.012.034-.038V3.814c0-.089.013-.078-.076-.078h-2.44c-.07 0-.062.003-.062-.06v-.837c0-.047.004-.093.013-.14a.283.283 0 0 1 .241-.246.717.717 0 0 1 .146-.011h2.484c.024.002.035-.009.036-.033l.003-.038.03-.496c.01-.183.024-.365.034-.548.005-.085.003-.087-.082-.094-.218-.018-.437-.038-.655-.05a17.845 17.845 0 0 0-.657-.026 72.994 72.994 0 0 0-1.756-.016 1.7 1.7 0 0 0-.471.064 1.286 1.286 0 0 0-.817.655c-.099.196-.149.413-.145.633v3.875c0 .072.003.144.011.216a1.27 1.27 0 0 0 .711 1.029c.228.113.48.167.734.158.757-.005 1.515.002 2.272-.042.274-.016.548-.034.82-.053.03-.002.043-.008.04-.041-.008-.104-.012-.208-.019-.312a69.964 69.964 0 0 1-.05-.768ZM16.14 7.415l-.127-1.075c-.004-.03-.014-.04-.044-.037a13.125 13.125 0 0 1-.998.073c-.336.01-.672.02-1.008.016-.116-.001-.233-.014-.347-.039a.746.746 0 0 1-.45-.262c-.075-.1-.132-.211-.167-.33a3.324 3.324 0 0 1-.126-.773 9.113 9.113 0 0 1-.015-.749c0-.285.022-.57.065-.852.023-.158.066-.312.127-.46a.728.728 0 0 1 .518-.443 1.64 1.64 0 0 1 .397-.048c.628-.001 1.255.003 1.882.05.022.001.033-.006.036-.026l.003-.031.06-.55c.019-.177.036-.355.057-.532.004-.034-.005-.046-.04-.056a5.595 5.595 0 0 0-1.213-.21 10.783 10.783 0 0 0-.708-.02c-.24-.003-.48.01-.719.041a3.477 3.477 0 0 0-.625.14 1.912 1.912 0 0 0-.807.497c-.185.2-.33.433-.424.688a4.311 4.311 0 0 0-.24 1.096c-.031.286-.045.572-.042.86-.006.43.024.86.091 1.286.04.25.104.497.193.734.098.279.26.53.473.734.214.205.473.358.756.446.344.11.702.17 1.063.177a8.505 8.505 0 0 0 1.578-.083 6.11 6.11 0 0 0 .766-.18c.03-.008.047-.023.037-.057a.157.157 0 0 1-.003-.025Z"/><path fill="#AFE229" d="M6.016 6.69a1.592 1.592 0 0 0-.614.21c-.23.132-.422.32-.56.546-.044.072-.287.539-.287.539l-.836 1.528.009.006c.038.025.08.046.123.063.127.046.26.07.395.073.505.023 1.011-.007 1.517-.003.29.009.58.002.869-.022a.886.886 0 0 0 .395-.116.962.962 0 0 0 .312-.286c.056-.083.114-.163.164-.249.24-.408.48-.816.718-1.226.075-.128.148-.257.222-.386l.112-.192a1.07 1.07 0 0 0 .153-.518l-1.304.023s-1.258-.005-1.388.01Z"/><path fill="#771BFF" d="m2.848 9.044.76-1.39.184-.352c-.124-.067-.245-.14-.367-.21-.346-.204-.706-.384-1.045-.6a.984.984 0 0 1-.244-.207c-.108-.134-.136-.294-.144-.46-.021-.409-.002-.818-.009-1.227-.003-.195 0-.39.003-.585.004-.322.153-.553.427-.713l.833-.488c.22-.13.44-.257.662-.385.05-.029.105-.052.158-.077.272-.128.519-.047.76.085l.044.028c.123.06.242.125.358.196.318.178.635.357.952.537.095.056.187.117.275.184.194.144.254.35.266.578.016.284.007.569.006.853-.001.28.004.558 0 .838.592-.003 1.259 0 1.259 0l.723-.013c-.003-.292-.007-.584-.007-.876 0-.524.015-1.048-.016-1.571-.024-.42-.135-.8-.492-1.067a5.02 5.02 0 0 0-.506-.339A400.52 400.52 0 0 0 5.94.787C5.722.664 5.513.524 5.282.423 5.255.406 5.228.388 5.2.373 4.758.126 4.305-.026 3.807.21c-.097.046-.197.087-.29.14A699.896 699.896 0 0 0 .783 1.948c-.501.294-.773.717-.778 1.31-.004.36-.009.718-.001 1.077.016.754-.017 1.508.024 2.261.016.304.07.6.269.848.127.15.279.28.448.382.622.4 1.283.734 1.92 1.11l.183.109Z"/></svg>\r\n',isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/powered-by-ckeditor/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...e?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[e]}]:[],n],on:{dragstart:r.to((t=>t.preventDefault()))}}]})}}function Mf(t,e,n){return(r,i)=>{const o=new fi(t);if(o.width<350||o.height<50)return null;let s;s="inside"===e.position?o.bottom-i.height:o.bottom-i.height/2,s-=e.verticalOffset;const a=n(o,i),l=r.clone().moveTo(a,s).getIntersection(i.clone().moveTo(a,s)).getVisible();return!l||l.getArea()<i.getArea()?null:{top:s,left:a,name:`position_${e.position}-side_${e.side}`,config:{withArrow:!1}}}}function Nf(t){const e=t.config.get("ui.poweredBy"),n=e&&e.position||"border";return{position:n,label:"Powered by",verticalOffset:"inside"===n?5:0,horizontalOffset:5,side:"ltr"===t.locale.contentLanguageDirection?"right":"left",...e}}var Of=n(1801),Hf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Of.A,Hf);Of.A.locals;const jf={POLITE:"polite",ASSERTIVE:"assertive"};class qf{editor;view;constructor(t){this.editor=t,t.once("ready",(()=>{for(const t of Object.values(jf))this.announce("",t)}))}announce(t,e=jf.POLITE){const n=this.editor;if(!n.ui.view)return;this.view||(this.view=new Uf(n.locale),n.ui.view.body.add(this.view));const{politeness:r,isUnsafeHTML:i}="string"==typeof e?{politeness:e}:e;let o=this.view.regionViews.find((t=>t.politeness===r));o||(o=new Wf(n,r),this.view.regionViews.add(o)),o.announce({announcement:t,isUnsafeHTML:i})}}class Uf extends lm{regionViews;constructor(t){super(t),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class Wf extends lm{politeness;_domConverter;_pruneAnnouncementsInterval;constructor(t,e){super(t.locale),this.setTemplate({tag:"div",attributes:{"aria-live":e,"aria-relevant":"additions"},children:[{tag:"ul",attributes:{class:["ck","ck-aria-live-region-list"]}}]}),t.on("destroy",(()=>{null!==this._pruneAnnouncementsInterval&&(clearInterval(this._pruneAnnouncementsInterval),this._pruneAnnouncementsInterval=null)})),this.politeness=e,this._domConverter=t.data.htmlProcessor.domConverter,this._pruneAnnouncementsInterval=setInterval((()=>{this.element&&this._listElement.firstChild&&this._listElement.firstChild.remove()}),5e3)}announce({announcement:t,isUnsafeHTML:e}){if(!t.trim().length)return;const n=document.createElement("li");e?this._domConverter.setContentOf(n,t):n.innerText=t,this._listElement.appendChild(n)}get _listElement(){return this.element.querySelector("ul")}}var $f=n(9481),Gf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()($f.A,Gf);$f.A.locals;class Kf extends Gg{constructor(t,e){super(t);const n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item"]},on:{mouseenter:n.to("mouseenter")}}),this.delegate("mouseenter").to(e)}}const Zf={toggleMenusAndFocusItemsOnHover(t){t.on("menu:mouseenter",(e=>{if(t.isFocusBorderEnabled||t.isOpen){if(t.isOpen)for(const n of t.menus){const t=e.path[0],r=t instanceof Kf&&t.children.first===n;n.isOpen=(e.path.includes(n)||r)&&n.isEnabled}e.source.focus()}}))},focusCycleMenusOnArrows(t){const e="rtl"===t.locale.uiLanguageDirection;function n(e,n){const r=t.children.getIndex(e),i=e.isOpen,o=t.children.length,s=t.children.get((r+o+n)%o);e.isOpen=!1,i&&(s.isOpen=!0),s.buttonView.focus()}t.on("menu:arrowright",(t=>{n(t.source,e?-1:1)})),t.on("menu:arrowleft",(t=>{n(t.source,e?1:-1)}))},closeMenusWhenTheBarCloses(t){t.on("change:isOpen",(()=>{t.isOpen||t.menus.forEach((t=>{t.isOpen=!1}))}))},closeMenuWhenAnotherOnTheSameLevelOpens(t){t.on("menu:change:isOpen",((e,n,r)=>{r&&t.menus.filter((t=>e.source.parentMenuView===t.parentMenuView&&e.source!==t&&t.isOpen)).forEach((t=>{t.isOpen=!1}))}))},closeOnClickOutside(t){cm({emitter:t,activator:()=>t.isOpen,callback:()=>t.close(),contextElements:()=>t.children.map((t=>t.element))})},enableFocusHighlightOnInteraction(t){let e=!1;t.on("change:isOpen",((n,r,i)=>{i||(e||(t.isFocusBorderEnabled=!1),e=!1)})),t.listenTo(t.element,"keydown",(()=>{e=!0}),{useCapture:!0}),t.listenTo(t.element,"keyup",(()=>{e=!1}),{useCapture:!0}),t.listenTo(t.element,"focus",(()=>{e&&(t.isFocusBorderEnabled=!0)}),{useCapture:!0})}},Yf={openAndFocusPanelOnArrowDownKey(t){t.keystrokes.set("arrowdown",((e,n)=>{t.focusTracker.focusedElement===t.buttonView.element&&(t.isOpen||(t.isOpen=!0),t.panelView.focus(),n())}))},openOnArrowRightKey(t){const e="rtl"===t.locale.uiLanguageDirection?"arrowleft":"arrowright";t.keystrokes.set(e,((e,n)=>{t.focusTracker.focusedElement===t.buttonView.element&&t.isEnabled&&(t.isOpen||(t.isOpen=!0),t.panelView.focus(),n())}))},openOnButtonClick(t){t.buttonView.on("execute",(()=>{t.isOpen=!0}))},toggleOnButtonClick(t){t.buttonView.on("execute",(()=>{t.isOpen=!t.isOpen}))},openAndFocusOnEnterKeyPress(t){t.keystrokes.set("enter",((e,n)=>{t.focusTracker.focusedElement===t.buttonView.element&&(t.isOpen=!0,t.panelView.focus(),n())}))},closeOnArrowLeftKey(t){const e="rtl"===t.locale.uiLanguageDirection?"arrowright":"arrowleft";t.keystrokes.set(e,((e,n)=>{t.isOpen&&(t.isOpen=!1,t.focus(),n())}))},closeOnEscKey(t){t.keystrokes.set("esc",((e,n)=>{t.isOpen&&(t.isOpen=!1,t.focus(),n())}))},closeOnParentClose(t){t.parentMenuView.on("change:isOpen",((e,n,r)=>{r||e.source!==t.parentMenuView||(t.isOpen=!1)}))}},Jf={southEast:t=>({top:t.bottom,left:t.left,name:"se"}),southWest:(t,e)=>({top:t.bottom,left:t.left-e.width+t.width,name:"sw"}),northEast:(t,e)=>({top:t.top-e.height,left:t.left,name:"ne"}),northWest:(t,e)=>({top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}),eastSouth:t=>({top:t.top,left:t.right-5,name:"es"}),eastNorth:(t,e)=>({top:t.top-e.height,left:t.right-5,name:"en"}),westSouth:(t,e)=>({top:t.top,left:t.left-e.width+5,name:"ws"}),westNorth:(t,e)=>({top:t.top-e.height,left:t.left-e.width+5,name:"wn"})},Qf=[{menuId:"file",label:"File",groups:[{groupId:"export",items:["menuBar:exportPdf","menuBar:exportWord"]},{groupId:"import",items:["menuBar:importWord"]},{groupId:"revisionHistory",items:["menuBar:revisionHistory"]}]},{menuId:"edit",label:"Edit",groups:[{groupId:"undo",items:["menuBar:undo","menuBar:redo"]},{groupId:"selectAll",items:["menuBar:selectAll"]},{groupId:"findAndReplace",items:["menuBar:findAndReplace"]}]},{menuId:"view",label:"View",groups:[{groupId:"sourceEditing",items:["menuBar:sourceEditing"]},{groupId:"showBlocks",items:["menuBar:showBlocks"]},{groupId:"previewMergeFields",items:["menuBar:previewMergeFields"]},{groupId:"restrictedEditing",items:["menuBar:restrictedEditing"]}]},{menuId:"insert",label:"Insert",groups:[{groupId:"insertMainWidgets",items:["menuBar:insertImage","menuBar:ckbox","menuBar:ckfinder","menuBar:insertTable"]},{groupId:"insertInline",items:["menuBar:link","menuBar:comment","menuBar:insertMergeField"]},{groupId:"insertMinorWidgets",items:["menuBar:mediaEmbed","menuBar:insertTemplate","menuBar:specialCharacters","menuBar:blockQuote","menuBar:codeBlock","menuBar:htmlEmbed"]},{groupId:"insertStructureWidgets",items:["menuBar:horizontalLine","menuBar:pageBreak","menuBar:tableOfContents"]},{groupId:"restrictedEditingException",items:["menuBar:restrictedEditingException"]}]},{menuId:"format",label:"Format",groups:[{groupId:"textAndFont",items:[{menuId:"text",label:"Text",groups:[{groupId:"basicStyles",items:["menuBar:bold","menuBar:italic","menuBar:underline","menuBar:strikethrough","menuBar:superscript","menuBar:subscript","menuBar:code"]},{groupId:"textPartLanguage",items:["menuBar:textPartLanguage"]}]},{menuId:"font",label:"Font",groups:[{groupId:"fontProperties",items:["menuBar:fontSize","menuBar:fontFamily"]},{groupId:"fontColors",items:["menuBar:fontColor","menuBar:fontBackgroundColor"]},{groupId:"highlight",items:["menuBar:highlight"]}]},"menuBar:heading"]},{groupId:"list",items:["menuBar:bulletedList","menuBar:numberedList","menuBar:multiLevelList","menuBar:todoList"]},{groupId:"indent",items:["menuBar:alignment","menuBar:indent","menuBar:outdent"]},{groupId:"caseChange",items:["menuBar:caseChange"]},{groupId:"removeFormat",items:["menuBar:removeFormat"]}]},{menuId:"tools",label:"Tools",groups:[{groupId:"aiTools",items:["menuBar:aiAssistant","menuBar:aiCommands"]},{groupId:"tools",items:["menuBar:trackChanges","menuBar:commentsArchive"]}]},{menuId:"help",label:"Help",groups:[{groupId:"help",items:["menuBar:accessibilityHelp"]}]}];function Xf({normalizedConfig:t,locale:e,componentFactory:n,extraItems:r}){const i=Ll(t);return tb(t,i,r),function(t,e){const n=e.removeItems,r=[];e.items=e.items.filter((({menuId:t})=>!n.includes(t)||(r.push(t),!1))),ib(e.items,(t=>{t.groups=t.groups.filter((({groupId:t})=>!n.includes(t)||(r.push(t),!1)));for(const e of t.groups)e.items=e.items.filter((t=>{const e=lb(t);return!n.includes(e)||(r.push(e),!1)}))}));for(const e of n)r.includes(e)||wr("menu-bar-item-could-not-be-removed",{menuBarConfig:t,itemName:e})}(t,i),tb(t,i,i.addItems),function(t,e,n){ib(e.items,(r=>{for(const i of r.groups)i.items=i.items.filter((i=>{const o="string"==typeof i&&!n.has(i);return o&&!e.isUsingDefaultConfig&&wr("menu-bar-item-unavailable",{menuBarConfig:t,parentMenuConfig:Ll(r),componentName:i}),!o}))}))}(t,i,n),nb(t,i),function(t,e){const n=e.t,r={File:n({string:"File",id:"MENU_BAR_MENU_FILE"}),Edit:n({string:"Edit",id:"MENU_BAR_MENU_EDIT"}),View:n({string:"View",id:"MENU_BAR_MENU_VIEW"}),Insert:n({string:"Insert",id:"MENU_BAR_MENU_INSERT"}),Format:n({string:"Format",id:"MENU_BAR_MENU_FORMAT"}),Tools:n({string:"Tools",id:"MENU_BAR_MENU_TOOLS"}),Help:n({string:"Help",id:"MENU_BAR_MENU_HELP"}),Text:n({string:"Text",id:"MENU_BAR_MENU_TEXT"}),Font:n({string:"Font",id:"MENU_BAR_MENU_FONT"})};ib(t.items,(t=>{t.label in r&&(t.label=r[t.label])}))}(i,e),i}function tb(t,e,n){const r=[];if(0!=n.length){for(const t of n){const n=sb(t.position),o=ab(t.position);if("object"==typeof(i=t)&&"menu"in i)if(o){const i=e.items.findIndex((t=>t.menuId===o));if(-1!=i)"before"===n?(e.items.splice(i,0,t.menu),r.push(t)):"after"===n&&(e.items.splice(i+1,0,t.menu),r.push(t));else{eb(e,t.menu,o,n)&&r.push(t)}}else"start"===n?(e.items.unshift(t.menu),r.push(t)):"end"===n&&(e.items.push(t.menu),r.push(t));else if(ob(t))ib(e.items,(e=>{if(e.menuId===o)"start"===n?(e.groups.unshift(t.group),r.push(t)):"end"===n&&(e.groups.push(t.group),r.push(t));else{const i=e.groups.findIndex((t=>t.groupId===o));-1!==i&&("before"===n?(e.groups.splice(i,0,t.group),r.push(t)):"after"===n&&(e.groups.splice(i+1,0,t.group),r.push(t)))}}));else{eb(e,t.item,o,n)&&r.push(t)}}var i;for(const e of n)r.includes(e)||wr("menu-bar-item-could-not-be-added",{menuBarConfig:t,addedItemConfig:e})}}function eb(t,e,n,r){let i=!1;return ib(t.items,(t=>{for(const{groupId:o,items:s}of t.groups){if(i)return;if(o===n)"start"===r?(s.unshift(e),i=!0):"end"===r&&(s.push(e),i=!0);else{const t=s.findIndex((t=>lb(t)===n));-1!==t&&("before"===r?(s.splice(t,0,e),i=!0):"after"===r&&(s.splice(t+1,0,e),i=!0))}}})),i}function nb(t,e){const n=e.isUsingDefaultConfig;let r=!1;e.items=e.items.filter((e=>!!e.groups.length||(rb(t,e,n),!1))),e.items.length?(ib(e.items,(e=>{e.groups=e.groups.filter((t=>!!t.items.length||(r=!0,!1)));for(const i of e.groups)i.items=i.items.filter((e=>!(cb(e)&&!e.groups.length)||(rb(t,e,n),r=!0,!1)))})),r&&nb(t,e)):rb(t,t,n)}function rb(t,e,n){n||wr("menu-bar-menu-empty",{menuBarConfig:t,emptyMenuConfig:e})}function ib(t,e){if(Array.isArray(t))for(const e of t)n(e);function n(t){e(t);for(const e of t.groups)for(const t of e.items)cb(t)&&n(t)}}function ob(t){return"object"==typeof t&&"group"in t}function sb(t){return t.startsWith("start")?"start":t.startsWith("end")?"end":t.startsWith("after")?"after":"before"}function ab(t){const e=t.match(/^[^:]+:(.+)/);return e?e[1]:null}function lb(t){return"string"==typeof t?t:t.menuId}function cb(t){return"object"==typeof t&&"menuId"in t}class db extends(jr()){editor;componentFactory;focusTracker;tooltipManager;poweredBy;ariaLiveAnnouncer;isReady=!1;_editableElementsMap=new Map;_focusableToolbarDefinitions=[];_extraMenuBarElements=[];_lastFocusedForeignElement=null;constructor(t){super();const e=t.editing.view;this.editor=t,this.componentFactory=new Df(t),this.focusTracker=new Bo,this.tooltipManager=new Vf(t),this.poweredBy=new Lf(t),this.ariaLiveAnnouncer=new qf(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",(()=>{this._bindBodyCollectionWithFocusTracker(),this.isReady=!0})),this.listenTo(e.document,"layoutChanged",this.update.bind(this)),this.listenTo(e,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null,this.editor.keystrokes.stopListening(t);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);const n=()=>{this.editor.editing.view.getDomRoot(t)||this.editor.keystrokes.listenTo(e)};this.isReady?n():this.once("ready",n)}removeEditableElement(t){const e=this._editableElementsMap.get(t);e&&(this._editableElementsMap.delete(t),this.editor.keystrokes.stopListening(e),this.focusTracker.remove(e),e.ckeditorInstance=null)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(t,e={}){t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",(()=>{this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)})),this._focusableToolbarDefinitions.push({toolbarView:t,options:e})}extendMenuBar(t){this._extraMenuBarElements.push(t)}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_initMenuBar(t){const e=t.element;this.focusTracker.add(e),this.editor.keystrokes.listenTo(e);const n=function(t){let e;return e="items"in t&&t.items?{items:t.items,removeItems:[],addItems:[],isVisible:!0,isUsingDefaultConfig:!1,...t}:{items:Ll(Qf),addItems:[],removeItems:[],isVisible:!0,isUsingDefaultConfig:!0,...t},e}(this.editor.config.get("menuBar")||{});t.fillFromConfig(n,this.componentFactory,this._extraMenuBarElements),this.editor.keystrokes.set("Esc",((t,n)=>{e.contains(this.editor.ui.focusTracker.focusedElement)&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):this.editor.editing.view.focus(),n())})),this.editor.keystrokes.set("Alt+F9",((n,r)=>{e.contains(this.editor.ui.focusTracker.focusedElement)||(this._saveLastFocusedForeignElement(),t.isFocusBorderEnabled=!0,t.focus(),r())}))}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){const t=this.editor;let e;t.keystrokes.set("Alt+F10",((t,n)=>{this._saveLastFocusedForeignElement();const r=this._getCurrentFocusedToolbarDefinition();r&&e||(e=this._getFocusableCandidateToolbarDefinitions());for(let t=0;t<e.length;t++){const t=e.shift();if(e.push(t),t!==r&&this._focusFocusableCandidateToolbar(t)){r&&r.options.afterBlur&&r.options.afterBlur();break}}n()})),t.keystrokes.set("Esc",((e,n)=>{const r=this._getCurrentFocusedToolbarDefinition();r&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):t.editing.view.focus(),r.options.afterBlur&&r.options.afterBlur(),n())}))}_saveLastFocusedForeignElement(){const t=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(t)&&!Array.from(this.editor.editing.view.domRoots.values()).includes(t)&&(this._lastFocusedForeignElement=t)}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:r}=e;(Di(n.element)||r.beforeFocus)&&t.push(e)}return t.sort(((t,e)=>hb(t)-hb(e))),t}_getCurrentFocusedToolbarDefinition(){for(const t of this._focusableToolbarDefinitions)if(t.toolbarView.element&&t.toolbarView.element.contains(this.focusTracker.focusedElement))return t;return null}_focusFocusableCandidateToolbar(t){const{toolbarView:e,options:{beforeFocus:n}}=t;return n&&n(),!!Di(e.element)&&(e.focus(),!0)}_handleScrollToTheSelection(t,e){const n={top:0,bottom:0,left:0,right:0,...this.viewportOffset};e.viewportOffset.top+=n.top,e.viewportOffset.bottom+=n.bottom,e.viewportOffset.left+=n.left,e.viewportOffset.right+=n.right}_bindBodyCollectionWithFocusTracker(){const t=this.view.body;for(const e of t)this.focusTracker.add(e.element);t.on("add",((t,e)=>{this.focusTracker.add(e.element)})),t.on("remove",((t,e)=>{this.focusTracker.remove(e.element)}))}}function hb(t){const{toolbarView:e,options:n}=t;let r=10;return Di(e.element)&&r--,n.isContextual&&r--,r}var ub=n(1185),mb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(ub.A,mb);ub.A.locals;class gb extends lm{body;menuBarView;constructor(t){super(t),this.body=new ng(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class pb extends lm{name=null;_editingView;_editableElement;_hasExternalElement;constructor(t,e,n){super(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const t=this._editingView;function e(e){t.change((n=>{const r=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",r),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",r)}))}t.isRenderingInProgress?function n(r){t.once("change:isRenderingInProgress",((t,i,o)=>{o?n(r):e(r)}))}(this):e(this)}}class fb extends pb{_options;constructor(t,e,n,r={}){super(t,e,n),this._options=r,this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const t=this._editingView;t.change((e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this.getEditableAriaLabel(),n)}))}getEditableAriaLabel(){const t=this.locale.t,e=this._options.label,n=this._editableElement,r=this.name;if("string"==typeof e)return e;if("object"==typeof e)return e[r];if("function"==typeof e)return e(this);if(n){const t=n.getAttribute("aria-label");if(t)return t}return t("Rich Text Editor. Editing area: %0",r)}}class bb extends qo{static get pluginName(){return"Notification"}init(){this.on("show:warning",((t,e)=>{window.alert(e.message)}),{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=t.namespace?`show:${t.type}:${t.namespace}`:`show:${t.type}`;this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class kb extends(jr()){constructor(t,e){super(),e&&tl(this,e),t&&this.set(t)}}var wb=n(991),Ab={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(wb.A,Ab);wb.A.locals;var _b=n(5380),Cb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(_b.A,Cb);_b.A.locals;const vb=vi("px");class yb extends Lo{positionLimiter;visibleStack;_viewToStack=new Map;_idToStack=new Map;_view=null;_rotatorView=null;_fakePanelsView=null;static get pluginName(){return"ContextualBalloon"}constructor(t){super(t),this.positionLimiter=()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},this.decorate("getPositionOptions"),this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new kr("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new kr("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this.getPositionOptions()),this._fakePanelsView.updatePosition()}getPositionOptions(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new kr("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new op(this.editor.locale),this.editor.ui.view.body.add(this._view),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find((e=>e[1]===t))[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new xb(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>1)),t.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((t,n)=>{if(n<2)return"";const r=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[r,n])})),t.buttonNextView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),t.buttonPrevView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),t}_createFakePanelsView(){const t=new Eb(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>=2?Math.min(t-1,2):0)),t.listenTo(this.view,"change:top",(()=>t.updatePosition())),t.listenTo(this.view,"change:left",(()=>t.updatePosition())),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:r=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this.getPositionOptions()),this._fakePanelsView.updatePosition(),r&&(this._singleViewMode=!0)}}class xb extends lm{focusTracker;buttonPrevView;buttonNextView;content;constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Bo,this.buttonPrevView=this._createButtonView(e("Previous"),zu.previousArrow),this.buttonNextView=this._createButtonView(e("Next"),zu.nextArrow),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",(t=>t?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new wm(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class Eb extends lm{content;_balloonPanelView;constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",(t=>t?"":"ck-hidden"))],style:{top:n.to("top",vb),left:n.to("left",vb),width:n.to("width",vb),height:n.to("height",vb)}},children:this.content}),this.on("change:numberOfPanels",((t,e,n,r)=>{n>r?this._addPanels(n-r):this._removePanels(r-n),this.updatePosition()}))}_addPanels(t){for(;t--;){const t=new lm;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}_removePanels(t){for(;t--;){const t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:r}=new fi(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:r})}}}var Bb=n(8298),Db={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Bb.A,Db);Bb.A.locals;var Sb=/[\\^$.*+?()[\]{}|]/g,Tb=RegExp(Sb.source);const Ib=function(t){return(t=ys(t))&&Tb.test(t)?t.replace(Sb,"\\$&"):t};var Pb=n(8107),Vb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Pb.A,Vb);Pb.A.locals;var Fb=n(5727),Rb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Fb.A,Rb);Fb.A.locals;const Lb=function(t){return function(e){return null==t?void 0:t[e]}};Lb({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var zb=/[&<>"']/g;RegExp(zb.source);var Mb=n(9529),Nb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Mb.A,Nb);Mb.A.locals;var Ob=n(109),Hb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Ob.A,Hb);Ob.A.locals;const jb=vi("px");class qb extends Lo{toolbarView;focusTracker;_balloonConfig;_resizeObserver=null;_balloon;_fireSelectionChangeDebounced;static get pluginName(){return"BalloonToolbar"}static get requires(){return[yb]}constructor(t){super(t),this._balloonConfig=mp(t.config.get("balloonToolbar")),this.toolbarView=this._createToolbarView(),this.focusTracker=new Bo,this._trackFocusableEditableElements(),this.focusTracker.add(this.toolbarView.element),t.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this.show(!0),afterBlur:()=>this.hide(),isContextual:!0}),this._balloon=t.plugins.get(yb),this._fireSelectionChangeDebounced=F((()=>this.fire("_selectionChangeDebounced")),200),this.decorate("show")}init(){const t=this.editor,e=t.model.document.selection;this.listenTo(this.focusTracker,"change:isFocused",((t,e,n)=>{const r=this._balloon.visibleView===this.toolbarView;!n&&r?this.hide():n&&this.show()})),this.listenTo(e,"change:range",((t,n)=>{(n.directChange||e.isCollapsed)&&this.hide(),this._fireSelectionChangeDebounced()})),this.listenTo(this,"_selectionChangeDebounced",(()=>{this.editor.editing.view.document.isFocused&&this.show()})),this._balloonConfig.shouldNotGroupWhenFull||this.listenTo(t,"ready",(()=>{const e=t.ui.view.editable.element;this._resizeObserver=new _i(e,(t=>{this.toolbarView.maxWidth=jb(.9*t.contentRect.width)}))})),this.listenTo(this.toolbarView,"groupedItemsUpdate",(()=>{this._updatePosition()})),t.ui.once("ready",(()=>{this.toolbarView.fillFromConfig(this._balloonConfig,this.editor.ui.componentFactory)}))}_createToolbarView(){const t=this.editor.locale.t,e=!this._balloonConfig.shouldNotGroupWhenFull,n=new bp(this.editor.locale,{shouldGroupWhenFull:e,isFloating:!0});return n.ariaLabel=t("Editor contextual toolbar"),n.render(),n}show(t=!1){const e=this.editor,n=e.model.document.selection,r=e.model.schema;this._balloon.hasView(this.toolbarView)||n.isCollapsed&&!t||function(t,e){if(1===t.rangeCount)return!1;return[...t.getRanges()].every((t=>{const n=t.getContainedElement();return n&&e.isSelectable(n)}))}(n,r)||Array.from(this.toolbarView.items).every((t=>void 0!==t.isEnabled&&!t.isEnabled))||(this.listenTo(this.editor.ui,"update",(()=>{this._updatePosition()})),this._balloon.add({view:this.toolbarView,position:this._getBalloonPositionData(),balloonClassName:"ck-toolbar-container"}))}hide(){this._balloon.hasView(this.toolbarView)&&(this.stopListening(this.editor.ui,"update"),this._balloon.remove(this.toolbarView))}_trackFocusableEditableElements(){const{editor:t,focusTracker:e}=this,{editing:n}=t;n.view.addObserver(class extends Xa{observe(t){e.add(t)}stopObserving(t){e.remove(t)}})}_getBalloonPositionData(){const t=this.editor.editing.view,e=t.document,n=e.selection,r=e.selection.isBackward;return{target:()=>{const e=r?n.getFirstRange():n.getLastRange(),i=fi.getDomRangeRects(t.domConverter.viewRangeToDom(e));return r?i[0]:(i.length>1&&0===i[i.length-1].width&&i.pop(),i[i.length-1])},positions:this._getBalloonPositions(r)}}_updatePosition(){this._balloon.updatePosition(this._getBalloonPositionData())}destroy(){super.destroy(),this.stopListening(),this._fireSelectionChangeDebounced.cancel(),this.toolbarView.destroy(),this.focusTracker.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_getBalloonPositions(t){const e=Xn.isSafari&&Xn.isiOS?op.generatePositions({heightOffset:Math.max(op.arrowHeightOffset,Math.round(20/Yn.window.visualViewport.scale))}):op.defaultPositions;return t?[e.northWestArrowSouth,e.northWestArrowSouthWest,e.northWestArrowSouthEast,e.northWestArrowSouthMiddleEast,e.northWestArrowSouthMiddleWest,e.southWestArrowNorth,e.southWestArrowNorthWest,e.southWestArrowNorthEast,e.southWestArrowNorthMiddleWest,e.southWestArrowNorthMiddleEast]:[e.southEastArrowNorth,e.southEastArrowNorthEast,e.southEastArrowNorthWest,e.southEastArrowNorthMiddleEast,e.southEastArrowNorthMiddleWest,e.northEastArrowSouth,e.northEastArrowSouthEast,e.northEastArrowSouthWest,e.northEastArrowSouthMiddleEast,e.northEastArrowSouthMiddleWest]}}var Ub=n(2710),Wb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Ub.A,Wb);Ub.A.locals;const $b=vi("px");class Gb extends wm{constructor(t){super(t);const e=this.bindTemplate;this.isVisible=!1,this.isToggleable=!0,this.set("top",0),this.set("left",0),this.extendTemplate({attributes:{class:"ck-block-toolbar-button",style:{top:e.to("top",(t=>$b(t))),left:e.to("left",(t=>$b(t)))}}})}}const Kb=vi("px");class Zb extends Lo{toolbarView;panelView;buttonView;_resizeObserver=null;_blockToolbarConfig;static get pluginName(){return"BlockToolbar"}constructor(t){super(t),this._blockToolbarConfig=mp(this.editor.config.get("blockToolbar")),this.toolbarView=this._createToolbarView(),this.panelView=this._createPanelView(),this.buttonView=this._createButtonView(),cm({emitter:this.panelView,contextElements:[this.panelView.element,this.buttonView.element],activator:()=>this.panelView.isVisible,callback:()=>this._hidePanel()})}init(){const t=this.editor,e=t.t,n=e("Click to edit block"),r=e("Drag to move"),i=e("Edit block"),o=t.plugins.has("DragDropBlockToolbar"),s=o?`${n}\n${r}`:i;this.buttonView.label=s,o&&(this.buttonView.element.dataset.ckeTooltipClass="ck-tooltip_multi-line"),this.listenTo(t.model.document.selection,"change:range",((t,e)=>{e.directChange&&this._hidePanel()})),this.listenTo(t.ui,"update",(()=>this._updateButton())),this.listenTo(t,"change:isReadOnly",(()=>this._updateButton()),{priority:"low"}),this.listenTo(t.ui.focusTracker,"change:isFocused",(()=>this._updateButton())),this.listenTo(this.buttonView,"change:isVisible",((t,e,n)=>{n?this.buttonView.listenTo(window,"resize",(()=>this._updateButton())):(this.buttonView.stopListening(window,"resize"),this._hidePanel())})),this._repositionButtonOnScroll(),t.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this._showPanel(),afterBlur:()=>this._hidePanel()}),t.ui.once("ready",(()=>{this.toolbarView.fillFromConfig(this._blockToolbarConfig,this.editor.ui.componentFactory);for(const t of this.toolbarView.items)t.on("execute",(()=>this._hidePanel(!0)),{priority:"high"})}))}destroy(){super.destroy(),this.panelView.destroy(),this.buttonView.destroy(),this.toolbarView.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_createToolbarView(){const t=this.editor.locale.t,e=!this._blockToolbarConfig.shouldNotGroupWhenFull,n=new bp(this.editor.locale,{shouldGroupWhenFull:e,isFloating:!0});return n.ariaLabel=t("Editor block content toolbar"),n}_createPanelView(){const t=this.editor,e=new op(t.locale);return e.content.add(this.toolbarView),e.class="ck-toolbar-container",t.ui.view.body.add(e),this.toolbarView.keystrokes.set("Esc",((t,e)=>{this._hidePanel(!0),e()})),e}_createButtonView(){const t=this.editor,e=t.t,n=new Gb(t.locale),r=this._blockToolbarConfig.icon,i=fp[r]||r||fp.dragIndicator;return n.set({label:e("Edit block"),icon:i,withText:!1}),n.bind("isOn").to(this.panelView,"isVisible"),n.bind("tooltip").to(this.panelView,"isVisible",(t=>!t)),this.listenTo(n,"execute",(()=>{this.panelView.isVisible?this._hidePanel(!0):this._showPanel()})),this.listenTo(n,"change:isEnabled",((t,e,n)=>{!n&&this.panelView.isVisible&&this._hidePanel(!1)})),t.ui.view.body.add(n),n}_updateButton(){const t=this.editor,e=t.model,n=t.editing.view;if(!t.ui.focusTracker.isFocused)return void this._hideButton();if(!t.model.canEditAt(t.model.document.selection))return void this._hideButton();const r=Array.from(e.document.selection.getSelectedBlocks())[0];if(!r||Array.from(this.toolbarView.items).every((t=>!t.isEnabled)))return void this._hideButton();const i=n.domConverter.mapViewToDom(t.editing.mapper.toViewElement(r));this.buttonView.isVisible=!0,this._setupToolbarResize(),this._attachButtonToElement(i),this.panelView.isVisible&&this._showPanel()}_hideButton(){this.buttonView.isVisible=!1}_showPanel(){if(!this.buttonView.isVisible)return;const t=this.panelView.isVisible;this.panelView.show();const e=this._getSelectedEditableElement();this.toolbarView.maxWidth=this._getToolbarMaxWidth(e),this.panelView.pin({target:this.buttonView.element,limiter:e}),t||this.toolbarView.items.get(0).focus()}_getSelectedEditableElement(){const t=this.editor.model.document.selection.getFirstRange().root.rootName;return this.editor.ui.getEditableElement(t)}_hidePanel(t){this.panelView.isVisible=!1,t&&this.editor.editing.view.focus()}_repositionButtonOnScroll(){const{buttonView:t}=this;let e=!1;const n=(t,n)=>{if(e)return;const r=this._getSelectedEditableElement();(n.target===Yn.document||li(r).includes(n.target))&&(e=!0,Yn.window.requestAnimationFrame((()=>{this._updateButton(),e=!1})))};t.on("change:isVisible",((e,r,i)=>{i?t.listenTo(Yn.document,"scroll",n,{useCapture:!0,usePassive:!0}):t.stopListening(Yn.document,"scroll",n)}))}_attachButtonToElement(t){const e=this.buttonView.element,n=this._getSelectedEditableElement(),r=window.getComputedStyle(t),i=new fi(n),o=parseInt(r.paddingTop,10),s=parseInt(r.lineHeight,10)||1.2*parseInt(r.fontSize,10),a=new fi(e),l=new fi(t);let c;c="ltr"===this.editor.locale.uiLanguageDirection?i.left-a.width:i.right;const d=l.top+o+(s-a.height)/2;a.moveTo(c,d);const h=a.toAbsoluteRect();this.buttonView.top=h.top,this.buttonView.left=h.left,this._clipButtonToViewport(this.buttonView,n)}_clipButtonToViewport(t,e){const n=new fi(t.element),r=new fi(e).getVisible(),i=(...e)=>{t.element.style.clipPath=e.length?`polygon(${e.join(",")})`:""},o=e=>{t.isEnabled=!e,t.element.style.pointerEvents=e?"none":""};if(r&&r.bottom<n.bottom){const t=Math.min(n.height,n.bottom-r.bottom);o(t>=n.height),i("0 0","100% 0",`100% calc(100% - ${Kb(t)})`,`0 calc(100% - ${Kb(t)}`)}else if(r&&r.top>n.top){const t=Math.min(n.height,r.top-n.top);o(t>=n.height),i(`0 ${Kb(t)}`,`100% ${Kb(t)}`,"100% 100%","0 100%")}else o(!1),i()}_setupToolbarResize(){const t=this._getSelectedEditableElement();this._blockToolbarConfig.shouldNotGroupWhenFull||(this._resizeObserver&&this._resizeObserver.element!==t&&(this._resizeObserver.destroy(),this._resizeObserver=null),this._resizeObserver||(this._resizeObserver=new _i(t,(()=>{this.toolbarView.maxWidth=this._getToolbarMaxWidth(t)}))))}_getToolbarMaxWidth(t){const e=new fi(t),n=new fi(this.buttonView.element),r="rtl"===this.editor.locale.uiLanguageDirection?n.left-e.right+n.width:e.left-n.left;return Kb(e.width+r)}}var Yb=n(3344),Jb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Yb.A,Jb);Yb.A.locals;class Qb extends $m{arrowView;constructor(t){super(t);const e=this.bindTemplate;this.set({withText:!0,role:"menuitem"}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__button"],"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",(t=>String(t))),"data-cke-tooltip-disabled":e.to("isOn")},on:{mouseenter:e.to("mouseenter")}})}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new pm;return t.content=dg,t.extendTemplate({attributes:{class:"ck-menu-bar__menu__button__arrow"}}),t}}var Xb=n(9108),tk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Xb.A,tk);Xb.A.locals;class ek extends lm{children;constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-menu-bar__menu__panel",e.to("position",(t=>`ck-menu-bar__menu__panel_position_${t}`)),e.if("isVisible","ck-hidden",(t=>!t))],tabindex:"-1"},children:this.children,on:{selectstart:e.to((t=>{"input"!==t.target.tagName.toLocaleLowerCase()&&t.preventDefault()}))}})}focus(t=1){this.children.length&&(1===t?this.children.first.focus():this.children.last.focus())}}var nk=n(4),rk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(nk.A,rk);nk.A.locals;class ik extends lm{buttonView;panelView;focusTracker;keystrokes;constructor(t){super(t);const e=this.bindTemplate;this.buttonView=new Qb(t),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.panelView=new ek(t),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new Do,this.focusTracker=new Bo,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("panelPosition","w"),this.set("class",void 0),this.set("parentMenuView",null),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar__menu",e.to("class"),e.if("isEnabled","ck-disabled",(t=>!t)),e.if("parentMenuView","ck-menu-bar__menu_top-level",(t=>!t))]},children:[this.buttonView,this.panelView]})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.keystrokes.listenTo(this.element),Yf.closeOnEscKey(this),this._repositionPanelOnOpen()}_attachBehaviors(){this.parentMenuView?(Yf.openOnButtonClick(this),Yf.openOnArrowRightKey(this),Yf.closeOnArrowLeftKey(this),Yf.openAndFocusOnEnterKeyPress(this),Yf.closeOnParentClose(this)):(this._propagateArrowKeystrokeEvents(),Yf.openAndFocusPanelOnArrowDownKey(this),Yf.toggleOnButtonClick(this))}_propagateArrowKeystrokeEvents(){this.keystrokes.set("arrowright",((t,e)=>{this.fire("arrowright"),e()})),this.keystrokes.set("arrowleft",((t,e)=>{this.fire("arrowleft"),e()}))}_repositionPanelOnOpen(){this.on("change:isOpen",((t,e,n)=>{if(!n)return;const r=ik._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=r?r.name:this._panelPositions[0].name}))}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:t,southWest:e,northEast:n,northWest:r,westSouth:i,eastSouth:o,westNorth:s,eastNorth:a}=Jf;return"ltr"===this.locale.uiLanguageDirection?this.parentMenuView?[o,a,i,s]:[t,e,n,r]:this.parentMenuView?[i,s,o,a]:[e,t,r,n]}static _getOptimalPosition=Si}class ok extends Qg{constructor(t){super(t),this.role="menu",this.items.on("change",this._setItemsCheckSpace.bind(this))}_setItemsCheckSpace(){const t=Array.from(this.items).some((t=>{const e=sk(t);return e&&e.isToggleable}));this.items.forEach((e=>{const n=sk(e);n&&(n.hasCheckSpace=t)}))}}function sk(t){return t instanceof Gg?t.children.map((t=>function(t){return"object"==typeof t&&"buttonView"in t&&t.buttonView instanceof wm}(t)?t.buttonView:t)).find((t=>t instanceof $m)):null}class ak extends ag{constructor(t){super(t),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}var lk=n(497),ck={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(lk.A,ck);lk.A.locals;const dk=["mouseenter","arrowleft","arrowright","change:isOpen"];class hk extends lm{children;menus=[];constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set({isOpen:!1,isFocusBorderEnabled:!1}),this._setupIsOpenUpdater(),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar",n.if("isFocusBorderEnabled","ck-menu-bar_focus-border-enabled")],"aria-label":e("Editor menu bar"),role:"menubar"},children:this.children})}fillFromConfig(t,e,n=[]){const r=Xf({normalizedConfig:t,locale:this.locale,componentFactory:e,extraItems:n}).items.map((t=>this._createMenu({componentFactory:e,menuDefinition:t})));this.children.addMany(r)}render(){super.render(),Zf.toggleMenusAndFocusItemsOnHover(this),Zf.closeMenusWhenTheBarCloses(this),Zf.closeMenuWhenAnotherOnTheSameLevelOpens(this),Zf.focusCycleMenusOnArrows(this),Zf.closeOnClickOutside(this),Zf.enableFocusHighlightOnInteraction(this)}focus(){this.children.first&&this.children.first.focus()}close(){for(const t of this.children)t.isOpen=!1}registerMenu(t,e=null){e?(t.delegate(...dk).to(e),t.parentMenuView=e):t.delegate(...dk).to(this,(t=>"menu:"+t)),t._attachBehaviors(),this.menus.push(t)}_createMenu({componentFactory:t,menuDefinition:e,parentMenuView:n}){const r=this.locale,i=new ik(r);return this.registerMenu(i,n),i.buttonView.set({label:e.label}),i.once("change:isOpen",(()=>{const n=new ok(r);n.ariaLabel=e.label,i.panelView.children.add(n),n.items.addMany(this._createMenuItems({menuDefinition:e,parentMenuView:i,componentFactory:t}))})),i}_createMenuItems({menuDefinition:t,parentMenuView:e,componentFactory:n}){const r=this.locale,i=[];for(const o of t.groups){for(const t of o.items){const o=new Kf(r,e);if(s(t))o.children.add(this._createMenu({componentFactory:n,menuDefinition:t,parentMenuView:e}));else{const r=this._createMenuItemContentFromFactory({componentName:t,componentFactory:n,parentMenuView:e});if(!r)continue;o.children.add(r)}i.push(o)}o!==t.groups[t.groups.length-1]&&i.push(new Kg(r))}return i}_createMenuItemContentFromFactory({componentName:t,parentMenuView:e,componentFactory:n}){const r=n.create(t);return r instanceof ik||r instanceof Ym||r instanceof ak?(this._registerMenuTree(r,e),r.on("execute",(()=>{this.close()})),r):(wr("menu-bar-component-unsupported",{componentName:t,componentView:r}),null)}_registerMenuTree(t,e){if(!(t instanceof ik))return void t.delegate("mouseenter").to(e);this.registerMenu(t,e);const n=t.panelView.children.filter((t=>t instanceof ok))[0];if(!n)return void t.delegate("mouseenter").to(e);const r=n.items.filter((t=>t instanceof Gg));for(const e of r)this._registerMenuTree(e.children.get(0),t)}_setupIsOpenUpdater(){let t;this.on("menu:change:isOpen",((e,n,r)=>{clearTimeout(t),r?this.isOpen=!0:t=setTimeout((()=>{this.isOpen=Array.from(this.children).some((t=>t.isOpen))}),0)}))}}class uk extends db{view;constructor(t,e){super(t),this.view=e}get element(){return this.view.editable.element}init(){const t=this.editor,e=this.view,n=t.editing.view,r=e.editable,i=n.document.getRoot();r.name=i.rootName,e.render();const o=r.element;this.setEditableElement(r.name,o),r.bind("isFocused").to(this.focusTracker),n.attachDomRoot(o),this._initPlaceholder(),this._initMenuBar(this.view.menuBarView),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;e.getDomRoot(t.editable.name)&&e.detachDomRoot(t.editable.name),t.destroy()}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),r=t.config.get("placeholder");if(r){const t="string"==typeof r?r:r[n.rootName];t&&(n.placeholder=t)}Jo({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}}class mk extends gb{editable;menuBarView;constructor(t,e,n,r){super(t),this.editable=new fb(t,e,n,{label:r}),this.menuBarView=new hk(t),this.menuBarView.extendTemplate({attributes:{class:["ck-reset_all","ck-rounded-corners"],dir:t.uiLanguageDirection}})}render(){super.render(),this.registerChild(this.editable),this.registerChild(this.menuBarView)}}class gk extends(Fu(Vu)){ui;constructor(t,e={}){if(!pk(t)&&void 0!==e.initialData)throw new kr("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return pk(t)?ci(t):t}(t)),pk(t)&&(this.sourceElement=t,Ru(this,t));const n=this.config.get("plugins");n.push(qb),this.config.set("plugins",n),this.config.define("balloonToolbar",this.config.get("toolbar")),this.model.document.createRoot();const r=new mk(this.locale,this.editing.view,this.sourceElement,this.config.get("label"));this.ui=new uk(this,r),function(t){if(!st(t.updateSourceElement))throw new kr("attachtoform-missing-elementapi-interface",t);const e=t.sourceElement;if(function(t){return!!t&&"textarea"===t.tagName.toLowerCase()}(e)&&e.form){let n;const r=e.form,i=()=>t.updateSourceElement();st(r.submit)&&(n=r.submit,r.submit=()=>{i(),n.apply(r)}),r.addEventListener("submit",i),t.on("destroy",(()=>{r.removeEventListener("submit",i),n&&(r.submit=n)}))}}(this)}destroy(){const t=this.getData();return this.ui.destroy(),super.destroy().then((()=>{this.sourceElement&&this.updateSourceElement(t)}))}static create(t,e={}){return new Promise((n=>{if(pk(t)&&"TEXTAREA"===t.tagName)throw new kr("editor-wrong-element",null);const r=new this(t,e);n(r.initPlugins().then((()=>r.ui.init())).then((()=>r.data.init(r.config.get("initialData")))).then((()=>r.fire("ready"))).then((()=>r)))}))}}function pk(t){return U(t)}var fk=n(9826),bk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(fk.A,bk);fk.A.locals;var kk=n(2722),wk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(kk.A,wk);kk.A.locals;var Ak=n(9627),_k={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Ak.A,_k);Ak.A.locals;class Ck extends lm{children;_findInputView;_replaceInputView;_findButtonView;_findPrevButtonView;_findNextButtonView;_advancedOptionsCollapsibleView;_matchCaseSwitchView;_wholeWordsOnlySwitchView;_replaceButtonView;_replaceAllButtonView;_inputsDivView;_actionButtonsDivView;_focusTracker;_keystrokes;_focusables;focusCycler;constructor(t){super(t);const e=t.t;this.children=this.createCollection(),this.set("matchCount",0),this.set("highlightOffset",0),this.set("isDirty",!1),this.set("_areCommandsEnabled",{}),this.set("_resultsCounterText",""),this.set("_matchCase",!1),this.set("_wholeWordsOnly",!1),this.bind("_searchResultsFound").to(this,"matchCount",this,"isDirty",((t,e)=>t>0&&!e)),this._findInputView=this._createInputField(e("Find in text…")),this._findPrevButtonView=this._createButton({label:e("Previous result"),class:"ck-button-prev",icon:zu.previousArrow,keystroke:"Shift+F3",tooltip:!0}),this._findNextButtonView=this._createButton({label:e("Next result"),class:"ck-button-next",icon:zu.previousArrow,keystroke:"F3",tooltip:!0}),this._replaceInputView=this._createInputField(e("Replace with…"),"ck-labeled-field-replace"),this._inputsDivView=this._createInputsDiv(),this._matchCaseSwitchView=this._createMatchCaseSwitch(),this._wholeWordsOnlySwitchView=this._createWholeWordsOnlySwitch(),this._advancedOptionsCollapsibleView=this._createAdvancedOptionsCollapsible(),this._replaceAllButtonView=this._createButton({label:e("Replace all"),class:"ck-button-replaceall",withText:!0}),this._replaceButtonView=this._createButton({label:e("Replace"),class:"ck-button-replace",withText:!0}),this._findButtonView=this._createButton({label:e("Find"),class:"ck-button-find ck-button-action",withText:!0}),this._actionButtonsDivView=this._createActionButtonsDiv(),this._focusTracker=new Bo,this._keystrokes=new Do,this._focusables=new Mu,this.focusCycler=new ym({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this._keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.addMany([this._inputsDivView,this._advancedOptionsCollapsibleView,this._actionButtonsDivView]),this.setTemplate({tag:"form",attributes:{class:["ck","ck-find-and-replace-form"],tabindex:"-1"},children:this.children})}render(){super.render(),hm({view:this}),this._initFocusCycling(),this._initKeystrokeHandling()}destroy(){super.destroy(),this._focusTracker.destroy(),this._keystrokes.destroy()}focus(t){-1===t?this.focusCycler.focusLast():this.focusCycler.focusFirst()}reset(){this._findInputView.errorText=null,this.isDirty=!0}get _textToFind(){return this._findInputView.fieldView.element.value}get _textToReplace(){return this._replaceInputView.fieldView.element.value}_createInputsDiv(){const t=this.locale,e=t.t,n=new lm(t);return this._findInputView.fieldView.on("input",(()=>{this.isDirty=!0})),this._findPrevButtonView.delegate("execute").to(this,"findPrevious"),this._findNextButtonView.delegate("execute").to(this,"findNext"),this._findPrevButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",(({findPrevious:t})=>t)),this._findNextButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",(({findNext:t})=>t)),this._injectFindResultsCounter(),this._replaceInputView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",(({replace:t},e)=>t&&e)),this._replaceInputView.bind("infoText").to(this._replaceInputView,"isEnabled",this._replaceInputView,"isFocused",((t,n)=>t||!n?"":e("Tip: Find some text first in order to replace it."))),n.setTemplate({tag:"div",attributes:{class:["ck","ck-find-and-replace-form__inputs"]},children:[this._findInputView,this._findPrevButtonView,this._findNextButtonView,this._replaceInputView]}),n}_onFindButtonExecute(){if(this._textToFind)this.isDirty=!1,this.fire("findNext",{searchText:this._textToFind,matchCase:this._matchCase,wholeWords:this._wholeWordsOnly});else{const t=this.t;this._findInputView.errorText=t("Text to find must not be empty.")}}_injectFindResultsCounter(){const t=this.locale,e=t.t,n=this.bindTemplate,r=new lm(this.locale);this.bind("_resultsCounterText").to(this,"highlightOffset",this,"matchCount",((t,n)=>e("%0 of %1",[t,n]))),r.setTemplate({tag:"span",attributes:{class:["ck","ck-results-counter",n.if("isDirty","ck-hidden")]},children:[{text:n.to("_resultsCounterText")}]});const i=()=>{const e=this._findInputView.fieldView.element;if(!e||!Di(e))return;const n=new fi(r.element).width,i="ltr"===t.uiLanguageDirection?"paddingRight":"paddingLeft";e.style[i]=n?`calc( 2 * var(--ck-spacing-standard) + ${n}px )`:""};this.on("change:_resultsCounterText",i,{priority:"low"}),this.on("change:isDirty",i,{priority:"low"}),this._findInputView.template.children[0].children.push(r)}_createAdvancedOptionsCollapsible(){const t=this.locale.t,e=new mg(this.locale,[this._matchCaseSwitchView,this._wholeWordsOnlySwitchView]);return e.set({label:t("Advanced options"),isCollapsed:!0}),e}_createActionButtonsDiv(){const t=new lm(this.locale);return this._replaceButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",(({replace:t},e)=>t&&e)),this._replaceAllButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",(({replaceAll:t},e)=>t&&e)),this._replaceButtonView.on("execute",(()=>{this.fire("replace",{searchText:this._textToFind,replaceText:this._textToReplace})})),this._replaceAllButtonView.on("execute",(()=>{this.fire("replaceAll",{searchText:this._textToFind,replaceText:this._textToReplace}),this.focus()})),this._findButtonView.on("execute",this._onFindButtonExecute.bind(this)),t.setTemplate({tag:"div",attributes:{class:["ck","ck-find-and-replace-form__actions"]},children:[this._replaceAllButtonView,this._replaceButtonView,this._findButtonView]}),t}_createMatchCaseSwitch(){const t=this.locale.t,e=new og(this.locale);return e.set({label:t("Match case"),withText:!0}),e.bind("isOn").to(this,"_matchCase"),e.on("execute",(()=>{this._matchCase=!this._matchCase,this.isDirty=!0})),e}_createWholeWordsOnlySwitch(){const t=this.locale.t,e=new og(this.locale);return e.set({label:t("Whole words only"),withText:!0}),e.bind("isOn").to(this,"_wholeWordsOnly"),e.on("execute",(()=>{this._wholeWordsOnly=!this._wholeWordsOnly,this.isDirty=!0})),e}_initFocusCycling(){[this._findInputView,this._findPrevButtonView,this._findNextButtonView,this._replaceInputView,this._advancedOptionsCollapsibleView.buttonView,this._matchCaseSwitchView,this._wholeWordsOnlySwitchView,this._replaceAllButtonView,this._replaceButtonView,this._findButtonView].forEach((t=>{this._focusables.add(t),this._focusTracker.add(t.element)}))}_initKeystrokeHandling(){const t=t=>t.stopPropagation(),e=t=>{t.stopPropagation(),t.preventDefault()};this._keystrokes.listenTo(this.element),this._keystrokes.set("f3",(t=>{e(t),this._findNextButtonView.fire("execute")})),this._keystrokes.set("shift+f3",(t=>{e(t),this._findPrevButtonView.fire("execute")})),this._keystrokes.set("enter",(t=>{const n=t.target;n===this._findInputView.fieldView.element?(this._areCommandsEnabled.findNext?this._findNextButtonView.fire("execute"):this._findButtonView.fire("execute"),e(t)):n!==this._replaceInputView.fieldView.element||this.isDirty||(this._replaceButtonView.fire("execute"),e(t))})),this._keystrokes.set("shift+enter",(t=>{t.target===this._findInputView.fieldView.element&&(this._areCommandsEnabled.findPrevious?this._findPrevButtonView.fire("execute"):this._findButtonView.fire("execute"),e(t))})),this._keystrokes.set("arrowright",t),this._keystrokes.set("arrowleft",t),this._keystrokes.set("arrowup",t),this._keystrokes.set("arrowdown",t)}_createButton(t){const e=new wm(this.locale);return e.set(t),e}_createInputField(t,e){const n=new Sg(this.locale,Rp);return n.label=t,n.class=e,n}}const vk='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.87 13.786 1.532-1.286 3.857 4.596a1 1 0 1 1-1.532 1.286l-3.857-4.596z"/><path d="M16.004 8.5a6.5 6.5 0 0 1-9.216 5.905c-1.154-.53-.863-1.415-.663-1.615.194-.194.564-.592 1.635-.141a4.5 4.5 0 0 0 5.89-5.904l-.104-.227 1.332-1.331c.045-.046.196-.041.224.007a6.47 6.47 0 0 1 .902 3.306zm-3.4-5.715c.562.305.742 1.106.354 1.494-.388.388-.995.414-1.476.178a4.5 4.5 0 0 0-6.086 5.882l.114.236-1.348 1.349c-.038.037-.17.022-.198-.023a6.5 6.5 0 0 1 5.54-9.9 6.469 6.469 0 0 1 3.1.784z"/><path d="M4.001 11.93.948 8.877a.2.2 0 0 1 .141-.341h6.106a.2.2 0 0 1 .141.341L4.283 11.93a.2.2 0 0 1-.282 0zm11.083-6.789 3.053 3.053a.2.2 0 0 1-.14.342H11.89a.2.2 0 0 1-.14-.342l3.052-3.053a.2.2 0 0 1 .282 0z"/></svg>';class yk extends Lo{static get requires(){return[qm]}static get pluginName(){return"FindAndReplaceUI"}formView;constructor(t){super(t),t.config.define("findAndReplace.uiType","dialog"),this.formView=null}init(){const t=this.editor,e="dropdown"===t.config.get("findAndReplace.uiType"),n=t.commands.get("find"),r=this.editor.t;t.ui.componentFactory.add("findAndReplace",(()=>{let r;return e?(r=this._createDropdown(),r.bind("isEnabled").to(n)):r=this._createDialogButtonForToolbar(),t.keystrokes.set("Ctrl+F",((e,i)=>{if(n.isEnabled){if(r instanceof Hg){const t=r.buttonView;t.isOn||t.fire("execute")}else r.isOn?t.plugins.get("Dialog").view.focus():r.fire("execute");i()}})),r})),e||t.ui.componentFactory.add("menuBar:findAndReplace",(()=>this._createDialogButtonForMenuBar())),t.accessibility.addKeystrokeInfos({keystrokes:[{label:r("Find in the document"),keystroke:"CTRL+F"}]})}_createDropdown(){const t=this.editor,e=t.locale.t,n=Dp(t.locale);return n.once("change:isOpen",(()=>{this.formView=this._createFormView(),this.formView.children.add(new vm(t.locale,{label:e("Find and replace")}),0),n.panelView.children.add(this.formView)})),n.on("change:isOpen",((t,e,n)=>{n?this._setupFormView():this.fire("searchReseted")}),{priority:"low"}),n.buttonView.set({icon:vk,label:e("Find and replace"),keystroke:"CTRL+F",tooltip:!0}),n}_createDialogButtonForToolbar(){const t=this.editor,e=this._createButton(wm),n=t.plugins.get("Dialog");return e.set({tooltip:!0}),e.bind("isOn").to(n,"id",(t=>"findAndReplace"===t)),e.on("execute",(()=>{e.isOn?n.hide():this._showDialog()})),e}_createDialogButtonForMenuBar(){const t=this._createButton(Ym),e=this.editor.plugins.get("Dialog"),n=this.editor.plugins.get("Dialog");return t.set({role:"menuitemcheckbox",isToggleable:!0}),t.bind("isOn").to(n,"id",(t=>"findAndReplace"===t)),t.on("execute",(()=>{"findAndReplace"!==e.id?this._showDialog():e.hide()})),t}_createButton(t){const e=this.editor,n=e.commands.get("find"),r=new t(e.locale),i=e.locale.t;return r.bind("isEnabled").to(n),r.set({icon:vk,label:i("Find and replace"),keystroke:"CTRL+F"}),r}_showDialog(){const t=this.editor,e=t.plugins.get("Dialog"),n=t.locale.t;this.formView||(this.formView=this._createFormView()),e.show({id:"findAndReplace",title:n("Find and replace"),content:this.formView,position:Lm,onShow:()=>{this._setupFormView()},onHide:()=>{this.fire("searchReseted")}})}_createFormView(){const t=this.editor,e=new(dm(Ck))(t.locale),n=t.commands,r=this.editor.plugins.get("FindAndReplaceEditing").state;e.bind("highlightOffset").to(r,"highlightedOffset"),e.listenTo(r.results,"change",(()=>{e.matchCount=r.results.length}));const i=n.get("findNext"),o=n.get("findPrevious"),s=n.get("replace"),a=n.get("replaceAll");return e.bind("_areCommandsEnabled").to(i,"isEnabled",o,"isEnabled",s,"isEnabled",a,"isEnabled",((t,e,n,r)=>({findNext:t,findPrevious:e,replace:n,replaceAll:r}))),e.delegate("findNext","findPrevious","replace","replaceAll").to(this),e.on("change:isDirty",((t,e,n)=>{n&&this.fire("searchReseted")})),e}_setupFormView(){this.formView.disableCssTransitions(),this.formView.reset(),this.formView._findInputView.fieldView.select(),this.formView.enableCssTransitions()}}class xk extends Mo{_state;constructor(t,e){super(t),this.isEnabled=!0,this.affectsData=!1,this._state=e}execute(t,{matchCase:e,wholeWords:n}={}){const{editor:r}=this,{model:i}=r,o=r.plugins.get("FindAndReplaceUtils");let s,a="";s="string"==typeof t?(...r)=>({results:o.findByTextCallback(t,{matchCase:e,wholeWords:n})(...r),searchText:t}):t;const l=s;s=(...t)=>{const e=l(...t);return e&&"searchText"in e&&(a=e.searchText),e};const c=i.document.getRootNames().reduce(((t,e)=>o.updateFindResultFromRange(i.createRangeIn(i.document.getRoot(e)),i,s,t)),null);return this._state.clear(i),this._state.results.addMany(c),this._state.highlightedResult=c.get(0),this._state.searchText=a,s&&(this._state.lastSearchCallback=s),s&&(this._state.lastSearchCallback=s),this._state.matchCase=!!e,this._state.matchWholeWords=!!n,{results:c,findCallback:s}}}class Ek extends Mo{_state;constructor(t,e){super(t),this.isEnabled=!0,this._state=e,this._isEnabledBasedOnSelection=!1}_replace(t,e){const{model:n}=this.editor,r=e.marker.getRange();n.canEditAt(r)&&n.change((i=>{if("$graveyard"===r.root.rootName)return void this._state.results.remove(e);let o={};for(const t of r.getItems())if(t.is("$text")||t.is("$textProxy")){o=t.getAttributes();break}n.insertContent(i.createText(t,o),r),this._state.results.has(e)&&this._state.results.remove(e)}))}}class Bk extends Ek{execute(t,e){this._replace(t,e)}}class Dk extends Ek{execute(t,e){const{editor:n}=this,{model:r}=n,i=n.plugins.get("FindAndReplaceUtils"),o=e instanceof xo?e:r.document.getRootNames().reduce(((t,n)=>i.updateFindResultFromRange(r.createRangeIn(r.document.getRoot(n)),r,i.findByTextCallback(e,this._state),t)),null);o.length&&r.change((()=>{[...o].forEach((e=>{this._replace(t,e)}))}))}}class Sk extends Mo{_state;constructor(t,e){super(t),this.affectsData=!1,this._state=e,this.isEnabled=!1,this.listenTo(this._state.results,"change",(()=>{this.isEnabled=this._state.results.length>1}))}refresh(){this.isEnabled=this._state.results.length>1}execute(){const t=this._state.results,e=t.getIndex(this._state.highlightedResult),n=e+1>=t.length?0:e+1;this._state.highlightedResult=this._state.results.get(n)}}class Tk extends Sk{execute(){const t=this._state.results.getIndex(this._state.highlightedResult),e=t-1<0?this._state.results.length-1:t-1;this._state.highlightedResult=this._state.results.get(e)}}class Ik extends(jr()){constructor(t){super(),this.set("results",new xo),this.set("highlightedResult",null),this.set("highlightedOffset",0),this.set("searchText",""),this.set("replaceText",""),this.set("lastSearchCallback",null),this.set("matchCase",!1),this.set("matchWholeWords",!1),this.results.on("change",((e,{removed:n,index:r})=>{if(Array.from(n).length){let e=!1;if(t.change((r=>{for(const i of n)this.highlightedResult===i&&(e=!0),t.markers.has(i.marker.name)&&r.removeMarker(i.marker)})),e){const t=r>=this.results.length?0:r;this.highlightedResult=this.results.get(t)}}})),this.on("change:highlightedResult",(()=>{this.refreshHighlightOffset()}))}clear(t){this.searchText="",t.change((e=>{if(this.highlightedResult){const n=this.highlightedResult.marker.name.split(":")[1],r=t.markers.get(`findResultHighlighted:${n}`);r&&e.removeMarker(r)}[...this.results].forEach((({marker:t})=>{e.removeMarker(t)}))})),this.results.clear()}refreshHighlightOffset(){const{highlightedResult:t,results:e}=this,n={before:-1,same:0,after:1,different:1};this.highlightedOffset=t?Array.from(e).sort(((t,e)=>n[t.marker.getStart().compareWith(e.marker.getStart())])).indexOf(t)+1:0}}class Pk extends Lo{static get pluginName(){return"FindAndReplaceUtils"}updateFindResultFromRange(t,e,n,r){const i=r||new xo;return e.change((r=>{[...t].forEach((({type:t,item:o})=>{if("elementStart"===t&&e.schema.checkChild(o,"$text")){let t=n({item:o,text:this.rangeToText(e.createRangeIn(o))});if(!t)return;"results"in t&&(t=t.results),t.forEach((t=>{const e=`findResult:${pr()}`,n=r.addMarker(e,{usingOperation:!1,affectsData:!1,range:r.createRange(r.createPositionAt(o,t.start),r.createPositionAt(o,t.end))}),s=function(t,e){const n=t.find((({marker:t})=>e.getStart().isBefore(t.getStart())));return n?t.getIndex(n):t.length}(i,n);(t=>i.find((e=>{const{marker:n}=e,r=n.getRange(),i=t.getRange();return r.isEqual(i)})))(n)||i.add({id:e,label:t.label,marker:n},s)}))}}))})),i}rangeToText(t){return Array.from(t.getItems()).reduce(((t,e)=>e.is("$text")||e.is("$textProxy")?t+e.data:`${t}\n`),"")}findByTextCallback(t,e){let n="gu";e.matchCase||(n+="i");let r=`(${Ib(t)})`;if(e.wholeWords){const e="[^a-zA-ZÀ-ɏḀ-ỿ]";new RegExp("^"+e).test(t)||(r=`(^|${e}|_)${r}`),new RegExp(e+"$").test(t)||(r=`${r}(?=_|${e}|$)`)}const i=new RegExp(r,n);return function({text:t}){return[...t.matchAll(i)].map(Vk)}}}function Vk(t){const e=t.length-1;let n=t.index;return 3===t.length&&(n+=t[1].length),{label:t[e],start:n,end:n+t[e].length}}var Fk=n(4341),Rk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Fk.A,Rk);Fk.A.locals;class Lk extends Lo{static get requires(){return[Pk]}static get pluginName(){return"FindAndReplaceEditing"}state;init(){this.state=new Ik(this.editor.model),this.set("_isSearchActive",!1),this._defineConverters(),this._defineCommands(),this.listenTo(this.state,"change:highlightedResult",((t,e,n,r)=>{const{model:i}=this.editor;i.change((t=>{if(r){const e=r.marker.name.split(":")[1],n=i.markers.get(`findResultHighlighted:${e}`);n&&t.removeMarker(n)}if(n){const e=n.marker.name.split(":")[1];t.addMarker(`findResultHighlighted:${e}`,{usingOperation:!1,affectsData:!1,range:n.marker.getRange()})}}))}));const t=F(((t,e,n)=>{if(n){const t=this.editor.editing.view.domConverter,e=this.editor.editing.mapper.toViewRange(n.marker.getRange());Vi({target:t.viewRangeToDom(e),viewportOffset:40})}}).bind(this),32);this.listenTo(this.state,"change:highlightedResult",t,{priority:"low"}),this.listenTo(this.editor,"destroy",t.cancel),this.on("change:_isSearchActive",((t,e,n)=>{n?this.listenTo(this.editor.model.document,"change:data",this._onDocumentChange):this.stopListening(this.editor.model.document,"change:data",this._onDocumentChange)}))}find(t,e){return this._isSearchActive=!0,this.editor.execute("find",t,e),this.state.results}stop(){this.state.clear(this.editor.model),this._isSearchActive=!1}_defineCommands(){this.editor.commands.add("find",new xk(this.editor,this.state)),this.editor.commands.add("findNext",new Sk(this.editor,this.state)),this.editor.commands.add("findPrevious",new Tk(this.editor,this.state)),this.editor.commands.add("replace",new Bk(this.editor,this.state)),this.editor.commands.add("replaceAll",new Dk(this.editor,this.state))}_defineConverters(){const{editor:t}=this;t.conversion.for("editingDowncast").markerToHighlight({model:"findResult",view:({markerName:t})=>{const[,e]=t.split(":");return{name:"span",classes:["ck-find-result"],attributes:{"data-find-result":e}}}}),t.conversion.for("editingDowncast").markerToHighlight({model:"findResultHighlighted",view:({markerName:t})=>{const[,e]=t.split(":");return{name:"span",classes:["ck-find-result_selected"],attributes:{"data-find-result":e}}}})}_onDocumentChange=()=>{const t=new Set,e=new Set,n=this.editor.model,{results:r}=this.state,i=n.document.differ.getChanges(),o=n.document.differ.getChangedMarkers();i.forEach((r=>{r.position&&("$text"===r.name||r.position.nodeAfter&&n.schema.isInline(r.position.nodeAfter)?(t.add(r.position.parent),[...n.markers.getMarkersAtPosition(r.position)].forEach((t=>{e.add(t.name)}))):"insert"===r.type&&r.position.nodeAfter&&t.add(r.position.nodeAfter))})),o.forEach((({name:t,data:{newRange:n}})=>{n&&"$graveyard"===n.start.root.rootName&&e.add(t)})),t.forEach((t=>{[...n.markers.getMarkersIntersectingRange(n.createRangeIn(t))].forEach((t=>e.add(t.name)))})),e.forEach((t=>{r.has(t)&&(r.get(t)===this.state.highlightedResult&&(this.state.highlightedResult=null),r.remove(t))}));const s=[],a=this.editor.plugins.get("FindAndReplaceUtils");t.forEach((t=>{const e=a.updateFindResultFromRange(n.createRangeOn(t),n,this.state.lastSearchCallback,r);s.push(...e)})),o.forEach((t=>{if(t.data.newRange){const e=a.updateFindResultFromRange(t.data.newRange,n,this.state.lastSearchCallback,r);s.push(...e)}})),!this.state.highlightedResult&&s.length?this.state.highlightedResult=s[0]:this.state.refreshHighlightOffset()}}class zk extends(jr()){total;_reader;_data;constructor(){super();const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return t?(this.total=t.size,new Promise(((n,r)=>{e.onload=()=>{const t=e.result;this._data=t,n(t)},e.onerror=()=>{r("error")},e.onabort=()=>{r("aborted")},this._reader.readAsDataURL(t)}))):new Promise(((t,e)=>{e("error")}))}abort(){this._reader.abort()}}class Mk extends Lo{loaders=new xo;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get requires(){return[Lu]}init(){this.loaders.on("change",(()=>this._updatePendingAction())),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0))}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return wr("filerepository-no-upload-adapter"),null;const e=new Nk(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then((t=>{this._loadersMap.set(t,e)})).catch((()=>{})),e.on("change:uploaded",(()=>{let t=0;for(const e of this.loaders)t+=e.uploaded;this.uploaded=t})),e.on("change:uploadTotal",(()=>{let t=0;for(const e of this.loaders)e.uploadTotal&&(t+=e.uploadTotal);this.uploadTotal=t})),e}destroyLoader(t){const e=t instanceof Nk?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach(((t,n)=>{t===e&&this._loadersMap.delete(n)}))}_updatePendingAction(){const t=this.editor.plugins.get(Lu);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=t=>`${e("Upload in progress")} ${parseInt(t)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}class Nk extends(jr()){id;_filePromiseWrapper;_adapter;_reader;constructor(t,e){super(),this.id=pr(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new zk,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((t=>this._filePromiseWrapper?t:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new kr("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((t=>this._reader.read(t))).then((t=>{if("reading"!==this.status)throw this.status;return this.status="idle",t})).catch((t=>{if("aborted"===t)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:t}))}upload(){if("idle"!=this.status)throw new kr("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((t=>(this.uploadResponse=t,this.status="idle",t))).catch((t=>{if("aborted"===this.status)throw"aborted";throw this.status="error",t}))}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((()=>{})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise(((n,r)=>{e.rejecter=r,e.isFulfilled=!1,t.then((t=>{e.isFulfilled=!0,n(t)})).catch((t=>{e.isFulfilled=!0,r(t)}))})),e}}const Ok="ckCsrfToken",Hk="abcdefghijklmnopqrstuvwxyz0123456789";function jk(){let t=function(t){t=t.toLowerCase();const e=document.cookie.split(";");for(const n of e){const e=n.split("=");if(decodeURIComponent(e[0].trim().toLowerCase())===t)return decodeURIComponent(e[1])}return null}(Ok);var e,n;return t&&40==t.length||(t=function(t){let e="";const n=new Uint8Array(t);window.crypto.getRandomValues(n);for(let t=0;t<n.length;t++){const r=Hk.charAt(n[t]%36);e+=Math.random()>.5?r.toUpperCase():r}return e}(40),e=Ok,n=t,document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+";path=/"),t}class qk{loader;url;t;xhr;constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then((t=>new Promise(((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const r=this.xhr,i=this.loader,o=(0,this.t)("Cannot upload file:")+` ${n.name}.`;r.addEventListener("error",(()=>e(o))),r.addEventListener("abort",(()=>e())),r.addEventListener("load",(()=>{const n=r.response;if(!n||!n.uploaded)return e(n&&n.error&&n.error.message?n.error.message:o);t({default:n.url})})),r.upload&&r.upload.addEventListener("progress",(t=>{t.lengthComputable&&(i.uploadTotal=t.total,i.uploaded=t.loaded)}))}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",jk()),this.xhr.send(e)}}class Uk{model;limit;_isLocked;_size;_batch=null;_changeCallback;_selectionChangeCallback;constructor(t,e=20){this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(t,e)=>{e.isLocal&&e.isUndoable&&e!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(t){this._size+=t,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){this.isLocked&&!t||(this._batch=null,this._size=0)}}class Wk extends Mo{_buffer;constructor(t,e){super(t),this._buffer=new Uk(t.model,e),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,r=t.text||"",i=r.length;let o=n.selection;if(t.selection?o=t.selection:t.range&&(o=e.createSelection(t.range)),!e.canEditAt(o))return;const s=t.resultRange;e.enqueueChange(this._buffer.batch,(t=>{this._buffer.lock();const a=Array.from(n.selection.getAttributes());e.deleteContent(o),r&&e.insertContent(t.createText(r,a),o),s?t.setSelection(s):o.is("documentSelection")||t.setSelection(o),this._buffer.unlock(),this._buffer.input(i)}))}}const $k=["insertText","insertReplacementText"],Gk=[...$k,"insertCompositionText"];class Kk extends Xa{focusObserver;constructor(t){super(t),this.focusObserver=t.getObserver(Dl);const e=Xn.isAndroid?Gk:$k,n=t.document;n.on("beforeinput",((r,i)=>{if(!this.isEnabled)return;const{data:o,targetRanges:s,inputType:a,domEvent:l}=i;if(!e.includes(a))return;this.focusObserver.flush();const c=new mr(n,"insertText");n.fire(c,new el(t,l,{text:o,selection:t.createSelection(s)})),c.stop.called&&r.stop()})),Xn.isAndroid||n.on("compositionend",((e,{data:r,domEvent:i})=>{this.isEnabled&&r&&n.fire("insertText",new el(t,i,{text:r}))}),{priority:"lowest"})}observe(){}stopObserving(){}}class Zk extends Lo{_compositionQueue;static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,r=t.editing.mapper,i=e.document.selection;this._compositionQueue=new Yk(t),n.addObserver(Kk);const o=new Wk(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",o),t.commands.add("input",o),this.listenTo(n.document,"insertText",((o,s)=>{n.document.isComposing||s.preventDefault(),Xn.isAndroid&&n.document.isComposing&&this._compositionQueue.flush("next beforeinput");const{text:a,selection:l}=s;let c;c=l?Array.from(l.getRanges()).map((t=>r.toModelRange(t))):Array.from(i.getRanges());let d=a;if(Xn.isAndroid){const t=Array.from(c[0].getItems()).reduce(((t,e)=>t+(e.is("$textProxy")?e.data:"")),"");if(t&&(t.length<=d.length?d.startsWith(t)&&(d=d.substring(t.length),c[0].start=c[0].start.getShiftedBy(t.length)):t.startsWith(d)&&(c[0].start=c[0].start.getShiftedBy(d.length),d="")),0==d.length&&c[0].isCollapsed)return}const h={text:d,selection:e.createSelection(c)};Xn.isAndroid&&n.document.isComposing?this._compositionQueue.push(h):(t.execute("insertText",h),n.scrollToTheSelection())})),Xn.isAndroid?this.listenTo(n.document,"keydown",((t,r)=>{!i.isCollapsed&&229==r.keyCode&&n.document.isComposing&&Jk(e,o)})):this.listenTo(n.document,"compositionstart",(()=>{i.isCollapsed||Jk(e,o)})),Xn.isAndroid?(this.listenTo(n.document,"mutations",((t,{mutations:e})=>{if(n.document.isComposing)for(const{node:t}of e){const e=Qk(t,r),n=r.toModelElement(e);if(this._compositionQueue.isComposedElement(n))return void this._compositionQueue.flush("mutations")}})),this.listenTo(n.document,"compositionend",(()=>{this._compositionQueue.flush("composition end")})),this.listenTo(n.document,"compositionend",(()=>{const t=[];for(const e of this._compositionQueue.flushComposedElements()){const n=r.toViewElement(e);n&&t.push({type:"children",node:n})}t.length&&n.document.fire("mutations",{mutations:t})}),{priority:"lowest"})):this.listenTo(n.document,"compositionend",(()=>{n.document.fire("mutations",{mutations:[]})}),{priority:"lowest"})}destroy(){super.destroy(),this._compositionQueue.destroy()}}class Yk{editor;flushDebounced=F((()=>this.flush("timeout")),50);_queue=[];_compositionElements=new Set;constructor(t){this.editor=t}destroy(){for(this.flushDebounced.cancel(),this._compositionElements.clear();this._queue.length;)this.shift()}get length(){return this._queue.length}push(t){const e={text:t.text};if(t.selection){e.selectionRanges=[];for(const n of t.selection.getRanges())e.selectionRanges.push(uc.fromRange(n)),this._compositionElements.add(n.start.parent)}this._queue.push(e),this.flushDebounced()}shift(){const t=this._queue.shift(),e={text:t.text};if(t.selectionRanges){const n=t.selectionRanges.map((t=>function(t){const e=t.toRange();if(t.detach(),"$graveyard"==e.root.rootName)return null;return e}(t))).filter((t=>!!t));n.length&&(e.selection=this.editor.model.createSelection(n))}return e}flush(t){const e=this.editor,n=e.model,r=e.editing.view;if(this.flushDebounced.cancel(),!this._queue.length)return;const i=e.commands.get("insertText").buffer;n.enqueueChange(i.batch,(()=>{for(i.lock();this._queue.length;){const t=this.shift();e.execute("insertText",t)}i.unlock()})),r.scrollToTheSelection()}isComposedElement(t){return this._compositionElements.has(t)}flushComposedElements(){const t=Array.from(this._compositionElements);return this._compositionElements.clear(),t}}function Jk(t,e){if(!e.isEnabled)return;const n=e.buffer;n.lock(),t.enqueueChange(n.batch,(()=>{t.deleteContent(t.document.selection)})),n.unlock()}function Qk(t,e){let n=t.is("$text")?t.parent:t;for(;!e.toModelElement(n);)n=n.parent;return n}class Xk extends Mo{direction;_buffer;constructor(t,e){super(t),this.direction=e,this._buffer=new Uk(t.model,t.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,(r=>{this._buffer.lock();const i=r.createSelection(t.selection||n.selection);if(!e.canEditAt(i))return;const o=t.sequence||1,s=i.isCollapsed;if(i.isCollapsed&&e.modifySelection(i,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(o))return void this._replaceEntireContentWithParagraph(r);if(this._shouldReplaceFirstBlockWithParagraph(i,o))return void this.editor.execute("paragraph",{selection:i});if(i.isCollapsed)return;let a=0;i.getFirstRange().getMinimalFlatRanges().forEach((t=>{a+=Kr(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),e.deleteContent(i,{doNotResetEntireContent:s,direction:this.direction}),this._buffer.input(a),r.setSelection(i),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,r=e.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(r)))return!1;if(!e.schema.checkChild(r,"paragraph"))return!1;const i=r.getChild(0);return!i||!i.is("element","paragraph")}_replaceEntireContentWithParagraph(t){const e=this.editor.model,n=e.document.selection,r=e.schema.getLimitElement(n),i=t.createElement("paragraph");t.remove(t.createRangeIn(r)),t.insert(i,r),t.setSelection(i,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction)return!1;if(!t.isCollapsed)return!1;const r=t.getFirstPosition(),i=n.schema.getLimitElement(r),o=i.getChild(0);return r.parent==o&&(!!t.containsEntireContent(o)&&(!!n.schema.checkChild(i,"paragraph")&&"paragraph"!=o.name))}}const tw="word",ew="selection",nw="backward",rw="forward",iw={deleteContent:{unit:ew,direction:nw},deleteContentBackward:{unit:"codePoint",direction:nw},deleteWordBackward:{unit:tw,direction:nw},deleteHardLineBackward:{unit:ew,direction:nw},deleteSoftLineBackward:{unit:ew,direction:nw},deleteContentForward:{unit:"character",direction:rw},deleteWordForward:{unit:tw,direction:rw},deleteHardLineForward:{unit:ew,direction:rw},deleteSoftLineForward:{unit:ew,direction:rw}};class ow extends Xa{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",(()=>{n++})),e.on("keyup",(()=>{n=0})),e.on("beforeinput",((r,i)=>{if(!this.isEnabled)return;const{targetRanges:o,domEvent:s,inputType:a}=i,l=iw[a];if(!l)return;const c={direction:l.direction,unit:l.unit,sequence:n};c.unit==ew&&(c.selectionToRemove=t.createSelection(o[0])),"deleteContentBackward"===a&&(Xn.isAndroid&&(c.sequence=1),function(t){if(1!=t.length||t[0].isCollapsed)return!1;const e=t[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let n=0;for(const{nextPosition:t,item:r}of e){if(t.parent.is("$text")){const e=t.parent.data,r=t.offset;if(Io(e,r)||Po(e,r)||Fo(e,r))continue;n++}else(r.is("containerElement")||r.is("emptyElement"))&&n++;if(n>1)return!0}return!1}(o)&&(c.unit=ew,c.selectionToRemove=t.createSelection(o)));const d=new Xs(e,"delete",o[0]);e.fire(d,new el(t,s,c)),d.stop.called&&r.stop()})),Xn.isBlink&&function(t){const e=t.view,n=e.document;let r=null,i=!1;function o(t){return t==$i.backspace||t==$i.delete}function s(t){return t==$i.backspace?nw:rw}n.on("keydown",((t,{keyCode:e})=>{r=e,i=!1})),n.on("keyup",((a,{keyCode:l,domEvent:c})=>{const d=n.selection,h=t.isEnabled&&l==r&&o(l)&&!d.isCollapsed&&!i;if(r=null,h){const t=d.getFirstRange(),r=new Xs(n,"delete",t),i={unit:ew,direction:s(l),selectionToRemove:d};n.fire(r,new el(e,c,i))}})),n.on("beforeinput",((t,{inputType:e})=>{const n=iw[e];o(r)&&n&&n.direction==s(r)&&(i=!0)}),{priority:"high"}),n.on("beforeinput",((t,{inputType:e,data:n})=>{r==$i.delete&&"insertText"==e&&""==n&&t.stop()}),{priority:"high"})}(this)}observe(){}stopObserving(){}}class sw extends Lo{_undoOnBackspace;static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,r=t.model.document;e.addObserver(ow),this._undoOnBackspace=!1;const i=new Xk(t,"forward");t.commands.add("deleteForward",i),t.commands.add("forwardDelete",i),t.commands.add("delete",new Xk(t,"backward")),this.listenTo(n,"delete",((r,i)=>{n.isComposing||i.preventDefault();const{direction:o,sequence:s,selectionToRemove:a,unit:l}=i,c="forward"===o?"deleteForward":"delete",d={sequence:s};if("selection"==l){const e=Array.from(a.getRanges()).map((e=>t.editing.mapper.toModelRange(e)));d.selection=t.model.createSelection(e)}else d.unit=l;t.execute(c,d),e.scrollToTheSelection()}),{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",((e,n)=>{this._undoOnBackspace&&"backward"==n.direction&&1==n.sequence&&"codePoint"==n.unit&&(this._undoOnBackspace=!1,t.execute("undo"),n.preventDefault(),e.stop())}),{context:"$capture"}),this.listenTo(r,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class aw extends Lo{static get requires(){return[Zk,sw]}static get pluginName(){return"Typing"}}function lw(t,e){let n=t.start;return{text:Array.from(t.getWalker({ignoreElementEnd:!1})).reduce(((t,{item:r})=>r.is("$text")||r.is("$textProxy")?t+r.data:(n=e.createPositionAfter(r),"")),""),range:e.createRange(n,t.end)}}class cw extends(jr()){model;testCallback;_hasMatch;constructor(t,e){super(),this.model=t,this.testCallback=e,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))})),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",((e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))})),this.listenTo(t,"change:data",((t,e)=>{!e.isUndo&&e.isLocal&&this._evaluateTextBeforeSelection("data",{batch:e})}))}_evaluateTextBeforeSelection(t,e={}){const n=this.model,r=n.document.selection,i=n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),{text:o,range:s}=lw(i,n),a=this.testCallback(o);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){const n=Object.assign(e,{text:o,range:s});"object"==typeof a&&Object.assign(n,a),this.fire(`matched:${t}`,n)}}}class dw extends Lo{attributes;_overrideUid;_isNextGravityRestorationSkipped=!1;static get pluginName(){return"TwoStepCaretMovement"}constructor(t){super(t),this.attributes=new Set,this._overrideUid=null}init(){const t=this.editor,e=t.model,n=t.editing.view,r=t.locale,i=e.document.selection;this.listenTo(n.document,"arrowKey",((t,e)=>{if(!i.isCollapsed)return;if(e.shiftKey||e.altKey||e.ctrlKey)return;const n=e.keyCode==$i.arrowright,o=e.keyCode==$i.arrowleft;if(!n&&!o)return;const s=r.contentLanguageDirection;let a=!1;a="ltr"===s&&n||"rtl"===s&&o?this._handleForwardMovement(e):this._handleBackwardMovement(e),!0===a&&t.stop()}),{context:"$text",priority:"highest"}),this.listenTo(i,"change:range",((t,e)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!e.directChange&&fw(i.getFirstPosition(),this.attributes)||this._restoreGravity())})),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return!this._isGravityOverridden&&((!i.isAtStart||!hw(r,e))&&(!!fw(i,e)&&(gw(t),hw(r,e)&&fw(i,e,!0)?mw(n,e):this._overrideGravity(),!0)))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return this._isGravityOverridden?(gw(t),this._restoreGravity(),fw(i,e,!0)?mw(n,e):uw(n,e,i),!0):i.isAtStart?!!hw(r,e)&&(gw(t),uw(n,e,i),!0):!hw(r,e)&&fw(i,e,!0)?(gw(t),uw(n,e,i),!0):!!pw(i,e)&&(i.isAtEnd&&!hw(r,e)&&fw(i,e)?(gw(t),uw(n,e,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,r=t.editing.view.document;t.editing.view.addObserver(Hh);let i=!1;this.listenTo(r,"mousedown",(()=>{i=!0})),this.listenTo(r,"selectionChange",(()=>{const t=this.attributes;if(!i)return;if(i=!1,!n.isCollapsed)return;if(!hw(n,t))return;const r=n.getFirstPosition();fw(r,t)&&(r.isAtStart||fw(r,t,!0)?mw(e,t):this._isGravityOverridden||this._overrideGravity())}))}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection,n=this.attributes;this.listenTo(t,"insertContent",(()=>{const r=e.getFirstPosition();hw(e,n)&&fw(r,n)&&mw(t,n)}),{priority:"low"})}_handleDeleteContentAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,r=t.editing.view;let i=!1,o=!1;this.listenTo(r.document,"delete",((t,e)=>{i="backward"===e.direction}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{if(!i)return;const t=n.getFirstPosition();o=hw(n,this.attributes)&&!pw(t,this.attributes)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{i&&(i=!1,o||t.model.enqueueChange((()=>{const t=n.getFirstPosition();hw(n,this.attributes)&&fw(t,this.attributes)&&(t.isAtStart||fw(t,this.attributes,!0)?mw(e,this.attributes):this._isGravityOverridden||this._overrideGravity())})))}),{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((t=>t.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function hw(t,e){for(const n of e)if(t.hasAttribute(n))return!0;return!1}function uw(t,e,n){const r=n.nodeBefore;t.change((n=>{if(r){const e=[],i=t.schema.isObject(r)&&t.schema.isInline(r);for(const[n,o]of r.getAttributes())!t.schema.checkAttribute("$text",n)||i&&!1===t.schema.getAttributeProperties(n).copyFromObject||e.push([n,o]);n.setSelectionAttribute(e)}else n.removeSelectionAttribute(e)}))}function mw(t,e){t.change((t=>{t.removeSelectionAttribute(e)}))}function gw(t){t.preventDefault()}function pw(t,e){return fw(t.getShiftedBy(-1),e)}function fw(t,e,n=!1){const{nodeBefore:r,nodeAfter:i}=t;for(const t of e){const e=r?r.getAttribute(t):void 0,o=i?i.getAttribute(t):void 0;if((!n||void 0!==e&&void 0!==o)&&o!==e)return!0}return!1}const bw={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:vw('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:vw("'"),to:[null,"",null,""]},quotesPrimaryEnGb:{from:vw("'"),to:[null,"",null,""]},quotesSecondaryEnGb:{from:vw('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:vw('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:vw("'"),to:[null,"",null,""]}},kw={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},ww=["symbols","mathematical","typography","quotes"];function Aw(t){return"string"==typeof t?new RegExp(`(${Ib(t)})$`):t}function _w(t){return"string"==typeof t?()=>[t]:t instanceof Array?()=>t:t}function Cw(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes()}function vw(t){return new RegExp(`(^|\\s)(${t})([^${t}]*)(${t})$`)}function yw(t,e,n,r){return r.createRange(xw(t,e,n,!0,r),xw(t,e,n,!1,r))}function xw(t,e,n,r,i){let o=t.textNode||(r?t.nodeBefore:t.nodeAfter),s=null;for(;o&&o.getAttribute(e)==n;)s=o,o=r?o.previousSibling:o.nextSibling;return s?i.createPositionAt(s,r?"before":"after"):t}function Ew(t,e,n,r){const i=t.editing.view,o=new Set;i.document.registerPostFixer((i=>{const s=t.model.document.selection;let a=!1;if(s.hasAttribute(e)){const l=yw(s.getFirstPosition(),e,s.getAttribute(e),t.model),c=t.editing.mapper.toViewRange(l);for(const t of c.getItems())t.is("element",n)&&!t.hasClass(r)&&(i.addClass(r,t),o.add(t),a=!0)}return a})),t.conversion.for("editingDowncast").add((t=>{function e(){i.change((t=>{for(const e of o.values())t.removeClass(r,e),o.delete(e)}))}t.on("insert",e,{priority:"highest"}),t.on("remove",e,{priority:"highest"}),t.on("attribute",e,{priority:"highest"}),t.on("selection",e,{priority:"highest"})}))}function Bw(t,e,n,r){let i,o=null;"function"==typeof r?i=r:(o=t.commands.get(r),i=()=>{t.execute(r)}),t.model.document.on("change:data",((s,a)=>{if(o&&!o.isEnabled||!e.isEnabled)return;const l=Eo(t.model.document.selection.getRanges());if(!l.isCollapsed)return;if(a.isUndo||!a.isLocal)return;const c=Array.from(t.model.document.differ.getChanges()),d=c[0];if(1!=c.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;const h=d.position.parent;if(h.is("element","codeBlock"))return;if(h.is("element","listItem")&&"function"!=typeof r&&!["numberedList","bulletedList","todoList"].includes(r))return;if(o&&!0===o.value)return;const u=h.getChild(0),m=t.model.createRangeOn(u);if(!m.containsRange(l)&&!l.end.isEqual(m.end))return;const g=n.exec(u.data.substr(0,l.end.offset));g&&t.model.enqueueChange((e=>{const n=e.createPositionAt(h,0),r=e.createPositionAt(h,g[0].length),o=new uc(n,r);if(!1!==i({match:g})){e.remove(o);const n=t.model.document.selection.getFirstRange(),r=e.createRangeIn(h);!h.isEmpty||r.isEqual(n)||r.containsRange(n,!0)||e.remove(h)}o.detach(),t.model.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}))}))}function Dw(t,e,n,r){let i,o;n instanceof RegExp?i=n:o=n,o=o||(t=>{let e;const n=[],r=[];for(;null!==(e=i.exec(t))&&!(e&&e.length<4);){let{index:t,1:i,2:o,3:s}=e;const a=i+o+s;t+=e[0].length-a.length;const l=[t,t+i.length],c=[t+i.length+o.length,t+i.length+o.length+s.length];n.push(l),n.push(c),r.push([t+i.length,t+i.length+o.length])}return{remove:n,format:r}}),t.model.document.on("change:data",((n,i)=>{if(i.isUndo||!i.isLocal||!e.isEnabled)return;const s=t.model,a=s.document.selection;if(!a.isCollapsed)return;const l=Array.from(s.document.differ.getChanges()),c=l[0];if(1!=l.length||"insert"!==c.type||"$text"!=c.name||1!=c.length)return;const d=a.focus,h=d.parent,{text:u,range:m}=function(t,e){let n=t.start;const r=Array.from(t.getItems()).reduce(((t,r)=>!r.is("$text")&&!r.is("$textProxy")||r.getAttribute("code")?(n=e.createPositionAfter(r),""):t+r.data),"");return{text:r,range:e.createRange(n,t.end)}}(s.createRange(s.createPositionAt(h,0),d),s),g=o(u),p=Sw(m.start,g.format,s),f=Sw(m.start,g.remove,s);p.length&&f.length&&s.enqueueChange((e=>{if(!1!==r(e,p)){for(const t of f.reverse())e.remove(t);s.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}}))}))}function Sw(t,e,n){return e.filter((t=>void 0!==t[0]&&void 0!==t[1])).map((e=>n.createRange(t.getShiftedBy(e[0]),t.getShiftedBy(e[1]))))}class Tw extends Lo{static get requires(){return[sw]}static get pluginName(){return"Autoformat"}afterInit(){const t=this.editor,e=this.editor.t;this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats(),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Revert autoformatting action"),keystroke:"Backspace"}]})}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&Bw(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&Bw(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&Bw(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&Bw(this.editor,this,/^\[\s?x\s?\]\s$/,(()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")}))}_addBasicStylesAutoformats(){const t=this.editor.commands;if(t.get("bold")){const t=Iw(this.editor,"bold");Dw(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),Dw(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(t.get("italic")){const t=Iw(this.editor,"italic");Dw(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),Dw(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(t.get("code")){const t=Iw(this.editor,"code");Dw(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(t.get("strikethrough")){const t=Iw(this.editor,"strikethrough");Dw(this.editor,this,/(~~)([^~]+)(~~)$/g,t)}}_addHeadingAutoformats(){const t=this.editor.commands.get("heading");t&&t.modelElements.filter((t=>t.match(/^heading[1-6]$/))).forEach((e=>{const n=e[7],r=new RegExp(`^(#{${n}})\\s$`);Bw(this.editor,this,r,(()=>{if(!t.isEnabled||t.value===e)return!1;this.editor.execute("heading",{value:e})}))}))}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Bw(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const t=this.editor,e=t.model.document.selection;t.commands.get("codeBlock")&&Bw(t,this,/^```$/,(()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Bw(this.editor,this,/^---$/,"horizontalLine")}}function Iw(t,e){return(n,r)=>{if(!t.commands.get(e).isEnabled)return!1;const i=t.model.schema.getValidRanges(r,e);for(const t of i)n.setAttribute(e,!0,t);n.removeSelectionAttribute(e)}}class Pw extends Mo{attributeKey;constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,r=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(n.isCollapsed)r?t.setSelectionAttribute(this.attributeKey,!0):t.removeSelectionAttribute(this.attributeKey);else{const i=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of i)r?t.setAttribute(this.attributeKey,r,e):t.removeAttribute(this.attributeKey,e)}}))}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const t of n.getRanges())for(const n of t.getItems())if(e.checkAttribute(n,this.attributeKey))return n.hasAttribute(this.attributeKey);return!1}}const Vw="bold";class Fw extends Lo{static get pluginName(){return"BoldEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Vw}),t.model.schema.setAttributeProperties(Vw,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Vw,view:"strong",upcastAlso:["b",t=>{const e=t.getStyle("font-weight");return e&&("bold"==e||Number(e)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(Vw,new Pw(t,Vw)),t.keystrokes.set("CTRL+B",Vw),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Bold text"),keystroke:"CTRL+B"}]})}}function Rw({editor:t,commandName:e,plugin:n,icon:r,label:i,keystroke:o}){return s=>{const a=t.commands.get(e),l=new s(t.locale);return l.set({label:i,icon:r,keystroke:o,isToggleable:!0}),l.bind("isEnabled").to(a,"isEnabled"),l.bind("isOn").to(a,"value"),l instanceof Ym?l.set({role:"menuitemcheckbox"}):l.set({tooltip:!0}),n.listenTo(l,"execute",(()=>{t.execute(e),t.editing.view.focus()})),l}}const Lw="bold";class zw extends Lo{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.locale.t,n=Rw({editor:t,commandName:Lw,plugin:this,icon:zu.bold,label:e("Bold"),keystroke:"CTRL+B"});t.ui.componentFactory.add(Lw,(()=>n(wm))),t.ui.componentFactory.add("menuBar:"+Lw,(()=>n(Ym)))}}const Mw="code";class Nw extends Lo{static get pluginName(){return"CodeEditing"}static get requires(){return[dw]}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Mw}),t.model.schema.setAttributeProperties(Mw,{isFormatting:!0,copyOnEnter:!1}),t.conversion.attributeToElement({model:Mw,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),t.commands.add(Mw,new Pw(t,Mw)),t.plugins.get(dw).registerAttribute(Mw),Ew(t,Mw,"code","ck-code_selected"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Move out of an inline code style"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}}var Ow=n(4199),Hw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Ow.A,Hw);Ow.A.locals;const jw="code";class qw extends Lo{static get pluginName(){return"CodeUI"}init(){const t=this.editor,e=t.locale.t,n=Rw({editor:t,commandName:jw,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 5.7 5.2 3.9v1.3l-5.6 4c-.1.2-.3.2-.5.2-.3-.1-.6-.7-.6-1l.3-.4 4.7-3.5L11.5 7l-.2-.2c-.1-.3-.1-.6 0-.8.2-.2.5-.4.8-.4a.8.8 0 0 1 .4.1zm-5.2 0L2 9.6v1.3l5.6 4c.1.2.3.2.5.2.3-.1.7-.7.6-1 0-.1 0-.3-.2-.4l-5-3.5L8.2 7l.2-.2c.1-.3.1-.6 0-.8-.2-.2-.5-.4-.8-.4a.8.8 0 0 0-.3.1z"/></svg>',label:e("Code")});t.ui.componentFactory.add(jw,(()=>n(wm))),t.ui.componentFactory.add("menuBar:"+jw,(()=>n(Ym)))}}const Uw="italic";class Ww extends Lo{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Uw}),t.model.schema.setAttributeProperties(Uw,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Uw,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Uw,new Pw(t,Uw)),t.keystrokes.set("CTRL+I",Uw),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Italic text"),keystroke:"CTRL+I"}]})}}const $w="italic";class Gw extends Lo{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.locale.t,n=Rw({editor:t,commandName:$w,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",label:e("Italic")});t.ui.componentFactory.add($w,(()=>n(wm))),t.ui.componentFactory.add("menuBar:"+$w,(()=>n(Ym)))}}const Kw="strikethrough";class Zw extends Lo{static get pluginName(){return"StrikethroughEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Kw}),t.model.schema.setAttributeProperties(Kw,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Kw,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(Kw,new Pw(t,Kw)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Strikethrough text"),keystroke:"CTRL+SHIFT+X"}]})}}const Yw="strikethrough";class Jw extends Lo{static get pluginName(){return"StrikethroughUI"}init(){const t=this.editor,e=t.locale.t,n=Rw({editor:t,commandName:Yw,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6zM6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>',keystroke:"CTRL+SHIFT+X",label:e("Strikethrough")});t.ui.componentFactory.add(Yw,(()=>n(wm))),t.ui.componentFactory.add("menuBar:"+Yw,(()=>n(Ym)))}}const Qw="subscript";class Xw extends Lo{static get pluginName(){return"SubscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Qw}),t.model.schema.setAttributeProperties(Qw,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Qw,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(Qw,new Pw(t,Qw))}}const tA="subscript";class eA extends Lo{static get pluginName(){return"SubscriptUI"}init(){const t=this.editor,e=t.locale.t,n=Rw({editor:t,commandName:tA,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.03 10.349 3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82zm8.147 7.829h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309z"/></svg>',label:e("Subscript")});t.ui.componentFactory.add(tA,(()=>n(wm))),t.ui.componentFactory.add("menuBar:"+tA,(()=>n(Ym)))}}const nA="superscript";class rA extends Lo{static get pluginName(){return"SuperscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:nA}),t.model.schema.setAttributeProperties(nA,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:nA,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(nA,new Pw(t,nA))}}const iA="superscript";class oA extends Lo{static get pluginName(){return"SuperscriptUI"}init(){const t=this.editor,e=t.locale.t,n=Rw({editor:t,commandName:iA,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.677 8.678h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309zM7.03 10.349l3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82z"/></svg>',label:e("Superscript")});t.ui.componentFactory.add(iA,(()=>n(wm))),t.ui.componentFactory.add("menuBar:"+iA,(()=>n(Ym)))}}const sA="underline";class aA extends Lo{static get pluginName(){return"UnderlineEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:sA}),t.model.schema.setAttributeProperties(sA,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:sA,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(sA,new Pw(t,sA)),t.keystrokes.set("CTRL+U","underline"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Underline text"),keystroke:"CTRL+U"}]})}}const lA="underline";class cA extends Lo{static get pluginName(){return"UnderlineUI"}init(){const t=this.editor,e=t.locale.t,n=Rw({editor:t,commandName:lA,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>',label:e("Underline"),keystroke:"CTRL+U"});t.ui.componentFactory.add(lA,(()=>n(wm))),t.ui.componentFactory.add("menuBar:"+lA,(()=>n(Ym)))}}function*dA(t,e){for(const n of e)n&&t.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}class hA extends Mo{execute(){this.editor.model.change((t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})}))}enterBlock(t){const e=this.editor.model,n=e.document.selection,r=e.schema,i=n.isCollapsed,o=n.getFirstRange(),s=o.start.parent,a=o.end.parent;if(r.isLimit(s)||r.isLimit(a))return i||s!=a||e.deleteContent(n),!1;if(i){const e=dA(t.model.schema,n.getAttributes());return uA(t,o.start),t.setSelectionAttribute(e),!0}{const r=!(o.start.isAtStart&&o.end.isAtEnd),i=s==a;if(e.deleteContent(n,{leaveUnmerged:r}),r){if(i)return uA(t,n.focus),!0;t.setSelection(a,0)}}return!1}}function uA(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}const mA={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class gA extends Xa{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",((t,e)=>{n=e.shiftKey})),e.on("beforeinput",((r,i)=>{if(!this.isEnabled)return;let o=i.inputType;Xn.isSafari&&n&&"insertParagraph"==o&&(o="insertLineBreak");const s=i.domEvent,a=mA[o];if(!a)return;const l=new Xs(e,"enter",i.targetRanges[0]);e.fire(l,new el(t,s,{isSoft:a.isSoft})),l.stop.called&&r.stop()}))}observe(){}stopObserving(){}}class pA extends Lo{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document,r=this.editor.t;e.addObserver(gA),t.commands.add("enter",new hA(t)),this.listenTo(n,"enter",((r,i)=>{n.isComposing||i.preventDefault(),i.isSoft||(t.execute("enter"),e.scrollToTheSelection())}),{priority:"low"}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:r("Insert a hard break (a new paragraph)"),keystroke:"Enter"}]})}}class fA extends Mo{execute(){const t=this.editor.model,e=t.document;t.change((n=>{!function(t,e,n){const r=n.isCollapsed,i=n.getFirstRange(),o=i.start.parent,s=i.end.parent,a=o==s;if(r){const r=dA(t.schema,n.getAttributes());bA(t,e,i.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(r)}else{const r=!(i.start.isAtStart&&i.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:r}),a?bA(t,e,n.focus):r&&e.setSelection(s,0)}}(t,n,e.selection),this.fire("afterExecute",{writer:n})}))}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=function(t,e){if(e.rangeCount>1)return!1;const n=e.anchor;if(!n||!t.checkChild(n,"softBreak"))return!1;const r=e.getFirstRange(),i=r.start.parent,o=r.end.parent;if((kA(i,t)||kA(o,t))&&i!==o)return!1;return!0}(t.schema,e.selection)}}function bA(t,e,n){const r=e.createElement("softBreak");t.insertContent(r,n),e.setSelection(r,"after")}function kA(t,e){return!t.is("rootElement")&&(e.isLimit(t)||kA(t.parent,e))}class wA extends Lo{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,r=t.editing.view,i=r.document,o=this.editor.t;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(t,{writer:e})=>e.createEmptyElement("br")}),r.addObserver(gA),t.commands.add("shiftEnter",new fA(t)),this.listenTo(i,"enter",((e,n)=>{i.isComposing||n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),r.scrollToTheSelection())}),{priority:"low"}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Insert a soft break (a <code>&lt;br&gt;</code> element)"),keystroke:"Shift+Enter"}]})}}class AA extends Mo{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,r=e.document.selection,i=Array.from(r.getSelectedBlocks()),o=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(o){const e=i.filter((t=>_A(t)||vA(n,t)));this._applyQuote(t,e)}else this._removeQuote(t,i.filter(_A))}))}_getValue(){const t=Eo(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!_A(t))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Eo(t.getSelectedBlocks());return!!n&&vA(e,n)}_removeQuote(t,e){CA(t,e).reverse().forEach((e=>{if(e.start.isAtStart&&e.end.isAtEnd)return void t.unwrap(e.start.parent);if(e.start.isAtStart){const n=t.createPositionBefore(e.start.parent);return void t.move(e,n)}e.end.isAtEnd||t.split(e.end);const n=t.createPositionAfter(e.end.parent);t.move(e,n)}))}_applyQuote(t,e){const n=[];CA(t,e).reverse().forEach((e=>{let r=_A(e.start);r||(r=t.createElement("blockQuote"),t.wrap(e,r)),n.push(r)})),n.reverse().reduce(((e,n)=>e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n))}}function _A(t){return"blockQuote"==t.parent.name?t.parent:null}function CA(t,e){let n,r=0;const i=[];for(;r<e.length;){const o=e[r],s=e[r+1];n||(n=t.createPositionBefore(o)),s&&o.nextSibling==s||(i.push(t.createRange(n,t.createPositionAfter(o))),n=null),r++}return i}function vA(t,e){const n=t.checkChild(e.parent,"blockQuote"),r=t.checkChild(["$root","blockQuote"],e);return n&&r}class yA extends Lo{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[pA,sw]}init(){const t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new AA(t)),e.register("blockQuote",{inheritAllFrom:"$container"}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer((n=>{const r=t.model.document.differ.getChanges();for(const t of r)if("insert"==t.type){const r=t.position.nodeAfter;if(!r)continue;if(r.is("element","blockQuote")&&r.isEmpty)return n.remove(r),!0;if(r.is("element","blockQuote")&&!e.checkChild(t.position,r))return n.unwrap(r),!0;if(r.is("element")){const t=n.createRangeIn(r);for(const r of t.getItems())if(r.is("element","blockQuote")&&!e.checkChild(n.createPositionBefore(r),r))return n.unwrap(r),!0}}else if("remove"==t.type){const e=t.position.parent;if(e.is("element","blockQuote")&&e.isEmpty)return n.remove(e),!0}return!1}));const n=this.editor.editing.view.document,r=t.model.document.selection,i=t.commands.get("blockQuote");this.listenTo(n,"enter",((e,n)=>{if(!r.isCollapsed||!i.value)return;r.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"}),this.listenTo(n,"delete",((e,n)=>{if("backward"!=n.direction||!r.isCollapsed||!i.value)return;const o=r.getLastPosition().parent;o.isEmpty&&!o.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"})}}var xA=n(8708),EA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(xA.A,EA);xA.A.locals;class BA extends Lo{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor;t.ui.componentFactory.add("blockQuote",(()=>{const t=this._createButton(wm);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:blockQuote",(()=>{const t=this._createButton(Ym);return t.set({role:"menuitemcheckbox"}),t}))}_createButton(t){const e=this.editor,n=e.locale,r=e.commands.get("blockQuote"),i=new t(e.locale),o=n.t;return i.set({label:o("Block quote"),icon:zu.quote,isToggleable:!0}),i.bind("isEnabled").to(r,"isEnabled"),i.bind("isOn").to(r,"value"),this.listenTo(i,"execute",(()=>{e.execute("blockQuote"),e.editing.view.focus()})),i}}class DA extends Mo{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=Eo(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&SA(e,t.schema)}execute(t={}){const e=this.editor.model,n=e.document,r=t.selection||n.selection;e.canEditAt(r)&&e.change((t=>{const n=r.getSelectedBlocks();for(const r of n)!r.is("element","paragraph")&&SA(r,e.schema)&&t.rename(r,"paragraph")}))}}function SA(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}class TA extends Mo{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let r=t.position;e.canEditAt(r)&&e.change((t=>{if(r=this._findPositionToInsertParagraph(r,t),!r)return;const i=t.createElement("paragraph");n&&e.schema.setAllowedAttributes(i,n,t),e.insertContent(i,r),t.setSelection(i,"in")}))}_findPositionToInsertParagraph(t,e){const n=this.editor.model;if(n.schema.checkChild(t,"paragraph"))return t;const r=n.schema.findAllowedParent(t,"paragraph");if(!r)return null;const i=t.parent,o=n.schema.checkChild(i,"$text");return i.isEmpty||o&&t.isAtEnd?n.createPositionAfter(i):!i.isEmpty&&o&&t.isAtStart?n.createPositionBefore(i):e.split(t,r).position}}class IA extends Lo{static get pluginName(){return"Paragraph"}init(){const t=this.editor,e=t.model;t.commands.add("paragraph",new DA(t)),t.commands.add("insertParagraph",new TA(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(t,{writer:e})=>IA.paragraphLikeElements.has(t.name)?t.isEmpty?null:e.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}static paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"])}class PA extends Mo{modelElements;constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Eo(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((e=>VA(t,e,this.editor.model.schema)))}execute(t){const e=this.editor.model,n=e.document,r=t.value;e.change((t=>{const i=Array.from(n.selection.getSelectedBlocks()).filter((t=>VA(t,r,e.schema)));for(const e of i)e.is("element",r)||t.rename(e,r)}))}}function VA(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}const FA="paragraph";class RA extends Lo{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[IA]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const r of e)"paragraph"!==r.model&&(t.model.schema.register(r.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(r),n.push(r.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new PA(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",((e,r)=>{const i=t.model.document.selection.getFirstPosition().parent;n.some((t=>i.is("element",t.model)))&&!i.is("element",FA)&&0===i.childCount&&r.writer.rename(i,FA)}))}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:fr.low+1})}}function LA(t){const e=t.t,n={Paragraph:e("Paragraph"),"Heading 1":e("Heading 1"),"Heading 2":e("Heading 2"),"Heading 3":e("Heading 3"),"Heading 4":e("Heading 4"),"Heading 5":e("Heading 5"),"Heading 6":e("Heading 6")};return t.config.get("heading.options").map((t=>{const e=n[t.title];return e&&e!=t.title&&(t.title=e),t}))}var zA=n(6269),MA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(zA.A,MA);zA.A.locals;class NA extends Lo{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=LA(t),r=e("Choose heading"),i=e("Heading");t.ui.componentFactory.add("heading",(e=>{const o={},s=new xo,a=t.commands.get("heading"),l=t.commands.get("paragraph"),c=[a];for(const t of n){const e={type:"button",model:new kb({label:t.title,class:t.class,role:"menuitemradio",withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(l,"value"),e.model.set("commandName","paragraph"),c.push(l)):(e.model.bind("isOn").to(a,"value",(e=>e===t.model)),e.model.set({commandName:"heading",commandValue:t.model})),s.add(e),o[t.model]=t.title}const d=Dp(e);return Ip(d,s,{ariaLabel:i,role:"menu"}),d.buttonView.set({ariaLabel:i,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:i}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(c,"isEnabled",((...t)=>t.some((t=>t)))),d.buttonView.bind("label").to(a,"value",l,"value",((t,e)=>{const n=e?"paragraph":t;return"boolean"==typeof n?r:o[n]?o[n]:r})),d.buttonView.bind("ariaLabel").to(a,"value",l,"value",((t,e)=>{const n=e?"paragraph":t;return"boolean"==typeof n?i:o[n]?`${o[n]}, ${i}`:i})),this.listenTo(d,"execute",(e=>{const{commandName:n,commandValue:r}=e.source;t.execute(n,r?{value:r}:void 0),t.editing.view.focus()})),d})),t.ui.componentFactory.add("menuBar:heading",(r=>{const i=new ik(r),o=t.commands.get("heading"),s=t.commands.get("paragraph"),a=[o],l=new ok(r);i.set({class:"ck-heading-dropdown"}),l.set({ariaLabel:e("Heading"),role:"menu"}),i.buttonView.set({label:e("Heading")}),i.panelView.children.add(l);for(const e of n){const n=new Kf(r,i),c=new Ym(r);n.children.add(c),l.items.add(n),c.set({isToggleable:!0,label:e.title,role:"menuitemradio",class:e.class}),c.delegate("execute").to(i),c.on("execute",(()=>{const n="paragraph"===e.model?"paragraph":"heading";t.execute(n,{value:e.model}),t.editing.view.focus()})),"paragraph"===e.model?(c.bind("isOn").to(s,"value"),a.push(s)):c.bind("isOn").to(o,"value",(t=>t===e.model))}return i.bind("isEnabled").toMany(a,"isEnabled",((...t)=>t.some((t=>t)))),i}))}}const OA=(()=>({heading1:zu.heading1,heading2:zu.heading2,heading3:zu.heading3,heading4:zu.heading4,heading5:zu.heading5,heading6:zu.heading6}))();class HA extends nl{domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];constructor(t){super(t);const e=this.document;function n(t){return(n,r)=>{r.preventDefault();const i=r.dropRange?[r.dropRange]:null,o=new mr(e,t);e.fire(o,{dataTransfer:r.dataTransfer,method:n.name,targetRanges:i,target:r.target,domEvent:r.domEvent}),o.stop.called&&r.stopPropagation()}}this.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"dragover",n("dragging"),{priority:"low"})}onDomEvent(t){const e="clipboardData"in t?t.clipboardData:t.dataTransfer,n="drop"==t.type||"paste"==t.type,r={dataTransfer:new Il(e,{cacheFiles:n})};if("drop"==t.type||"dragover"==t.type){const e=hi(t);r.dropRange=e&&this.view.domConverter.domRangeToView(e)}this.fire(t.type,t,r)}}const jA=["figcaption","li"],qA=["ol","ul"];function UA(t){if(t.is("$text")||t.is("$textProxy"))return t.data;if(t.is("element","img")&&t.hasAttribute("alt"))return t.getAttribute("alt");if(t.is("element","br"))return"\n";let e="",n=null;for(const r of t.getChildren())e+=WA(r,n)+UA(r),n=r;return e}function WA(t,e){return e?t.is("element","li")&&!t.isEmpty&&t.getChild(0).is("containerElement")||qA.includes(t.name)&&qA.includes(e.name)?"\n\n":t.is("containerElement")||e.is("containerElement")?jA.includes(t.name)||jA.includes(e.name)?"\n":t.is("element")&&t.getCustomProperty("dataPipeline:transparentRendering")||e.is("element")&&e.getCustomProperty("dataPipeline:transparentRendering")?"":"\n\n":"":""}const $A=function(t,e){return t&&ro(t,e,De)};const GA=function(t,e,n,r){var i=n.length,o=i,s=!r;if(null==t)return!o;for(t=Object(t);i--;){var a=n[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var l=(a=n[i])[0],c=t[l],d=a[1];if(s&&a[2]){if(void 0===c&&!(l in t))return!1}else{var h=new qt;if(r)var u=r(c,d,l,t,e,h);if(!(void 0===u?yl(d,c,3,r,h):u))return!1}}return!0};const KA=function(t){return t==t&&!s(t)};const ZA=function(t){for(var e=De(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,KA(i)]}return e};const YA=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}};const JA=function(t){var e=ZA(t);return 1==e.length&&e[0][2]?YA(e[0][0],e[0][1]):function(n){return n===t||GA(n,t,e)}};const QA=function(t,e){return null!=t&&e in Object(t)};const XA=function(t,e,n){for(var r=-1,i=(e=xs(e,t)).length,o=!1;++r<i;){var s=Bs(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&de(i)&&ce(s,i)&&(ne(t)||ee(t))};const t_=function(t,e){return null!=t&&XA(t,e,QA)};const e_=function(t,e){return us(t)&&KA(e)?YA(Bs(t),e):function(n){var r=Vs(n,t);return void 0===r&&r===e?t_(n,t):yl(e,r,3)}};const n_=function(t){return function(e){return null==e?void 0:e[t]}};const r_=function(t){return function(e){return Ds(e,t)}};const i_=function(t){return us(t)?n_(Bs(t)):r_(t)};const o_=function(t){return"function"==typeof t?t:null==t?co:"object"==typeof t?ne(t)?e_(t[0],t[1]):JA(t):i_(t)};const s_=function(t,e){var n={};return e=o_(e,3),$A(t,(function(t,r,i){$t(n,r,e(t,r,i))})),n};class a_ extends Lo{_markersToCopy=new Map;static get pluginName(){return"ClipboardMarkersUtils"}_registerMarkerToCopy(t,e){this._markersToCopy.set(t,e)}_copySelectedFragmentWithMarkers(t,e,n=t=>t.model.getSelectedContent(t.model.document.selection)){return this.editor.model.change((r=>{const i=r.model.document.selection;r.setSelection(e);const o=this._insertFakeMarkersIntoSelection(r,r.model.document.selection,t),s=n(r),a=this._removeFakeMarkersInsideElement(r,s);for(const[t,e]of Object.entries(o)){a[t]||=r.createRangeIn(s);for(const t of e)r.remove(t)}s.markers.clear();for(const[t,e]of Object.entries(a))s.markers.set(t,e);return r.setSelection(i),s}))}_pasteMarkersIntoTransformedElement(t,e){const n=this._getPasteMarkersFromRangeMap(t);return this.editor.model.change((t=>{const r=this._insertFakeMarkersElements(t,n),i=e(t),o=this._removeFakeMarkersInsideElement(t,i);for(const e of Object.values(r).flat())t.remove(e);for(const[e,n]of Object.entries(o))t.model.markers.has(e)||t.addMarker(e,{usingOperation:!0,affectsData:!0,range:n});return i}))}_pasteFragmentWithMarkers(t){const e=this._getPasteMarkersFromRangeMap(t.markers);t.markers.clear();for(const n of e)t.markers.set(n.name,n.range);return this.editor.model.insertContent(t)}_forceMarkersCopy(t,e,n={allowedActions:"all",copyPartiallySelected:!0,duplicateOnPaste:!0}){const r=this._markersToCopy.get(t);this._markersToCopy.set(t,n),e(),r?this._markersToCopy.set(t,r):this._markersToCopy.delete(t)}_isMarkerCopyable(t,e){const n=this._getMarkerClipboardConfig(t);if(!n)return!1;if(!e)return!0;const{allowedActions:r}=n;return"all"===r||r.includes(e)}_hasMarkerConfiguration(t){return!!this._getMarkerClipboardConfig(t)}_getMarkerClipboardConfig(t){const[e]=t.split(":");return this._markersToCopy.get(e)||null}_insertFakeMarkersIntoSelection(t,e,n){const r=this._getCopyableMarkersFromSelection(t,e,n);return this._insertFakeMarkersElements(t,r)}_getCopyableMarkersFromSelection(t,e,n){const r=Array.from(e.getRanges()),i=new Set(r.flatMap((e=>Array.from(t.model.markers.getMarkersIntersectingRange(e)))));return Array.from(i).filter((t=>{if(!this._isMarkerCopyable(t.name,n))return!1;const{copyPartiallySelected:e}=this._getMarkerClipboardConfig(t.name);if(!e){const e=t.getRange();return r.some((t=>t.containsRange(e,!0)))}return!0})).map((t=>({name:"dragstart"===n?this._getUniqueMarkerName(t.name):t.name,range:t.getRange()})))}_getPasteMarkersFromRangeMap(t,e=null){const{model:n}=this.editor;return(t instanceof Map?Array.from(t.entries()):Object.entries(t)).flatMap((([t,r])=>{if(!this._hasMarkerConfiguration(t))return[{name:t,range:r}];if(this._isMarkerCopyable(t,e)){const e=this._getMarkerClipboardConfig(t),i=n.markers.has(t)&&"$graveyard"===n.markers.get(t).getRange().root.rootName;return(e.duplicateOnPaste||i)&&(t=this._getUniqueMarkerName(t)),[{name:t,range:r}]}return[]}))}_insertFakeMarkersElements(t,e){const n={},r=e.flatMap((t=>{const{start:e,end:n}=t.range;return[{position:e,marker:t,type:"start"},{position:n,marker:t,type:"end"}]})).sort((({position:t},{position:e})=>t.isBefore(e)?1:-1));for(const{position:e,marker:i,type:o}of r){const r=t.createElement("$marker",{"data-name":i.name,"data-type":o});n[i.name]||(n[i.name]=[]),n[i.name].push(r),t.insert(r,e)}return n}_removeFakeMarkersInsideElement(t,e){const n=this._getAllFakeMarkersFromElement(t,e).reduce(((e,n)=>{const r=n.markerElement&&t.createPositionBefore(n.markerElement);let i=e[n.name],o=!1;if(i&&i.start&&i.end){this._getMarkerClipboardConfig(n.name).duplicateOnPaste?e[this._getUniqueMarkerName(n.name)]=e[n.name]:o=!0,i=null}return o||(e[n.name]={...i,[n.type]:r}),n.markerElement&&t.remove(n.markerElement),e}),{});return s_(n,(n=>new Ql(n.start||t.createPositionFromPath(e,[0]),n.end||t.createPositionAt(e,"end"))))}_getAllFakeMarkersFromElement(t,e){const n=Array.from(t.createRangeIn(e)).flatMap((({item:t})=>{if(!t.is("element","$marker"))return[];const e=t.getAttribute("data-name"),n=t.getAttribute("data-type");return[{markerElement:t,name:e,type:n}]})),r=[],i=[];for(const t of n){if("end"===t.type){n.some((e=>e.name===t.name&&"start"===e.type))||r.push({markerElement:null,name:t.name,type:"start"})}if("start"===t.type){n.some((e=>e.name===t.name&&"end"===e.type))||i.unshift({markerElement:null,name:t.name,type:"end"})}}return[...r,...n,...i]}_getUniqueMarkerName(t){const e=t.split(":"),n=pr().substring(1,6);return 3===e.length?`${e.slice(0,2).join(":")}:${n}`:`${e.join(":")}:${n}`}}class l_ extends Lo{static get pluginName(){return"ClipboardPipeline"}static get requires(){return[a_]}init(){this.editor.editing.view.addObserver(HA),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(t,e,n){const r=this.editor.plugins.get("ClipboardMarkersUtils");this.editor.model.enqueueChange({isUndoable:"cut"===n},(()=>{const i=r._copySelectedFragmentWithMarkers(n,e);this.fire("outputTransformation",{dataTransfer:t,content:i,method:n})}))}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,r=n.document,i=this.editor.plugins.get("ClipboardMarkersUtils");this.listenTo(r,"clipboardInput",((e,n)=>{"paste"!=n.method||t.model.canEditAt(t.model.document.selection)||e.stop()}),{priority:"highest"}),this.listenTo(r,"clipboardInput",((t,e)=>{const r=e.dataTransfer;let i;if(e.content)i=e.content;else{let t="";r.getData("text/html")?t=function(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((t,e)=>1==e.length?" ":e)).replace(/<!--[\s\S]*?-->/g,"")}(r.getData("text/html")):r.getData("text/plain")&&(((o=(o=r.getData("text/plain")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||o.includes("<br>"))&&(o=`<p>${o}</p>`),t=o),i=this.editor.data.htmlProcessor.toView(t)}var o;const s=new mr(this,"inputTransformation");this.fire(s,{content:i,dataTransfer:r,targetRanges:e.targetRanges,method:e.method}),s.stop.called&&t.stop(),n.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((t,n)=>{if(n.content.isEmpty)return;const r=this.editor.data.toModel(n.content,"$clipboardHolder");0!=r.childCount&&(t.stop(),e.change((()=>{this.fire("contentInsertion",{content:r,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((t,e)=>{e.resultRange=i._pasteFragmentWithMarkers(e.content)}),{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document,r=(t,n)=>{const r=n.dataTransfer;n.preventDefault(),this._fireOutputTransformationEvent(r,e.selection,t.name)};this.listenTo(n,"copy",r,{priority:"low"}),this.listenTo(n,"cut",((e,n)=>{t.model.canEditAt(t.model.document.selection)?r(e,n):n.preventDefault()}),{priority:"low"}),this.listenTo(this,"outputTransformation",((e,r)=>{const i=t.data.toView(r.content);n.fire("clipboardOutput",{dataTransfer:r.dataTransfer,content:i,method:r.method})}),{priority:"low"}),this.listenTo(n,"clipboardOutput",((n,r)=>{r.content.isEmpty||(r.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(r.content)),r.dataTransfer.setData("text/plain",UA(r.content))),"cut"==r.method&&t.model.deleteContent(e.selection)}),{priority:"low"})}}class c_ extends(Dr()){_stack=[];add(t,e){const n=this._stack,r=n[0];this._insertDescriptor(t);const i=n[0];r===i||d_(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:e})}remove(t,e){const n=this._stack,r=n[0];this._removeDescriptor(t);const i=n[0];r===i||d_(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t.id));if(d_(t,e[n]))return;n>-1&&e.splice(n,1);let r=0;for(;e[r]&&h_(e[r],t);)r++;e.splice(r,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t));n>-1&&e.splice(n,1)}}function d_(t,e){return t&&e&&t.priority==e.priority&&u_(t.classes)==u_(e.classes)}function h_(t,e){return t.priority>e.priority||!(t.priority<e.priority)&&u_(t.classes)>u_(e.classes)}function u_(t){return Array.isArray(t)?t.sort().join(","):t}const m_='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',g_="ck-widget_selected";function p_(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function f_(t,e,n={}){if(!t.is("containerElement"))throw new kr("widget-to-widget-wrong-element-type",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass("ck-widget",t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=v_,e.setCustomProperty("widgetLabel",[],t),n.label&&function(t,e){const n=t.getCustomProperty("widgetLabel");n.push(e)}(t,n.label),n.hasSelectionHandle&&function(t,e){const n=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(t){const e=this.toDomElement(t),n=new pm;return n.set("content",m_),n.render(),e.appendChild(n.element),e}));e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t)}(t,e),w_(t,e),t}function b_(t,e,n){if(e.classes&&n.addClass(eo(e.classes),t),e.attributes)for(const r in e.attributes)n.setAttribute(r,e.attributes[r],t)}function k_(t,e,n){if(e.classes&&n.removeClass(eo(e.classes),t),e.attributes)for(const r in e.attributes)n.removeAttribute(r,t)}function w_(t,e,n=b_,r=k_){const i=new c_;i.on("change:top",((e,i)=>{i.oldDescriptor&&r(t,i.oldDescriptor,i.writer),i.newDescriptor&&n(t,i.newDescriptor,i.writer)}));e.setCustomProperty("addHighlight",((t,e,n)=>i.add(e,n)),t),e.setCustomProperty("removeHighlight",((t,e,n)=>i.remove(e,n)),t)}function A_(t,e,n={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("role","textbox",t),e.setAttribute("tabindex","-1",t),n.label&&e.setAttribute("aria-label",n.label,t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",((n,r,i)=>{e.setAttribute("contenteditable",i?"false":"true",t)})),t.on("change:isFocused",((n,r,i)=>{i?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)})),w_(t,e),t}function __(t,e){const n=t.getSelectedElement();if(n){const r=B_(t);if(r)return e.createRange(e.createPositionAt(n,r))}return e.schema.findOptimalInsertionRange(t)}function C_(t,e){return(n,r)=>{const{mapper:i,viewPosition:o}=r,s=i.findMappedViewAncestor(o);if(!e(s))return;const a=i.toModelElement(s);r.modelPosition=t.createPositionAt(a,o.isAtStart?"before":"after")}}function v_(){return null}function y_(t){const e=t=>{const{width:e,paddingLeft:n,paddingRight:r}=t.ownerDocument.defaultView.getComputedStyle(t);return parseFloat(e)-(parseFloat(n)||0)-(parseFloat(r)||0)},n=t.parentElement;if(!n)return 0;let r=e(n);let i=0,o=n;for(;isNaN(r);){if(o=o.parentElement,++i>5)return 0;r=e(o)}return r}const x_="widget-type-around";function E_(t,e,n){return!!t&&p_(t)&&!n.isInline(e)}function B_(t){return t.getAttribute(x_)}var D_=n(8508),S_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(D_.A,S_);D_.A.locals;const T_=["before","after"],I_=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,P_="ck-widget__type-around_disabled";class V_ extends Lo{_currentFakeCaretModelElement=null;static get pluginName(){return"WidgetTypeAround"}static get requires(){return[pA,sw]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",((n,r,i)=>{e.change((t=>{for(const n of e.document.roots)i?t.removeClass(P_,n):t.addClass(P_,n)})),i||t.model.change((t=>{t.removeSelectionAttribute(x_)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,r=n.editing.view,i=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:i}),r.focus(),r.scrollToTheSelection()}_listenToIfEnabled(t,e,n,r){this.listenTo(t,e,((...t)=>{this.isEnabled&&n(...t)}),r)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=B_(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,r={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",((t,i,o)=>{const s=o.mapper.toViewElement(i.item);if(s&&E_(s,i.item,e)){!function(t,e,n){const r=t.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(t){const n=this.toDomElement(t);return function(t,e){for(const n of T_){const r=new Nu({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${n}`],title:e[n],"aria-hidden":"true"},children:[t.ownerDocument.importNode(I_,!0)]});t.appendChild(r.render())}}(n,e),function(t){const e=new Nu({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render())}(n),n}));t.insert(t.createPositionAt(n,"end"),r)}(o.writer,r,s);s.getCustomProperty("widgetLabel").push((()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))}}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,r=e.schema,i=t.editing.view;function o(t){return`ck-widget_type-around_show-fake-caret_${t}`}this._listenToIfEnabled(i.document,"arrowKey",((t,e)=>{this._handleArrowKeyPress(t,e)}),{context:[p_,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",((e,n)=>{n.directChange&&t.model.change((t=>{t.removeSelectionAttribute(x_)}))})),this._listenToIfEnabled(e.document,"change:data",(()=>{const e=n.getSelectedElement();if(e){if(E_(t.editing.mapper.toViewElement(e),e,r))return}t.model.change((t=>{t.removeSelectionAttribute(x_)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",((t,e,n)=>{const i=n.writer;if(this._currentFakeCaretModelElement){const t=n.mapper.toViewElement(this._currentFakeCaretModelElement);t&&(i.removeClass(T_.map(o),t),this._currentFakeCaretModelElement=null)}const s=e.selection.getSelectedElement();if(!s)return;const a=n.mapper.toViewElement(s);if(!E_(a,s,r))return;const l=B_(e.selection);l&&(i.addClass(o(l),a),this._currentFakeCaretModelElement=s)})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",((e,n,r)=>{r||t.model.change((t=>{t.removeSelectionAttribute(x_)}))}))}_handleArrowKeyPress(t,e){const n=this.editor,r=n.model,i=r.document.selection,o=r.schema,s=n.editing.view,a=function(t,e){const n=Ji(t,e);return"down"===n||"right"===n}(e.keyCode,n.locale.contentLanguageDirection),l=s.document.selection.getSelectedElement();let c;E_(l,n.editing.mapper.toModelElement(l),o)?c=this._handleArrowKeyPressOnSelectedWidget(a):i.isCollapsed?c=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):e.shiftKey||(c=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),c&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=B_(e.document.selection);return e.change((e=>{if(!n)return e.setSelectionAttribute(x_,t?"after":"before"),!0;if(!(n===(t?"after":"before")))return e.removeSelectionAttribute(x_),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,r=n.schema,i=e.plugins.get("Widget"),o=i._getObjectElementNextToSelection(t);return!!E_(e.editing.mapper.toViewElement(o),o,r)&&(n.change((e=>{i._setSelectionOverElement(o),e.setSelectionAttribute(x_,t?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,r=n.schema,i=e.editing.mapper,o=n.document.selection,s=t?o.getLastPosition().nodeBefore:o.getFirstPosition().nodeAfter;return!!E_(i.toViewElement(s),s,r)&&(n.change((e=>{e.setSelection(s,"on"),e.setSelectionAttribute(x_,t?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",((n,r)=>{const i=r.domTarget.closest(".ck-widget__type-around__button");if(!i)return;const o=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(i),s=function(t,e){const n=t.closest(".ck-widget");return e.mapDomToView(n)}(i,e.domConverter),a=t.editing.mapper.toModelElement(s);this._insertParagraph(a,o),r.preventDefault(),n.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",((n,r)=>{if("atTarget"!=n.eventPhase)return;const i=e.getSelectedElement(),o=t.editing.mapper.toViewElement(i),s=t.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:E_(o,i,s)&&(this._insertParagraph(i,r.isSoft?"before":"after"),a=!0),a&&(r.preventDefault(),n.stop())}),{context:p_})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",((e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)}),{priority:"high"}),Xn.isAndroid?this._listenToIfEnabled(t,"keydown",((t,e)=>{229==e.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()})):this._listenToIfEnabled(t,"compositionstart",(()=>{this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,e=t.editing.view,n=t.model,r=n.schema;this._listenToIfEnabled(e.document,"delete",((e,i)=>{if("atTarget"!=e.eventPhase)return;const o=B_(n.document.selection);if(!o)return;const s=i.direction,a=n.document.selection.getSelectedElement(),l="forward"==s;if("before"===o===l)t.execute("delete",{selection:n.createSelection(a,"on")});else{const e=r.getNearestSelectionRange(n.createPositionAt(a,o),s);if(e)if(e.isCollapsed){const i=n.createSelection(e.start);if(n.modifySelection(i,{direction:s}),i.focus.isEqual(e.start)){const t=function(t,e){let n=e;for(const r of e.getAncestors({parentFirst:!0})){if(r.childCount>1||t.isLimit(r))break;n=r}return n}(r,e.start.parent);n.deleteContent(n.createSelection(t,"on"),{doNotAutoparagraph:!0})}else n.change((n=>{n.setSelection(e),t.execute(l?"deleteForward":"delete")}))}else n.change((n=>{n.setSelection(e),t.execute(l?"deleteForward":"delete")}))}i.preventDefault(),e.stop()}),{context:p_})}_enableInsertContentIntegration(){const t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",((t,[r,i])=>{if(i&&!i.is("documentSelection"))return;const o=B_(n);return o?(t.stop(),e.change((t=>{const i=n.getSelectedElement(),s=e.createPositionAt(i,o),a=t.createSelection(s),l=e.insertContent(r,a);return t.setSelection(a),l}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",((t,n)=>{const[,r,i={}]=n;if(r&&!r.is("documentSelection"))return;const o=B_(e);o&&(i.findOptimalPosition=o,n[3]=i)}),{priority:"high"})}_enableDeleteContentIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",((t,[n])=>{if(n&&!n.is("documentSelection"))return;B_(e)&&t.stop()}),{priority:"high"})}}function F_(t){const e=t.model;return(n,r)=>{const i=r.keyCode==$i.arrowup,o=r.keyCode==$i.arrowdown,s=r.shiftKey,a=e.document.selection;if(!i&&!o)return;const l=o;if(s&&function(t,e){return!t.isCollapsed&&t.isBackward==e}(a,l))return;const c=function(t,e,n){const r=t.model;if(n){const t=e.isCollapsed?e.focus:e.getLastPosition(),n=R_(r,t,"forward");if(!n)return null;const i=r.createRange(t,n),o=L_(r.schema,i,"backward");return o?r.createRange(t,o):null}{const t=e.isCollapsed?e.focus:e.getFirstPosition(),n=R_(r,t,"backward");if(!n)return null;const i=r.createRange(n,t),o=L_(r.schema,i,"forward");return o?r.createRange(o,t):null}}(t,a,l);if(c){if(c.isCollapsed){if(a.isCollapsed)return;if(s)return}(c.isCollapsed||function(t,e,n){const r=t.model,i=t.view.domConverter;if(n){const t=r.createSelection(e.start);r.modifySelection(t),t.focus.isAtEnd||e.start.isEqual(t.focus)||(e=r.createRange(t.focus,e.end))}const o=t.mapper.toViewRange(e),s=i.viewRangeToDom(o),a=fi.getDomRangeRects(s);let l;for(const t of a)if(void 0!==l){if(Math.round(t.top)>=l)return!1;l=Math.max(l,Math.round(t.bottom))}else l=Math.round(t.bottom);return!0}(t,c,l))&&(e.change((t=>{const n=l?c.end:c.start;if(s){const r=e.createSelection(a.anchor);r.setFocus(n),t.setSelection(r)}else t.setSelection(n)})),n.stop(),r.preventDefault(),r.stopPropagation())}}}function R_(t,e,n){const r=t.schema,i=t.createRangeIn(e.root),o="forward"==n?"elementStart":"elementEnd";for(const{previousPosition:t,item:s,type:a}of i.getWalker({startPosition:e,direction:n})){if(r.isLimit(s)&&!r.isInline(s))return t;if(a==o&&r.isBlock(s))return null}return null}function L_(t,e,n){const r="backward"==n?e.end:e.start;if(t.checkChild(r,"$text"))return r;for(const{nextPosition:r}of e.getWalker({direction:n}))if(t.checkChild(r,"$text"))return r;return null}var z_=n(695),M_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(z_.A,M_);z_.A.locals;class N_ extends Lo{_previouslySelected=new Set;static get pluginName(){return"Widget"}static get requires(){return[V_,sw]}init(){const t=this.editor,e=t.editing.view,n=e.document,r=t.t;this.editor.editing.downcastDispatcher.on("selection",((e,n,r)=>{const i=r.writer,o=n.selection;if(o.isCollapsed)return;const s=o.getSelectedElement();if(!s)return;const a=t.editing.mapper.toViewElement(s);var l;p_(a)&&(r.consumable.consume(o,"selection")&&i.setSelection(i.createRangeOn(a),{fake:!0,label:(l=a,l.getCustomProperty("widgetLabel").reduce(((t,e)=>"function"==typeof e?t?t+". "+e():e():t?t+". "+e:e),""))}))})),this.editor.editing.downcastDispatcher.on("selection",((t,e,n)=>{this._clearPreviouslySelectedWidgets(n.writer);const r=n.writer,i=r.document.selection;let o=null;for(const t of i.getRanges())for(const e of t){const t=e.item;p_(t)&&!O_(t,o)&&(r.addClass(g_,t),this._previouslySelected.add(t),o=t)}}),{priority:"low"}),e.addObserver(Hh),this.listenTo(n,"mousedown",((...t)=>this._onMousedown(...t))),this.listenTo(n,"arrowKey",((...t)=>{this._handleSelectionChangeOnArrowKeyPress(...t)}),{context:[p_,"$text"]}),this.listenTo(n,"arrowKey",((...t)=>{this._preventDefaultOnArrowKeyPress(...t)}),{context:"$root"}),this.listenTo(n,"arrowKey",F_(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",((t,e)=>{this._handleDelete("forward"==e.direction)&&(e.preventDefault(),t.stop())}),{context:"$root"}),this.listenTo(n,"tab",((t,e)=>{"atTarget"==t.eventPhase&&(e.shiftKey||this._selectFirstNestedEditable()&&(e.preventDefault(),t.stop()))}),{context:p_,priority:"low"}),this.listenTo(n,"tab",((t,e)=>{e.shiftKey&&this._selectAncestorWidget()&&(e.preventDefault(),t.stop())}),{priority:"low"}),this.listenTo(n,"keydown",((t,e)=>{e.keystroke==$i.esc&&this._selectAncestorWidget()&&(e.preventDefault(),t.stop())}),{priority:"low"}),t.accessibility.addKeystrokeInfoGroup({id:"widget",label:r("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:r("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:r("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:r("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:r("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:r("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(t,e){const n=this.editor,r=n.editing.view,i=r.document;let o=e.target;if(!o)return;if(e.domEvent.detail>=3)return void(this._selectBlockContent(o)&&e.preventDefault());if(!p_(o)){const t=function(t){let e=t;for(;e;){if(e.is("editableElement")||p_(e))return e;e=e.parent}return null}(o);if(!t)return;if(p_(t))o=t;else{const t=function(t,e){const n=hi(e.domEvent);let r=null;r=n?t.domConverter.domRangeToView(n):t.createRange(t.createPositionAt(e.target,0));if(!r)return null;const i=r.start;if(!i.parent)return null;let o=i.parent;i.parent.is("editableElement")&&(i.isAtEnd&&i.nodeBefore?o=i.nodeBefore:i.isAtStart&&i.nodeAfter&&(o=i.nodeAfter));if(o.is("$text"))return o.parent;return o}(r,e);if(!t||!p_(t))return;o=t}}Xn.isAndroid&&e.preventDefault(),i.isFocused||r.focus();const s=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(s)}_selectBlockContent(t){const e=this.editor,n=e.model,r=e.editing.mapper,i=n.schema,o=r.findMappedViewAncestor(this.editor.editing.view.createPositionAt(t,0)),s=function(t,e){for(const n of t.getAncestors({includeSelf:!0,parentFirst:!0})){if(e.checkChild(n,"$text"))return n;if(e.isLimit(n)&&!e.isObject(n))break}return null}(r.toModelElement(o),n.schema);return!!s&&(n.change((t=>{const e=i.isLimit(s)?null:function(t,e){const n=new Ul({startPosition:t});for(const{item:t}of n){if(e.isLimit(t)||!t.is("element"))return null;if(e.checkChild(t,"$text"))return t}return null}(t.createPositionAfter(s),i),n=t.createPositionAt(s,0),r=e?t.createPositionAt(e,0):t.createPositionAt(s,"end");t.setSelection(t.createRange(n,r))})),!0)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,r=this.editor.model,i=r.schema,o=r.document.selection,s=o.getSelectedElement(),a=Ji(n,this.editor.locale.contentLanguageDirection),l="down"==a||"right"==a,c="up"==a||"down"==a;if(s&&i.isObject(s)){const n=l?o.getLastPosition():o.getFirstPosition(),s=i.getNearestSelectionRange(n,l?"forward":"backward");return void(s&&(r.change((t=>{t.setSelection(s)})),e.preventDefault(),t.stop()))}if(!o.isCollapsed&&!e.shiftKey){const n=o.getFirstPosition(),s=o.getLastPosition(),a=n.nodeAfter,c=s.nodeBefore;return void((a&&i.isObject(a)||c&&i.isObject(c))&&(r.change((t=>{t.setSelection(l?s:n)})),e.preventDefault(),t.stop()))}if(!o.isCollapsed)return;const d=this._getObjectElementNextToSelection(l);if(d&&i.isObject(d)){if(i.isInline(d)&&c)return;this._setSelectionOverElement(d),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,r=n.schema,i=n.document.selection.getSelectedElement();i&&r.isObject(i)&&(e.preventDefault(),t.stop())}_handleDelete(t){const e=this.editor.model.document.selection;if(!this.editor.model.canEditAt(e))return;if(!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change((t=>{let r=e.anchor.parent;for(;r.isEmpty;){const e=r;r=e.parent,t.remove(e)}this._setSelectionOverElement(n)})),!0):void 0}_setSelectionOverElement(t){this.editor.model.change((e=>{e.setSelection(e.createRangeOn(t))}))}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,r=e.document.selection,i=e.createSelection(r);if(e.modifySelection(i,{direction:t?"forward":"backward"}),i.isEqual(r))return null;const o=t?i.focus.nodeBefore:i.focus.nodeAfter;return o&&n.isObject(o)?o:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(g_,e);this._previouslySelected.clear()}_selectFirstNestedEditable(){const t=this.editor,e=this.editor.editing.view.document;for(const n of e.selection.getFirstRange().getItems())if(n.is("editableElement")){const e=t.editing.mapper.toModelElement(n);if(!e)continue;const r=t.model.createPositionAt(e,0),i=t.model.schema.getNearestSelectionRange(r,"forward");return t.model.change((t=>{t.setSelection(i)})),!0}return!1}_selectAncestorWidget(){const t=this.editor,e=t.editing.mapper,n=t.editing.view.document.selection.getFirstPosition().parent,r=(n.is("$text")?n.parent:n).findAncestor(p_);if(!r)return!1;const i=e.toModelElement(r);return!!i&&(t.model.change((t=>{t.setSelection(i,"on")})),!0)}}function O_(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}class H_ extends Lo{_toolbarDefinitions=new Map;_balloon;static get requires(){return[yb]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",(e=>{(function(t){const e=t.getSelectedElement();return!(!e||!p_(e))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:r,balloonClassName:i="ck-toolbar-container"}){if(!n.length)return void wr("widget-toolbar-no-items",{toolbarId:t});const o=this.editor,s=o.t,a=new bp(o.locale);if(a.ariaLabel=e||s("Widget toolbar"),this._toolbarDefinitions.has(t))throw new kr("widget-toolbar-duplicated",this,{toolbarId:t});const l={view:a,getRelatedElement:r,balloonClassName:i,itemsConfig:n,initialized:!1};o.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{const t=r(o.editing.view.document.selection);t&&this._showToolbar(l,t)},afterBlur:()=>{this._hideToolbar(l)}}),this._toolbarDefinitions.set(t,l)}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const r of this._toolbarDefinitions.values()){const i=r.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&i)if(this.editor.ui.focusTracker.isFocused){const o=i.getAncestors().length;o>t&&(t=o,e=i,n=r)}else this._isToolbarVisible(r)&&this._hideToolbar(r);else this._isToolbarInBalloon(r)&&this._hideToolbar(r)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?j_(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:q_(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const t of this._toolbarDefinitions.values())if(this._isToolbarVisible(t)){const e=t.getRelatedElement(this.editor.editing.view.document.selection);j_(this.editor,e)}})))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function j_(t,e){const n=t.plugins.get("ContextualBalloon"),r=q_(t,e);n.updatePosition(r)}function q_(t,e){const n=t.editing.view,r=op.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[r.northArrowSouth,r.northArrowSouthWest,r.northArrowSouthEast,r.southArrowNorth,r.southArrowNorthWest,r.southArrowNorthEast,r.viewportStickyNorth]}}class U_ extends(jr()){_referenceCoordinates;_options;_originalWidth;_originalHeight;_originalWidthPercents;_aspectRatio;constructor(t){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(t,e,n){const r=new fi(e);this.activeHandlePosition=function(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const n of e)if(t.classList.contains(W_(n)))return n}(t),this._referenceCoordinates=function(t,e){const n=new fi(t),r=e.split("-"),i={x:"right"==r[1]?n.right:n.left,y:"bottom"==r[0]?n.bottom:n.top};return i.x+=t.ownerDocument.defaultView.scrollX,i.y+=t.ownerDocument.defaultView.scrollY,i}(e,function(t){const e=t.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return`${n[e[0]]}-${n[e[1]]}`}(this.activeHandlePosition)),this._originalWidth=r.width,this._originalHeight=r.height,this._aspectRatio=r.width/r.height;const i=n.style.width;i&&i.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(i):this._originalWidthPercents=function(t,e=new fi(t)){const n=y_(t);return n?e.width/n*100:0}(n,r)}update(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}function W_(t){return`ck-widget__resizer__handle-${t}`}class $_ extends lm{constructor(){super();const t=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",t.to("_viewPosition",(t=>t?`ck-orientation-${t}`:""))],style:{display:t.if("_isVisible","none",(t=>!t))}},children:[{text:t.to("_label")}]})}_bindToState(t,e){this.bind("_isVisible").to(e,"proposedWidth",e,"proposedHeight",((t,e)=>null!==t&&null!==e)),this.bind("_label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",((e,n,r)=>"px"===t.unit?`${e}×${n}`:`${r}%`)),this.bind("_viewPosition").to(e,"activeHandlePosition",e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",((t,e,n)=>e<50||n<50?"above-center":t))}_dismiss(){this.unbind(),this._isVisible=!1}}class G_ extends(jr()){_state;_sizeView;_options;_viewResizerWrapper=null;_initialViewWidth;constructor(t){super(),this._options=t,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",((t,e)=>t&&e)),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(t=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),t.stop())}),{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change((t=>{t.removeClass("ck-hidden",this._viewResizerWrapper)}))}hide(){this._options.editor.editing.view.change((t=>{t.addClass("ck-hidden",this._viewResizerWrapper)}))}attach(){const t=this,e=this._options.viewElement;this._options.editor.editing.view.change((n=>{const r=n.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(e){const n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),n}));n.insert(n.createPositionAt(e,"end"),r),n.addClass("ck-widget_with-resizer",e),this._viewResizerWrapper=r,this.isVisible||this.hide()})),this.on("change:isVisible",(()=>{this.isVisible?(this.show(),this.redraw()):this.hide()}))}begin(t){this._state=new U_(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(t,this._getHandleHost(),this._getResizeHost())}updateSize(t){const e=this._proposeNewSize(t);this._options.editor.editing.view.change((t=>{const n=this._options.unit||"%",r=("%"===n?e.widthPercents:e.width)+n;t.setStyle("width",r,this._options.viewElement)}));const n=this._getHandleHost(),r=new fi(n),i=Math.round(r.width),o=Math.round(r.height),s=new fi(n);e.width=Math.round(s.width),e.height=Math.round(s.height),this.redraw(r),this.state.update({...e,handleHostWidth:i,handleHostHeight:o})}commit(){const t=this._options.unit||"%",e=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(e)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(t){const e=this._domResizerWrapper;if(!((n=e)&&n.ownerDocument&&n.ownerDocument.contains(n)))return;var n;const r=e.parentElement,i=this._getHandleHost(),o=this._viewResizerWrapper,s=[o.getStyle("width"),o.getStyle("height"),o.getStyle("left"),o.getStyle("top")];let a;if(r.isSameNode(i)){const e=t||new fi(i);a=[e.width+"px",e.height+"px",void 0,void 0]}else a=[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];"same"!==Zr(s,a)&&this._options.editor.editing.view.change((t=>{t.setStyle({width:a[0],height:a[1],left:a[2],top:a[3]},o)}))}containsHandle(t){return this._domResizerWrapper.contains(t)}static isResizeHandle(t){return t.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss();this._options.editor.editing.view.change((t=>{t.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(t){const e=this.state,n={x:(r=t).pageX,y:r.pageY};var r;const i=!this._options.isCentered||this._options.isCentered(this),o={x:e._referenceCoordinates.x-(n.x+e.originalWidth),y:n.y-e.originalHeight-e._referenceCoordinates.y};i&&e.activeHandlePosition.endsWith("-right")&&(o.x=n.x-(e._referenceCoordinates.x+e.originalWidth)),i&&(o.x*=2);let s=Math.abs(e.originalWidth+o.x),a=Math.abs(e.originalHeight+o.y);return"width"==(s/e.aspectRatio>a?"width":"height")?a=s/e.aspectRatio:s=a*e.aspectRatio,{width:Math.round(s),height:Math.round(a),widthPercents:Math.min(Math.round(e.originalWidthPercents/e.originalWidth*s*100)/100,100)}}_getResizeHost(){const t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t)}_getHandleHost(){const t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const r of e)t.appendChild(new Nu({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(n=r,`ck-widget__resizer__handle-${n}`)}}).render());var n}_appendSizeUI(t){this._sizeView=new $_,this._sizeView.render(),t.appendChild(this._sizeView.element)}}var K_=n(4095),Z_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(K_.A,Z_);K_.A.locals;class Y_ extends Lo{_resizers=new Map;_observer;_redrawSelectedResizerThrottled;static get pluginName(){return"WidgetResize"}init(){const t=this.editor.editing,e=Yn.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),t.view.addObserver(Hh),this._observer=new(oi()),this.listenTo(t.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(e,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(e,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=R((()=>this.redrawSelectedResizer()),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[t,e]of this._resizers)t.isAttached()||(this._resizers.delete(t),e.destroy())}),{priority:"lowest"}),this._observer.listenTo(Yn.window,"resize",this._redrawSelectedResizerThrottled);const n=this.editor.editing.view.document.selection;n.on("change",(()=>{const t=n.getSelectedElement(),e=this.getResizerByViewElement(t)||null;e?this.select(e):this.deselect()}))}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const t of this._resizers.values())t.destroy();this._redrawSelectedResizerThrottled.cancel()}select(t){this.deselect(),this.selectedResizer=t,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(t){const e=new G_(t),n=this.editor.plugins;if(e.attach(),n.has("WidgetToolbarRepository")){const t=n.get("WidgetToolbarRepository");e.on("begin",(()=>{t.forceDisabled("resize")}),{priority:"lowest"}),e.on("cancel",(()=>{t.clearForceDisabled("resize")}),{priority:"highest"}),e.on("commit",(()=>{t.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(t.viewElement,e);const r=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(r)==e&&this.select(e),e}getResizerByViewElement(t){return this._resizers.get(t)}_getResizerByHandle(t){for(const e of this._resizers.values())if(e.containsHandle(t))return e}_mouseDownListener(t,e){const n=e.domTarget;G_.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n)||null,this._activeResizer&&(this._activeResizer.begin(n),t.stop(),e.preventDefault()))}_mouseMoveListener(t,e){this._activeResizer&&this._activeResizer.updateSize(e)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}const J_=vi("px");class Q_ extends lm{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",t.if("isVisible","ck-hidden",(t=>!t))],style:{left:t.to("left",(t=>J_(t))),top:t.to("top",(t=>J_(t))),width:t.to("width",(t=>J_(t)))}}})}}class X_ extends Lo{removeDropMarkerDelayed=To((()=>this.removeDropMarker()),40);_updateDropMarkerThrottled=R((t=>this._updateDropMarker(t)),40);_reconvertMarkerThrottled=R((()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")}),0);_dropTargetLineView=new Q_;_domEmitter=new(oi());_scrollables=new Map;static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:t}of this._scrollables.values())t.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(t,e,n,r,i,o){this.removeDropMarkerDelayed.cancel();const s=tC(this.editor,t,e,n,r,i,o);if(s)return o&&o.containsRange(s)?this.removeDropMarker():void this._updateDropMarkerThrottled(s)}getFinalDropRange(t,e,n,r,i,o){const s=tC(this.editor,t,e,n,r,i,o);return this.removeDropMarker(),s}removeDropMarker(){const t=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,t.markers.has("drop-target")&&t.change((t=>{t.removeMarker("drop-target")}))}_setupDropMarker(){const t=this.editor;t.ui.view.body.add(this._dropTargetLineView),t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);e.markerRange.isCollapsed?this._updateDropTargetLine(e.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change((e=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||e.updateMarker("drop-target",{range:t}):e.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})}))}_createDropTargetPosition(t){return t.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(t){const e=this.toDomElement(t);return e.append("",t.createElement("span"),""),e}))}_updateDropTargetLine(t){const e=this.editor.editing,n=t.start.nodeBefore,r=t.start.nodeAfter,i=t.start.parent,o=n?e.mapper.toViewElement(n):null,s=o?e.view.domConverter.mapViewToDom(o):null,a=r?e.mapper.toViewElement(r):null,l=a?e.view.domConverter.mapViewToDom(a):null,c=e.mapper.toViewElement(i);if(!c)return;const d=e.view.domConverter.mapViewToDom(c),h=this._getScrollableRect(c),{scrollX:u,scrollY:m}=Yn.window,g=s?new fi(s):null,p=l?new fi(l):null,f=new fi(d).excludeScrollbarsAndBorders(),b=g?g.bottom:f.top,k=p?p.top:f.bottom,w=Yn.window.getComputedStyle(d),A=b<=k?(b+k)/2:k;if(h.top<A&&A<h.bottom){const t=f.left+parseFloat(w.paddingLeft),e=f.right-parseFloat(w.paddingRight),n=Math.max(t+u,h.left),r=Math.min(e+u,h.right);this._dropTargetLineView.set({isVisible:!0,left:n,top:A+m,width:r-n})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(t){const e=t.root.rootName;let n;if(this._scrollables.has(e))n=this._scrollables.get(e).domElement;else{n=function(t){let e=t;do{e=e.parentElement;const t=Yn.window.getComputedStyle(e).overflowY;if("auto"==t||"scroll"==t)break}while("BODY"!=e.tagName);return e}(this.editor.editing.view.domConverter.mapViewToDom(t)),this._domEmitter.listenTo(n,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const r=new _i(n,this._reconvertMarkerThrottled);this._scrollables.set(e,{domElement:n,resizeObserver:r})}return new fi(n).excludeScrollbarsAndBorders()}}function tC(t,e,n,r,i,o,s){const a=t.model,l=t.editing.mapper;let c=iC(t,e);for(;c;){if(!o)if(a.schema.checkChild(c,"$text")){if(n){const e=n[0].start,o=l.toModelPosition(e);if(!s||Array.from(s.getItems()).every((t=>a.schema.checkChild(o,t)))){if(a.schema.checkChild(o,"$text"))return a.createRange(o);if(e)return nC(t,iC(t,e.parent),r,i)}}}else if(a.schema.isInline(c))return nC(t,c,r,i);if(a.schema.isBlock(c))return nC(t,c,r,i);if(a.schema.checkChild(c,"$block")){const e=Array.from(c.getChildren()).filter((e=>e.is("element")&&!eC(t,e)));let n=0,o=e.length;if(0==o)return a.createRange(a.createPositionAt(c,"end"));for(;n<o-1;){const s=Math.floor((n+o)/2);"before"==rC(t,e[s],r,i)?o=s:n=s}return nC(t,e[n],r,i)}c=c.parent}return null}function eC(t,e){const n=t.editing.mapper,r=t.editing.view.domConverter,i=n.toViewElement(e);if(!i)return!0;const o=r.mapViewToDom(i);return"none"!=Yn.window.getComputedStyle(o).float}function nC(t,e,n,r){const i=t.model;return i.createRange(i.createPositionAt(e,rC(t,e,n,r)))}function rC(t,e,n,r){const i=t.editing.mapper,o=t.editing.view.domConverter,s=i.toViewElement(e),a=o.mapViewToDom(s),l=new fi(a);return t.model.schema.isInline(e)?n<(l.left+l.right)/2?"before":"after":r<(l.top+l.bottom)/2?"before":"after"}function iC(t,e){const n=t.editing.mapper,r=t.editing.view,i=n.toModelElement(e);if(i)return i;const o=r.createPositionBefore(e),s=n.findMappedViewAncestor(o);return n.toModelElement(s)}class oC extends Lo{_isBlockDragging=!1;_domEmitter=new(oi());static get pluginName(){return"DragDropBlockToolbar"}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")})),Xn.isAndroid&&this.forceDisabled("noAndroidSupport"),t.plugins.has("BlockToolbar")){const e=t.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(e,"dragstart",((t,e)=>this._handleBlockDragStart(e))),this._domEmitter.listenTo(Yn.document,"dragover",((t,e)=>this._handleBlockDragging(e))),this._domEmitter.listenTo(Yn.document,"drop",((t,e)=>this._handleBlockDragging(e))),this._domEmitter.listenTo(Yn.document,"dragend",(()=>this._handleBlockDragEnd()),{useCapture:!0}),this.isEnabled&&e.setAttribute("draggable","true"),this.on("change:isEnabled",((t,n,r)=>{e.setAttribute("draggable",r?"true":"false")}))}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(t){if(!this.isEnabled)return;const e=this.editor.model,n=e.document.selection,r=this.editor.editing.view,i=Array.from(n.getSelectedBlocks()),o=e.createRange(e.createPositionBefore(i[0]),e.createPositionAfter(i[i.length-1]));e.change((t=>t.setSelection(o))),this._isBlockDragging=!0,r.focus(),r.getObserver(HA).onDomEvent(t)}_handleBlockDragging(t){if(!this.isEnabled||!this._isBlockDragging)return;const e=t.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),n=t.clientY,r=document.elementFromPoint(e,n),i=this.editor.editing.view;r&&r.closest(".ck-editor__editable")&&i.getObserver(HA).onDomEvent({...t,type:t.type,dataTransfer:t.dataTransfer,target:r,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var sC=n(7793),aC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(sC.A,aC);sC.A.locals;class lC extends Lo{_draggedRange;_draggingUid;_draggableElement;_clearDraggableAttributesDelayed=To((()=>this._clearDraggableAttributes()),40);_blockMode=!1;_domEmitter=new(oi());_previewContainer;static get pluginName(){return"DragDrop"}static get requires(){return[l_,N_,X_,oC]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(HA),e.addObserver(Hh),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((t,e,n)=>{n||this._finalizeDragging(!1)})),Xn.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=t.editing.view,r=n.document,i=t.plugins.get(X_);this.listenTo(r,"dragstart",((t,n)=>{if(n.target&&n.target.is("editableElement"))return void n.preventDefault();if(this._prepareDraggedRange(n.target),!this._draggedRange)return void n.preventDefault();this._draggingUid=pr(),n.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",n.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const r=e.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(n.dataTransfer,r,"dragstart");const{dataTransfer:i,domTarget:o,domEvent:s}=n,{clientX:a}=s;this._updatePreview({dataTransfer:i,domTarget:o,clientX:a}),n.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(r,"dragend",((t,e)=>{this._finalizeDragging(!e.dataTransfer.isCanceled&&"move"==e.dataTransfer.dropEffect)}),{priority:"low"}),this._domEmitter.listenTo(Yn.document,"dragend",(()=>{this._blockMode=!1}),{useCapture:!0}),this.listenTo(r,"dragenter",(()=>{this.isEnabled&&n.focus()})),this.listenTo(r,"dragleave",(()=>{i.removeDropMarkerDelayed()})),this.listenTo(r,"dragging",((t,e)=>{if(!this.isEnabled)return void(e.dataTransfer.dropEffect="none");const{clientX:n,clientY:r}=e.domEvent;i.updateDropMarker(e.target,e.targetRanges,n,r,this._blockMode,this._draggedRange),this._draggedRange||(e.dataTransfer.dropEffect="copy"),Xn.isGecko||("copy"==e.dataTransfer.effectAllowed?e.dataTransfer.dropEffect="copy":["all","copyMove"].includes(e.dataTransfer.effectAllowed)&&(e.dataTransfer.dropEffect="move")),t.stop()}),{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get(X_);this.listenTo(e,"clipboardInput",((e,r)=>{if("drop"!=r.method)return;const{clientX:i,clientY:o}=r.domEvent,s=n.getFinalDropRange(r.target,r.targetRanges,i,o,this._blockMode,this._draggedRange);if(!s)return this._finalizeDragging(!1),void e.stop();this._draggedRange&&this._draggingUid!=r.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==cC(r.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(s,!0))return this._finalizeDragging(!1),void e.stop();r.targetRanges=[t.editing.mapper.toViewRange(s)]}),{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(l_);t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n=e.targetRanges.map((t=>this.editor.editing.mapper.toModelRange(t)));this.editor.model.change((t=>t.setSelection(n)))}),{priority:"high"}),t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n="move"==cC(e.dataTransfer),r=!e.resultRange||!e.resultRange.isCollapsed;this._finalizeDragging(r&&n)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",((r,i)=>{if(Xn.isAndroid||!i)return;this._clearDraggableAttributesDelayed.cancel();let o=dC(i.target);if(Xn.isBlink&&!t.isReadOnly&&!o&&!n.selection.isCollapsed){const t=n.selection.getSelectedElement();t&&p_(t)||(o=n.selection.editableElement)}o&&(e.change((t=>{t.setAttribute("draggable","true",o)})),this._draggableElement=t.editing.mapper.toModelElement(o))})),this.listenTo(n,"mouseup",(()=>{Xn.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change((e=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_finalizeDragging(t){const e=this.editor,n=e.model;if(e.plugins.get(X_).removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")){e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop")}this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(t&&this.isEnabled&&n.change((t=>{const e=n.createSelection(this._draggedRange);n.deleteContent(e,{doNotAutoparagraph:!0});const r=e.getFirstPosition().parent;r.isEmpty&&!n.schema.checkChild(r,"$text")&&n.schema.checkChild(r,"paragraph")&&t.insertElement("paragraph",r,0)})),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,r=n.document.selection,i=t?dC(t):null;if(i){const t=e.editing.mapper.toModelElement(i);if(this._draggedRange=uc.fromRange(n.createRangeOn(t)),this._blockMode=n.schema.isBlock(t),e.plugins.has("WidgetToolbarRepository")){e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}return}if(r.isCollapsed&&!r.getFirstPosition().parent.isEmpty)return;const o=Array.from(r.getSelectedBlocks()),s=r.getFirstRange();if(0==o.length)return void(this._draggedRange=uc.fromRange(s));const a=hC(n,o);if(o.length>1)this._draggedRange=uc.fromRange(a),this._blockMode=!0;else if(1==o.length){const t=s.start.isTouching(a.start)&&s.end.isTouching(a.end);this._draggedRange=uc.fromRange(t?a:s),this._blockMode=t}n.change((t=>t.setSelection(this._draggedRange.toRange())))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const r=this.editor.editing.view,i=r.document.selection.editableElement,o=r.domConverter.mapViewToDom(i),s=Yn.window.getComputedStyle(o);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=Qr(Yn.document,"div",{style:"position: fixed; left: -999999px;"}),Yn.document.body.appendChild(this._previewContainer));const a=new fi(o);if(o.contains(e))return;const l=parseFloat(s.paddingLeft),c=Qr(Yn.document,"div");c.className="ck ck-content",c.style.width=s.width,c.style.paddingLeft=`${a.left-n+l}px`,Xn.isiOS&&(c.style.backgroundColor="white"),r.domConverter.setContentOf(c,t.getData("text/html")),t.setDragImage(c,0,0),this._previewContainer.appendChild(c)}}function cC(t){return Xn.isGecko?t.dropEffect:["all","copyMove"].includes(t.effectAllowed)?"move":"copy"}function dC(t){if(t.is("editableElement"))return null;if(t.hasClass("ck-widget__selection-handle"))return t.findAncestor(p_);if(p_(t))return t;const e=t.findAncestor((t=>p_(t)||t.is("editableElement")));return p_(e)?e:null}function hC(t,e){const n=e[0],r=e[e.length-1],i=n.getCommonAncestor(r),o=t.createPositionBefore(n),s=t.createPositionAfter(r);if(i&&i.is("element")&&!t.schema.isLimit(i)){const e=t.createRangeOn(i),n=o.isTouching(e.start),r=s.isTouching(e.end);if(n&&r)return hC(t,[i])}return t.createRange(o,s)}class uC extends Lo{static get pluginName(){return"PastePlainText"}static get requires(){return[l_]}init(){const t=this.editor,e=t.model,n=t.editing.view,r=e.document.selection;n.addObserver(HA),t.plugins.get(l_).on("contentInsertion",((t,n)=>{(function(t,e){let n=e.createRangeIn(t);if(1==t.childCount){const r=t.getChild(0);r.is("element")&&e.schema.isBlock(r)&&!e.schema.isObject(r)&&!e.schema.isLimit(r)&&(n=e.createRangeIn(r))}for(const t of n.getItems()){if(!e.schema.isInline(t))return!1;if(Array.from(t.getAttributeKeys()).find((t=>e.schema.getAttributeProperties(t).isFormatting)))return!1}return!0})(n.content,e)&&e.change((t=>{const i=Array.from(r.getAttributes()).filter((([t])=>e.schema.getAttributeProperties(t).isFormatting));r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0}),i.push(...r.getAttributes());const o=t.createRangeIn(n.content);for(const n of o.getItems())for(const r of i)e.schema.checkAttribute(n,r[0])&&t.setAttribute(r[0],r[1],n)}))}))}}class mC extends Lo{static get pluginName(){return"Clipboard"}static get requires(){return[a_,l_,lC,uC]}init(){const t=this.editor,e=this.editor.t;t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Copy selected content"),keystroke:"CTRL+C"},{label:e("Paste content"),keystroke:"CTRL+V"},{label:e("Paste content as plain text"),keystroke:"CTRL+SHIFT+V"}]})}}class gC extends Mo{_stack=[];_createdBatches=new WeakSet;constructor(t){super(t),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",((t,e)=>{e[1]={...e[1]};const n=e[1];n.batchType||(n.batchType={isUndoable:!1})}),{priority:"high"}),this.listenTo(t.data,"set",((t,e)=>{e[1].batchType.isUndoable||this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const r=this.editor.model,i=r.document,o=[],s=t.map((t=>t.getTransformedByOperations(n))),a=s.flat();for(const t of s){const e=t.filter((t=>t.root!=i.graveyard)).filter((t=>!fC(t,a)));e.length&&(pC(e),o.push(e[0]))}o.length&&r.change((t=>{t.setSelection(o,{backward:e})}))}_undo(t,e){const n=this.editor.model,r=n.document;this._createdBatches.add(e);const i=t.operations.slice().filter((t=>t.isDocumentOperation));i.reverse();for(const t of i){const i=t.baseVersion+1,o=Array.from(r.history.getOperations(i)),s=Gd([t.getReversed()],o,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let i of s){const o=i.affectedSelectable;o&&!n.canEditAt(o)&&(i=new zd(i.baseVersion)),e.addOperation(i),n.applyOperation(i),r.history.setOperationAsUndone(t,i)}}}}function pC(t){t.sort(((t,e)=>t.start.isBefore(e.start)?-1:1));for(let e=1;e<t.length;e++){const n=t[e-1].getJoined(t[e],!0);n&&(e--,t.splice(e,2,n))}}function fC(t,e){return e.some((e=>e!==t&&e.containsRange(t,!0)))}class bC extends gC{execute(t=null){const e=t?this._stack.findIndex((e=>e.batch==t)):this._stack.length-1,n=this._stack.splice(e,1)[0],r=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(r,(()=>{this._undo(n.batch,r);const t=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,t)})),this.fire("revert",n.batch,r),this.refresh()}}class kC extends gC{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,(()=>{const n=t.batch.operations[t.batch.operations.length-1].baseVersion+1,r=this.editor.model.document.history.getOperations(n);this._restoreSelection(t.selection.ranges,t.selection.isBackward,r),this._undo(t.batch,e)})),this.refresh()}}class wC extends Lo{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}init(){const t=this.editor,e=t.t;this._undoCommand=new bC(t),this._redoCommand=new kC(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",((t,e)=>{const n=e[0];if(!n.isDocumentOperation)return;const r=n.batch,i=this._redoCommand.createdBatches.has(r),o=this._undoCommand.createdBatches.has(r);this._batchRegistry.has(r)||(this._batchRegistry.add(r),r.isUndoable&&(i?this._undoCommand.addBatch(r):o||(this._undoCommand.addBatch(r),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((t,e,n)=>{this._redoCommand.addBatch(n)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Undo"),keystroke:"CTRL+Z"},{label:e("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class AC extends Lo{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,r="ltr"==e.uiLanguageDirection?zu.undo:zu.redo,i="ltr"==e.uiLanguageDirection?zu.redo:zu.undo;this._addButtonsToFactory("undo",n("Undo"),"CTRL+Z",r),this._addButtonsToFactory("redo",n("Redo"),"CTRL+Y",i)}_addButtonsToFactory(t,e,n,r){const i=this.editor;i.ui.componentFactory.add(t,(()=>{const i=this._createButton(wm,t,e,n,r);return i.set({tooltip:!0}),i})),i.ui.componentFactory.add("menuBar:"+t,(()=>this._createButton(Ym,t,e,n,r)))}_createButton(t,e,n,r,i){const o=this.editor,s=o.locale,a=o.commands.get(e),l=new t(s);return l.set({label:n,icon:i,keystroke:r}),l.bind("isEnabled").to(a,"isEnabled"),this.listenTo(l,"execute",(()=>{o.execute(e),o.editing.view.focus()})),l}}class _C extends Lo{static get requires(){return[wC,AC]}static get pluginName(){return"Undo"}}function CC(t){return t.createContainerElement("figure",{class:"image"},[t.createEmptyElement("img"),t.createSlot("children")])}function vC(t,e){const n=t.plugins.get("ImageUtils"),r=t.plugins.has("ImageInlineEditing")&&t.plugins.has("ImageBlockEditing");return t=>{if(!n.isInlineImageView(t))return null;if(!r)return i(t);return("block"==t.getStyle("display")||t.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==e?null:i(t)};function i(t){const e={name:!0};return t.hasAttribute("src")&&(e.attributes=["src"]),e}}function yC(t,e){const n=Eo(e.getSelectedBlocks());return!n||t.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}function xC(t){return t&&t.endsWith("px")?parseInt(t):null}function EC(t){const e=xC(t.getStyle("width")),n=xC(t.getStyle("height"));return!(!e||!n)}const BC=/^(image|image-inline)$/;class DC extends Lo{_domEmitter=new(oi());static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null,r={}){const i=this.editor,o=i.model,s=o.document.selection,a=SC(i,e||s,n);t={...Object.fromEntries(s.getAttributes()),...t};for(const e in t)o.schema.checkAttribute(a,e)||delete t[e];return o.change((n=>{const{setImageSizes:i=!0}=r,s=n.createElement(a,t);return o.insertObject(s,e,null,{setSelection:"on",findOptimalPosition:e||"imageInline"==a?void 0:"auto"}),s.parent?(i&&this.setImageNaturalSizeAttributes(s),s):null}))}setImageNaturalSizeAttributes(t){const e=t.getAttribute("src");e&&(t.getAttribute("width")||t.getAttribute("height")||this.editor.model.change((n=>{const r=new Yn.window.Image;this._domEmitter.listenTo(r,"load",(()=>{t.getAttribute("width")||t.getAttribute("height")||this.editor.model.enqueueChange(n.batch,(e=>{e.setAttribute("width",r.naturalWidth,t),e.setAttribute("height",r.naturalHeight,t)})),this._domEmitter.stopListening(r,"load")})),r.src=e})))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let r=e.parent;for(;r;){if(r.is("element")&&this.isImageWidget(r))return r;r=r.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:BC})}isImageAllowed(){const t=this.editor.model.document.selection;return function(t,e){const n=SC(t,e,null);if("imageBlock"==n){const n=function(t,e){const n=__(t,e),r=n.start.parent;if(r.isEmpty&&!r.is("element","$root"))return r.parent;return r}(e,t.model);if(t.model.schema.checkChild(n,"imageBlock"))return!0}else if(t.model.schema.checkChild(e.focus,"imageInline"))return!0;return!1}(this.editor,t)&&function(t){return[...t.focus.getAncestors()].every((t=>!t.is("element","imageBlock")))}(t)}toImageWidget(t,e,n){e.setCustomProperty("image",!0,t);return f_(t,e,{label:()=>{const e=this.findViewImgElement(t).getAttribute("alt");return e?`${e} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&p_(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function SC(t,e,n){const r=t.model.schema,i=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")?t.plugins.has("ImageInlineEditing")?n||("inline"===i?"imageInline":"auto"!==i?"imageBlock":e.is("selection")?yC(r,e):r.checkChild(e,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class TC extends Mo{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),r=e.model,i=n.getClosestSelectedImageElement(r.document.selection);r.change((e=>{e.setAttribute("alt",t.newValue,i)}))}}class IC extends Lo{static get requires(){return[DC]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new TC(this.editor))}}var PC=n(4062),VC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(PC.A,VC);PC.A.locals;class FC extends lm{focusTracker;keystrokes;labeledInput;saveButtonView;cancelButtonView;_focusables;_focusCycler;constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Bo,this.keystrokes=new Do,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),zu.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),zu.cancel,"ck-button-cancel","cancel"),this._focusables=new Mu,this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),hm({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,r){const i=new wm(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}_createLabeledInputView(){const t=this.locale.t,e=new Sg(this.locale,Rp);return e.label=t("Text alternative"),e}}function RC(t){const e=t.editing.view,n=op.defaultPositions,r=t.plugins.get("ImageUtils");return{target:e.domConverter.mapViewToDom(r.getClosestSelectedImageWidget(e.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}class LC extends Lo{_balloon;_form;static get requires(){return[yb]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",(n=>{const r=t.commands.get("imageTextAlternative"),i=new wm(n);return i.set({label:e("Change image text alternative"),icon:zu.textAlternative,tooltip:!0}),i.bind("isEnabled").to(r,"isEnabled"),i.bind("isOn").to(r,"value",(t=>!!t)),this.listenTo(i,"execute",(()=>{this._showForm()})),i}))}_createForm(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(dm(FC))(t.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((t,e)=>{this._hideForm(!0),e()})),this.listenTo(t.ui,"update",(()=>{n.getClosestSelectedImageWidget(e.selection)?this._isVisible&&function(t){const e=t.plugins.get("ContextualBalloon");if(t.plugins.get("ImageUtils").getClosestSelectedImageWidget(t.editing.view.document.selection)){const n=RC(t);e.updatePosition(n)}}(t):this._hideForm(!0)})),cm({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:RC(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class zC extends Lo{static get requires(){return[IC,LC]}static get pluginName(){return"ImageTextAlternative"}}function MC(t,e){const n=(e,n,r)=>{if(!r.consumable.consume(n.item,e.name))return;const i=r.writer,o=r.mapper.toViewElement(n.item),s=t.findViewImgElement(o);null===n.attributeNewValue?(i.removeAttribute("srcset",s),i.removeAttribute("sizes",s)):n.attributeNewValue&&(i.setAttribute("srcset",n.attributeNewValue,s),i.setAttribute("sizes","100vw",s))};return t=>{t.on(`attribute:srcset:${e}`,n)}}function NC(t,e,n){const r=(e,n,r)=>{if(!r.consumable.consume(n.item,e.name))return;const i=r.writer,o=r.mapper.toViewElement(n.item),s=t.findViewImgElement(o);i.setAttribute(n.attributeKey,n.attributeNewValue||"",s)};return t=>{t.on(`attribute:${n}:${e}`,r)}}class OC extends Xa{observe(t){this.listenTo(t,"load",((t,e)=>{const n=e.target;this.checkShouldIgnoreEventFromTarget(n)||"IMG"==n.tagName&&this._fireEvents(e)}),{useCapture:!0})}stopObserving(t){this.stopListening(t)}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}class HC extends Mo{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&wr("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&wr("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=eo(t.source),n=this.editor.model.document.selection,r=this.editor.plugins.get("ImageUtils"),i=Object.fromEntries(n.getAttributes());e.forEach(((e,o)=>{const s=n.getSelectedElement();if("string"==typeof e&&(e={src:e}),o&&s&&r.isImage(s)){const n=this.editor.model.createPositionAfter(s);r.insertImage({...e,...i},n,t.imageType)}else r.insertImage({...e,...i},null,t.imageType)}))}}class jC extends Mo{constructor(t){super(t),this.decorate("cleanupImage")}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=t.isImage(e),this.value=this.isEnabled?e.getAttribute("src"):null}execute(t){const e=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change((r=>{r.setAttribute("src",t.source,e),this.cleanupImage(r,e),n.setImageNaturalSizeAttributes(e)}))}cleanupImage(t,e){t.removeAttribute("srcset",e),t.removeAttribute("sizes",e),t.removeAttribute("sources",e),t.removeAttribute("width",e),t.removeAttribute("height",e),t.removeAttribute("alt",e)}}class qC extends Lo{static get requires(){return[DC]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(OC),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new HC(t),r=new jC(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",r),t.commands.add("imageInsert",n)}}class UC extends Lo{static get requires(){return[DC]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils"),r="imageBlock"===t?"figure":"img";function i(e,r,i,o){e.on(`attribute:${r}:${t}`,((e,r,s)=>{if(!s.consumable.consume(r.item,e.name))return;const a=s.writer,l=s.mapper.toViewElement(r.item),c=n.findViewImgElement(l);if(null!==r.attributeNewValue?a.setAttribute(i,r.attributeNewValue,c):a.removeAttribute(i,c),r.item.hasAttribute("sources"))return;const d=r.item.hasAttribute("resizedWidth");if("imageInline"===t&&!d&&!o)return;const h=r.item.getAttribute("width"),u=r.item.getAttribute("height");h&&u&&a.setStyle("aspect-ratio",`${h}/${u}`,c)}))}e.conversion.for("upcast").attributeToAttribute({view:{name:r,styles:{width:/.+/}},model:{key:"width",value:t=>EC(t)?xC(t.getStyle("width")):null}}).attributeToAttribute({view:{name:r,key:"width"},model:"width"}).attributeToAttribute({view:{name:r,styles:{height:/.+/}},model:{key:"height",value:t=>EC(t)?xC(t.getStyle("height")):null}}).attributeToAttribute({view:{name:r,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add((t=>{i(t,"width","width",!0),i(t,"height","height",!0)})),e.conversion.for("dataDowncast").add((t=>{i(t,"width","width",!1),i(t,"height","height",!1)}))}}class WC extends Mo{_modelElementName;constructor(t,e){super(t),this._modelElementName=e}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=t.isInlineImage(e):this.isEnabled=t.isBlockImage(e)}execute(t={}){const e=this.editor,n=this.editor.model,r=e.plugins.get("ImageUtils"),i=r.getClosestSelectedImageElement(n.document.selection),o=Object.fromEntries(i.getAttributes());return o.src||o.uploadId?n.change((e=>{const{setImageSizes:s=!0}=t,a=Array.from(n.markers).filter((t=>t.getRange().containsItem(i))),l=r.insertImage(o,n.createSelection(i,"on"),this._modelElementName,{setImageSizes:s});if(!l)return null;const c=e.createRangeOn(l);for(const t of a){const n=t.getRange(),r="$graveyard"!=n.root.rootName?n.getJoined(c,!0):c;e.updateMarker(t,{range:r})}return{oldElement:i,newElement:l}})):null}}var $C=n(7378),GC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()($C.A,GC);$C.A.locals;class KC extends Lo{static get requires(){return[DC]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const t=this.editor.model.schema;t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["placeholder"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("editingDowncast").add((t=>{t.on("attribute:placeholder",((t,e,r)=>{if(!r.consumable.test(e.item,t.name))return;if(!e.item.is("element","imageBlock")&&!e.item.is("element","imageInline"))return;r.consumable.consume(e.item,t.name);const i=r.writer,o=r.mapper.toViewElement(e.item),s=n.findViewImgElement(o);e.attributeNewValue?(i.addClass("image_placeholder",s),i.setStyle("background-image",`url(${e.attributeNewValue})`,s),i.setCustomProperty("editingPipeline:doNotReuseOnce",!0,s)):(i.removeClass("image_placeholder",s),i.removeStyle("background-image",s))}))}))}_setupLoadListener(){const t=this.editor,e=t.model,n=t.editing,r=n.view,i=t.plugins.get("ImageUtils");r.addObserver(OC),this.listenTo(r.document,"imageLoaded",((t,o)=>{const s=r.domConverter.mapDomToView(o.target);if(!s)return;const a=i.getImageWidgetFromImageView(s);if(!a)return;const l=n.mapper.toModelElement(a);l&&l.hasAttribute("placeholder")&&e.enqueueChange({isUndoable:!1},(t=>{t.removeAttribute("placeholder",l)}))}))}}class ZC extends Lo{static get requires(){return[qC,UC,DC,KC,l_]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new WC(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,r=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:e})=>CC(e)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:n})=>r.toImageWidget(CC(n),n,e("image widget"))}),n.for("downcast").add(NC(r,"imageBlock","src")).add(NC(r,"imageBlock","alt")).add(MC(r,"imageBlock")),n.for("upcast").elementToElement({view:vC(t,"imageBlock"),model:(t,{writer:e})=>e.createElement("imageBlock",t.hasAttribute("src")?{src:t.getAttribute("src")}:void 0)}).add(function(t){const e=(e,n,r)=>{if(!r.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;const i=t.findViewImgElement(n.viewItem);if(!i||!r.consumable.test(i,{name:!0}))return;r.consumable.consume(n.viewItem,{name:!0,classes:"image"});const o=Eo(r.convertItem(i,n.modelCursor).modelRange.getItems());o?(r.convertChildren(n.viewItem,o),r.updateConversionResult(o,n)):r.consumable.revert(n.viewItem,{name:!0,classes:"image"})};return t=>{t.on("element:figure",e)}}(r))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,r=t.plugins.get("ImageUtils"),i=t.plugins.get("ClipboardPipeline");this.listenTo(i,"inputTransformation",((i,o)=>{const s=Array.from(o.content.getChildren());let a;if(!s.every(r.isInlineImageView))return;a=o.targetRanges?t.editing.mapper.toModelRange(o.targetRanges[0]):e.document.selection.getFirstRange();const l=e.createSelection(a);if("imageBlock"===yC(e.schema,l)){const t=new jh(n.document),e=s.map((e=>t.createElement("figure",{class:"image"},e)));o.content=t.createDocumentFragment(e)}})),this.listenTo(i,"contentInsertion",((t,n)=>{"paste"===n.method&&e.change((t=>{const e=t.createRangeIn(n.content);for(const t of e.getItems())t.is("element","imageBlock")&&r.setImageNaturalSizeAttributes(t)}))}))}}var YC=n(3350),JC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(YC.A,JC);YC.A.locals;class QC extends lm{focusTracker;keystrokes;_focusables;_focusCycler;children;constructor(t,e=[]){super(t),this.focusTracker=new Bo,this.keystrokes=new Do,this._focusables=new Mu,this.children=this.createCollection(),this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const t of e)this.children.add(t),this._focusables.add(t),t instanceof mg&&this._focusables.addMany(t.children);this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),hm({view:this});for(const t of this._focusables)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}class XC extends Lo{static get pluginName(){return"ImageInsertUI"}static get requires(){return[DC]}dropdownView;_integrations=new Map;constructor(t){super(t),t.config.define("image.insert.integrations",["upload","assetManager","url"])}init(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(t.model.document,"change",(()=>{this.isImageSelected=n.isImage(e.getSelectedElement())}));const r=t=>this._createToolbarComponent(t);t.ui.componentFactory.add("insertImage",r),t.ui.componentFactory.add("imageInsert",r),t.ui.componentFactory.add("menuBar:insertImage",(t=>this._createMenuBarComponent(t)))}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:r,menuBarButtonViewCreator:i,requiresForm:o=!1}){this._integrations.has(t)&&wr("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,menuBarButtonViewCreator:i,formViewCreator:r,requiresForm:o})}_createToolbarComponent(t){const e=this.editor,n=t.t,r=this._prepareIntegrations();if(!r.length)return null;let i;const o=r[0];if(1==r.length){if(!o.requiresForm)return o.buttonViewCreator(!0);i=o.buttonViewCreator(!0)}else{const e=o.buttonViewCreator(!1);i=new vp(t,e),i.tooltip=!0,i.bind("label").to(this,"isImageSelected",(t=>n(t?"Replace image":"Insert image")))}const s=this.dropdownView=Dp(t,i),a=r.map((({observable:t})=>"function"==typeof t?t():t));return s.bind("isEnabled").toMany(a,"isEnabled",((...t)=>t.some((t=>t)))),s.once("change:isOpen",(()=>{const t=r.map((({formViewCreator:t})=>t(1==r.length))),n=new QC(e.locale,t);s.panelView.children.add(n)})),s}_createMenuBarComponent(t){const e=t.t,n=this._prepareIntegrations();if(!n.length)return null;let r;const i=n[0];if(1==n.length)r=i.menuBarButtonViewCreator(!0);else{r=new ik(t);const i=new ok(t);r.panelView.children.add(i),r.buttonView.set({icon:zu.image,label:e("Image")});for(const e of n){const n=new Kf(t,r),o=e.menuBarButtonViewCreator(!1);n.children.add(o),i.items.add(n)}}return r}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),e=[];if(!t.length)return wr("image-insert-integrations-not-specified"),e;for(const n of t)this._integrations.has(n)?e.push(this._integrations.get(n)):["upload","assetManager","url"].includes(n)||wr("image-insert-unknown-integration",{item:n});return e.length||wr("image-insert-integrations-not-registered"),e}}var tv=n(265),ev={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(tv.A,ev);tv.A.locals;class nv extends Lo{static get requires(){return[ZC,N_,zC,XC]}static get pluginName(){return"ImageBlock"}}class rv extends Lo{static get requires(){return[qC,UC,DC,KC,l_]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor;t.model.schema.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"],disallowIn:["caption"]}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new WC(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,r=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(t,{writer:e})=>e.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(t,{writer:n})=>r.toImageWidget(function(t){return t.createContainerElement("span",{class:"image-inline"},t.createEmptyElement("img"))}(n),n,e("image widget"))}),n.for("downcast").add(NC(r,"imageInline","src")).add(NC(r,"imageInline","alt")).add(MC(r,"imageInline")),n.for("upcast").elementToElement({view:vC(t,"imageInline"),model:(t,{writer:e})=>e.createElement("imageInline",t.hasAttribute("src")?{src:t.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,r=t.plugins.get("ImageUtils"),i=t.plugins.get("ClipboardPipeline");this.listenTo(i,"inputTransformation",((i,o)=>{const s=Array.from(o.content.getChildren());let a;if(!s.every(r.isBlockImageView))return;a=o.targetRanges?t.editing.mapper.toModelRange(o.targetRanges[0]):e.document.selection.getFirstRange();const l=e.createSelection(a);if("imageInline"===yC(e.schema,l)){const t=new jh(n.document),e=s.map((e=>1===e.childCount?(Array.from(e.getAttributes()).forEach((n=>t.setAttribute(...n,r.findViewImgElement(e)))),e.getChild(0)):e));o.content=t.createDocumentFragment(e)}})),this.listenTo(i,"contentInsertion",((t,n)=>{"paste"===n.method&&e.change((t=>{const e=t.createRangeIn(n.content);for(const t of e.getItems())t.is("element","imageInline")&&r.setImageNaturalSizeAttributes(t)}))}))}}class iv extends Lo{static get requires(){return[rv,N_,zC,XC]}static get pluginName(){return"ImageInline"}}class ov extends Lo{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[DC]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}}class sv extends Mo{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(ZC))return this.isEnabled=!1,void(this.value=!1);const r=t.model.document.selection,i=r.getSelectedElement();if(!i){const t=e.getCaptionFromModelSelection(r);return this.isEnabled=!!t,void(this.value=!!t)}this.isEnabled=n.isImage(i),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(i):this.value=!1}execute(t={}){const{focusCaptionOnShow:e}=t;this.editor.model.change((t=>{this.value?this._hideImageCaption(t):this._showImageCaption(t,e)}))}_showImageCaption(t,e){const n=this.editor.model.document.selection,r=this.editor.plugins.get("ImageCaptionEditing"),i=this.editor.plugins.get("ImageUtils");let o=n.getSelectedElement();const s=r._getSavedCaption(o);i.isInlineImage(o)&&(this.editor.execute("imageTypeBlock"),o=n.getSelectedElement());const a=s||t.createElement("caption");t.append(a,o),e&&t.setSelection(a,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,r=e.plugins.get("ImageCaptionEditing"),i=e.plugins.get("ImageCaptionUtils");let o,s=n.getSelectedElement();s?o=i.getCaptionFromImageModelElement(s):(o=i.getCaptionFromModelSelection(n),s=o.parent),r._saveCaption(s,o),t.setSelection(s,"on"),t.remove(o)}}class av extends Lo{static get requires(){return[DC,ov]}static get pluginName(){return"ImageCaptionEditing"}_savedCaptionsMap;constructor(t){super(t),this._savedCaptionsMap=new WeakMap}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new sv(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),r=t.plugins.get("ImageCaptionUtils"),i=t.t;t.conversion.for("upcast").elementToElement({view:t=>r.matchImageCaptionViewElement(t),model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(t,{writer:e})=>n.isBlockImage(t.parent)?e.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(t,{writer:r})=>{if(!n.isBlockImage(t.parent))return null;const o=r.createEditableElement("figcaption");r.setCustomProperty("imageCaption",!0,o),o.placeholder=i("Enter image caption"),Jo({view:e,element:o,keepOnFocus:!0});const s=t.parent.getAttribute("alt");return A_(o,r,{label:s?i("Caption for image: %0",[s]):i("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),r=t.commands.get("imageTypeInline"),i=t.commands.get("imageTypeBlock"),o=t=>{if(!t.return)return;const{oldElement:r,newElement:i}=t.return;if(!r)return;if(e.isBlockImage(r)){const t=n.getCaptionFromImageModelElement(r);if(t)return void this._saveCaption(i,t)}const o=this._getSavedCaption(r);o&&this._saveCaption(i,o)};r&&this.listenTo(r,"execute",o,{priority:"low"}),i&&this.listenTo(i,"execute",o,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?ql.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}_registerCaptionReconversion(){const t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),r=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",(()=>{const i=e.document.differ.getChanges();for(const e of i){if("alt"!==e.attributeKey)continue;const i=e.range.start.nodeAfter;if(n.isBlockImage(i)){const e=r.getCaptionFromImageModelElement(i);if(!e)return;t.editing.reconvertItem(e)}}}))}}class lv extends Lo{static get requires(){return[ov]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),r=t.t;t.ui.componentFactory.add("toggleImageCaption",(i=>{const o=t.commands.get("toggleImageCaption"),s=new wm(i);return s.set({icon:zu.caption,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(o,"value","isEnabled"),s.bind("label").to(o,"value",(t=>r(t?"Toggle caption off":"Toggle caption on"))),this.listenTo(s,"execute",(()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const r=n.getCaptionFromModelSelection(t.model.document.selection);if(r){const n=t.editing.mapper.toViewElement(r);e.scrollToTheSelection(),e.change((t=>{t.addClass("image__caption_highlighted",n)}))}t.editing.view.focus()})),s}))}}var cv=n(5247),dv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(cv.A,dv);cv.A.locals;function hv(t){const e=t.map((t=>t.replace("+","\\+")));return new RegExp(`^image\\/(${e.join("|")})$`)}function uv(t){return new Promise(((e,n)=>{const r=t.getAttribute("src");fetch(r).then((t=>t.blob())).then((t=>{const n=mv(t,r),i=n.replace("image/",""),o=new File([t],`image.${i}`,{type:n});e(o)})).catch((t=>t&&"TypeError"===t.name?function(t){return function(t){return new Promise(((e,n)=>{const r=Yn.document.createElement("img");r.addEventListener("load",(()=>{const t=Yn.document.createElement("canvas");t.width=r.width,t.height=r.height;t.getContext("2d").drawImage(r,0,0),t.toBlob((t=>t?e(t):n()))})),r.addEventListener("error",(()=>n())),r.src=t}))}(t).then((e=>{const n=mv(e,t),r=n.replace("image/","");return new File([e],`image.${r}`,{type:n})}))}(r).then(e).catch(n):n(t)))}))}function mv(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class gv extends Lo{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor;t.ui.componentFactory.add("uploadImage",(()=>this._createToolbarButton())),t.ui.componentFactory.add("imageUpload",(()=>this._createToolbarButton())),t.ui.componentFactory.add("menuBar:uploadImage",(()=>this._createMenuBarButton("standalone"))),t.plugins.has("ImageInsertUI")&&t.plugins.get("ImageInsertUI").registerIntegration({name:"upload",observable:()=>t.commands.get("uploadImage"),buttonViewCreator:()=>this._createToolbarButton(),formViewCreator:()=>this._createDropdownButton(),menuBarButtonViewCreator:t=>this._createMenuBarButton(t?"insertOnly":"insertNested")})}_createButton(t){const e=this.editor,n=e.locale,r=e.commands.get("uploadImage"),i=e.config.get("image.upload.types"),o=hv(i),s=new t(e.locale),a=n.t;return s.set({acceptedType:i.map((t=>`image/${t}`)).join(","),allowMultipleFiles:!0,label:a("Upload from computer"),icon:zu.imageUpload}),s.bind("isEnabled").to(r),s.on("done",((t,n)=>{const r=Array.from(n).filter((t=>o.test(t.type)));r.length&&(e.execute("uploadImage",{file:r}),e.editing.view.focus())})),s}_createToolbarButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this.editor.commands.get("uploadImage"),r=this._createButton(sg);return r.tooltip=!0,r.bind("label").to(e,"isImageSelected",n,"isAccessAllowed",((e,n)=>t(n?e?"Replace image from computer":"Upload image from computer":"You have no image upload permissions."))),r}_createDropdownButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(sg);return n.withText=!0,n.bind("label").to(e,"isImageSelected",(e=>t(e?"Replace from computer":"Upload from computer"))),n.on("execute",(()=>{e.dropdownView.isOpen=!1})),n}_createMenuBarButton(t){const e=this.editor.locale.t,n=this._createButton(ak);switch(n.withText=!0,t){case"standalone":n.label=e("Image from computer");break;case"insertOnly":n.label=e("Image");break;case"insertNested":n.label=e("From computer")}return n}}var pv=n(2267),fv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(pv.A,fv);pv.A.locals;var bv=n(7693),kv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(bv.A,kv);bv.A.locals;var wv=n(1559),Av={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(wv.A,Av);wv.A.locals;class _v extends Lo{static get pluginName(){return"ImageUploadProgress"}placeholder;constructor(t){super(t),this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}uploadStatusChange=(t,e,n)=>{const r=this.editor,i=e.item,o=i.getAttribute("uploadId");if(!n.consumable.consume(e.item,t.name))return;const s=r.plugins.get("ImageUtils"),a=r.plugins.get(Mk),l=o?e.attributeNewValue:null,c=this.placeholder,d=r.editing.mapper.toViewElement(i),h=n.writer;if("reading"==l)return Cv(d,h),void vv(s,c,d,h);if("uploading"==l){const t=a.loaders.get(o);return Cv(d,h),void(t?(yv(d,h),function(t,e,n,r){const i=function(t){const e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e}(e);e.insert(e.createPositionAt(t,"end"),i),n.on("change:uploadedPercent",((t,e,n)=>{r.change((t=>{t.setStyle("width",n+"%",i)}))}))}(d,h,t,r.editing.view),function(t,e,n,r){if(r.data){const i=t.findViewImgElement(e);n.setAttribute("src",r.data,i)}}(s,d,h,t)):vv(s,c,d,h))}"complete"==l&&a.loaders.get(o)&&function(t,e,n){const r=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),r),setTimeout((()=>{n.change((t=>t.remove(t.createRangeOn(r))))}),3e3)}(d,h,r.editing.view),function(t,e){Ev(t,e,"progressBar")}(d,h),yv(d,h),function(t,e){e.removeClass("ck-appear",t)}(d,h)}}function Cv(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function vv(t,e,n,r){n.hasClass("ck-image-upload-placeholder")||r.addClass("ck-image-upload-placeholder",n);const i=t.findViewImgElement(n);i.getAttribute("src")!==e&&r.setAttribute("src",e,i),xv(n,"placeholder")||r.insert(r.createPositionAfter(i),function(t){const e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(r))}function yv(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),Ev(t,e,"placeholder")}function xv(t,e){for(const n of t.getChildren())if(n.getCustomProperty(e))return n}function Ev(t,e,n){const r=xv(t,n);r&&e.remove(e.createRangeOn(r))}class Bv extends Mo{constructor(t){super(t),this.set("isAccessAllowed",!0)}refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=eo(t.file),n=this.editor.model.document.selection,r=this.editor.plugins.get("ImageUtils"),i=Object.fromEntries(n.getAttributes());e.forEach(((t,e)=>{const o=n.getSelectedElement();if(e&&o&&r.isImage(o)){const e=this.editor.model.createPositionAfter(o);this._uploadImage(t,i,e)}else this._uploadImage(t,i)}))}_uploadImage(t,e,n){const r=this.editor,i=r.plugins.get(Mk).createLoader(t),o=r.plugins.get("ImageUtils");i&&o.insertImage({...e,uploadId:i.id},n)}}class Dv extends Lo{static get requires(){return[Mk,bb,l_,DC]}static get pluginName(){return"ImageUploadEditing"}_uploadImageElements;constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const t=this.editor,e=t.model.document,n=t.conversion,r=t.plugins.get(Mk),i=t.plugins.get("ImageUtils"),o=t.plugins.get("ClipboardPipeline"),s=hv(t.config.get("image.upload.types")),a=new Bv(t);t.commands.add("uploadImage",a),t.commands.add("imageUpload",a),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,n)=>{if(r=n.dataTransfer,Array.from(r.types).includes("text/html")&&""!==r.getData("text/html"))return;var r;const i=Array.from(n.dataTransfer.files).filter((t=>!!t&&s.test(t.type)));if(!i.length)return;e.stop(),t.model.change((e=>{n.targetRanges&&e.setSelection(n.targetRanges.map((e=>t.editing.mapper.toModelRange(e)))),t.execute("uploadImage",{file:i})}));if(!t.commands.get("uploadImage").isAccessAllowed){const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("You have no image upload permissions."),{namespace:"image"})}})),this.listenTo(o,"inputTransformation",((e,n)=>{const o=Array.from(t.editing.view.createRangeIn(n.content)).map((t=>t.item)).filter((t=>function(t,e){return!(!t.isInlineImageView(e)||!e.getAttribute("src")||!e.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!e.getAttribute("src").match(/^blob:/g))}(i,t)&&!t.getAttribute("uploadProcessed"))).map((t=>({promise:uv(t),imageElement:t})));if(!o.length)return;const s=new jh(t.editing.view.document);for(const t of o){s.setAttribute("uploadProcessed",!0,t.imageElement);const e=r.createLoader(t.promise);e&&(s.setAttribute("src","",t.imageElement),s.setAttribute("uploadId",e.id,t.imageElement))}})),t.editing.view.document.on("dragover",((t,e)=>{e.preventDefault()})),e.on("change",(()=>{const n=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),i=new Set;for(const e of n)if("insert"==e.type&&"$text"!=e.name){const n=e.position.nodeAfter,o="$graveyard"==e.position.root.rootName;for(const e of Sv(t,n)){const t=e.getAttribute("uploadId");if(!t)continue;const n=r.loaders.get(t);n&&(o?i.has(t)||n.abort():(i.add(t),this._uploadImageElements.set(t,e),"idle"==n.status&&this._readAndUpload(n)))}}})),this.on("uploadComplete",((t,{imageElement:e,data:n})=>{const r=n.urls?n.urls:n;this.editor.model.change((t=>{t.setAttribute("src",r.default,e),this._parseAndSetSrcsetAttributeOnImage(r,e,t),i.setImageNaturalSizeAttributes(e)}))}),{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,r=e.locale.t,i=e.plugins.get(Mk),o=e.plugins.get(bb),s=e.plugins.get("ImageUtils"),a=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},(e=>{e.setAttribute("uploadStatus","reading",a.get(t.id))})),t.read().then((()=>{const i=t.upload(),o=a.get(t.id);if(Xn.isSafari){const t=e.editing.mapper.toViewElement(o),n=s.findViewImgElement(t);e.editing.view.once("render",(()=>{if(!n.parent)return;const t=e.editing.view.domConverter.mapViewToDom(n.parent);if(!t)return;const r=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=r}))}return e.ui&&e.ui.ariaLiveAnnouncer.announce(r("Uploading image")),n.enqueueChange({isUndoable:!1},(t=>{t.setAttribute("uploadStatus","uploading",o)})),i})).then((i=>{n.enqueueChange({isUndoable:!1},(n=>{const o=a.get(t.id);n.setAttribute("uploadStatus","complete",o),e.ui&&e.ui.ariaLiveAnnouncer.announce(r("Image upload complete")),this.fire("uploadComplete",{data:i,imageElement:o})})),l()})).catch((i=>{if(e.ui&&e.ui.ariaLiveAnnouncer.announce(r("Error during image upload")),"error"!==t.status&&"aborted"!==t.status)throw i;"error"==t.status&&i&&o.showWarning(i,{title:r("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},(e=>{e.remove(a.get(t.id))})),l()}));function l(){n.enqueueChange({isUndoable:!1},(e=>{const n=a.get(t.id);e.removeAttribute("uploadId",n),e.removeAttribute("uploadStatus",n),a.delete(t.id)})),i.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let r=0;const i=Object.keys(t).filter((t=>{const e=parseInt(t,10);if(!isNaN(e))return r=Math.max(r,e),!0})).map((e=>`${t[e]} ${e}w`)).join(", ");if(""!=i){const t={srcset:i};e.hasAttribute("width")||e.hasAttribute("height")||(t.width=r),n.setAttributes(t,e)}}}function Sv(t,e){const n=t.plugins.get("ImageUtils");return Array.from(t.model.createRangeOn(e)).filter((t=>n.isImage(t.item))).map((t=>t.item))}const Tv=function(t,e){return function(n,r){if(null==n)return n;if(!Be(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=Object(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}($A);const Iv=function(t,e){var n=-1,r=Be(t)?Array(t.length):[];return Tv(t,(function(t,i,o){r[++n]=e(t,i,o)})),r};const Pv=function(t,e){return(ne(t)?As:Iv)(t,o_(e,3))};class Vv extends Mo{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils").getClosestSelectedImageElement(t.model.document.selection);this.isEnabled=!!e,e&&e.hasAttribute("resizedWidth")?this.value={width:e.getAttribute("resizedWidth"),height:null}:this.value=null}execute(t){const e=this.editor,n=e.model,r=e.plugins.get("ImageUtils"),i=r.getClosestSelectedImageElement(n.document.selection);this.value={width:t.width,height:null},i&&n.change((e=>{e.setAttribute("resizedWidth",t.width,i),e.removeAttribute("resizedHeight",i),r.setImageNaturalSizeAttributes(i)}))}}class Fv extends Lo{static get requires(){return[DC]}static get pluginName(){return"ImageResizeEditing"}constructor(t){super(t),t.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:custom",value:"custom",icon:"custom"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const t=this.editor,e=new Vv(t);this._registerConverters("imageBlock"),this._registerConverters("imageInline"),t.commands.add("resizeImage",e),t.commands.add("imageResize",e)}afterInit(){this._registerSchema()}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["resizedWidth","resizedHeight"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["resizedWidth","resizedHeight"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils");e.conversion.for("downcast").add((e=>e.on(`attribute:resizedWidth:${t}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const r=n.writer,i=n.mapper.toViewElement(e.item);null!==e.attributeNewValue?(r.setStyle("width",e.attributeNewValue,i),r.addClass("image_resized",i)):(r.removeStyle("width",i),r.removeClass("image_resized",i))})))),e.conversion.for("dataDowncast").attributeToAttribute({model:{name:t,key:"resizedHeight"},view:t=>({key:"style",value:{height:t}})}),e.conversion.for("editingDowncast").add((e=>e.on(`attribute:resizedHeight:${t}`,((e,r,i)=>{if(!i.consumable.consume(r.item,e.name))return;const o=i.writer,s=i.mapper.toViewElement(r.item),a="imageInline"===t?n.findViewImgElement(s):s;null!==r.attributeNewValue?o.setStyle("height",r.attributeNewValue,a):o.removeStyle("height",a)})))),e.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===t?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:t=>EC(t)?null:t.getStyle("width")}}),e.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===t?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:t=>EC(t)?null:t.getStyle("height")}})}}const Rv=(()=>({small:zu.objectSizeSmall,medium:zu.objectSizeMedium,large:zu.objectSizeLarge,custom:zu.objectSizeCustom,original:zu.objectSizeFull}))();class Lv extends Lo{static get requires(){return[Fv]}static get pluginName(){return"ImageResizeButtons"}_resizeUnit;constructor(t){super(t),this._resizeUnit=t.config.get("image.resizeUnit")}init(){const t=this.editor,e=t.config.get("image.resizeOptions"),n=t.commands.get("resizeImage");this.bind("isEnabled").to(n);for(const t of e)this._registerImageResizeButton(t);this._registerImageResizeDropdown(e)}_registerImageResizeButton(t){const e=this.editor,{name:n,value:r,icon:i}=t;e.ui.componentFactory.add(n,(n=>{const o=new wm(n),s=e.commands.get("resizeImage"),a=this._getOptionLabelValue(t,!0);if(!Rv[i])throw new kr("imageresizebuttons-missing-icon",e,t);if(o.set({label:a,icon:Rv[i],tooltip:a,isToggleable:!0}),o.bind("isEnabled").to(this),e.plugins.has("ImageCustomResizeUI")&&zv(t)){const t=e.plugins.get("ImageCustomResizeUI");this.listenTo(o,"execute",(()=>{t._showForm(this._resizeUnit)}))}else{const t=r?r+this._resizeUnit:null;o.bind("isOn").to(s,"value",Mv(t)),this.listenTo(o,"execute",(()=>{e.execute("resizeImage",{width:t})}))}return o}))}_registerImageResizeDropdown(t){const e=this.editor,n=e.t,r=t.find((t=>!t.value)),i=i=>{const o=e.commands.get("resizeImage"),s=Dp(i,jg),a=s.buttonView,l=n("Resize image");return a.set({tooltip:l,commandValue:r.value,icon:Rv.medium,isToggleable:!0,label:this._getOptionLabelValue(r),withText:!0,class:"ck-resize-image-button",ariaLabel:l,ariaLabelledBy:void 0}),a.bind("label").to(o,"value",(t=>t&&t.width?t.width:this._getOptionLabelValue(r))),s.bind("isEnabled").to(this),Ip(s,(()=>this._getResizeDropdownListItemDefinitions(t,o)),{ariaLabel:n("Image resize list"),role:"menu"}),this.listenTo(s,"execute",(t=>{"onClick"in t.source?t.source.onClick():(e.execute(t.source.commandName,{width:t.source.commandValue}),e.editing.view.focus())})),s};e.ui.componentFactory.add("resizeImage",i),e.ui.componentFactory.add("imageResize",i)}_getOptionLabelValue(t,e=!1){const n=this.editor.t;return t.label?t.label:e?zv(t)?n("Custom image size"):t.value?n("Resize image to %0",t.value+this._resizeUnit):n("Resize image to the original size"):zv(t)?n("Custom"):t.value?t.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(t,e){const{editor:n}=this,r=new xo,i=t.map((t=>zv(t)?{...t,valueWithUnits:"custom"}:t.value?{...t,valueWithUnits:`${t.value}${this._resizeUnit}`}:{...t,valueWithUnits:null}));for(const t of i){let o=null;if(n.plugins.has("ImageCustomResizeUI")&&zv(t)){const r=n.plugins.get("ImageCustomResizeUI");o={type:"button",model:new kb({label:this._getOptionLabelValue(t),role:"menuitemradio",withText:!0,icon:null,onClick:()=>{r._showForm(this._resizeUnit)}})};const s=Pv(i,"valueWithUnits");o.model.bind("isOn").to(e,"value",Nv(s))}else o={type:"button",model:new kb({commandName:"resizeImage",commandValue:t.valueWithUnits,label:this._getOptionLabelValue(t),role:"menuitemradio",withText:!0,icon:null})},o.model.bind("isOn").to(e,"value",Mv(t.valueWithUnits));o.model.bind("isEnabled").to(e,"isEnabled"),r.add(o)}return r}}function zv(t){return"custom"===t.value}function Mv(t){return e=>null===t&&e===t||null!==e&&e.width===t}function Nv(t){return e=>!t.some((t=>Mv(t)(e)))}const Ov="image_resized";class Hv extends Lo{static get requires(){return[Y_,DC]}static get pluginName(){return"ImageResizeHandles"}init(){const t=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(t),this._setupResizerCreator()}_setupResizerCreator(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils");e.addObserver(OC),this.listenTo(e.document,"imageLoaded",((r,i)=>{if(!i.target.matches("figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img"))return;const o=t.editing.view.domConverter,s=o.domToView(i.target),a=n.getImageWidgetFromImageView(s);let l=this.editor.plugins.get(Y_).getResizerByViewElement(a);if(l)return void l.redraw();const c=t.editing.mapper,d=c.toModelElement(a);l=t.plugins.get(Y_).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:d,viewElement:a,editor:t,getHandleHost:t=>t.querySelector("img"),getResizeHost:()=>o.mapViewToDom(c.toViewElement(d)),isCentered:()=>"alignCenter"==d.getAttribute("imageStyle"),onCommit(n){e.change((t=>{t.removeClass(Ov,a)})),t.execute("resizeImage",{width:n})}}),l.on("updateSize",(()=>{a.hasClass(Ov)||e.change((t=>{t.addClass(Ov,a)}));const t="imageInline"===d.name?s:a;t.getStyle("height")&&e.change((e=>{e.removeStyle("height",t)}))})),l.bind("isEnabled").to(this)}))}}function jv(t){if(!t)return null;const[,e,n]=t.trim().match(/([.,\d]+)(%|px)$/)||[],r=Number.parseFloat(e);return Number.isNaN(r)?null:{value:r,unit:n}}function qv(t,e,n){return"px"===n?{value:e.value,unit:"px"}:{value:e.value/t*100,unit:"%"}}function Uv(t){const{editing:e}=t,n=t.plugins.get("ImageUtils").getClosestSelectedImageElement(t.model.document.selection);if(!n)return null;const r=e.mapper.toViewElement(n);return{model:n,view:r,dom:e.view.domConverter.mapViewToDom(r)}}var Wv=n(4642),$v={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Wv.A,$v);Wv.A.locals;class Gv extends lm{focusTracker;keystrokes;unit;labeledInput;saveButtonView;cancelButtonView;_focusables;_focusCycler;_validators;constructor(t,e,n){super(t);const r=this.locale.t;this.focusTracker=new Bo,this.keystrokes=new Do,this.unit=e,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(r("Save"),zu.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(r("Cancel"),zu.cancel,"ck-button-cancel","cancel"),this._focusables=new Mu,this._validators=n,this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-custom-resize-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),hm({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,r){const i=new wm(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}_createLabeledInputView(){const t=this.locale.t,e=new Sg(this.locale,Lp);return e.label=t("Resize image (in %0)",this.unit),e.fieldView.set({step:.1}),e}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.labeledInput.errorText=e,!1}return!0}resetFormStatus(){this.labeledInput.errorText=null}get rawSize(){const{element:t}=this.labeledInput.fieldView;return t?t.value:null}get parsedSize(){const{rawSize:t}=this;if(null===t)return null;const e=Number.parseFloat(t);return Number.isNaN(e)?null:e}get sizeWithUnits(){const{parsedSize:t,unit:e}=this;return null===t?null:`${t}${e}`}}class Kv extends Lo{_balloon;_form;static get requires(){return[yb]}static get pluginName(){return"ImageCustomResizeUI"}destroy(){super.destroy(),this._form&&this._form.destroy()}_createForm(t){const e=this.editor;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(dm(Gv))(e.locale,t,function(t){const e=t.t;return[t=>""===t.rawSize.trim()?e("The value must not be empty."):null===t.parsedSize?e("The value should be a plain number."):void 0]}(e)),this._form.render(),this.listenTo(this._form,"submit",(()=>{this._form.isValid()&&(e.execute("resizeImage",{width:this._form.sizeWithUnits}),this._hideForm(!0))})),this.listenTo(this._form.labeledInput,"change:errorText",(()=>{e.ui.update()})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((t,e)=>{this._hideForm(!0),e()})),cm({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(t){if(this._isVisible)return;this._form||this._createForm(t);const e=this.editor,n=this._form.labeledInput;this._form.disableCssTransitions(),this._form.resetFormStatus(),this._isInBalloon||this._balloon.add({view:this._form,position:RC(e)});const r=function(t,e){const n=Uv(t);if(!n)return null;const r=jv(n.model.getAttribute("resizedWidth")||null);return r?r.unit===e?r:qv(y_(n.dom),{unit:"px",value:new fi(n.dom).width},e):null}(e,t),i=r?r.value.toFixed(1):"",o=function(t,e){const n=Uv(t);if(!n)return null;const r=y_(n.dom),i=jv(window.getComputedStyle(n.dom).minWidth)||{value:1,unit:"px"};return{unit:e,lower:Math.max(.1,qv(r,i,e).value),upper:"px"===e?r:100}}(e,t);n.fieldView.value=n.fieldView.element.value=i,o&&Object.assign(n.fieldView,{min:o.lower.toFixed(1),max:Math.ceil(o.upper).toFixed(1)}),this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}var Zv=n(3469),Yv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Zv.A,Yv);Zv.A.locals;class Jv extends Mo{_defaultStyles;_styles;constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map((t=>{if(t.isDefault)for(const e of t.modelElements)this._defaultStyles[e]=t.name;return[t.name,t]})))}refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?t.hasAttribute("imageStyle")?this.value=t.getAttribute("imageStyle"):this.value=this._defaultStyles[t.name]:this.value=!1}execute(t={}){const e=this.editor,n=e.model,r=e.plugins.get("ImageUtils");n.change((e=>{const i=t.value,{setImageSizes:o=!0}=t;let s=r.getClosestSelectedImageElement(n.document.selection);i&&this.shouldConvertImageType(i,s)&&(this.editor.execute(r.isBlockImage(s)?"imageTypeInline":"imageTypeBlock",{setImageSizes:o}),s=r.getClosestSelectedImageElement(n.document.selection)),!i||this._styles.get(i).isDefault?e.removeAttribute("imageStyle",s):e.setAttribute("imageStyle",i,s),o&&r.setImageNaturalSizeAttributes(s)}))}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}const Qv={get inline(){return{name:"inline",title:"In line",icon:zu.objectInline,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:zu.objectLeft,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:zu.objectBlockLeft,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:zu.objectCenter,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:zu.objectRight,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:zu.objectBlockRight,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:zu.objectCenter,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:zu.objectRight,modelElements:["imageBlock"],className:"image-style-side"}}},Xv=(()=>({full:zu.objectFullWidth,left:zu.objectBlockLeft,right:zu.objectBlockRight,center:zu.objectCenter,inlineLeft:zu.objectLeft,inlineRight:zu.objectRight,inline:zu.objectInline}))(),ty=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function ey(t){wr("image-style-configuration-definition-invalid",t)}const ny={normalizeStyles:function(t){const e=(t.configuredStyles.options||[]).map((t=>function(t){t="string"==typeof t?Qv[t]?{...Qv[t]}:{name:t}:function(t,e){const n={...e};for(const r in t)Object.prototype.hasOwnProperty.call(e,r)||(n[r]=t[r]);return n}(Qv[t.name],t);"string"==typeof t.icon&&(t.icon=Xv[t.icon]||t.icon);return t}(t))).filter((e=>function(t,{isBlockPluginLoaded:e,isInlinePluginLoaded:n}){const{modelElements:r,name:i}=t;if(!(r&&r.length&&i))return ey({style:t}),!1;{const i=[e?"imageBlock":null,n?"imageInline":null];if(!r.some((t=>i.includes(t))))return wr("image-style-missing-dependency",{style:t,missingPlugins:r.map((t=>"imageBlock"===t?"ImageBlockEditing":"ImageInlineEditing"))}),!1}return!0}(e,t)));return e},getDefaultStylesConfiguration:function(t,e){return t&&e?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:t?{options:["block","side"]}:e?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(t){return t.has("ImageBlockEditing")&&t.has("ImageInlineEditing")?[...ty]:[]},warnInvalidStyle:ey,DEFAULT_OPTIONS:Qv,DEFAULT_ICONS:Xv,DEFAULT_DROPDOWN_DEFINITIONS:ty};function ry(t,e){for(const n of e)if(n.name===t)return n}class iy extends Lo{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[DC]}normalizedStyles;init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=ny,n=this.editor,r=n.plugins.has("ImageBlockEditing"),i=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(r,i)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:r,isInlinePluginLoaded:i}),this._setupConversion(r,i),this._setupPostFixer(),n.commands.add("imageStyle",new Jv(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,r=n.model.schema,i=(o=this.normalizedStyles,(t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const r=ry(e.attributeNewValue,o),i=ry(e.attributeOldValue,o),s=n.mapper.toViewElement(e.item),a=n.writer;i&&a.removeClass(i.className,s),r&&a.addClass(r.className,s)});var o;const s=function(t){const e={imageInline:t.filter((t=>!t.isDefault&&t.modelElements.includes("imageInline"))),imageBlock:t.filter((t=>!t.isDefault&&t.modelElements.includes("imageBlock")))};return(t,n,r)=>{if(!n.modelRange)return;const i=n.viewItem,o=Eo(n.modelRange.getItems());if(o&&r.schema.checkAttribute(o,"imageStyle"))for(const t of e[o.name])r.consumable.consume(i,{classes:t.className})&&r.writer.setAttribute("imageStyle",t.name,o)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",i),n.data.downcastDispatcher.on("attribute:imageStyle",i),t&&(r.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",s,{priority:"low"})),e&&(r.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",s,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(DC),r=new Map(this.normalizedStyles.map((t=>[t.name,t])));e.registerPostFixer((t=>{let i=!1;for(const o of e.differ.getChanges())if("insert"==o.type||"attribute"==o.type&&"imageStyle"==o.attributeKey){let e="insert"==o.type?o.position.nodeAfter:o.range.start.nodeAfter;if(e&&e.is("element","paragraph")&&e.childCount>0&&(e=e.getChild(0)),!n.isImage(e))continue;const s=e.getAttribute("imageStyle");if(!s)continue;const a=r.get(s);a&&a.modelElements.includes(e.name)||(t.removeAttribute("imageStyle",e),i=!0)}return i}))}}var oy=n(6386),sy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(oy.A,sy);oy.A.locals;class ay extends Lo{static get requires(){return[iy]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=ly(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const t of n)this._createButton(t);const r=ly([...e.filter(s),...ny.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const t of r)this._createDropdown(t,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,(r=>{let i;const{defaultItem:o,items:s,title:a}=t,l=s.filter((t=>e.find((({name:e})=>cy(e)===t)))).map((t=>{const e=n.create(t);return t===o&&(i=e),e}));s.length!==l.length&&ny.warnInvalidStyle({dropdown:t});const c=Dp(r,vp),d=c.buttonView,h=d.arrowView;return Sp(c,l,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:dy(a,i.label),class:null,tooltip:!0}),h.unbind("label"),h.set({label:a}),d.bind("icon").toMany(l,"isOn",((...t)=>{const e=t.findIndex(co);return e<0?i.icon:l[e].icon})),d.bind("label").toMany(l,"isOn",((...t)=>{const e=t.findIndex(co);return dy(a,e<0?i.label:l[e].label)})),d.bind("isOn").toMany(l,"isOn",((...t)=>t.some(co))),d.bind("class").toMany(l,"isOn",((...t)=>t.some(co)?"ck-splitbutton_flatten":void 0)),d.on("execute",(()=>{l.some((({isOn:t})=>t))?c.isOpen=!c.isOpen:i.fire("execute")})),c.bind("isEnabled").toMany(l,"isEnabled",((...t)=>t.some(co))),this.listenTo(c,"execute",(()=>{this.editor.editing.view.focus()})),c}))}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(cy(e),(n=>{const r=this.editor.commands.get("imageStyle"),i=new wm(n);return i.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(r,"isEnabled"),i.bind("isOn").to(r,"value",(t=>t===e)),i.on("execute",this._executeCommand.bind(this,e)),i}))}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function ly(t,e){for(const n of t)e[n.title]&&(n.title=e[n.title]);return t}function cy(t){return`imageStyle:${t}`}function dy(t,e){return(t?t+": ":"")+e}class hy{_definitions=new Set;get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach((t=>this._definitions.add(t))):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",((t,e,n)=>{if(!n.consumable.test(e.item,"attribute:linkHref"))return;if(!e.item.is("selection")&&!n.schema.isInline(e.item))return;const r=n.writer,i=r.document.selection;for(const t of this._definitions){const o=r.createAttributeElement("a",t.attributes,{priority:5});t.classes&&r.addClass(t.classes,o);for(const e in t.styles)r.setStyle(e,t.styles[e],o);r.setCustomProperty("link",!0,o),t.callback(e.attributeNewValue)?e.item.is("selection")?r.wrap(i.getFirstRange(),o):r.wrap(n.mapper.toViewRange(e.range),o):r.unwrap(n.mapper.toViewRange(e.range),o)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",((t,e,{writer:n,mapper:r})=>{const i=r.toViewElement(e.item),o=Array.from(i.getChildren()).find((t=>t.is("element","a")));for(const t of this._definitions){const r=So(t.attributes);if(t.callback(e.attributeNewValue)){for(const[t,e]of r)"class"===t?n.addClass(e,o):n.setAttribute(t,e,o);t.classes&&n.addClass(t.classes,o);for(const e in t.styles)n.setStyle(e,t.styles[e],o)}else{for(const[t,e]of r)"class"===t?n.removeClass(e,o):n.removeAttribute(t,o);t.classes&&n.removeClass(t.classes,o);for(const e in t.styles)n.removeStyle(e,o)}}}))}}}const uy=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Ss(t,e,n)};var my=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const gy=function(t){return my.test(t)};const py=function(t){return t.split("")};var fy="\\ud800-\\udfff",by="["+fy+"]",ky="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",wy="\\ud83c[\\udffb-\\udfff]",Ay="[^"+fy+"]",_y="(?:\\ud83c[\\udde6-\\uddff]){2}",Cy="[\\ud800-\\udbff][\\udc00-\\udfff]",vy="(?:"+ky+"|"+wy+")"+"?",yy="[\\ufe0e\\ufe0f]?",xy=yy+vy+("(?:\\u200d(?:"+[Ay,_y,Cy].join("|")+")"+yy+vy+")*"),Ey="(?:"+[Ay+ky+"?",ky,_y,Cy,by].join("|")+")",By=RegExp(wy+"(?="+wy+")|"+Ey+xy,"g");const Dy=function(t){return t.match(By)||[]};const Sy=function(t){return gy(t)?Dy(t):py(t)};const Ty=function(t){return function(e){e=ys(e);var n=gy(e)?Sy(e):void 0,r=n?n[0]:e.charAt(0),i=n?uy(n,1).join(""):e.slice(1);return r[t]()+i}}("toUpperCase"),Iy=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Py=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Vy=/^((\w+:(\/{2,})?)|(\W))/i,Fy=["https?","ftps?","mailto"],Ry="Ctrl+K";function Ly(t,{writer:e}){const n=e.createAttributeElement("a",{href:t},{priority:5});return e.setCustomProperty("link",!0,n),n}function zy(t,e=Fy){const n=String(t),r=e.join("|");return function(t,e){const n=t.replace(Iy,"");return!!n.match(e)}(n,new RegExp(`${"^(?:(?:<protocols>):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))".replace("<protocols>",r)}`,"i"))?n:"#"}function My(t,e){return!!t&&e.checkAttribute(t.name,"linkHref")}function Ny(t,e){const n=(r=t,Py.test(r)?"mailto:":e);var r;const i=!!n&&!Oy(t);return t&&i?n+t:t}function Oy(t){return Vy.test(t)}function Hy(t){window.open(t,"_blank","noopener")}class jy extends Mo{manualDecorators=new xo;automaticDecorators=new hy;restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||Eo(e.getSelectedBlocks());My(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}execute(t,e={}){const n=this.editor.model,r=n.document.selection,i=[],o=[];for(const t in e)e[t]?i.push(t):o.push(t);n.change((e=>{if(r.isCollapsed){const s=r.getFirstPosition();if(r.hasAttribute("linkHref")){const a=qy(r);let l=yw(s,"linkHref",r.getAttribute("linkHref"),n);r.getAttribute("linkHref")===a&&(l=this._updateLinkContent(n,e,l,t)),e.setAttribute("linkHref",t,l),i.forEach((t=>{e.setAttribute(t,!0,l)})),o.forEach((t=>{e.removeAttribute(t,l)})),e.setSelection(e.createPositionAfter(l.end.nodeBefore))}else if(""!==t){const o=So(r.getAttributes());o.set("linkHref",t),i.forEach((t=>{o.set(t,!0)}));const{end:a}=n.insertContent(e.createText(t,o),s);e.setSelection(a)}["linkHref",...i,...o].forEach((t=>{e.removeSelectionAttribute(t)}))}else{const s=n.schema.getValidRanges(r.getRanges(),"linkHref"),a=[];for(const t of r.getSelectedBlocks())n.schema.checkAttribute(t,"linkHref")&&a.push(e.createRangeOn(t));const l=a.slice();for(const t of s)this._isRangeToUpdate(t,a)&&l.push(t);for(const s of l){let a=s;if(1===l.length){const i=qy(r);r.getAttribute("linkHref")===i&&(a=this._updateLinkContent(n,e,s,t),e.setSelection(e.createSelection(a)))}e.setAttribute("linkHref",t,a),i.forEach((t=>{e.setAttribute(t,!0,a)})),o.forEach((t=>{e.removeAttribute(t,a)}))}}}))}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,r=n.getSelectedElement();return My(r,e.schema)?r.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}_updateLinkContent(t,e,n,r){const i=e.createText(r,{linkHref:r});return t.insertContent(i,n)}}function qy(t){if(t.isCollapsed){const e=t.getFirstPosition();return e.textNode&&e.textNode.data}{const e=Array.from(t.getFirstRange().getItems());if(e.length>1)return null;const n=e[0];return n.is("$text")||n.is("$textProxy")?n.data:null}}class Uy extends Mo{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();My(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const t=this.editor,e=this.editor.model,n=e.document.selection,r=t.commands.get("link");e.change((t=>{const i=n.isCollapsed?[yw(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const e of i)if(t.removeAttribute("linkHref",e),r)for(const n of r.manualDecorators)t.removeAttribute(n.id,e)}))}}class Wy extends(jr()){id;defaultValue;label;attributes;classes;styles;constructor({id:t,label:e,attributes:n,classes:r,styles:i,defaultValue:o}){super(),this.id=t,this.set("value",void 0),this.defaultValue=o,this.label=e,this.attributes=n,this.classes=r,this.styles=i}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var $y=n(7719),Gy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()($y.A,Gy);$y.A.locals;const Ky="automatic",Zy=/^(https?:)?\/\//;class Yy extends Lo{static get pluginName(){return"LinkEditing"}static get requires(){return[dw,Zk,l_]}constructor(t){super(t),t.config.define("link",{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1})}init(){const t=this.editor,e=this.editor.config.get("link.allowedProtocols");t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Ly}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(t,n)=>Ly(zy(t,e),n)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:t=>t.getAttribute("href")}}),t.commands.add("link",new jy(t)),t.commands.add("unlink",new Uy(t));const n=function(t,e){const n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};return e.forEach((t=>("label"in t&&n[t.label]&&(t.label=n[t.label]),t))),e}(t.t,function(t){const e=[];if(t)for(const[n,r]of Object.entries(t)){const t=Object.assign({},r,{id:`link${Ty(n)}`});e.push(t)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(n.filter((t=>t.mode===Ky))),this._enableManualDecorators(n.filter((t=>"manual"===t.mode)));t.plugins.get(dw).registerAttribute("linkHref"),Ew(t,"linkHref","a","ck-link_selected"),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Ky,callback:t=>!!t&&Zy.test(t),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach((t=>{e.model.schema.extend("$text",{allowAttributes:t.id});const r=new Wy(t);n.add(r),e.conversion.for("downcast").attributeToElement({model:r.id,view:(t,{writer:e,schema:n},{item:i})=>{if((i.is("selection")||n.isInline(i))&&t){const t=e.createAttributeElement("a",r.attributes,{priority:5});r.classes&&e.addClass(r.classes,t);for(const n in r.styles)e.setStyle(n,r.styles[n],t);return e.setCustomProperty("link",!0,t),t}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",...r._createPattern()},model:{key:r.id}})}))}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",((t,e)=>{if(!(Xn.isMac?e.domEvent.metaKey:e.domEvent.ctrlKey))return;let n=e.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),!n)return;const r=n.getAttribute("href");r&&(t.stop(),e.preventDefault(),Hy(r))}),{context:"$capture"}),this.listenTo(e,"keydown",((e,n)=>{const r=t.commands.get("link").value;!!r&&n.keyCode===$i.enter&&n.altKey&&(e.stop(),Hy(r))}))}_enableSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(e,"change:attribute",((n,{attributeKeys:r})=>{r.includes("linkHref")&&!e.hasAttribute("linkHref")&&t.change((e=>{var n;!function(t,e){t.removeSelectionAttribute("linkHref");for(const n of e)t.removeSelectionAttribute(n)}(e,(n=t.schema,n.getDefinition("$text").allowAttributes.filter((t=>t.startsWith("link")))))}))}))}_enableClipboardIntegration(){const t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",((t,r)=>{e.change((t=>{const e=t.createRangeIn(r.content);for(const r of e.getItems())if(r.hasAttribute("linkHref")){const e=Ny(r.getAttribute("linkHref"),n);t.setAttribute("linkHref",e,r)}}))}))}}var Jy=n(3817),Qy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Jy.A,Qy);Jy.A.locals;class Xy extends lm{focusTracker=new Bo;keystrokes=new Do;urlInputView;saveButtonView;cancelButtonView;_manualDecoratorSwitches;children;_validators;_focusables=new Mu;_focusCycler;constructor(t,e,n){super(t);const r=t.t;this._validators=n,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(r("Save"),zu.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(r("Cancel"),zu.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const i=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&i.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:i,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((t,e)=>(t[e.name]=e.isOn,t)),{})}render(){super.render(),hm({view:this});[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null}_createUrlInput(){const t=this.locale.t,e=new Sg(this.locale,Rp);return e.fieldView.inputMode="url",e.label=t("Link URL"),e}_createButton(t,e,n,r){const i=new wm(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const r=new og(this.locale);r.set({name:n.id,label:n.label,withText:!0}),r.bind("isOn").toMany([n,t],"value",((t,e)=>void 0===e&&void 0===t?!!n.defaultValue:!!t)),r.on("execute",(()=>{n.set("value",!r.isOn)})),e.add(r)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const t=new lm;t.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((t=>({tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(t)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}get url(){const{element:t}=this.urlInputView.fieldView;return t?t.value.trim():null}}var tx=n(8762),ex={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(tx.A,ex);tx.A.locals;class nx extends lm{focusTracker=new Bo;keystrokes=new Do;previewButtonView;unlinkButtonView;editButtonView;_focusables=new Mu;_focusCycler;_linkConfig;constructor(t,e={}){super(t);const n=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(n("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(n("Edit link"),zu.pencil,"edit"),this.set("href",void 0),this._linkConfig=e,this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render();[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const r=new wm(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.delegate("execute").to(this,n),r}_createPreviewButton(){const t=new wm(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",(t=>t&&zy(t,this._linkConfig.allowedProtocols))),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",(t=>t||n("This link has no URL"))),t.bind("isEnabled").to(this,"href",(t=>!!t)),t.template.tag="a",t.template.eventListeners={},t}}const rx="link-ui";class ix extends Lo{actionsView=null;formView=null;_balloon;static get requires(){return[yb]}static get pluginName(){return"LinkUI"}init(){const t=this.editor,e=this.editor.t;t.editing.view.addObserver(Oh),this._balloon=t.plugins.get(yb),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:rx,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:rx,view:(t,{writer:e})=>{if(!t.markerRange.isCollapsed)return null;const n=e.createUIElement("span");return e.addClass(["ck-fake-link-selection","ck-fake-link-selection_collapsed"],n),n}}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Create link"),keystroke:Ry},{label:e("Move out of a link"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new nx(t.locale,t.config.get("link")),n=t.commands.get("link"),r=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(r),this.listenTo(e,"edit",(()=>{this._addFormView()})),this.listenTo(e,"unlink",(()=>{t.execute("unlink"),this._hideUI()})),e.keystrokes.set("Esc",((t,e)=>{this._hideUI(),e()})),e.keystrokes.set(Ry,((t,e)=>{this._addFormView(),e()})),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),r=new(dm(Xy))(t.locale,e,function(t){const e=t.t,n=t.config.get("link.allowCreatingEmptyLinks");return[t=>{if(!n&&!t.url.length)return e("Link URL must not be empty.")}]}(t));return r.urlInputView.fieldView.bind("value").to(e,"value"),r.urlInputView.bind("isEnabled").to(e,"isEnabled"),r.saveButtonView.bind("isEnabled").to(e,"isEnabled"),this.listenTo(r,"submit",(()=>{if(r.isValid()){const{value:e}=r.urlInputView.fieldView.element,i=Ny(e,n);t.execute("link",i,r.getDecoratorSwitchesState()),this._closeFormView()}})),this.listenTo(r.urlInputView,"change:errorText",(()=>{t.ui.update()})),this.listenTo(r,"cancel",(()=>{this._closeFormView()})),r.keystrokes.set("Esc",((t,e)=>{this._closeFormView(),e()})),r}_createToolbarLinkButton(){const t=this.editor;t.ui.componentFactory.add("link",(()=>{const t=this._createButton(wm);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:link",(()=>{const t=this._createButton(Ym);return t.set({role:"menuitemcheckbox"}),t}))}_createButton(t){const e=this.editor,n=e.locale,r=e.commands.get("link"),i=new t(e.locale),o=n.t;return i.set({label:o("Link"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',keystroke:Ry,isToggleable:!0}),i.bind("isEnabled").to(r,"isEnabled"),i.bind("isOn").to(r,"value",(t=>!!t)),this.listenTo(i,"execute",(()=>this._showUI(!0))),i}_enableBalloonActivators(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),t.keystrokes.set(Ry,((e,n)=>{n(),t.commands.get("link").isEnabled&&this._showUI(!0)}))}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",((t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((t,e)=>{this._isUIVisible&&(this._hideUI(),e())})),cm({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this.formView.resetFormStatus(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this.formView.urlInputView.fieldView.value=t.value||"",this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions()}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this.formView.urlInputView.fieldView.reset(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),r=o();const i=()=>{const t=this._getSelectedLinkElement(),e=o();n&&!t||!n&&e!==r?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=t,r=e};function o(){return e.selection.focus.getAncestors().reverse().find((t=>t.is("element")))}this.listenTo(t.ui,"update",i),this.listenTo(this._balloon,"change:visibleView",i)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){const t=this._balloon.visibleView;return!!this.formView&&t==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=this.editor.model,n=t.document;let r;if(e.markers.has(rx)){const e=Array.from(this.editor.editing.mapper.markerNameToElements(rx)),n=t.createRange(t.createPositionBefore(e[0]),t.createPositionAfter(e[e.length-1]));r=t.domConverter.viewRangeToDom(n)}else r=()=>{const e=this._getSelectedLinkElement();return e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:r}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&p_(n))return ox(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),r=ox(n.start),i=ox(n.end);return r&&r==i&&t.createRangeIn(r).getTrimmed().isEqual(n)?r:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change((e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(rx))e.updateMarker(rx,{range:n});else if(n.start.isAtEnd){const r=n.start.getLastMatchingPosition((({item:e})=>!t.schema.isContent(e)),{boundaries:n});e.addMarker(rx,{usingOperation:!1,affectsData:!1,range:e.createRange(r,n.end)})}else e.addMarker(rx,{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(rx)&&t.change((t=>{t.removeMarker(rx)}))}}function ox(t){return t.getAncestors().find((t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e}))||null}const sx=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class ax extends Lo{static get requires(){return[sw,Yy]}static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(t,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?yw(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const n=this.editor.model,r=n.document.selection,i=r.getFirstPosition(),o=r.getLastPosition();let s=e.getJoined(this._expandLinkRange(n,i)||e);s&&(s=s.getJoined(this._expandLinkRange(n,o)||e)),s&&(s.start.isBefore(i)||s.end.isAfter(o))&&t.setSelection(s)}_enablePasteLinking(){const t=this.editor,e=t.model,n=e.document.selection,r=t.plugins.get("ClipboardPipeline"),i=t.commands.get("link");r.on("inputTransformation",((t,r)=>{if(!this.isEnabled||!i.isEnabled||n.isCollapsed||"paste"!==r.method)return;if(n.rangeCount>1)return;const o=n.getFirstRange(),s=r.dataTransfer.getData("text/plain");if(!s)return;const a=s.match(sx);a&&a[2]===s&&(e.change((t=>{this._selectEntireLinks(t,o),i.execute(s)})),t.stop())}),{priority:"high"})}_enableTypingHandling(){const t=this.editor,e=new cw(t.model,(t=>{if(!function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t))return;const e=lx(t.substr(0,t.length-1));return e?{url:e}:void 0}));e.on("matched:data",((e,n)=>{const{batch:r,range:i,url:o}=n;if(!r.isTyping)return;const s=i.end.getShiftedBy(-1),a=s.getShiftedBy(-o.length),l=t.model.createRange(a,s);this._applyAutoLink(o,l)})),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition();if(!t.parent.previousSibling)return;const n=e.createRangeIn(t.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(n)}))}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition(),n=e.createRange(e.createPositionAt(t.parent,0),t.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(n)}))}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:r}=lw(t,e),i=lx(n);if(i){const t=e.createRange(r.end.getShiftedBy(-i.length),r.end);this._applyAutoLink(i,t)}}_applyAutoLink(t,e){const n=this.editor.model,r=Ny(t,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref")}(e,n)&&Oy(r)&&!function(t){const e=t.start.nodeAfter;return!!e&&e.hasAttribute("linkHref")}(e)&&this._persistAutoLink(r,e)}_persistAutoLink(t,e){const n=this.editor.model,r=this.editor.plugins.get("Delete");n.enqueueChange((i=>{i.setAttribute("linkHref",t,e),n.enqueueChange((()=>{r.requestUndoOnBackspace()}))}))}}function lx(t){const e=sx.exec(t);return e?e[2]:null}var cx=n(4808),dx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(cx.A,dx);cx.A.locals;class hx{_startElement;_referenceIndent;_isForward;_includeSelf;_sameAttributes;_sameIndent;_lowerIndent;_higherIndent;constructor(t,e){this._startElement=t,this._referenceIndent=t.getAttribute("listIndent"),this._isForward="forward"==e.direction,this._includeSelf=!!e.includeSelf,this._sameAttributes=eo(e.sameAttributes||[]),this._sameIndent=!!e.sameIndent,this._lowerIndent=!!e.lowerIndent,this._higherIndent=!!e.higherIndent}static first(t,e){return Eo(new this(t,e)[Symbol.iterator]())}*[Symbol.iterator](){const t=[];for(const{node:e}of ux(this._getStartNode(),this._isForward?"forward":"backward")){const n=e.getAttribute("listIndent");if(n<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=n}else if(n>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){t.push(e);continue}}else{if(!this._sameIndent){if(this._higherIndent){t.length&&(yield*t,t.length=0);break}continue}if(this._sameAttributes.some((t=>e.getAttribute(t)!==this._startElement.getAttribute(t))))break}t.length&&(yield*t,t.length=0),yield e}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*ux(t,e="forward"){const n="forward"==e,r=[];let i=null;for(;px(t);){let e=null;if(i){const n=t.getAttribute("listIndent"),o=i.getAttribute("listIndent");n>o?r[o]=i:n<o?(e=r[n],r.length=n):e=i}yield{node:t,previous:i,previousNodeInList:e},i=t,t=n?t.nextSibling:t.previousSibling}}class mx{_listHead;constructor(t){this._listHead=t}[Symbol.iterator](){return ux(this._listHead,"forward")}}class gx{static next(){return pr()}}function px(t){return!!t&&t.is("element")&&t.hasAttribute("listItemId")}function fx(t,e={}){return[...bx(t,{...e,direction:"backward"}),...bx(t,{...e,direction:"forward"})]}function bx(t,e={}){const n="forward"==e.direction,r=Array.from(new hx(t,{...e,includeSelf:n,sameIndent:!0,sameAttributes:"listItemId"}));return n?r:r.reverse()}function kx(t,e){const n=new hx(t,{sameIndent:!0,sameAttributes:"listType",...e}),r=new hx(t,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward",...e});return[...Array.from(n).reverse(),...r]}function wx(t){return!hx.first(t,{sameIndent:!0,sameAttributes:"listItemId"})}function Ax(t){return!hx.first(t,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function _x(t,e={}){t=eo(t);const n=!1!==e.withNested,r=new Set;for(const e of t)for(const t of fx(e,{higherIndent:n}))r.add(t);return Dx(r)}function Cx(t){t=eo(t);const e=new Set;for(const n of t)for(const t of kx(n))e.add(t);return Dx(e)}function vx(t,e){const n=bx(t,{direction:"forward"}),r=gx.next();for(const t of n)e.setAttribute("listItemId",r,t);return n}function yx(t,e,n){const r={};for(const[t,n]of e.getAttributes())t.startsWith("list")&&(r[t]=n);const i=bx(t,{direction:"forward"});for(const t of i)n.setAttributes(r,t);return i}function xx(t,e,{expand:n,indentBy:r=1}={}){t=eo(t);const i=n?_x(t):t;for(const t of i){const n=t.getAttribute("listIndent")+r;n<0?Ex(t,e):e.setAttribute("listIndent",n,t)}return i}function Ex(t,e){t=eo(t);for(const n of t)n.is("element","listItem")&&e.rename(n,"paragraph");for(const n of t)for(const t of n.getAttributeKeys())t.startsWith("list")&&e.removeAttribute(t,n);return t}function Bx(t){if(!t.length)return!1;const e=t[0].getAttribute("listItemId");return!!e&&!t.some((t=>t.getAttribute("listItemId")!=e))}function Dx(t){return Array.from(t).filter((t=>"$graveyard"!==t.root.rootName)).sort(((t,e)=>t.index-e.index))}function Sx(t){const e=t.document.selection.getSelectedElement();return e&&t.schema.isObject(e)&&t.schema.isBlock(e)?e:null}function Tx(t,e){return e.checkChild(t.parent,"listItem")&&e.checkChild(t,"$text")&&!e.isObject(t)}function Ix(t){return"numbered"==t||"customNumbered"==t}function Px(t,e,n){return bx(e,{direction:"forward"}).pop().index>t.index?yx(t,e,n):[]}class Vx extends Mo{_direction;constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=Fx(t.document.selection);t.change((t=>{const n=[];Bx(e)&&!wx(e[0])?("forward"==this._direction&&n.push(...xx(e,t)),n.push(...vx(e[0],t))):"forward"==this._direction?n.push(...xx(e,t,{expand:!0})):n.push(...function(t,e){const n=_x(t=eo(t)),r=new Set,i=Math.min(...n.map((t=>t.getAttribute("listIndent")))),o=new Map;for(const t of n)o.set(t,hx.first(t,{lowerIndent:!0}));for(const t of n){if(r.has(t))continue;r.add(t);const n=t.getAttribute("listIndent")-1;if(n<0)Ex(t,e);else{if(t.getAttribute("listIndent")==i){const n=Px(t,o.get(t),e);for(const t of n)r.add(t);if(n.length)continue}e.setAttribute("listIndent",n,t)}}return Dx(r)}(e,t));for(const e of n){if(!e.hasAttribute("listType"))continue;const n=hx.first(e,{sameIndent:!0});n&&t.setAttribute("listType",n.getAttribute("listType"),e)}this._fireAfterExecute(n)}))}_fireAfterExecute(t){this.fire("afterExecute",Dx(new Set(t)))}_checkEnabled(){let t=Fx(this.editor.model.document.selection),e=t[0];if(!e)return!1;if("backward"==this._direction)return!0;if(Bx(t)&&!wx(t[0]))return!0;t=_x(t),e=t[0];const n=hx.first(e,{sameIndent:!0});return!!n&&n.getAttribute("listType")==e.getAttribute("listType")}}function Fx(t){const e=Array.from(t.getSelectedBlocks()),n=e.findIndex((t=>!px(t)));return-1!=n&&(e.length=n),e}class Rx extends Mo{type;_listWalkerOptions;constructor(t,e,n={}){super(t),this.type=e,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,r=Sx(e),i=Array.from(n.selection.getSelectedBlocks()).filter((t=>e.schema.checkAttribute(t,"listType")||Tx(t,e.schema))),o=void 0!==t.forceValue?!t.forceValue:this.value;e.change((s=>{if(o){const t=i[i.length-1],e=bx(t,{direction:"forward"}),n=[];e.length>1&&n.push(...vx(e[1],s)),n.push(...Ex(i,s)),n.push(...function(t,e){const n=[];let r=Number.POSITIVE_INFINITY;for(const{node:i}of ux(t.nextSibling,"forward")){const t=i.getAttribute("listIndent");if(0==t)break;t<r&&(r=t);const o=t-r;e.setAttribute("listIndent",o,i),n.push(i)}return n}(t,s)),this._fireAfterExecute(n)}else if((r||n.selection.isCollapsed)&&px(i[0])){const e=kx(r||i[0],this._listWalkerOptions);for(const n of e)s.setAttributes({...t.additionalAttributes,listType:this.type},n);this._fireAfterExecute(e)}else{const n=[];for(const r of i)if(r.hasAttribute("listType"))for(const e of _x(r,{withNested:!1}))e.getAttribute("listType")!=this.type&&(s.setAttributes({...t.additionalAttributes,listType:this.type},e),n.push(e));else!r.is("element","listItem")&&Tx(r,e.schema)&&s.rename(r,"listItem"),s.setAttributes({...t.additionalAttributes,listIndent:0,listItemId:gx.next(),listType:this.type},r),n.push(r);this._fireAfterExecute(n)}}))}_fireAfterExecute(t){this.fire("afterExecute",Dx(new Set(t)))}_getValue(){const t=this.editor.model.document.selection,e=Array.from(t.getSelectedBlocks());if(!e.length)return!1;for(const t of e)if(t.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const t=this.editor.model,e=t.schema,n=t.document.selection,r=Array.from(n.getSelectedBlocks());if(!r.length)return!1;if(this.value)return!0;for(const t of r)if(e.checkAttribute(t,"listType")||Tx(t,e))return!0;return!1}}class Lx extends Mo{_direction;constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:t=!1}={}){const e=this.editor.model,n=e.document.selection,r=[];e.change((i=>{const{firstElement:o,lastElement:s}=this._getMergeSubjectElements(n,t),a=o.getAttribute("listIndent")||0,l=s.getAttribute("listIndent"),c=s.getAttribute("listItemId");if(a!=l){const t=(d=s,Array.from(new hx(d,{direction:"forward",higherIndent:!0})));r.push(...xx([s,...t],i,{indentBy:a-l,expand:a<l}))}var d;if(t){let t=n;n.isCollapsed&&(t=i.createSelection(i.createRange(i.createPositionAt(o,"end"),i.createPositionAt(s,0)))),e.deleteContent(t,{doNotResetEntireContent:n.isCollapsed});const a=t.getLastPosition().parent,l=a.nextSibling;r.push(a),l&&l!==s&&l.getAttribute("listItemId")==c&&r.push(...yx(l,a,i))}else r.push(...yx(s,o,i));this._fireAfterExecute(r)}))}_fireAfterExecute(t){this.fire("afterExecute",Dx(new Set(t)))}_checkEnabled(){const t=this.editor.model,e=t.document.selection,n=Sx(t);if(e.isCollapsed||n){const t=n||e.getFirstPosition().parent;if(!px(t))return!1;const r="backward"==this._direction?t.previousSibling:t.nextSibling;if(!r)return!1;if(Bx([t,r]))return!1}else{const t=e.getLastPosition(),n=e.getFirstPosition();if(t.parent===n.parent)return!1;if(!px(t.parent))return!1}return!0}_getMergeSubjectElements(t,e){const n=Sx(this.editor.model);let r,i;if(t.isCollapsed||n){const o=n||t.getFirstPosition().parent,s=wx(o);"backward"==this._direction?(i=o,r=s&&!e?hx.first(o,{sameIndent:!0,lowerIndent:!0}):o.previousSibling):(r=o,i=o.nextSibling)}else r=t.getFirstPosition().parent,i=t.getLastPosition().parent;return{firstElement:r,lastElement:i}}}class zx extends Mo{_direction;constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change((t=>{const e=vx(this._getStartBlock(),t);this._fireAfterExecute(e)}))}_fireAfterExecute(t){this.fire("afterExecute",Dx(new Set(t)))}_checkEnabled(){const t=this.editor.model.document.selection,e=this._getStartBlock();return t.isCollapsed&&px(e)&&!wx(e)}_getStartBlock(){const t=this.editor.model.document.selection.getFirstPosition().parent;return"before"==this._direction?t:t.nextSibling}}class Mx extends Lo{static get pluginName(){return"ListUtils"}expandListBlocksToCompleteList(t){return Cx(t)}isFirstBlockOfListItem(t){return wx(t)}isListItemBlock(t){return px(t)}expandListBlocksToCompleteItems(t,e={}){return _x(t,e)}isNumberedListType(t){return Ix(t)}}function Nx(t){return t.is("element","ol")||t.is("element","ul")}function Ox(t){return t.is("element","li")}function Hx(t,e,n,r=Ux(n,e)){return t.createAttributeElement(qx(n),null,{priority:2*e/100-100,id:r})}function jx(t,e,n){return t.createAttributeElement("li",null,{priority:(2*e+1)/100-100,id:n})}function qx(t){return"numbered"==t||"customNumbered"==t?"ol":"ul"}function Ux(t,e){return`list-${t}-${e}`}function Wx(t,e){const n=t.nodeBefore;if(px(n)){let t=n;for(const{node:n}of ux(t,"backward"))if(t=n,e.has(t))return;e.set(n,t)}else{const n=t.nodeAfter;px(n)&&e.set(n,n)}}function $x(){return(t,e,n)=>{const{writer:r,schema:i}=n;if(!e.modelRange)return;const o=Array.from(e.modelRange.getItems({shallow:!0})).filter((t=>i.checkAttribute(t,"listItemId")));if(!o.length)return;const s=gx.next(),a=function(t){let e=0,n=t.parent;for(;n;){if(Ox(n))e++;else{const t=n.previousSibling;t&&Ox(t)&&e++}n=n.parent}return e}(e.viewItem);let l=e.viewItem.parent&&e.viewItem.parent.is("element","ol")?"numbered":"bulleted";const c=o[0].getAttribute("listType");c&&(l=c);const d={listItemId:s,listIndent:a,listType:l};for(const t of o)t.hasAttribute("listItemId")||r.setAttributes(d,t);o.length>1&&o[1].getAttribute("listItemId")!=d.listItemId&&n.keepEmptyElement(o[0])}}function Gx(t,e,n,{dataPipeline:r}={}){const i=function(t){return(e,n)=>{const r=[];for(const n of t)e.hasAttribute(n)&&r.push(`attribute:${n}`);return!!r.every((t=>!1!==n.test(e,t)))&&(r.forEach((t=>n.consume(e,t))),!0)}}(t);return(o,s,a)=>{const{writer:l,mapper:c,consumable:d}=a,h=s.item;if(!t.includes(s.attributeKey))return;if(!i(h,d))return;const u=function(t,e,n){const r=n.createRangeOn(t),i=e.toViewRange(r).getTrimmed();return i.end.nodeBefore}(h,c,n);Zx(u,l,c),function(t,e){let n=t.parent;for(;n.is("attributeElement")&&["ul","ol","li"].includes(n.name);){const r=n.parent;e.unwrap(e.createRangeOn(t),n),n=r}}(u,l);const m=function(t,e,n,r,{dataPipeline:i}){let o=r.createRangeOn(e);if(!wx(t))return o;for(const s of n){if("itemMarker"!=s.scope)continue;const n=s.createElement(r,t,{dataPipeline:i});if(!n)continue;if(r.setCustomProperty("listItemMarker",!0,n),s.canInjectMarkerIntoElement&&s.canInjectMarkerIntoElement(t)?r.insert(r.createPositionAt(e,0),n):(r.insert(o.start,n),o=r.createRange(r.createPositionBefore(n),r.createPositionAfter(e))),!s.createWrapperElement||!s.canWrapElement)continue;const a=s.createWrapperElement(r,t,{dataPipeline:i});r.setCustomProperty("listItemWrapper",!0,a),s.canWrapElement(t)?o=r.wrap(o,a):(o=r.wrap(r.createRangeOn(n),a),o=r.createRange(o.start,r.createPositionAfter(e)))}return o}(h,u,e,l,{dataPipeline:r});!function(t,e,n,r){if(!t.hasAttribute("listIndent"))return;const i=t.getAttribute("listIndent");let o=t;for(let t=i;t>=0;t--){const i=jx(r,t,o.getAttribute("listItemId")),s=Hx(r,t,o.getAttribute("listType"));for(const t of n)"list"!=t.scope&&"item"!=t.scope||!o.hasAttribute(t.attributeName)||t.setAttributeOnDowncast(r,o.getAttribute(t.attributeName),"list"==t.scope?s:i);if(e=r.wrap(e,i),e=r.wrap(e,s),0==t)break;if(o=hx.first(o,{lowerIndent:!0}),!o)break}}(h,m,e,l)}}function Kx(t,{dataPipeline:e}={}){return(n,{writer:r})=>{if(!Yx(n,t))return null;if(!e)return r.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const i=r.createContainerElement("p");return r.setCustomProperty("dataPipeline:transparentRendering",!0,i),i}}function Zx(t,e,n){for(;t.parent.is("attributeElement")&&t.parent.getCustomProperty("listItemWrapper");)e.unwrap(e.createRangeOn(t),t.parent);const r=[];i(e.createPositionBefore(t).getWalker({direction:"backward"})),i(e.createRangeIn(t).getWalker());for(const t of r)e.remove(t);function i(t){for(const{item:e}of t){if(e.is("element")&&n.toModelElement(e))break;e.is("element")&&e.getCustomProperty("listItemMarker")&&r.push(e)}}}function Yx(t,e,n=fx(t)){if(!px(t))return!1;for(const n of t.getAttributeKeys())if(!n.startsWith("selection:")&&!e.includes(n))return!1;return n.length<2}var Jx=n(1232),Qx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Jx.A,Qx);Jx.A.locals;var Xx=n(6903),tE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(Xx.A,tE);Xx.A.locals;const eE=["listType","listIndent","listItemId"];class nE extends Lo{_downcastStrategies=[];static get pluginName(){return"ListEditing"}static get requires(){return[pA,sw,Mx,l_]}constructor(t){super(t),t.config.define("list.multiBlock",!0)}init(){const t=this.editor,e=t.model,n=t.config.get("list.multiBlock");if(t.plugins.has("LegacyListEditing"))throw new kr("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});e.schema.register("$listItem",{allowAttributes:eE}),n?(e.schema.extend("$container",{allowAttributesOf:"$listItem"}),e.schema.extend("$block",{allowAttributesOf:"$listItem"}),e.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):e.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const t of eE)e.schema.setAttributeProperties(t,{copyOnReplace:!0});t.commands.add("numberedList",new Rx(t,"numbered")),t.commands.add("bulletedList",new Rx(t,"bulleted")),t.commands.add("customNumberedList",new Rx(t,"customNumbered",{multiLevel:!0})),t.commands.add("customBulletedList",new Rx(t,"customBulleted",{multiLevel:!0})),t.commands.add("indentList",new Vx(t,"forward")),t.commands.add("outdentList",new Vx(t,"backward")),t.commands.add("splitListItemBefore",new zx(t,"before")),t.commands.add("splitListItemAfter",new zx(t,"after")),n&&(t.commands.add("mergeListItemBackward",new Lx(t,"backward")),t.commands.add("mergeListItemForward",new Lx(t,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration()}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList"),{priority:"high"}),n&&n.registerChildCommand(t.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(t){this._downcastStrategies.push(t)}getListAttributeNames(){return[...eE,...this._downcastStrategies.map((t=>t.attributeName))]}_setupDeleteIntegration(){const t=this.editor,e=t.commands.get("mergeListItemBackward"),n=t.commands.get("mergeListItemForward");this.listenTo(t.editing.view.document,"delete",((r,i)=>{const o=t.model.document.selection;Sx(t.model)||t.model.change((()=>{const s=o.getFirstPosition();if(o.isCollapsed&&"backward"==i.direction){if(!s.isAtStart)return;const n=s.parent;if(!px(n))return;if(hx.first(n,{sameAttributes:"listType",sameIndent:!0})||0!==n.getAttribute("listIndent")){if(!e||!e.isEnabled)return;e.execute({shouldMergeOnBlocksContentLevel:rE(t.model,"backward")})}else Ax(n)||t.execute("splitListItemAfter"),t.execute("outdentList");i.preventDefault(),r.stop()}else{if(o.isCollapsed&&!o.getLastPosition().isAtEnd)return;if(!n||!n.isEnabled)return;n.execute({shouldMergeOnBlocksContentLevel:rE(t.model,"forward")}),i.preventDefault(),r.stop()}}))}),{context:"li"})}_setupEnterIntegration(){const t=this.editor,e=t.model,n=t.commands,r=n.get("enter");this.listenTo(t.editing.view.document,"enter",((n,r)=>{const i=e.document,o=i.selection.getFirstPosition().parent;if(i.selection.isCollapsed&&px(o)&&o.isEmpty&&!r.isSoft){const e=wx(o),i=Ax(o);e&&i?(t.execute("outdentList"),r.preventDefault(),n.stop()):e&&!i?(t.execute("splitListItemAfter"),r.preventDefault(),n.stop()):i&&(t.execute("splitListItemBefore"),r.preventDefault(),n.stop())}}),{context:"li"}),this.listenTo(r,"afterExecute",(()=>{const e=n.get("splitListItemBefore");if(e.refresh(),!e.isEnabled)return;2===fx(t.model.document.selection.getLastPosition().parent).length&&e.execute()}))}_setupTabIntegration(){const t=this.editor;this.listenTo(t.editing.view.document,"tab",((e,n)=>{const r=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(r).isEnabled&&(t.execute(r),n.stopPropagation(),n.preventDefault(),e.stop())}),{context:"li"})}_setupConversion(){const t=this.editor,e=t.model,n=this.getListAttributeNames(),r=t.config.get("list.multiBlock"),i=r?"paragraph":"listItem";t.conversion.for("upcast").elementToElement({view:"li",model:(t,{writer:e})=>e.createElement(i,{listType:""})}).elementToElement({view:"p",model:(t,{writer:e})=>t.parent&&t.parent.is("element","li")?e.createElement(i,{listType:""}):null,converterPriority:"high"}).add((t=>{t.on("element:li",$x())})),r||t.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),t.conversion.for("editingDowncast").elementToElement({model:i,view:Kx(n),converterPriority:"high"}).add((t=>{var r;t.on("attribute",Gx(n,this._downcastStrategies,e)),t.on("remove",(r=e.schema,(t,e,n)=>{const{writer:i,mapper:o}=n,s=t.name.split(":")[1];if(!r.checkAttribute(s,"listItemId"))return;const a=o.toViewPosition(e.position),l=e.position.getShiftedBy(e.length),c=o.toViewPosition(l,{isPhantom:!0}),d=i.createRange(a,c).getTrimmed().end.nodeBefore;d&&Zx(d,i,o)}))})),t.conversion.for("dataDowncast").elementToElement({model:i,view:Kx(n,{dataPipeline:!0}),converterPriority:"high"}).add((t=>{t.on("attribute",Gx(n,this._downcastStrategies,e,{dataPipeline:!0}))}));const o=(s=this._downcastStrategies,a=t.editing.view,(t,e)=>{if(e.modelPosition.offset>0)return;const n=e.modelPosition.parent;if(!px(n))return;if(!s.some((t=>"itemMarker"==t.scope&&t.canInjectMarkerIntoElement&&t.canInjectMarkerIntoElement(n))))return;const r=e.mapper.toViewElement(n),i=a.createRangeIn(r),o=i.getWalker();let l=i.start;for(const{item:t}of o){if(t.is("element")&&e.mapper.toModelElement(t)||t.is("$textProxy"))break;t.is("element")&&t.getCustomProperty("listItemMarker")&&(l=a.createPositionAfter(t),o.skip((({previousPosition:t})=>!t.isEqual(l))))}e.viewPosition=l});var s,a;t.editing.mapper.on("modelToViewPosition",o),t.data.mapper.on("modelToViewPosition",o),this.listenTo(e.document,"change:data",function(t,e,n,r){return()=>{const r=t.document.differ.getChanges(),s=[],a=new Map,l=new Set;for(const t of r)if("insert"==t.type&&"$text"!=t.name)Wx(t.position,a),t.attributes.has("listItemId")?l.add(t.position.nodeAfter):Wx(t.position.getShiftedBy(t.length),a);else if("remove"==t.type&&t.attributes.has("listItemId"))Wx(t.position,a);else if("attribute"==t.type){const e=t.range.start.nodeAfter;n.includes(t.attributeKey)?(Wx(t.range.start,a),null===t.attributeNewValue?(Wx(t.range.start.getShiftedBy(1),a),o(e)&&s.push(e)):l.add(e)):px(e)&&o(e)&&s.push(e)}for(const t of a.values())s.push(...i(t,l));for(const t of new Set(s))e.reconvertItem(t)};function i(t,e){const r=[],i=new Set,a=[];for(const{node:l,previous:c}of ux(t,"forward")){if(i.has(l))continue;const t=l.getAttribute("listIndent");c&&t<c.getAttribute("listIndent")&&(a.length=t+1),a[t]=Object.fromEntries(Array.from(l.getAttributes()).filter((([t])=>n.includes(t))));const d=bx(l,{direction:"forward"});for(const t of d)i.add(t),(o(t,d)||s(t,a,e))&&r.push(t)}return r}function o(t,i){const o=e.mapper.toViewElement(t);if(!o)return!1;if(r.fire("checkElement",{modelElement:t,viewElement:o}))return!0;if(!t.is("element","paragraph")&&!t.is("element","listItem"))return!1;const s=Yx(t,n,i);return!(!s||!o.is("element","p"))||!(s||!o.is("element","span"))}function s(t,n,i){if(i.has(t))return!1;const o=e.mapper.toViewElement(t);let s=n.length-1;for(let t=o.parent;!t.is("editableElement");t=t.parent){const e=Ox(t),i=Nx(t);if(!i&&!e)continue;const o="checkAttributes:"+(e?"item":"list");if(r.fire(o,{viewElement:t,modelAttributes:n[s]}))break;if(i&&(s--,s<0))return!1}return!0}}(e,t.editing,n,this),{priority:"high"}),this.on("checkAttributes:item",((t,{viewElement:e,modelAttributes:n})=>{e.id!=n.listItemId&&(t.return=!0,t.stop())})),this.on("checkAttributes:list",((t,{viewElement:e,modelAttributes:n})=>{e.name==qx(n.listType)&&e.id==Ux(n.listType,n.listIndent)||(t.return=!0,t.stop())}))}_setupModelPostFixing(){const t=this.editor.model,e=this.getListAttributeNames();t.document.registerPostFixer((n=>function(t,e,n,r){const i=t.document.differ.getChanges(),o=new Map,s=r.editor.config.get("list.multiBlock");let a=!1;for(const r of i){if("insert"==r.type&&"$text"!=r.name){const i=r.position.nodeAfter;if(!t.schema.checkAttribute(i,"listItemId"))for(const t of Array.from(i.getAttributeKeys()))n.includes(t)&&(e.removeAttribute(t,i),a=!0);Wx(r.position,o),r.attributes.has("listItemId")||Wx(r.position.getShiftedBy(r.length),o);for(const{item:e,previousPosition:n}of t.createRangeIn(i))px(e)&&Wx(n,o)}else"remove"==r.type?Wx(r.position,o):"attribute"==r.type&&n.includes(r.attributeKey)&&(Wx(r.range.start,o),null===r.attributeNewValue&&Wx(r.range.start.getShiftedBy(1),o));if(!s&&"attribute"==r.type&&eE.includes(r.attributeKey)){const t=r.range.start.nodeAfter;null===r.attributeNewValue&&t&&t.is("element","listItem")?(e.rename(t,"paragraph"),a=!0):null===r.attributeOldValue&&t&&t.is("element")&&"listItem"!=t.name&&(e.rename(t,"listItem"),a=!0)}}const l=new Set;for(const t of o.values())a=r.fire("postFixer",{listNodes:new mx(t),listHead:t,writer:e,seenIds:l})||a;return a}(t,n,e,this))),this.on("postFixer",((t,{listNodes:e,writer:n})=>{t.return=function(t,e){let n=0,r=-1,i=null,o=!1;for(const{node:s}of t){const t=s.getAttribute("listIndent");if(t>n){let a;null===i?(i=t-n,a=n):(i>t&&(i=t),a=t-i),a>r+1&&(a=r+1),e.setAttribute("listIndent",a,s),o=!0,r=a}else i=null,n=t+1,r=t}return o}(e,n)||t.return}),{priority:"high"}),this.on("postFixer",((t,{listNodes:e,writer:n,seenIds:r})=>{t.return=function(t,e,n){const r=new Set;let i=!1;for(const{node:o}of t){if(r.has(o))continue;let t=o.getAttribute("listType"),s=o.getAttribute("listItemId");if(e.has(s)&&(s=gx.next()),e.add(s),o.is("element","listItem"))o.getAttribute("listItemId")!=s&&(n.setAttribute("listItemId",s,o),i=!0);else for(const e of bx(o,{direction:"forward"}))r.add(e),e.getAttribute("listType")!=t&&(s=gx.next(),t=e.getAttribute("listType")),e.getAttribute("listItemId")!=s&&(n.setAttribute("listItemId",s,e),i=!0)}return i}(e,r,n)||t.return}),{priority:"high"})}_setupClipboardIntegration(){const t=this.editor.model,e=this.editor.plugins.get("ClipboardPipeline");this.listenTo(t,"insertContent",function(t){return(e,[n,r])=>{const i=n.is("documentFragment")?Array.from(n.getChildren()):[n];if(!i.length)return;const o=(r?t.createSelection(r):t.document.selection).getFirstPosition();let s;if(px(o.parent))s=o.parent;else{if(!px(o.nodeBefore))return;s=o.nodeBefore}t.change((t=>{const e=s.getAttribute("listType"),n=s.getAttribute("listIndent"),r=i[0].getAttribute("listIndent")||0,o=Math.max(n-r,0);for(const n of i){const r=px(n);s.is("element","listItem")&&n.is("element","paragraph")&&t.rename(n,"listItem"),t.setAttributes({listIndent:(r?n.getAttribute("listIndent"):0)+o,listItemId:r?n.getAttribute("listItemId"):gx.next(),listType:e},n)}}))}}(t),{priority:"high"}),this.listenTo(e,"outputTransformation",((e,n)=>{t.change((t=>{const e=Array.from(n.content.getChildren()),r=e[e.length-1];if(e.length>1&&r.is("element")&&r.isEmpty){e.slice(0,-1).every(px)&&t.remove(r)}if("copy"==n.method||"cut"==n.method){const e=Array.from(n.content.getChildren());Bx(e)&&Ex(e,t)}}))}))}_setupAccessibilityIntegration(){const t=this.editor,e=t.t;t.accessibility.addKeystrokeInfoGroup({id:"list",label:e("Keystrokes that can be used in a list"),keystrokes:[{label:e("Increase list item indent"),keystroke:"Tab"},{label:e("Decrease list item indent"),keystroke:"Shift+Tab"}]})}}function rE(t,e){const n=t.document.selection;if(!n.isCollapsed)return!Sx(t);if("forward"===e)return!0;const r=n.getFirstPosition().parent,i=r.previousSibling;return!t.schema.isObject(i)&&(!!i.isEmpty||Bx([r,i]))}function iE(t,e,n,r){t.ui.componentFactory.add(e,(()=>{const i=oE(wm,t,e,n,r);return i.set({tooltip:!0,isToggleable:!0}),i})),t.ui.componentFactory.add(`menuBar:${e}`,(()=>{const i=oE(Ym,t,e,n,r);return i.set({role:"menuitemcheckbox",isToggleable:!0}),i}))}function oE(t,e,n,r,i){const o=e.commands.get(n),s=new t(e.locale);return s.set({label:r,icon:i}),s.bind("isOn","isEnabled").to(o,"value","isEnabled"),s.on("execute",(()=>{e.execute(n),e.editing.view.focus()})),s}class sE extends Lo{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;this.editor.ui.componentFactory.has("numberedList")||iE(this.editor,"numberedList",t("Numbered List"),zu.numberedList),this.editor.ui.componentFactory.has("bulletedList")||iE(this.editor,"bulletedList",t("Bulleted List"),zu.bulletedList)}}class aE extends Lo{static get requires(){return[nE,sE]}static get pluginName(){return"List"}}class lE extends Mo{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute({startIndex:t=1}={}){const e=this.editor.model,n=e.document;let r=Array.from(n.selection.getSelectedBlocks()).filter((t=>px(t)&&Ix(t.getAttribute("listType"))));r=Cx(r),e.change((e=>{for(const n of r)e.setAttribute("listStart",t>=0?t:1,n)}))}_getValue(){const t=Eo(this.editor.model.document.selection.getSelectedBlocks());return t&&px(t)&&Ix(t.getAttribute("listType"))?t.getAttribute("listStart"):null}}const cE={},dE={},hE={},uE=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:t,typeAttribute:e,listType:n}of uE)cE[t]=n,dE[t]=e,e&&(hE[e]=t);function mE(){return uE.map((t=>t.listStyle))}function gE(t){return cE[t]||null}function pE(t){return hE[t]||null}function fE(t){return dE[t]||null}class bE extends Mo{defaultType;_supportedTypes;constructor(t,e,n){super(t),this.defaultType=e,this._supportedTypes=n}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document;e.change((e=>{this._tryToConvertItemsToList(t);let r=Array.from(n.selection.getSelectedBlocks()).filter((t=>t.hasAttribute("listType")));if(r.length){r=Cx(r);for(const n of r)e.setAttribute("listStyle",t.type||this.defaultType,n)}}))}isStyleTypeSupported(t){return!this._supportedTypes||this._supportedTypes.includes(t)}_getValue(){const t=Eo(this.editor.model.document.selection.getSelectedBlocks());return px(t)?t.getAttribute("listStyle"):null}_checkEnabled(){const t=this.editor,e=t.commands.get("numberedList"),n=t.commands.get("bulletedList");return e.isEnabled||n.isEnabled}_tryToConvertItemsToList(t){if(!t.type)return;const e=gE(t.type);if(!e)return;const n=this.editor,r=`${e}List`;n.commands.get(r).value||n.execute(r)}}class kE extends Mo{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute(t={}){const e=this.editor.model,n=e.document;let r=Array.from(n.selection.getSelectedBlocks()).filter((t=>px(t)&&"numbered"==t.getAttribute("listType")));r=Cx(r),e.change((e=>{for(const n of r)e.setAttribute("listReversed",!!t.reversed,n)}))}_getValue(){const t=Eo(this.editor.model.document.selection.getSelectedBlocks());return px(t)&&"numbered"==t.getAttribute("listType")?t.getAttribute("listReversed"):null}}function wE(t){return(e,n,r)=>{const{writer:i,schema:o,consumable:s}=r;if(!1===s.test(n.viewItem,t.viewConsumables))return;n.modelRange||Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor));let a=!1;for(const e of n.modelRange.getItems({shallow:!0}))o.checkAttribute(e,t.attributeName)&&t.appliesToListItem(e)&&(e.hasAttribute(t.attributeName)||(i.setAttribute(t.attributeName,t.getAttributeOnUpcast(n.viewItem),e),a=!0));a&&s.consume(n.viewItem,t.viewConsumables)}}class AE extends Lo{static get pluginName(){return"ListPropertiesUtils"}getAllSupportedStyleTypes(){return mE()}getListTypeFromListStyleType(t){return gE(t)}getListStyleTypeFromTypeAttribute(t){return pE(t)}getTypeAttributeFromListStyleType(t){return fE(t)}}function _E(t){const{startIndex:e,reversed:n,styles:r}=t;return{styles:CE(r),startIndex:e||!1,reversed:n||!1}}function CE(t){const e={listTypes:["bulleted","numbered"],useAttribute:!1};return!0===t||(t?Array.isArray(t)||"string"==typeof t?e.listTypes=eo(t):(e.listTypes=t.listTypes?eo(t.listTypes):e.listTypes,e.useAttribute=!!t.useAttribute):e.listTypes=[]),e}const vE="default";class yE extends Lo{static get requires(){return[nE,AE]}static get pluginName(){return"ListPropertiesEditing"}constructor(t){super(t),t.config.define("list.properties",{styles:!0,startIndex:!1,reversed:!1})}init(){const t=this.editor,e=t.model,n=t.plugins.get(nE),r=function(t){const e=[],n=_E(t);if(t.styles){const t=n.styles.useAttribute;e.push({attributeName:"listStyle",defaultValue:vE,viewConsumables:{styles:"list-style-type"},addCommand(e){let n=mE();t&&(n=n.filter((t=>!!fE(t)))),e.commands.add("listStyle",new bE(e,vE,n))},appliesToListItem:t=>"numbered"==t.getAttribute("listType")||"bulleted"==t.getAttribute("listType"),hasValidAttribute(t){if(!this.appliesToListItem(t))return!t.hasAttribute("listStyle");if(!t.hasAttribute("listStyle"))return!1;const e=t.getAttribute("listStyle");return e==vE||gE(e)==t.getAttribute("listType")},setAttributeOnDowncast(e,n,r){if(n&&n!==vE){if(!t)return void e.setStyle("list-style-type",n,r);{const t=fE(n);if(t)return void e.setAttribute("type",t,r)}}e.removeStyle("list-style-type",r),e.removeAttribute("type",r)},getAttributeOnUpcast(t){const e=t.getStyle("list-style-type");if(e)return e;const n=t.getAttribute("type");return n?pE(n):vE}})}t.reversed&&e.push({attributeName:"listReversed",defaultValue:!1,viewConsumables:{attributes:"reversed"},addCommand(t){t.commands.add("listReversed",new kE(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),hasValidAttribute(t){return this.appliesToListItem(t)==t.hasAttribute("listReversed")},setAttributeOnDowncast(t,e,n){e?t.setAttribute("reversed","reversed",n):t.removeAttribute("reversed",n)},getAttributeOnUpcast:t=>t.hasAttribute("reversed")});t.startIndex&&e.push({attributeName:"listStart",defaultValue:1,viewConsumables:{attributes:"start"},addCommand(t){t.commands.add("listStart",new lE(t))},appliesToListItem:t=>Ix(t.getAttribute("listType")),hasValidAttribute(t){return this.appliesToListItem(t)==t.hasAttribute("listStart")},setAttributeOnDowncast(t,e,n){0==e||e>1?t.setAttribute("start",e,n):t.removeAttribute("start",n)},getAttributeOnUpcast(t){const e=t.getAttribute("start");return e>=0?e:1}});return e}(t.config.get("list.properties"));for(const i of r)i.addCommand(t),e.schema.extend("$listItem",{allowAttributes:i.attributeName}),n.registerDowncastStrategy({scope:"list",attributeName:i.attributeName,setAttributeOnDowncast(t,e,n){i.setAttributeOnDowncast(t,e,n)}});t.conversion.for("upcast").add((t=>{for(const e of r)t.on("element:ol",wE(e)),t.on("element:ul",wE(e))})),n.on("checkAttributes:list",((t,{viewElement:e,modelAttributes:n})=>{for(const i of r)i.getAttributeOnUpcast(e)!=n[i.attributeName]&&(t.return=!0,t.stop())})),this.listenTo(t.commands.get("indentList"),"afterExecute",((t,n)=>{e.change((t=>{for(const e of n)for(const n of r)n.appliesToListItem(e)&&t.setAttribute(n.attributeName,n.defaultValue,e)}))})),n.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:i}of e)for(const e of r)e.hasValidAttribute(i)||(e.appliesToListItem(i)?n.setAttribute(e.attributeName,e.defaultValue,i):n.removeAttribute(e.attributeName,i),t.return=!0)})),n.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:i,previousNodeInList:o}of e)if(o&&o.getAttribute("listType")==i.getAttribute("listType"))for(const e of r){const{attributeName:r}=e;if(!e.appliesToListItem(i))continue;const s=o.getAttribute(r);i.getAttribute(r)!=s&&(n.setAttribute(r,s,i),t.return=!0)}}))}}var xE=n(9968),EE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(xE.A,EE);xE.A.locals;class BE extends lm{children;stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;reversedSwitchButtonView=null;focusTracker=new Bo;keystrokes=new Do;focusables=new Mu;focusCycler;constructor(t,{enabledProperties:e,styleButtonViews:n,styleGridAriaLabel:r}){super(t);const i=["ck","ck-list-properties"];this.children=this.createCollection(),this.focusCycler=new ym({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),n&&n.length?(this.stylesView=this._createStylesView(n,r),this.children.add(this.stylesView)):i.push("ck-list-properties_without-styles"),(e.startIndex||e.reversed)&&(this._addNumberedListPropertyViews(e),i.push("ck-list-properties_with-numbered-properties")),this.setTemplate({tag:"div",attributes:{class:i},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element),(this.startIndexFieldView||this.reversedSwitchButtonView)&&(this.focusables.add(this.children.last.buttonView),this.focusTracker.add(this.children.last.buttonView.element));for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);um({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>Yn.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.reversedSwitchButtonView&&(this.focusables.add(this.reversedSwitchButtonView),this.focusTracker.add(this.reversedSwitchButtonView.element)),this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createStylesView(t,e){const n=new lm(this.locale);return n.children=n.createCollection(),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-list-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n.focus=function(){this.children.first.focus()},n.focusTracker=new Bo,n.keystrokes=new Do,n.render(),n.keystrokes.listenTo(n.element),n}_addNumberedListPropertyViews(t){const e=this.locale.t,n=[];t.startIndex&&(this.startIndexFieldView=this._createStartIndexField(),n.push(this.startIndexFieldView)),t.reversed&&(this.reversedSwitchButtonView=this._createReversedSwitchButton(),n.push(this.reversedSwitchButtonView)),this.stylesView?(this.additionalPropertiesCollapsibleView=new mg(this.locale,n),this.additionalPropertiesCollapsibleView.set({label:e("List properties"),isCollapsed:!0}),this.additionalPropertiesCollapsibleView.buttonView.bind("isEnabled").toMany(n,"isEnabled",((...t)=>t.some((t=>t)))),this.additionalPropertiesCollapsibleView.buttonView.on("change:isEnabled",((t,e,n)=>{n||(this.additionalPropertiesCollapsibleView.isCollapsed=!0)})),this.children.add(this.additionalPropertiesCollapsibleView)):this.children.addMany(n)}_createStartIndexField(){const t=this.locale.t,e=new Sg(this.locale,Lp);return e.set({label:t("Start at"),class:"ck-numbered-list-properties__start-index"}),e.fieldView.set({min:0,step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",(()=>{const n=e.fieldView.element,r=n.valueAsNumber;Number.isNaN(r)?e.errorText=t("Invalid start index value."):n.checkValidity()?this.fire("listStart",{startIndex:r}):e.errorText=t("Start index must be greater than 0.")})),e}_createReversedSwitchButton(){const t=this.locale.t,e=new og(this.locale);return e.set({withText:!0,label:t("Reversed order"),class:"ck-numbered-list-properties__reversed-order"}),e.delegate("execute").to(this,"listReversed"),e}}var DE=n(7141),SE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(DE.A,SE);DE.A.locals;class TE extends Lo{static get pluginName(){return"ListPropertiesUI"}init(){const t=this.editor,e=t.locale.t,n=t.config.get("list.properties"),r=_E(n),i=r.styles.listTypes;if(i.includes("bulleted")){const n=[{label:e("Toggle the disc list style"),tooltip:e("Disc"),type:"disc",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>'},{label:e("Toggle the circle list style"),tooltip:e("Circle"),type:"circle",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"/></svg>'},{label:e("Toggle the square list style"),tooltip:e("Square"),type:"square",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z"/></svg>'}],i=e("Bulleted List"),o=e("Bulleted list styles toolbar"),s="bulletedList";t.ui.componentFactory.add(s,IE({editor:t,normalizedConfig:r,parentCommandName:s,buttonLabel:i,buttonIcon:zu.bulletedList,styleGridAriaLabel:o,styleDefinitions:n})),t.ui.componentFactory.add(`menuBar:${s}`,VE({editor:t,normalizedConfig:r,parentCommandName:s,buttonLabel:i,styleGridAriaLabel:o,styleDefinitions:n}))}if(i.includes("numbered")||n.startIndex||n.reversed){const n=[{label:e("Toggle the decimal list style"),tooltip:e("Decimal"),type:"decimal",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M10.29 15V8.531H9.286c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15h1.235zM11.3 24v-1.147H8.848c.064-.111.148-.226.252-.343.104-.117.351-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.494-.824.104-.263.156-.539.156-.829 0-.51-.182-.936-.545-1.279-.363-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.153-.155.358-.233.616-.233.26 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.468.536-1.024 1.055-.692.641-1.155 1.156-1.389 1.544-.234.389-.375.8-.422 1.233H11.3zm2.333 0v-1.235h-1.235V24h1.235zM9.204 34.11c.615 0 1.129-.2 1.542-.598.413-.398.62-.88.62-1.446 0-.39-.11-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.619-.337.928-.788.928-1.353 0-.399-.151-.756-.453-1.073-.366-.386-.852-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.668.55c-.16.232-.28.544-.358.933l1.138.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.215 0 .386.065.515.194s.193.302.193.518c0 .255-.087.46-.263.613-.176.154-.43.227-.765.218l-.136 1.006c.22-.061.409-.092.567-.092.24 0 .444.09.61.272.168.182.251.428.251.739 0 .328-.087.589-.261.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.307-.698l-1.196.145c.062.542.285.98.668 1.316.384.335.868.503 1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z"/></svg>'},{label:e("Toggle the decimal with leading zero list style"),tooltip:e("Decimal with leading zero"),type:"decimal-leading-zero",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M5.714 15.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm6.078.914V8.531H10.79c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.344 0v-1.235h-1.235V15h1.235zm-9.422 9.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm7.088.914v-1.147H10.35c.065-.111.149-.226.253-.343.104-.117.35-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.493-.824.104-.263.156-.539.156-.829 0-.51-.181-.936-.544-1.279-.364-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.152-.155.357-.233.615-.233.261 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.467.536-1.024 1.055-.691.641-1.154 1.156-1.388 1.544-.235.389-.375.8-.422 1.233h4.328zm2.334 0v-1.235h-1.235V24h1.235zM5.714 34.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm4.992 1.024c.616 0 1.13-.2 1.543-.598.413-.398.62-.88.62-1.446 0-.39-.111-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.618-.337.927-.788.927-1.353 0-.399-.15-.756-.452-1.073-.366-.386-.853-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.667.55c-.16.232-.28.544-.359.933l1.139.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.214 0 .386.065.515.194s.193.302.193.518c0 .255-.088.46-.264.613-.175.154-.43.227-.764.218l-.136 1.006c.22-.061.408-.092.566-.092.24 0 .444.09.611.272.167.182.25.428.25.739 0 .328-.086.589-.26.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.308-.698l-1.195.145c.062.542.284.98.668 1.316.384.335.867.503 1.45.503zm4.43-.11v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the lowerroman list style"),tooltip:e("Lowerroman"),type:"lower-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.88 8.7V7.558h-1.234V8.7h1.234zm0 5.3V9.333h-1.234V14h1.234zm2.5 0v-1.235h-1.234V14h1.235zm-4.75 4.7v-1.142H8.395V18.7H9.63zm0 5.3v-4.667H8.395V24H9.63zm2.5-5.3v-1.142h-1.234V18.7h1.235zm0 5.3v-4.667h-1.234V24h1.235zm2.501 0v-1.235h-1.235V24h1.235zM7.38 28.7v-1.142H6.145V28.7H7.38zm0 5.3v-4.667H6.145V34H7.38zm2.5-5.3v-1.142H8.646V28.7H9.88zm0 5.3v-4.667H8.646V34H9.88zm2.5-5.3v-1.142h-1.234V28.7h1.235zm0 5.3v-4.667h-1.234V34h1.235zm2.501 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the upperroman list style"),tooltip:e("Upper-roman"),type:"upper-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.916 15V8.558h-1.301V15h1.3zm2.465 0v-1.235h-1.235V15h1.235zM9.665 25v-6.442h-1.3V25h1.3zm2.5 0v-6.442h-1.3V25h1.3zm2.466 0v-1.235h-1.235V25h1.235zm-7.216 9v-6.442h-1.3V34h1.3zm2.5 0v-6.442h-1.3V34h1.3zm2.501 0v-6.442h-1.3V34h1.3zm2.465 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the lowerlatin list style"),tooltip:e("Lower-latin"),type:"lower-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M9.62 14.105c.272 0 .528-.05.768-.153s.466-.257.677-.462c.009.024.023.072.044.145.047.161.086.283.119.365h1.221a2.649 2.649 0 0 1-.222-.626c-.04-.195-.059-.498-.059-.908l.013-1.441c0-.536-.055-.905-.165-1.105-.11-.201-.3-.367-.569-.497-.27-.13-.68-.195-1.23-.195-.607 0-1.064.108-1.371.325-.308.217-.525.55-.65 1.002l1.12.202c.076-.217.176-.369.299-.455.123-.086.294-.13.514-.13.325 0 .546.05.663.152.118.101.176.27.176.508v.123c-.222.093-.622.194-1.2.303-.427.082-.755.178-.982.288-.227.11-.403.268-.53.474a1.327 1.327 0 0 0-.188.706c0 .398.138.728.415.988.277.261.656.391 1.136.391zm.368-.87a.675.675 0 0 1-.492-.189.606.606 0 0 1-.193-.448c0-.176.08-.32.241-.435.106-.07.33-.142.673-.215a7.19 7.19 0 0 0 .751-.19v.247c0 .296-.016.496-.048.602a.773.773 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14h1.235zM10.2 25.105c.542 0 1.003-.215 1.382-.646.38-.43.57-1.044.57-1.84 0-.771-.187-1.362-.559-1.774a1.82 1.82 0 0 0-1.41-.617c-.522 0-.973.216-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592c.26.133.523.2.79.2zm-.299-.975c-.354 0-.638-.164-.852-.492-.153-.232-.229-.59-.229-1.073 0-.468.098-.818.295-1.048a.93.93 0 0 1 .738-.345c.302 0 .55.118.743.354.193.236.29.62.29 1.154 0 .5-.096.868-.288 1.1-.192.233-.424.35-.697.35zm4.478.87v-1.235h-1.234V25h1.234zm-4.017 9.105c.6 0 1.08-.142 1.437-.426.357-.284.599-.704.725-1.261l-1.213-.207c-.061.326-.167.555-.316.688a.832.832 0 0 1-.576.2.916.916 0 0 1-.75-.343c-.185-.228-.278-.62-.278-1.173 0-.498.091-.853.274-1.066.183-.212.429-.318.736-.318.232 0 .42.061.565.184.145.123.238.306.28.55l1.216-.22c-.146-.501-.387-.874-.722-1.119-.336-.244-.788-.366-1.356-.366-.695 0-1.245.214-1.653.643-.407.43-.61 1.03-.61 1.8 0 .762.202 1.358.608 1.788.406.431.95.646 1.633.646zM14.633 34v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the upperlatin list style"),tooltip:e("Upper-latin"),type:"upper-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15h1.38zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15h1.234zM9.352 25c.83-.006 1.352-.02 1.569-.044.346-.038.636-.14.872-.305.236-.166.422-.387.558-.664.137-.277.205-.562.205-.855 0-.372-.106-.695-.317-.97-.21-.276-.512-.471-.905-.585a1.51 1.51 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83c0-.28-.066-.53-.197-.754a1.654 1.654 0 0 0-.495-.539 1.676 1.676 0 0 0-.672-.266c-.25-.042-.63-.063-1.14-.063H7.158V25h2.193zm.142-3.88H8.46v-1.49h.747c.612 0 .983.007 1.112.022.217.026.38.102.49.226.11.125.165.287.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 11.47 11.47 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05c.592 0 .977.03 1.154.092.177.062.313.16.406.295a.84.84 0 0 1 .14.492c0 .228-.06.41-.181.547a.806.806 0 0 1-.473.257c-.126.026-.423.04-.892.04zM14.88 25v-1.235h-1.234V25h1.234zm-5.018 9.11c.691 0 1.262-.17 1.711-.512.45-.341.772-.864.965-1.567l-1.261-.4c-.109.472-.287.818-.536 1.037-.25.22-.547.33-.892.33-.47 0-.85-.173-1.143-.519-.293-.345-.44-.925-.44-1.74 0-.767.15-1.322.447-1.665.297-.343.684-.514 1.162-.514.346 0 .64.096.881.29.242.193.4.457.477.79l1.288-.307c-.147-.516-.367-.911-.66-1.187-.492-.465-1.132-.698-1.92-.698-.902 0-1.63.296-2.184.89-.554.593-.83 1.426-.83 2.498 0 1.014.275 1.813.825 2.397.551.585 1.254.877 2.11.877zM14.88 34v-1.235h-1.234V34h1.234z"/></svg>'}],o=e("Numbered List"),s=e("Numbered list styles toolbar"),a="numberedList";t.ui.componentFactory.add(a,IE({editor:t,normalizedConfig:r,parentCommandName:a,buttonLabel:o,buttonIcon:zu.numberedList,styleGridAriaLabel:s,styleDefinitions:n})),i.includes("numbered")&&t.ui.componentFactory.add(`menuBar:${a}`,VE({editor:t,normalizedConfig:r,parentCommandName:a,buttonLabel:o,styleGridAriaLabel:s,styleDefinitions:n}))}}}function IE({editor:t,normalizedConfig:e,parentCommandName:n,buttonLabel:r,buttonIcon:i,styleGridAriaLabel:o,styleDefinitions:s}){const a=t.commands.get(n);return l=>{const c=Dp(l,vp),d=c.buttonView;return c.bind("isEnabled").to(a),c.class="ck-list-styles-dropdown",d.on("execute",(()=>{t.execute(n),t.editing.view.focus()})),d.set({label:r,icon:i,tooltip:!0,isToggleable:!0}),d.bind("isOn").to(a,"value",(t=>!!t)),c.once("change:isOpen",(()=>{const r=function({editor:t,normalizedConfig:e,dropdownView:n,parentCommandName:r,styleDefinitions:i,styleGridAriaLabel:o}){const s=t.locale,a={...e,..."numberedList"!=r?{startIndex:!1,reversed:!1}:null},l=r.replace("List","");let c=null;if(e.styles.listTypes.includes(l)){const e=t.commands.get("listStyle"),n=PE({editor:t,parentCommandName:r,listStyleCommand:e}),o=FE(e);c=i.filter(o).map(n)}const d=new BE(s,{styleGridAriaLabel:o,enabledProperties:a,styleButtonViews:c});e.styles.listTypes.includes(l)&&Vp(n,(()=>d.stylesView.children.find((t=>t.isOn))));if(a.startIndex){const e=t.commands.get("listStart");d.startIndexFieldView.bind("isEnabled").to(e),d.startIndexFieldView.fieldView.bind("value").to(e),d.on("listStart",((e,n)=>t.execute("listStart",n)))}if(a.reversed){const e=t.commands.get("listReversed");d.reversedSwitchButtonView.bind("isEnabled").to(e),d.reversedSwitchButtonView.bind("isOn").to(e,"value",(t=>!!t)),d.on("listReversed",(()=>{const n=e.value;t.execute("listReversed",{reversed:!n})}))}return d.delegate("execute").to(n),d}({editor:t,normalizedConfig:e,dropdownView:c,parentCommandName:n,styleGridAriaLabel:o,styleDefinitions:s});c.panelView.children.add(r)})),c.on("execute",(()=>{t.editing.view.focus()})),c}}function PE({editor:t,listStyleCommand:e,parentCommandName:n}){const r=t.locale,i=t.commands.get(n);return({label:o,type:s,icon:a,tooltip:l})=>{const c=new wm(r);return c.set({label:o,icon:a,tooltip:l}),e.on("change:value",(()=>{c.isOn=e.value===s})),c.on("execute",(()=>{i.value?e.value===s?t.execute(n):e.value!==s&&t.execute("listStyle",{type:s}):t.model.change((()=>{t.execute("listStyle",{type:s})}))})),c}}function VE({editor:t,normalizedConfig:e,parentCommandName:n,buttonLabel:r,styleGridAriaLabel:i,styleDefinitions:o}){return s=>{const a=new ik(s),l=t.commands.get(n),c=t.commands.get("listStyle"),d=FE(c),h=PE({editor:t,parentCommandName:n,listStyleCommand:c}),u=o.filter(d).map(h),m=new BE(s,{styleGridAriaLabel:i,enabledProperties:{...e,startIndex:!1,reversed:!1},styleButtonViews:u});return m.delegate("execute").to(a),a.buttonView.set({label:r,icon:zu[n]}),a.panelView.children.add(m),a.bind("isEnabled").to(l,"isEnabled"),a.on("execute",(()=>{t.editing.view.focus()})),a}}function FE(t){return"function"==typeof t.isStyleTypeSupported?e=>t.isStyleTypeSupported(e.type):()=>!0}class RE extends Lo{static get requires(){return[yE,TE]}static get pluginName(){return"ListProperties"}}class LE extends Mo{constructor(t){super(t),this.on("execute",(()=>{this.refresh()}),{priority:"highest"})}refresh(){const t=this._getSelectedItems();this.value=this._getValue(t),this.isEnabled=!!t.length}execute(t={}){this.editor.model.change((e=>{const n=this._getSelectedItems(),r=void 0===t.forceValue?!this._getValue(n):t.forceValue;for(const t of n)r?e.setAttribute("todoListChecked",!0,t):e.removeAttribute("todoListChecked",t)}))}_getValue(t){return t.every((t=>t.getAttribute("todoListChecked")))}_getSelectedItems(){const t=this.editor.model,e=t.schema,n=t.document.selection.getFirstRange(),r=n.start.parent,i=[];e.checkAttribute(r,"todoListChecked")&&i.push(...fx(r));for(const t of n.getItems({shallow:!0}))e.checkAttribute(t,"todoListChecked")&&!i.includes(t)&&i.push(...fx(t));return i}}class zE extends nl{domEventType=["change"];onDomEvent(t){if(t.target){const e=this.view.domConverter.mapDomToView(t.target);e&&e.is("element","input")&&"checkbox"==e.getAttribute("type")&&e.findAncestor({classes:"todo-list__label"})&&this.fire("todoCheckboxChange",t)}}}const ME=Zi("Ctrl+Enter");class NE extends Lo{static get pluginName(){return"TodoListEditing"}static get requires(){return[nE]}init(){const t=this.editor,e=t.model,n=t.editing,r=t.plugins.get(nE),i=t.config.get("list.multiBlock")?"paragraph":"listItem";t.commands.add("todoList",new Rx(t,"todo")),t.commands.add("checkTodoList",new LE(t)),n.view.addObserver(zE),e.schema.extend("$listItem",{allowAttributes:"todoListChecked"}),e.schema.addAttributeCheck((t=>{const e=t.last;if(!e.getAttribute("listItemId")||"todo"!=e.getAttribute("listType"))return!1}),"todoListChecked"),t.conversion.for("upcast").add((t=>{t.on("element:input",((t,e,n)=>{const r=e.modelCursor,i=r.parent,o=e.viewItem;if(!n.consumable.test(o,{name:!0}))return;if("checkbox"!=o.getAttribute("type")||!r.isAtStart||!i.hasAttribute("listType"))return;n.consumable.consume(o,{name:!0});const s=n.writer;s.setAttribute("listType","todo",i),e.viewItem.hasAttribute("checked")&&s.setAttribute("todoListChecked",!0,i),e.modelRange=s.createRange(r)})),t.on("element:li",((t,e,n)=>{const{writer:r,schema:i}=n;if(!e.modelRange)return;const o=Array.from(e.modelRange.getItems({shallow:!0})).filter((t=>"todo"===t.getAttribute("listType")&&i.checkAttribute(t,"listItemId"))).reduce(((t,e)=>{const n=e.getAttribute("listItemId");return t.has(n)||t.set(n,fx(e)),t}),new Map);for(const[,t]of o.entries())if(t.some((t=>t.getAttribute("todoListChecked"))))for(const e of t)r.setAttribute("todoListChecked",!0,e)}),{priority:"low"}),t.on("element:label",OE({name:"label",classes:"todo-list__label"})),t.on("element:label",OE({name:"label",classes:["todo-list__label","todo-list__label_without-description"]})),t.on("element:span",OE({name:"span",classes:"todo-list__label__description"})),t.on("element:ul",function(t){const e=new as(t);return(t,n,r)=>{const i=e.match(n.viewItem);if(!i)return;const o=i.match;o.name=!1,r.consumable.consume(n.viewItem,o)}}({name:"ul",classes:"todo-list"}))})),t.conversion.for("downcast").elementToElement({model:i,view:(t,{writer:e})=>{if(HE(t,r.getListAttributeNames()))return e.createContainerElement("span",{class:"todo-list__label__description"})},converterPriority:"highest"}),r.registerDowncastStrategy({scope:"list",attributeName:"listType",setAttributeOnDowncast(t,e,n){"todo"==e?t.addClass("todo-list",n):t.removeClass("todo-list",n)}}),r.registerDowncastStrategy({scope:"itemMarker",attributeName:"todoListChecked",createElement(t,e,{dataPipeline:n}){if("todo"!=e.getAttribute("listType"))return null;const r=t.createUIElement("input",{type:"checkbox",...e.getAttribute("todoListChecked")?{checked:"checked"}:null,...n?{disabled:"disabled"}:{tabindex:"-1"}});if(n)return r;const i=t.createContainerElement("span",{contenteditable:"false"},r);return i.getFillerOffset=()=>null,i},canWrapElement:t=>HE(t,r.getListAttributeNames()),createWrapperElement(t,e,{dataPipeline:n}){const i=["todo-list__label"];return HE(e,r.getListAttributeNames())||i.push("todo-list__label_without-description"),t.createAttributeElement(n?"label":"span",{class:i.join(" ")})}}),r.on("checkElement",((t,{modelElement:e,viewElement:n})=>{const i=HE(e,r.getListAttributeNames());n.hasClass("todo-list__label__description")!=i&&(t.return=!0,t.stop())})),r.on("checkElement",((e,{modelElement:n,viewElement:r})=>{const i="todo"==n.getAttribute("listType")&&wx(n);let o=!1;const s=t.editing.view.createPositionBefore(r).getWalker({direction:"backward"});for(const{item:e}of s){if(e.is("element")&&t.editing.mapper.toModelElement(e))break;e.is("element","input")&&"checkbox"==e.getAttribute("type")&&(o=!0)}o!=i&&(e.return=!0,e.stop())})),r.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:r,previousNodeInList:i}of e){if(!i)continue;if(i.getAttribute("listItemId")!=r.getAttribute("listItemId"))continue;const e=i.hasAttribute("todoListChecked"),o=r.hasAttribute("todoListChecked");o&&!e?(n.removeAttribute("todoListChecked",r),t.return=!0):!o&&e&&(n.setAttribute("todoListChecked",!0,r),t.return=!0)}})),e.document.registerPostFixer((t=>{const n=e.document.differ.getChanges();let r=!1;for(const e of n)if("attribute"==e.type&&"listType"==e.attributeKey){const n=e.range.start.nodeAfter;"todo"==e.attributeOldValue&&n.hasAttribute("todoListChecked")&&(t.removeAttribute("todoListChecked",n),r=!0)}else if("insert"==e.type&&"$text"!=e.name)for(const{item:n}of t.createRangeOn(e.position.nodeAfter))n.is("element")&&"todo"!=n.getAttribute("listType")&&n.hasAttribute("todoListChecked")&&(t.removeAttribute("todoListChecked",n),r=!0);return r})),this.listenTo(n.view.document,"keydown",((e,n)=>{Ki(n)===ME&&(t.execute("checkTodoList"),e.stop())}),{priority:"high"}),this.listenTo(n.view.document,"todoCheckboxChange",((t,e)=>{const r=e.target;if(!r||!r.is("element","input"))return;const i=n.view.createPositionAfter(r),o=n.mapper.toModelPosition(i).parent;o&&px(o)&&"todo"==o.getAttribute("listType")&&this._handleCheckmarkChange(o)})),this.listenTo(n.view.document,"arrowKey",function(t,e){return(n,r)=>{const i=Ji(r.keyCode,e.contentLanguageDirection),o=t.schema,s=t.document.selection;if(!s.isCollapsed)return;const a=s.getFirstPosition(),l=a.parent;if("right"==i&&a.isAtEnd){const e=o.getNearestSelectionRange(t.createPositionAfter(l),"forward");if(!e)return;const i=e.start.parent;i&&px(i)&&"todo"==i.getAttribute("listType")&&(t.change((t=>t.setSelection(e))),r.preventDefault(),r.stopPropagation(),n.stop())}else if("left"==i&&a.isAtStart&&px(l)&&"todo"==l.getAttribute("listType")){const e=o.getNearestSelectionRange(t.createPositionBefore(l),"backward");if(!e)return;t.change((t=>t.setSelection(e))),r.preventDefault(),r.stopPropagation(),n.stop()}}}(e,t.locale),{context:"$text"}),this.listenTo(n.mapper,"viewToModelPosition",((t,n)=>{const r=n.viewPosition.parent,i=r.is("attributeElement","li")&&0==n.viewPosition.offset,o=jE(r)&&n.viewPosition.offset<=1,s=r.is("element","span")&&"false"==r.getAttribute("contenteditable")&&jE(r.parent);if(!i&&!o&&!s)return;const a=n.modelPosition.nodeAfter;a&&"todo"==a.getAttribute("listType")&&(n.modelPosition=e.createPositionAt(a,0))}),{priority:"low"}),this._initAriaAnnouncements()}_handleCheckmarkChange(t){const e=this.editor,n=e.model,r=Array.from(n.document.selection.getRanges());n.change((n=>{n.setSelection(t,"end"),e.execute("checkTodoList"),n.setSelection(r)}))}_initAriaAnnouncements(){const{model:t,ui:e,t:n}=this.editor;let r=null;e&&t.document.selection.on("change:range",(()=>{const i=t.document.selection.focus.parent,o=qE(r),s=qE(i);o&&!s?e.ariaLiveAnnouncer.announce(n("Leaving a to-do list")):!o&&s&&e.ariaLiveAnnouncer.announce(n("Entering a to-do list")),r=i}))}}function OE(t){const e=new as(t);return(t,n,r)=>{const i=e.match(n.viewItem);i&&r.consumable.consume(n.viewItem,i.match)&&Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor))}}function HE(t,e){return(t.is("element","paragraph")||t.is("element","listItem"))&&"todo"==t.getAttribute("listType")&&wx(t)&&function(t,e){for(const n of t.getAttributeKeys())if(!n.startsWith("selection:")&&!e.includes(n))return!1;return!0}(t,e)}function jE(t){return!!t&&t.is("attributeElement")&&t.hasClass("todo-list__label")}function qE(t){return!!t&&(!(!t.is("element","paragraph")&&!t.is("element","listItem"))&&"todo"==t.getAttribute("listType"))}class UE extends Lo{static get pluginName(){return"TodoListUI"}init(){const t=this.editor.t;iE(this.editor,"todoList",t("To-do List"),zu.todoList)}}var WE=n(8991),$E={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(WE.A,$E);WE.A.locals;class GE extends Lo{static get requires(){return[NE,UE]}static get pluginName(){return"TodoList"}}function KE(t){return void 0!==t&&t.endsWith("px")}function ZE(t){return t.toFixed(2).replace(/\.?0+$/,"")+"px"}function YE(t,e,n){if(!t.childCount)return;const r=new jh(t.document),i=function(t,e){const n=e.createRangeIn(t),r=[],i=new Set;for(const t of n.getItems()){if(!t.is("element")||!t.name.match(/^(p|h\d+|li|div)$/))continue;let e=iB(t);if(void 0===e||0!=parseFloat(e)||Array.from(t.getClassNames()).find((t=>t.startsWith("MsoList")))||(e=void 0),t.hasStyle("mso-list")||void 0!==e&&i.has(e)){const n=nB(t);r.push({element:t,id:n.id,order:n.order,indent:n.indent,marginLeft:e}),void 0!==e&&i.add(e)}else i.clear()}return r}(t,r);if(!i.length)return;const o={},s=[];for(const t of i)if(void 0!==t.indent){JE(t)||(s.length=0);const i=`${t.id}:${t.indent}`,a=Math.min(t.indent-1,s.length);if(a<s.length&&s[a].id!==t.id&&(s.length=a),a<s.length-1)s.length=a+1;else{const l=XE(t,e);if(a>s.length-1||s[a].listElement.name!=l.type){0==a&&"ol"==l.type&&void 0!==t.id&&o[i]&&(l.startIndex=o[i]);const e=eB(l,r,n);if(KE(t.marginLeft)&&(0==a||KE(s[a-1].marginLeft))){let n=t.marginLeft;a>0&&(n=ZE(parseFloat(n)-parseFloat(s[a-1].marginLeft))),r.setStyle("padding-left",n,e)}if(0==s.length){const n=t.element.parent,i=n.getChildIndex(t.element)+1;r.insertChild(i,e,n)}else{const t=s[a-1].listItemElements;r.appendChild(e,t[t.length-1])}s[a]={...t,listElement:e,listItemElements:[]},0==a&&void 0!==t.id&&(o[i]=l.startIndex||1)}}const l="li"==t.element.name?t.element:r.createElement("li");r.appendChild(l,s[a].listElement),s[a].listItemElements.push(l),0==a&&void 0!==t.id&&o[i]++,t.element!=l&&r.appendChild(t.element,l),rB(t.element,r),r.removeStyle("text-indent",t.element),r.removeStyle("margin-left",t.element)}else{const e=s.find((e=>e.marginLeft==t.marginLeft));if(e){const n=e.listItemElements;r.appendChild(t.element,n[n.length-1]),r.removeStyle("margin-left",t.element)}else s.length=0}}function JE(t){const e=t.element.previousSibling;return QE(e||t.element.parent)}function QE(t){return t.is("element","ol")||t.is("element","ul")}function XE(t,e){const n=new RegExp(`@list l${t.id}:level${t.indent}\\s*({[^}]*)`,"gi"),r=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,o=new RegExp(`@list\\s+l${t.id}:level\\d\\s*{[^{]*mso-level-text:"%\\d\\\\.`,"gi"),s=new RegExp(`@list l${t.id}:level\\d\\s*{[^{]*mso-level-number-format:`,"gi"),a=o.exec(e),l=s.exec(e),c=a&&!l,d=n.exec(e);let h="decimal",u="ol",m=null;if(d&&d[1]){const e=r.exec(d[1]);if(e&&e[1]&&(h=e[1].trim(),u="bullet"!==h&&"image"!==h?"ol":"ul"),"bullet"===h){const e=function(t){if("li"==t.name&&"ul"==t.parent.name&&t.parent.hasAttribute("type"))return t.parent.getAttribute("type");const e=function(t){if(t.getChild(0).is("$text"))return null;for(const e of t.getChildren()){if(!e.is("element","span"))continue;const t=e.getChild(0);if(t)return t.is("$text")?t:t.getChild(0)}return null}(t);if(!e)return null;const n=e._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(t.element);e&&(h=e)}else{const t=i.exec(d[1]);t&&t[1]&&(m=parseInt(t[1]))}c&&(u="ol")}return{type:u,startIndex:m,style:tB(h),isLegalStyleList:c}}function tB(t){if(t.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(t){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return t;default:return null}}function eB(t,e,n){const r=e.createElement(t.type);return t.style&&e.setStyle("list-style-type",t.style,r),t.startIndex&&t.startIndex>1&&e.setAttribute("start",t.startIndex,r),t.isLegalStyleList&&n&&e.addClass("legal-list",r),r}function nB(t){const e=t.getStyle("mso-list");if(void 0===e)return{};const n=e.match(/(^|\s{1,100})l(\d+)/i),r=e.match(/\s{0,100}lfo(\d+)/i),i=e.match(/\s{0,100}level(\d+)/i);return n&&r&&i?{id:n[2],order:r[1],indent:parseInt(i[1])}:{indent:1}}function rB(t,e){const n=new as({name:"span",styles:{"mso-list":"Ignore"}}),r=e.createRangeIn(t);for(const t of r)"elementStart"===t.type&&n.match(t.item)&&e.remove(t.item)}function iB(t){const e=t.getStyle("margin-left");return void 0===e||e.endsWith("px")?e:function(t){const e=parseFloat(t);return t.endsWith("pt")?ZE(96*e/72):t.endsWith("pc")?ZE(12*e*96/72):t.endsWith("in")?ZE(96*e):t.endsWith("cm")?ZE(96*e/2.54):t.endsWith("mm")?ZE(e/10*96/2.54):t}(e)}function oB(t,e){if(!t.childCount)return;const n=new jh(t.document),r=function(t,e){const n=e.createRangeIn(t),r=new as({name:/v:(.+)/}),i=[];for(const t of n){if("elementStart"!=t.type)continue;const e=t.item,n=e.previousSibling,o=n&&n.is("element")?n.name:null,s=["Chart"],a=r.match(e),l=e.getAttribute("o:gfxdata"),c="v:shapetype"===o,d=l&&s.some((t=>e.getAttribute("id").includes(t)));a&&l&&!c&&!d&&i.push(t.item.getAttribute("id"))}return i}(t,n);!function(t,e,n){const r=n.createRangeIn(e),i=new as({name:"img"}),o=[];for(const e of r)if(e.item.is("element")&&i.match(e.item)){const n=e.item,r=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];r.length&&r.every((e=>t.indexOf(e)>-1))?o.push(n):n.getAttribute("src")||o.push(n)}for(const t of o)n.remove(t)}(r,t,n),function(t,e,n){const r=n.createRangeIn(e),i=[];for(const e of r)if("elementStart"==e.type&&e.item.is("element","v:shape")){const n=e.item.getAttribute("id");if(t.includes(n))continue;o(e.item.parent.getChildren(),n)||i.push(e.item)}for(const t of i){const e={src:s(t)};t.hasAttribute("alt")&&(e.alt=t.getAttribute("alt"));const r=n.createElement("img",e);n.insertChild(t.index+1,r,t.parent)}function o(t,e){for(const n of t)if(n.is("element")){if("img"==n.name&&n.getAttribute("v:shapes")==e)return!0;if(o(n.getChildren(),e))return!0}return!1}function s(t){for(const e of t.getChildren())if(e.is("element")&&e.getAttribute("src"))return e.getAttribute("src")}}(r,t,n),function(t,e){const n=e.createRangeIn(t),r=new as({name:/v:(.+)/}),i=[];for(const t of n)"elementStart"==t.type&&r.match(t.item)&&i.push(t.item);for(const t of i)e.remove(t)}(t,n);const i=function(t,e){const n=e.createRangeIn(t),r=new as({name:"img"}),i=[];for(const t of n)t.item.is("element")&&r.match(t.item)&&t.item.getAttribute("src").startsWith("file://")&&i.push(t.item);return i}(t,n);i.length&&function(t,e,n){if(t.length===e.length)for(let r=0;r<t.length;r++){const i=`data:${e[r].type};base64,${sB(e[r].hex)}`;n.setAttribute("src",i,t[r])}}(i,function(t){if(!t)return[];const e=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+e.source+"))([\\da-fA-F\\s]+)\\}","g"),r=t.match(n),i=[];if(r)for(const t of r){let n=!1;t.includes("\\pngblip")?n="image/png":t.includes("\\jpegblip")&&(n="image/jpeg"),n&&i.push({hex:t.replace(e,"").replace(/[^\da-fA-F]/g,""),type:n})}return i}(e),n)}function sB(t){return btoa(t.match(/\w{2}/g).map((t=>String.fromCharCode(parseInt(t,16)))).join(""))}const aB=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,lB=/xmlns:o="urn:schemas-microsoft-com/i;class cB{document;hasMultiLevelListPlugin;constructor(t,e=!1){this.document=t,this.hasMultiLevelListPlugin=e}isActive(t){return aB.test(t)||lB.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;YE(e,n,this.hasMultiLevelListPlugin),oB(e,t.dataTransfer.getData("text/rtf")),function(t){const e=[],n=new jh(t.document);for(const{item:r}of n.createRangeIn(t))if(r.is("element")){for(const t of r.getClassNames())/\bmso/gi.exec(t)&&n.removeClass(t,r);for(const t of r.getStyleNames())/\bmso/gi.exec(t)&&n.removeStyle(t,r);(r.is("element","w:sdt")||r.is("element","w:sdtpr")&&r.isEmpty||r.is("element","o:p")&&r.isEmpty)&&e.push(r)}for(const t of e){const e=t.parent,r=e.getChildIndex(t);n.insertChild(r,t.getChildren(),e),n.remove(t)}}(e),t.content=e}}function dB(t,e,n,{blockElements:r,inlineObjectElements:i}){let o=n.createPositionAt(t,"forward"==e?"after":"before");return o=o.getLastMatchingPosition((({item:t})=>t.is("element")&&!r.includes(t.name)&&!i.includes(t.name)),{direction:e}),"forward"==e?o.nodeAfter:o.nodeBefore}function hB(t,e){return!!t&&t.is("element")&&e.includes(t.name)}const uB=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class mB{document;constructor(t){this.document=t}isActive(t){return uB.test(t)}execute(t){const e=new jh(this.document),{body:n}=t._parsedData;!function(t,e){for(const n of t.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const r=t.getChildIndex(n);e.remove(n),e.insertChild(r,n.getChildren(),t)}}(n,e),function(t,e){for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","li")){const n=t.getChild(0);n&&n.is("element","p")&&e.unwrapElement(n)}}}(n,e),function(t,e){const n=new sa(e.document.stylesProcessor),r=new Za(n,{renderingMode:"data"}),i=r.blockElements,o=r.inlineObjectElements,s=[];for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","br")){const n=dB(t,"forward",e,{blockElements:i,inlineObjectElements:o}),r=dB(t,"backward",e,{blockElements:i,inlineObjectElements:o}),a=hB(n,i);(hB(r,i)||a)&&s.push(t)}}for(const t of s)t.hasClass("Apple-interchange-newline")?e.remove(t):e.replace(t,e.createElement("p"))}(n,e),t.content=n}}const gB=/<google-sheets-html-origin/i;class pB{document;constructor(t){this.document=t}isActive(t){return gB.test(t)}execute(t){const e=new jh(this.document),{body:n}=t._parsedData;!function(t,e){for(const n of t.getChildren())if(n.is("element","google-sheets-html-origin")){const r=t.getChildIndex(n);e.remove(n),e.insertChild(r,n.getChildren(),t)}}(n,e),function(t,e){for(const n of t.getChildren())n.is("element","table")&&n.hasAttribute("xmlns")&&e.removeAttribute("xmlns",n)}(n,e),function(t,e){for(const n of t.getChildren())n.is("element","table")&&"0px"===n.getStyle("width")&&e.removeStyle("width",n)}(n,e),function(t,e){for(const n of Array.from(t.getChildren()))n.is("element","style")&&e.remove(n)}(n,e),t.content=n}}function fB(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((t,e)=>1===e.length?" ":Array(e.length+1).join("  ").substr(0,e.length)))}function bB(t,e){const n=new DOMParser,r=function(t){return fB(fB(t)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/(<span\s+style=['"]letter-spacing:[^'"]+?['"]>)[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(t){const e="</body>",n="</html>",r=t.indexOf(e);if(r<0)return t;const i=t.indexOf(n,r+e.length);return t.substring(0,r+e.length)+(i>=0?t.substring(i):"")}(t=(t=t.replace(/<!--\[if gte vml 1]>/g,"")).replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,""))),i=n.parseFromString(r,"text/html");!function(t){t.querySelectorAll("span[style*=spacerun]").forEach((t=>{const e=t,n=e.innerText.length||0;e.innerText=Array(n+1).join("  ").substr(0,n)}))}(i);const o=i.body.innerHTML,s=function(t,e){const n=new sa(e),r=new Za(n,{renderingMode:"data"}),i=t.createDocumentFragment(),o=t.body.childNodes;for(;o.length>0;)i.appendChild(o[0]);return r.domToView(i,{skipComments:!0})}(i,e),a=function(t){const e=[],n=[],r=Array.from(t.getElementsByTagName("style"));for(const t of r)t.sheet&&t.sheet.cssRules&&t.sheet.cssRules.length&&(e.push(t.sheet),n.push(t.innerHTML));return{styles:e,stylesString:n.join(" ")}}(i);return{body:s,bodyString:o,styles:a.styles,stylesString:a.stylesString}}function kB(t,e){const{modelAttribute:n,styleName:r,viewElement:i,defaultValue:o,reduceBoxSides:s=!1,shouldUpcast:a=()=>!0}=e;t.for("upcast").attributeToAttribute({view:{name:i,styles:{[r]:/[\s\S]+/}},model:{key:n,value:t=>{if(!a(t))return;const e=t.getNormalizedStyle(r),n=s?CB(e):e;return o!==n?n:void 0}}})}function wB(t,e,n,r){t.for("upcast").add((t=>t.on("element:"+e,((t,e,i)=>{if(!e.modelRange)return;const o=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter((t=>e.viewItem.hasStyle(t)));if(!o.length)return;const s={styles:o};if(!i.consumable.test(e.viewItem,s))return;const a=[...e.modelRange.getItems({shallow:!0})].pop();i.consumable.consume(e.viewItem,s);const l={style:e.viewItem.getNormalizedStyle("border-style"),color:e.viewItem.getNormalizedStyle("border-color"),width:e.viewItem.getNormalizedStyle("border-width")},c={style:CB(l.style),color:CB(l.color),width:CB(l.width)};c.style!==r.style&&i.writer.setAttribute(n.style,c.style,a),c.color!==r.color&&i.writer.setAttribute(n.color,c.color,a),c.width!==r.width&&i.writer.setAttribute(n.width,c.width,a)}))))}function AB(t,e){const{modelElement:n,modelAttribute:r,styleName:i}=e;t.for("downcast").attributeToAttribute({model:{name:n,key:r},view:t=>({key:"style",value:{[i]:t}})})}function _B(t,e){const{modelAttribute:n,styleName:r}=e;t.for("downcast").add((t=>t.on(`attribute:${n}:table`,((t,e,n)=>{const{item:i,attributeNewValue:o}=e,{mapper:s,writer:a}=n;if(!n.consumable.consume(e.item,t.name))return;const l=[...s.toViewElement(i).getChildren()].find((t=>t.is("element","table")));o?a.setStyle(r,o,l):a.removeStyle(r,l)}))))}function CB(t){if(!t)return;const e=["top","right","bottom","left"];if(!e.every((e=>t[e])))return t;const n=t.top;return e.every((e=>t[e]===n))?n:t}function vB(t,e,n,r,i=1){null!=e&&null!=i&&e>i?r.setAttribute(t,e,n):r.removeAttribute(t,n)}function yB(t,e,n={}){const r=t.createElement("tableCell",n);return t.insertElement("paragraph",r),t.insert(r,e),r}function xB(t,e){const n=e.parent.parent,r=parseInt(n.getAttribute("headingColumns")||"0"),{column:i}=t.getCellLocation(e);return!!r&&i<r}function EB(t,e,n){const{modelAttribute:r}=n;t.extend("tableCell",{allowAttributes:[r]}),kB(e,{viewElement:/^(td|th)$/,...n}),AB(e,{modelElement:"tableCell",...n})}function BB(t){const e=t.getSelectedElement();return e&&e.is("element","table")?e:t.getFirstPosition().findAncestor("table")}function DB(){return t=>{t.on("element:table",((t,e,n)=>{const r=e.viewItem;if(!n.consumable.test(r,{name:!0}))return;const{rows:i,headingRows:o,headingColumns:s}=function(t){let e,n=0;const r=[],i=[];let o;for(const s of Array.from(t.getChildren())){if("tbody"!==s.name&&"thead"!==s.name&&"tfoot"!==s.name)continue;"thead"!==s.name||o||(o=s);const t=Array.from(s.getChildren()).filter((t=>t.is("element","tr")));for(const a of t)if(o&&s===o||"tbody"===s.name&&Array.from(a.getChildren()).length&&Array.from(a.getChildren()).every((t=>t.is("element","th"))))n++,r.push(a);else{i.push(a);const t=TB(a);(!e||t<e)&&(e=t)}}return{headingRows:n,headingColumns:e||0,rows:[...r,...i]}}(r),a={};s&&(a.headingColumns=s),o&&(a.headingRows=o);const l=n.writer.createElement("table",a);if(n.safeInsert(l,e.modelCursor)){if(n.consumable.consume(r,{name:!0}),i.forEach((t=>n.convertItem(t,n.writer.createPositionAt(l,"end")))),n.convertChildren(r,n.writer.createPositionAt(l,"end")),l.isEmpty){const t=n.writer.createElement("tableRow");n.writer.insert(t,n.writer.createPositionAt(l,"end")),yB(n.writer,n.writer.createPositionAt(t,"end"))}n.updateConversionResult(l,e)}}))}}function SB(t){return e=>{e.on(`element:${t}`,((t,e,{writer:n})=>{if(!e.modelRange)return;const r=e.modelRange.start.nodeAfter,i=n.createPositionAt(r,0);if(e.viewItem.isEmpty)return void n.insertElement("paragraph",i);const o=Array.from(r.getChildren());if(o.every((t=>t.is("element","$marker")))){const t=n.createElement("paragraph");n.insert(t,n.createPositionAt(r,0));for(const e of o)n.move(n.createRangeOn(e),n.createPositionAt(t,"end"))}}),{priority:"low"})}}function TB(t){let e=0,n=0;const r=Array.from(t.getChildren()).filter((t=>"th"===t.name||"td"===t.name));for(;n<r.length&&"th"===r[n].name;){const t=r[n];e+=parseInt(t.getAttribute("colspan")||"1"),n++}return e}class IB{_table;_startRow;_endRow;_startColumn;_endColumn;_includeAllSlots;_skipRows;_row;_rowIndex;_column;_cellIndex;_spannedCells;_nextCellAtColumn;_jumpedToStartRow=!1;constructor(t,e={}){this._table=t,this._startRow=void 0!==e.row?e.row:e.startRow||0,this._endRow=void 0!==e.row?e.row:e.endRow,this._startColumn=void 0!==e.column?e.column:e.startColumn||0,this._endColumn=void 0!==e.column?e.column:e.endColumn,this._includeAllSlots=!!e.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){this._canJumpToStartRow()&&this._jumpToNonSpannedRowClosestToStartRow();const t=this._table.getChild(this._rowIndex);if(!t||this._isOverEndRow())return{done:!0,value:void 0};if(!t.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let e=null;const n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(e=this._formatOutValue(n.cell,n.row,n.column));else{const n=t.getChild(this._cellIndex);if(!n)return this._advanceToNextRow();const r=parseInt(n.getAttribute("colspan")||"1"),i=parseInt(n.getAttribute("rowspan")||"1");(r>1||i>1)&&this._recordSpans(n,i,r),this._shouldSkipSlot()||(e=this._formatOutValue(n)),this._nextCellAtColumn=this._column+r}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(t,e=this._row,n=this._column){return{done:!1,value:new PB(this,t,e,n)}}_shouldSkipSlot(){const t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,r=void 0!==this._endColumn&&this._column>this._endColumn;return t||e||n||r}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const r={cell:t,row:this._row,column:this._column};for(let t=this._row;t<this._row+e;t++)for(let e=this._column;e<this._column+n;e++)t==this._row&&e==this._column||this._markSpannedCell(t,e,r)}_markSpannedCell(t,e,n){this._spannedCells.has(t)||this._spannedCells.set(t,new Map);this._spannedCells.get(t).set(e,n)}_canJumpToStartRow(){return!!this._startRow&&this._startRow>0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const t=this._getRowLength(0);for(let e=this._startRow;!this._jumpedToStartRow;e--)t===this._getRowLength(e)&&(this._row=e,this._rowIndex=e,this._jumpedToStartRow=!0)}_getRowLength(t){return[...this._table.getChild(t).getChildren()].reduce(((t,e)=>t+parseInt(e.getAttribute("colspan")||"1")),0)}}class PB{cell;row;column;cellAnchorRow;cellAnchorColumn;_cellIndex;_rowIndex;_table;constructor(t,e,n,r){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=r,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function VB(t,e){return(n,{writer:r})=>{const i=n.getAttribute("headingRows")||0,o=r.createContainerElement("table",null,[]),s=r.createContainerElement("figure",{class:"table"},o);i>0&&r.insert(r.createPositionAt(o,"end"),r.createContainerElement("thead",null,r.createSlot((t=>t.is("element","tableRow")&&t.index<i)))),i<t.getRows(n)&&r.insert(r.createPositionAt(o,"end"),r.createContainerElement("tbody",null,r.createSlot((t=>t.is("element","tableRow")&&t.index>=i))));for(const{positionOffset:t,filter:n}of e.additionalSlots)r.insert(r.createPositionAt(o,t),r.createSlot(n));return r.insert(r.createPositionAt(o,"after"),r.createSlot((t=>!t.is("element","tableRow")&&!e.additionalSlots.some((({filter:e})=>e(t)))))),e.asWidget?function(t,e){return e.setCustomProperty("table",!0,t),f_(t,e,{hasSelectionHandle:!0})}(s,r):s}}function FB(t={}){return(e,{writer:n})=>{const r=e.parent,i=r.parent,o=i.getChildIndex(r),s=new IB(i,{row:o}),a=i.getAttribute("headingRows")||0,l=i.getAttribute("headingColumns")||0;let c=null;for(const r of s)if(r.cell==e){const e=r.row<a||r.column<l?"th":"td";c=t.asWidget?A_(n.createEditableElement(e),n):n.createContainerElement(e);break}return c}}function RB(t={}){return(e,{writer:n})=>{if(!e.parent.is("element","tableCell"))return null;if(!LB(e))return null;if(t.asWidget)return n.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const t=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,t),t}}}function LB(t){return 1==t.parent.childCount&&!!t.getAttributeKeys().next().done}class zB extends Mo{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=function(t,e){const n=t.getFirstPosition().parent,r=n===n.root?n:n.parent;return e.checkChild(r,"table")}(e,n)}execute(t={}){const e=this.editor,n=e.model,r=e.plugins.get("TableUtils"),i=e.config.get("table.defaultHeadings.rows"),o=e.config.get("table.defaultHeadings.columns");void 0===t.headingRows&&i&&(t.headingRows=i),void 0===t.headingColumns&&o&&(t.headingColumns=o),n.change((e=>{const i=r.createTable(e,t);n.insertObject(i,null,null,{findOptimalPosition:"auto"}),e.setSelection(e.createPositionAt(i.getNodeByPath([0,0,0]),0))}))}}class MB extends Mo{order;constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),r="above"===this.order,i=n.getSelectionAffectedTableCells(e),o=n.getRowIndexes(i),s=r?o.first:o.last,a=i[0].findAncestor("table");n.insertRows(a,{at:r?s:s+1,copyStructureFromAbove:!r})}}class NB extends Mo{order;constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),r="left"===this.order,i=n.getSelectionAffectedTableCells(e),o=n.getColumnIndexes(i),s=r?o.first:o.last,a=i[0].findAncestor("table");n.insertColumns(a,{columns:1,at:r?s:s+1})}}class OB extends Mo{direction;constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===t.length}execute(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2)}}function HB(t,e,n){const{startRow:r,startColumn:i,endRow:o,endColumn:s}=e,a=n.createElement("table"),l=o-r+1;for(let t=0;t<l;t++)n.insertElement("tableRow",a,"end");const c=[...new IB(t,{startRow:r,endRow:o,startColumn:i,endColumn:s,includeAllSlots:!0})];for(const{row:t,column:e,cell:l,isAnchor:d,cellAnchorRow:h,cellAnchorColumn:u}of c){const c=t-r,m=a.getChild(c);if(d){const r=n.cloneElement(l);n.append(r,m),$B(r,t,e,o,s,n)}else(h<r||u<i)&&yB(n,n.createPositionAt(m,"end"))}return function(t,e,n,r,i){const o=parseInt(e.getAttribute("headingRows")||"0");if(o>0){vB("headingRows",o-n,t,i,0)}const s=parseInt(e.getAttribute("headingColumns")||"0");if(s>0){vB("headingColumns",s-r,t,i,0)}}(a,t,r,i,n),a}function jB(t,e,n=0){const r=[],i=new IB(t,{startRow:n,endRow:e-1});for(const t of i){const{row:n,cellHeight:i}=t;n<e&&e<=n+i-1&&r.push(t)}return r}function qB(t,e,n){const r=t.parent,i=r.parent,o=r.index,s=e-o,a={},l=parseInt(t.getAttribute("rowspan"))-s;l>1&&(a.rowspan=l);const c=parseInt(t.getAttribute("colspan")||"1");c>1&&(a.colspan=c);const d=o+s,h=[...new IB(i,{startRow:o,endRow:d,includeAllSlots:!0})];let u,m=null;for(const e of h){const{row:r,column:i,cell:o}=e;o===t&&void 0===u&&(u=i),void 0!==u&&u===i&&r===d&&(m=yB(n,e.getPositionBefore(),a))}return vB("rowspan",s,t,n),m}function UB(t,e){const n=[],r=new IB(t);for(const t of r){const{column:r,cellWidth:i}=t;r<e&&e<=r+i-1&&n.push(t)}return n}function WB(t,e,n,r){const i=n-e,o={},s=parseInt(t.getAttribute("colspan"))-i;s>1&&(o.colspan=s);const a=parseInt(t.getAttribute("rowspan")||"1");a>1&&(o.rowspan=a);const l=yB(r,r.createPositionAfter(t),o);return vB("colspan",i,t,r),l}function $B(t,e,n,r,i,o){const s=parseInt(t.getAttribute("colspan")||"1"),a=parseInt(t.getAttribute("rowspan")||"1");if(n+s-1>i){vB("colspan",i-n+1,t,o,1)}if(e+a-1>r){vB("rowspan",r-e+1,t,o,1)}}function GB(t,e){const n=e.getColumns(t),r=new Array(n).fill(0);for(const{column:e}of new IB(t))r[e]++;const i=r.reduce(((t,e,n)=>e?t:[...t,n]),[]);if(i.length>0){const n=i[i.length-1];return e.removeColumns(t,{at:n}),!0}return!1}function KB(t,e){const n=[],r=e.getRows(t);for(let e=0;e<r;e++){t.getChild(e).isEmpty&&n.push(e)}if(n.length>0){const r=n[n.length-1];return e.removeRows(t,{at:r}),!0}return!1}function ZB(t,e){GB(t,e)||KB(t,e)}function YB(t,e){const n=Array.from(new IB(t,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(n.every((({cellHeight:t})=>1===t)))return e.lastRow;const r=n[0].cellHeight-1;return e.lastRow+r}function JB(t,e){const n=Array.from(new IB(t,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(n.every((({cellWidth:t})=>1===t)))return e.lastColumn;const r=n[0].cellWidth-1;return e.lastColumn+r}class QB extends Mo{direction;isHorizontal;constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}execute(){const t=this.editor.model,e=t.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],r=this.value,i=this.direction;t.change((t=>{const e="right"==i||"down"==i,o=e?n:r,s=e?r:n,a=s.parent;!function(t,e,n){XB(t)||(XB(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end")));n.remove(t)}(s,o,t);const l=this.isHorizontal?"colspan":"rowspan",c=parseInt(n.getAttribute(l)||"1"),d=parseInt(r.getAttribute(l)||"1");t.setAttribute(l,c+d,o),t.setSelection(t.createRangeIn(o));const h=this.editor.plugins.get("TableUtils");ZB(a.findAncestor("table"),h)}))}_getMergeableCell(){const t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(!n)return;const r=this.isHorizontal?function(t,e,n){const r=t.parent,i=r.parent,o="right"==e?t.nextSibling:t.previousSibling,s=(i.getAttribute("headingColumns")||0)>0;if(!o)return;const a="right"==e?t:o,l="right"==e?o:t,{column:c}=n.getCellLocation(a),{column:d}=n.getCellLocation(l),h=parseInt(a.getAttribute("colspan")||"1"),u=xB(n,a),m=xB(n,l);if(s&&u!=m)return;return c+h===d?o:void 0}(n,this.direction,e):function(t,e,n){const r=t.parent,i=r.parent,o=i.getChildIndex(r);if("down"==e&&o===n.getRows(i)-1||"up"==e&&0===o)return null;const s=parseInt(t.getAttribute("rowspan")||"1"),a=i.getAttribute("headingRows")||0,l="down"==e&&o+s===a,c="up"==e&&o===a;if(a&&(l||c))return null;const d=parseInt(t.getAttribute("rowspan")||"1"),h="down"==e?o+d:o,u=[...new IB(i,{endRow:h})],m=u.find((e=>e.cell===t)),g=m.column,p=u.find((({row:t,cellHeight:n,column:r})=>r===g&&("down"==e?t===h:h===t+n)));return p&&p.cell?p.cell:null}(n,this.direction,e);if(!r)return;const i=this.isHorizontal?"rowspan":"colspan",o=parseInt(n.getAttribute(i)||"1");return parseInt(r.getAttribute(i)||"1")===o?r:void 0}}function XB(t){const e=t.getChild(0);return 1==t.childCount&&e.is("element","paragraph")&&e.isEmpty}class tD extends Mo{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const r=n.findAncestor("table"),i=t.getRows(r)-1,o=t.getRowIndexes(e),s=0===o.first&&o.last===i;this.isEnabled=!s}else this.isEnabled=!1}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),r=e.getRowIndexes(n),i=n[0],o=i.findAncestor("table"),s=e.getCellLocation(i).column;t.change((t=>{const n=r.last-r.first+1;e.removeRows(o,{at:r.first,rows:n});const i=function(t,e,n,r){const i=t.getChild(Math.min(e,r-1));let o=i.getChild(0),s=0;for(const t of i.getChildren()){if(s>n)return o;o=t,s+=parseInt(t.getAttribute("colspan")||"1")}return o}(o,r.first,s,e.getRows(o));t.setSelection(t.createPositionAt(i,0))}))}}class eD extends Mo{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const r=n.findAncestor("table"),i=t.getColumns(r),{first:o,last:s}=t.getColumnIndexes(e);this.isEnabled=s-o<i-1}else this.isEnabled=!1}execute(){const t=this.editor.plugins.get("TableUtils"),[e,n]=function(t,e){const n=e.getSelectionAffectedTableCells(t),r=n[0],i=n.pop(),o=[r,i];return r.isBefore(i)?o:o.reverse()}(this.editor.model.document.selection,t),r=e.parent.parent,i=[...new IB(r)],o={first:i.find((t=>t.cell===e)).column,last:i.find((t=>t.cell===n)).column},s=function(t,e,n,r){const i=parseInt(n.getAttribute("colspan")||"1");return i>1?n:e.previousSibling||n.nextSibling?n.nextSibling||e.previousSibling:r.first?t.reverse().find((({column:t})=>t<r.first)).cell:t.reverse().find((({column:t})=>t>r.last)).cell}(i,e,n,o);this.editor.model.change((e=>{const n=o.last-o.first+1;t.removeColumns(r,{at:o.first,columns:n}),e.setSelection(e.createPositionAt(s,0))}))}}class nD extends Mo{refresh(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),r=n.length>0;this.isEnabled=r,this.value=r&&n.every((t=>this._isInHeading(t,t.parent.parent)))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,r=e.getSelectionAffectedTableCells(n.document.selection),i=r[0].findAncestor("table"),{first:o,last:s}=e.getRowIndexes(r),a=this.value?o:s+1,l=i.getAttribute("headingRows")||0;n.change((t=>{if(a){const e=jB(i,a,a>l?l:0);for(const{cell:n}of e)qB(n,a,t)}vB("headingRows",a,i,t,0)}))}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index<n}}class rD extends Mo{refresh(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),r=n.length>0;this.isEnabled=r,this.value=r&&n.every((t=>xB(e,t)))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,r=e.getSelectionAffectedTableCells(n.document.selection),i=r[0].findAncestor("table"),{first:o,last:s}=e.getColumnIndexes(r),a=this.value?o:s+1;n.change((t=>{if(a){const e=UB(i,a);for(const{cell:n,column:r}of e)WB(n,r,a,t)}vB("headingColumns",a,i,t,0)}))}}function iD(t,e){return 4e3/oD(t,e)}function oD(t,e){const n=sD(t,"tbody",e)||sD(t,"thead",e);return aD(e.editing.view.domConverter.mapViewToDom(n))}function sD(t,e,n){return[...[...n.editing.mapper.toViewElement(t).getChildren()].find((t=>t.is("element","table"))).getChildren()].find((t=>t.is("element",e)))}function aD(t){const e=Yn.window.getComputedStyle(t);return"border-box"===e.boxSizing?parseFloat(e.width)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth):parseFloat(e.width)}function lD(t){const e=Math.pow(10,2),n="number"==typeof t?t:parseFloat(t);return Math.round(n*e)/e}function cD(t){return t.map((t=>"number"==typeof t?t:parseFloat(t))).filter((t=>!Number.isNaN(t))).reduce(((t,e)=>t+e),0)}function dD(t){let e=function(t){const e=t.filter((t=>"auto"===t)).length;if(0===e)return t.map((t=>lD(t)));const n=cD(t),r=Math.max((100-n)/e,5);return t.map((t=>"auto"===t?r:t)).map((t=>lD(t)))}(t.map((t=>"auto"===t?t:parseFloat(t.replace("%","")))));const n=cD(e);return 100!==n&&(e=e.map((t=>lD(100*t/n))).map(((t,e,n)=>{if(!(e===n.length-1))return t;return lD(t+100-cD(n))}))),e.map((t=>t+"%"))}function hD(t){const e=Yn.window.getComputedStyle(t);return"border-box"===e.boxSizing?parseInt(e.width):parseFloat(e.width)+parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderWidth)}function uD(t,e,n,r){for(let i=0;i<Math.max(n.length,t.length);i++){const o=t[i],s=n[i];s?o?r.setAttribute("columnWidth",s,o):r.appendElement("tableColumn",{columnWidth:s},e):r.remove(o)}}function mD(t){if(t.is("element","tableColumnGroup"))return t;const e=t.getChildren();return Array.from(e).find((t=>t.is("element","tableColumnGroup")))}function gD(t){const e=mD(t);return e?Array.from(e.getChildren()):[]}class pD extends Lo{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,r=n.getChildIndex(e),i=new IB(n,{row:r});for(const{cell:e,row:n,column:r}of i)if(e===t)return{row:n,column:r}}createTable(t,e){const n=t.createElement("table"),r=e.rows||2,i=e.columns||2;return fD(t,n,0,r,i),e.headingRows&&vB("headingRows",Math.min(e.headingRows,r),n,t,0),e.headingColumns&&vB("headingColumns",Math.min(e.headingColumns,i),n,t,0),n}insertRows(t,e={}){const n=this.editor.model,r=e.at||0,i=e.rows||1,o=void 0!==e.copyStructureFromAbove,s=e.copyStructureFromAbove?r-1:r,a=this.getRows(t),l=this.getColumns(t);if(r>a)throw new kr("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change((e=>{const n=t.getAttribute("headingRows")||0;if(n>r&&vB("headingRows",n+i,t,e,0),!o&&(0===r||r===a))return void fD(e,t,r,i,l);const c=o?Math.max(r,s):r,d=new IB(t,{endRow:c}),h=new Array(l).fill(1);for(const{row:t,column:n,cellHeight:a,cellWidth:l,cell:c}of d){const d=t+a-1,u=t<=s&&s<=d;t<r&&r<=d?(e.setAttribute("rowspan",a+i,c),h[n]=-l):o&&u&&(h[n]=l)}for(let n=0;n<i;n++){const n=e.createElement("tableRow");e.insert(n,t,r);for(let t=0;t<h.length;t++){const r=h[t],i=e.createPositionAt(n,"end");r>0&&yB(e,i,r>1?{colspan:r}:void 0),t+=Math.abs(r)-1}}}))}insertColumns(t,e={}){const n=this.editor.model,r=e.at||0,i=e.columns||1;n.change((e=>{const n=t.getAttribute("headingColumns");r<n&&e.setAttribute("headingColumns",n+i,t);const o=this.getColumns(t);if(0===r||o===r){for(const n of t.getChildren())n.is("element","tableRow")&&bD(i,e,e.createPositionAt(n,r?"end":0));return}const s=new IB(t,{column:r,includeAllSlots:!0});for(const t of s){const{row:n,cell:o,cellAnchorColumn:a,cellAnchorRow:l,cellWidth:c,cellHeight:d}=t;if(a<r){e.setAttribute("colspan",c+i,o);const t=l+d-1;for(let e=n;e<=t;e++)s.skipRow(e)}else bD(i,e,t.getPositionBefore())}}))}removeRows(t,e){const n=this.editor.model,r=e.rows||1,i=this.getRows(t),o=e.at,s=o+r-1;if(s>i-1)throw new kr("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change((e=>{const n={first:o,last:s},{cellsToMove:r,cellsToTrim:i}=function(t,{first:e,last:n}){const r=new Map,i=[];for(const{row:o,column:s,cellHeight:a,cell:l}of new IB(t,{endRow:n})){const t=o+a-1;if(o>=e&&o<=n&&t>n){const t=a-(n-o+1);r.set(s,{cell:l,rowspan:t})}if(o<e&&t>=e){let r;r=t>=n?n-e+1:t-e+1,i.push({cell:l,rowspan:a-r})}}return{cellsToMove:r,cellsToTrim:i}}(t,n);if(r.size){!function(t,e,n,r){const i=new IB(t,{includeAllSlots:!0,row:e}),o=[...i],s=t.getChild(e);let a;for(const{column:t,cell:e,isAnchor:i}of o)if(n.has(t)){const{cell:e,rowspan:i}=n.get(t),o=a?r.createPositionAfter(a):r.createPositionAt(s,0);r.move(r.createRangeOn(e),o),vB("rowspan",i,e,r),a=e}else i&&(a=e)}(t,s+1,r,e)}for(let n=s;n>=o;n--)e.remove(t.getChild(n));for(const{rowspan:t,cell:n}of i)vB("rowspan",t,n,e);!function(t,{first:e,last:n},r){const i=t.getAttribute("headingRows")||0;if(e<i){vB("headingRows",n<i?i-(n-e+1):e,t,r,0)}}(t,n,e),GB(t,this)||KB(t,this)}))}removeColumns(t,e){const n=this.editor.model,r=e.at,i=e.columns||1,o=e.at+i-1;n.change((e=>{!function(t,e,n){const r=t.getAttribute("headingColumns")||0;if(r&&e.first<r){const i=Math.min(r-1,e.last)-e.first+1;n.setAttribute("headingColumns",r-i,t)}}(t,{first:r,last:o},e);const n=gD(t);for(let i=o;i>=r;i--){for(const{cell:n,column:r,cellWidth:o}of[...new IB(t)])r<=i&&o>1&&r+o>i?vB("colspan",o-1,n,e):r===i&&e.remove(n);if(n[i]){const t=0===i?n[1]:n[i-1],r=parseFloat(n[i].getAttribute("columnWidth")),o=parseFloat(t.getAttribute("columnWidth"));e.remove(n[i]),e.setAttribute("columnWidth",r+o+"%",t)}}KB(t,this)||GB(t,this)}))}splitCellVertically(t,e=2){const n=this.editor.model,r=t.parent.parent,i=parseInt(t.getAttribute("rowspan")||"1"),o=parseInt(t.getAttribute("colspan")||"1");n.change((n=>{if(o>1){const{newCellsSpan:r,updatedSpan:s}=kD(o,e);vB("colspan",s,t,n);const a={};r>1&&(a.colspan=r),i>1&&(a.rowspan=i);bD(o>e?e-1:o-1,n,n.createPositionAfter(t),a)}if(o<e){const s=e-o,a=[...new IB(r)],{column:l}=a.find((({cell:e})=>e===t)),c=a.filter((({cell:e,cellWidth:n,column:r})=>e!==t&&r===l||r<l&&r+n>l));for(const{cell:t,cellWidth:e}of c)n.setAttribute("colspan",e+s,t);const d={};i>1&&(d.rowspan=i),bD(s,n,n.createPositionAfter(t),d);const h=r.getAttribute("headingColumns")||0;h>l&&vB("headingColumns",h+s,r,n)}}))}splitCellHorizontally(t,e=2){const n=this.editor.model,r=t.parent,i=r.parent,o=i.getChildIndex(r),s=parseInt(t.getAttribute("rowspan")||"1"),a=parseInt(t.getAttribute("colspan")||"1");n.change((n=>{if(s>1){const r=[...new IB(i,{startRow:o,endRow:o+s-1,includeAllSlots:!0})],{newCellsSpan:l,updatedSpan:c}=kD(s,e);vB("rowspan",c,t,n);const{column:d}=r.find((({cell:e})=>e===t)),h={};l>1&&(h.rowspan=l),a>1&&(h.colspan=a);let u=0;for(const t of r){const{column:e,row:r}=t,i=e===d;u>=l&&i&&(u=0),r>=o+c&&i&&(u||bD(1,n,t.getPositionBefore(),h),u++)}}if(s<e){const r=e-s,l=[...new IB(i,{startRow:0,endRow:o})];for(const{cell:e,cellHeight:i,row:s}of l)if(e!==t&&s+i>o){const t=i+r;n.setAttribute("rowspan",t,e)}const c={};a>1&&(c.colspan=a),fD(n,i,o+1,r,1,c);const d=i.getAttribute("headingRows")||0;d>o&&vB("headingRows",d+r,i,n)}}))}getColumns(t){return[...t.getChild(0).getChildren()].filter((t=>t.is("element","tableCell"))).reduce(((t,e)=>t+parseInt(e.getAttribute("colspan")||"1")),0)}getRows(t){return Array.from(t.getChildren()).reduce(((t,e)=>e.is("element","tableRow")?t+1:t),0)}createTableWalker(t,e={}){return new IB(t,e)}getSelectedTableCells(t){const e=[];for(const n of this.sortRanges(t.getRanges())){const t=n.getContainedElement();t&&t.is("element","tableCell")&&e.push(t)}return e}getTableCellsContainingSelection(t){const e=[];for(const n of t.getRanges()){const t=n.start.findAncestor("tableCell");t&&e.push(t)}return e}getSelectionAffectedTableCells(t){const e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}getRowIndexes(t){const e=t.map((t=>t.parent.index));return this._getFirstLastIndexesObject(e)}getColumnIndexes(t){const e=t[0].findAncestor("table"),n=[...new IB(e)].filter((e=>t.includes(e.cell))).map((t=>t.column));return this._getFirstLastIndexesObject(n)}isSelectionRectangular(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;const e=new Set,n=new Set;let r=0;for(const i of t){const{row:t,column:o}=this.getCellLocation(i),s=parseInt(i.getAttribute("rowspan"))||1,a=parseInt(i.getAttribute("colspan"))||1;e.add(t),n.add(o),s>1&&e.add(t+s-1),a>1&&n.add(o+a-1),r+=s*a}const i=function(t,e){const n=Array.from(t.values()),r=Array.from(e.values()),i=Math.max(...n),o=Math.min(...n),s=Math.max(...r),a=Math.min(...r);return(i-o+1)*(s-a+1)}(e,n);return i==r}sortRanges(t){return Array.from(t).sort(wD)}_getFirstLastIndexesObject(t){const e=t.sort(((t,e)=>t-e));return{first:e[0],last:e[e.length-1]}}_areCellInTheSameTableSection(t){const e=t[0].findAncestor("table"),n=this.getRowIndexes(t),r=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,r))return!1;const i=this.getColumnIndexes(t),o=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(i,o)}_areIndexesInSameSection({first:t,last:e},n){return t<n===e<n}}function fD(t,e,n,r,i,o={}){for(let s=0;s<r;s++){const r=t.createElement("tableRow");t.insert(r,e,n),bD(i,t,t.createPositionAt(r,"end"),o)}}function bD(t,e,n,r={}){for(let i=0;i<t;i++)yB(e,n,r)}function kD(t,e){if(t<e)return{newCellsSpan:1,updatedSpan:1};const n=Math.floor(t/e);return{newCellsSpan:n,updatedSpan:t-n*e+n}}function wD(t,e){const n=t.start,r=e.start;return n.isBefore(r)?-1:1}class AD extends Mo{refresh(){const t=this.editor.plugins.get(pD),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e)}execute(){const t=this.editor.model,e=this.editor.plugins.get(pD);t.change((n=>{const r=e.getSelectedTableCells(t.document.selection),i=r.shift(),{mergeWidth:o,mergeHeight:s}=function(t,e,n){let r=0,i=0;for(const t of e){const{row:e,column:o}=n.getCellLocation(t);r=vD(t,o,r,"colspan"),i=vD(t,e,i,"rowspan")}const{row:o,column:s}=n.getCellLocation(t),a=r-s,l=i-o;return{mergeWidth:a,mergeHeight:l}}(i,r,e);vB("colspan",o,i,n),vB("rowspan",s,i,n);for(const t of r)_D(t,i,n);ZB(i.findAncestor("table"),e),n.setSelection(i,"in")}))}}function _D(t,e,n){CD(t)||(CD(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}function CD(t){const e=t.getChild(0);return 1==t.childCount&&e.is("element","paragraph")&&e.isEmpty}function vD(t,e,n,r){const i=parseInt(t.getAttribute(r)||"1");return Math.max(n,e+i)}class yD extends Mo{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),r=e.getRowIndexes(n),i=n[0].findAncestor("table"),o=[];for(let e=r.first;e<=r.last;e++)for(const n of i.getChild(e).getChildren())o.push(t.createRangeOn(n));t.change((t=>{t.setSelection(o)}))}}class xD extends Mo{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),r=n[0],i=n.pop(),o=r.findAncestor("table"),s=t.getCellLocation(r),a=t.getCellLocation(i),l=Math.min(s.column,a.column),c=Math.max(s.column,a.column),d=[];for(const t of new IB(o,{startColumn:l,endColumn:c}))d.push(e.createRangeOn(t.cell));e.change((t=>{t.setSelection(d)}))}}function ED(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let r=!1;const i=new Set;for(const e of n){let n=null;"insert"==e.type&&"table"==e.name&&(n=e.position.nodeAfter),"insert"!=e.type&&"remove"!=e.type||"tableRow"!=e.name&&"tableCell"!=e.name||(n=e.position.findAncestor("table")),SD(e)&&(n=e.range.start.findAncestor("table")),n&&!i.has(n)&&(r=BD(n,t)||r,r=DD(n,t)||r,i.add(n))}return r}(e,t)))}function BD(t,e){let n=!1;const r=function(t){const e=parseInt(t.getAttribute("headingRows")||"0"),n=Array.from(t.getChildren()).reduce(((t,e)=>e.is("element","tableRow")?t+1:t),0),r=[];for(const{row:i,cell:o,cellHeight:s}of new IB(t)){if(s<2)continue;const t=i<e?e:n;if(i+s>t){const e=t-i;r.push({cell:o,rowspan:e})}}return r}(t);if(r.length){n=!0;for(const t of r)vB("rowspan",t.rowspan,t.cell,e,1)}return n}function DD(t,e){let n=!1;const r=function(t){const e=new Array(t.childCount).fill(0);for(const{rowIndex:n}of new IB(t,{includeAllSlots:!0}))e[n]++;return e}(t),i=[];for(const[e,n]of r.entries())!n&&t.getChild(e).is("element","tableRow")&&i.push(e);if(i.length){n=!0;for(const n of i.reverse())e.remove(t.getChild(n)),r.splice(n,1)}const o=r.filter(((e,n)=>t.getChild(n).is("element","tableRow"))),s=o[0];if(!o.every((t=>t===s))){const r=o.reduce(((t,e)=>e>t?e:t),0);for(const[i,s]of o.entries()){const o=r-s;if(o){for(let n=0;n<o;n++)yB(e,e.createPositionAt(t.getChild(i),"end"));n=!0}}}return n}function SD(t){if("attribute"!==t.type)return!1;const e=t.attributeKey;return"headingRows"===e||"colspan"===e||"rowspan"===e}function TD(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let r=!1;for(const e of n)"insert"==e.type&&"table"==e.name&&(r=ID(e.position.nodeAfter,t)||r),"insert"==e.type&&"tableRow"==e.name&&(r=PD(e.position.nodeAfter,t)||r),"insert"==e.type&&"tableCell"==e.name&&(r=VD(e.position.nodeAfter,t)||r),"remove"!=e.type&&"insert"!=e.type||!FD(e)||(r=VD(e.position.parent,t)||r);return r}(e,t)))}function ID(t,e){let n=!1;for(const r of t.getChildren())r.is("element","tableRow")&&(n=PD(r,e)||n);return n}function PD(t,e){let n=!1;for(const r of t.getChildren())n=VD(r,e)||n;return n}function VD(t,e){if(0==t.childCount)return e.insertElement("paragraph",t),!0;const n=Array.from(t.getChildren()).filter((t=>t.is("$text")));for(const t of n)e.wrap(e.createRangeOn(t),"paragraph");return!!n.length}function FD(t){return!!t.position.parent.is("element","tableCell")&&("insert"==t.type&&"$text"==t.name||"remove"==t.type)}function RD(t,e){if(!t.is("element","paragraph"))return!1;const n=e.toViewElement(t);return!!n&&LB(t)!==n.is("element","span")}var LD=n(8137),zD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(LD.A,zD);LD.A.locals;class MD extends Lo{_additionalSlots;static get pluginName(){return"TableEditing"}static get requires(){return[pD]}constructor(t){super(t),this._additionalSlots=[]}init(){const t=this.editor,e=t.model,n=e.schema,r=t.conversion,i=t.plugins.get(pD);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),r.for("upcast").add((t=>{t.on("element:figure",((t,e,n)=>{if(!n.consumable.test(e.viewItem,{name:!0,classes:"table"}))return;const r=function(t){for(const e of t.getChildren())if(e.is("element","table"))return e}(e.viewItem);if(!r||!n.consumable.test(r,{name:!0}))return;n.consumable.consume(e.viewItem,{name:!0,classes:"table"});const i=Eo(n.convertItem(r,e.modelCursor).modelRange.getItems());i?(n.convertChildren(e.viewItem,n.writer.createPositionAt(i,"end")),n.updateConversionResult(i,e)):n.consumable.revert(e.viewItem,{name:!0,classes:"table"})}))})),r.for("upcast").add(DB()),r.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:VB(i,{asWidget:!0,additionalSlots:this._additionalSlots})}),r.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:VB(i,{additionalSlots:this._additionalSlots})}),r.for("upcast").elementToElement({model:"tableRow",view:"tr"}),r.for("upcast").add((t=>{t.on("element:tr",((t,e)=>{e.viewItem.isEmpty&&0==e.modelCursor.index&&t.stop()}),{priority:"high"})})),r.for("downcast").elementToElement({model:"tableRow",view:(t,{writer:e})=>t.isEmpty?e.createEmptyElement("tr"):e.createContainerElement("tr")}),r.for("upcast").elementToElement({model:"tableCell",view:"td"}),r.for("upcast").elementToElement({model:"tableCell",view:"th"}),r.for("upcast").add(SB("td")),r.for("upcast").add(SB("th")),r.for("editingDowncast").elementToElement({model:"tableCell",view:FB({asWidget:!0})}),r.for("dataDowncast").elementToElement({model:"tableCell",view:FB()}),r.for("editingDowncast").elementToElement({model:"paragraph",view:RB({asWidget:!0}),converterPriority:"high"}),r.for("dataDowncast").elementToElement({model:"paragraph",view:RB(),converterPriority:"high"}),r.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),r.for("upcast").attributeToAttribute({model:{key:"colspan",value:ND("colspan")},view:"colspan"}),r.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),r.for("upcast").attributeToAttribute({model:{key:"rowspan",value:ND("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new zB(t)),t.commands.add("insertTableRowAbove",new MB(t,{order:"above"})),t.commands.add("insertTableRowBelow",new MB(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new NB(t,{order:"left"})),t.commands.add("insertTableColumnRight",new NB(t,{order:"right"})),t.commands.add("removeTableRow",new tD(t)),t.commands.add("removeTableColumn",new eD(t)),t.commands.add("splitTableCellVertically",new OB(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new OB(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new AD(t)),t.commands.add("mergeTableCellRight",new QB(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new QB(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new QB(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new QB(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new rD(t)),t.commands.add("setTableRowHeader",new nD(t)),t.commands.add("selectTableRow",new yD(t)),t.commands.add("selectTableColumn",new xD(t)),ED(e),TD(e),this.listenTo(e.document,"change:data",(()=>{!function(t,e){const n=t.document.differ;for(const t of n.getChanges()){let n,r=!1;if("attribute"==t.type){const e=t.range.start.nodeAfter;if(!e||!e.is("element","table"))continue;if("headingRows"!=t.attributeKey&&"headingColumns"!=t.attributeKey)continue;n=e,r="headingRows"==t.attributeKey}else"tableRow"!=t.name&&"tableCell"!=t.name||(n=t.position.findAncestor("table"),r="tableRow"==t.name);if(!n)continue;const i=n.getAttribute("headingRows")||0,o=n.getAttribute("headingColumns")||0,s=new IB(n);for(const t of s){const n=t.row<i||t.column<o?"th":"td",s=e.mapper.toViewElement(t.cell);s&&s.is("element")&&s.name!=n&&e.reconvertItem(r?t.cell.parent:t.cell)}}}(e,t.editing),function(t,e){const n=t.document.differ,r=new Set;for(const t of n.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","tableCell")&&r.add(e)}for(const t of r.values()){const n=Array.from(t.getChildren()).filter((t=>RD(t,e.mapper)));for(const t of n)e.reconvertItem(t)}}(e,t.editing)}))}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function ND(t){return e=>{const n=parseInt(e.getAttribute(t));return Number.isNaN(n)||n<=0?null:n}}var OD=n(5032),HD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(OD.A,HD);OD.A.locals;class jD extends lm{items;keystrokes;focusTracker;constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new Do,this.focusTracker=new Bo,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((t,e)=>`${e} × ${t}`)),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to((t=>{t.preventDefault()})),click:e.to((()=>{this.fire("execute")}))}}),this.on("boxover",((t,e)=>{const{row:n,column:r}=e.target.dataset;this.items.get(10*(parseInt(n,10)-1)+(parseInt(r,10)-1)).focus()})),this.focusTracker.on("change:focusedElement",((t,e,n)=>{if(!n)return;const{row:r,column:i}=n.dataset;this.set({rows:parseInt(r),columns:parseInt(i)})})),this.on("change:columns",(()=>this._highlightGridBoxes())),this.on("change:rows",(()=>this._highlightGridBoxes()))}render(){super.render(),um({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}reset(){this.set({rows:1,columns:1})}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map(((n,r)=>{const i=Math.floor(r/10)<t&&r%10<e;n.set("isOn",i)}))}_createGridButton(t,e,n,r){const i=new wm(t);return i.set({label:r,class:"ck-insert-table-dropdown-grid-box"}),i.extendTemplate({attributes:{"data-row":e,"data-column":n}}),i}_createGridCollection(){const t=[];for(let e=0;e<100;e++){const n=Math.floor(e/10),r=e%10,i=`${n+1} × ${r+1}`;t.push(this._createGridButton(this.locale,n+1,r+1,i))}return this.createCollection(t)}}class qD extends Lo{static get pluginName(){return"TableUI"}init(){const t=this.editor,e=this.editor.t,n="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",(n=>{const r=t.commands.get("insertTable"),i=Dp(n);let o;return i.bind("isEnabled").to(r),i.buttonView.set({icon:zu.table,label:e("Insert table"),tooltip:!0}),i.on("change:isOpen",(()=>{o||(o=new jD(n),i.panelView.children.add(o),o.delegate("execute").to(i),i.on("execute",(()=>{t.execute("insertTable",{rows:o.rows,columns:o.columns}),t.editing.view.focus()})))})),i})),t.ui.componentFactory.add("menuBar:insertTable",(n=>{const r=t.commands.get("insertTable"),i=new ik(n),o=new jD(n);return o.delegate("execute").to(i),i.on("change:isOpen",((t,e,n)=>{n||o.reset()})),o.on("execute",(()=>{t.execute("insertTable",{rows:o.rows,columns:o.columns}),t.editing.view.focus()})),i.buttonView.set({label:e("Table"),icon:zu.table}),i.panelView.children.add(o),i.bind("isEnabled").to(r),i})),t.ui.componentFactory.add("tableColumn",(t=>{const r=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return this._prepareDropdown(e("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',r,t)})),t.ui.componentFactory.add("tableRow",(t=>{const n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return this._prepareDropdown(e("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',n,t)})),t.ui.componentFactory.add("mergeTableCells",(t=>{const r=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(e("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',r,t)}))}_prepareDropdown(t,e,n,r){const i=this.editor,o=Dp(r),s=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:t,icon:e,tooltip:!0}),o.bind("isEnabled").toMany(s,"isEnabled",((...t)=>t.some((t=>t)))),this.listenTo(o,"execute",(t=>{i.execute(t.source.commandName),t.source instanceof og||i.editing.view.focus()})),o}_prepareMergeSplitButtonDropdown(t,e,n,r){const i=this.editor,o=Dp(r,vp),s="mergeTableCells",a=i.commands.get(s),l=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),o.bind("isEnabled").toMany([a,...l],"isEnabled",((...t)=>t.some((t=>t)))),this.listenTo(o.buttonView,"execute",(()=>{i.execute(s),i.editing.view.focus()})),this.listenTo(o,"execute",(t=>{i.execute(t.source.commandName),i.editing.view.focus()})),o}_fillDropdownWithListOptions(t,e){const n=this.editor,r=[],i=new xo;for(const t of e)UD(t,n,r,i);return Ip(t,i),r}}function UD(t,e,n,r){if("button"===t.type||"switchbutton"===t.type){const r=t.model=new kb(t.model),{commandName:i,bindIsOn:o}=t.model,s=e.commands.get(i);n.push(s),r.set({commandName:i}),r.bind("isEnabled").to(s),o&&r.bind("isOn").to(s,"value"),r.set({withText:!0})}r.add(t)}var WD=n(8423),$D={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(WD.A,$D);WD.A.locals;class GD extends Lo{static get pluginName(){return"TableSelection"}static get requires(){return[pD,pD]}init(){const t=this.editor,e=t.model,n=t.editing.view;this.listenTo(e,"deleteContent",((t,e)=>this._handleDeleteContent(t,e)),{priority:"high"}),this.listenTo(n.document,"insertText",((t,e)=>this._handleInsertTextEvent(t,e)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const t=this.editor.plugins.get(pD),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return 0==n.length?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(pD),e=this.getSelectedTableCells();return e?this.editor.model.change((n=>{const r=n.createDocumentFragment(),{first:i,last:o}=t.getColumnIndexes(e),{first:s,last:a}=t.getRowIndexes(e),l=e[0].findAncestor("table");let c=a,d=o;if(t.isSelectionRectangular(e)){const t={firstColumn:i,lastColumn:o,firstRow:s,lastRow:a};c=YB(l,t),d=JB(l,t)}const h=HB(l,{startRow:s,startColumn:i,endRow:c,endColumn:d},n);return n.insert(h,r,0),r})):null}setCellSelection(t,e){const n=this._getCellsToSelect(t,e);this.editor.model.change((t=>{t.setSelection(n.cells.map((e=>t.createRangeOn(e))),{backward:n.backward})}))}getFocusCell(){const t=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}getAnchorCell(){const t=Eo(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add((t=>t.on("selection",((t,n,r)=>{const i=r.writer;!function(t){for(const n of e)t.removeClass("ck-editor__editable_selected",n);e.clear()}(i);const o=this.getSelectedTableCells();if(!o)return;for(const t of o){const n=r.mapper.toViewElement(t);i.addClass("ck-editor__editable_selected",n),e.add(n)}const s=r.mapper.toViewElement(o[o.length-1]);i.setSelection(s,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const t=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const e=this.getSelectedTableCells();if(!e)return;t.model.change((n=>{const r=n.createPositionAt(e[0],0),i=t.model.schema.getNearestSelectionRange(r);n.setSelection(i)}))}}))}_handleDeleteContent(t,e){const n=this.editor.plugins.get(pD),r=e[0],i=e[1],o=this.editor.model,s=!i||"backward"==i.direction,a=n.getSelectedTableCells(r);a.length&&(t.stop(),o.change((t=>{const e=a[s?a.length-1:0];o.change((t=>{for(const e of a)o.deleteContent(t.createSelection(e,"in"))}));const n=o.schema.getNearestSelectionRange(t.createPositionAt(e,0));r.is("documentSelection")?t.setSelection(n):r.setTo(n)})))}_handleInsertTextEvent(t,e){const n=this.editor,r=this.getSelectedTableCells();if(!r)return;const i=n.editing.view,o=n.editing.mapper,s=r.map((t=>i.createRangeOn(o.toViewElement(t))));e.selection=i.createSelection(s)}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),r=n.getCellLocation(t),i=n.getCellLocation(e),o=Math.min(r.row,i.row),s=Math.max(r.row,i.row),a=Math.min(r.column,i.column),l=Math.max(r.column,i.column),c=new Array(s-o+1).fill(null).map((()=>[])),d={startRow:o,endRow:s,startColumn:a,endColumn:l};for(const{row:e,cell:n}of new IB(t.findAncestor("table"),d))c[e-o].push(n);const h=i.row<r.row,u=i.column<r.column;return h&&c.reverse(),u&&c.forEach((t=>t.reverse())),{cells:c.flat(),backward:h||u}}}class KD extends Lo{static get pluginName(){return"TableClipboard"}static get requires(){return[a_,l_,GD,pD]}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",((t,e)=>this._onCopyCut(t,e))),this.listenTo(e,"cut",((t,e)=>this._onCopyCut(t,e))),this.listenTo(t.model,"insertContent",((t,[e,n])=>this._onInsertContent(t,e,n)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(t,e){const n=this.editor.editing.view,r=this.editor.plugins.get(GD),i=this.editor.plugins.get(a_);r.getSelectedTableCells()&&("cut"!=t.name||this.editor.model.canEditAt(this.editor.model.document.selection))&&(e.preventDefault(),t.stop(),this.editor.model.enqueueChange({isUndoable:"cut"===t.name},(()=>{const o=i._copySelectedFragmentWithMarkers(t.name,this.editor.model.document.selection,(()=>r.getSelectionAsFragment()));n.document.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:this.editor.data.toView(o),method:t.name})})))}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const r=this.editor.model,i=this.editor.plugins.get(pD),o=this.editor.plugins.get(a_),s=this.getTableIfOnlyTableInContent(e,r);if(!s)return;const a=i.getSelectionAffectedTableCells(r.document.selection);a.length?(t.stop(),e.is("documentFragment")?o._pasteMarkersIntoTransformedElement(e.markers,(t=>this._replaceSelectedCells(s,a,t))):this.editor.model.change((t=>{this._replaceSelectedCells(s,a,t)}))):ZB(s,i)}_replaceSelectedCells(t,e,n){const r=this.editor.plugins.get(pD),i={width:r.getColumns(t),height:r.getRows(t)},o=function(t,e,n,r){const i=t[0].findAncestor("table"),o=r.getColumnIndexes(t),s=r.getRowIndexes(t),a={firstColumn:o.first,lastColumn:o.last,firstRow:s.first,lastRow:s.last},l=1===t.length;l&&(a.lastRow+=e.height-1,a.lastColumn+=e.width-1,function(t,e,n,r){const i=r.getColumns(t),o=r.getRows(t);n>i&&r.insertColumns(t,{at:i,columns:n-i});e>o&&r.insertRows(t,{at:o,rows:e-o})}(i,a.lastRow+1,a.lastColumn+1,r));l||!r.isSelectionRectangular(t)?function(t,e,n){const{firstRow:r,lastRow:i,firstColumn:o,lastColumn:s}=e,a={first:r,last:i},l={first:o,last:s};YD(t,o,a,n),YD(t,s+1,a,n),ZD(t,r,l,n),ZD(t,i+1,l,n,r)}(i,a,n):(a.lastRow=YB(i,a),a.lastColumn=JB(i,a));return a}(e,i,n,r),s=o.lastRow-o.firstRow+1,a=o.lastColumn-o.firstColumn+1;t=HB(t,{startRow:0,startColumn:0,endRow:Math.min(s,i.height)-1,endColumn:Math.min(a,i.width)-1},n);const l=e[0].findAncestor("table"),c=this._replaceSelectedCellsWithPasted(t,i,l,o,n);if(this.editor.plugins.get("TableSelection").isEnabled){const t=r.sortRanges(c.map((t=>n.createRangeOn(t))));n.setSelection(t)}else n.setSelection(c[0],0);return l}_replaceSelectedCellsWithPasted(t,e,n,r,i){const{width:o,height:s}=e,a=function(t,e,n){const r=new Array(n).fill(null).map((()=>new Array(e).fill(null)));for(const{column:e,row:n,cell:i}of new IB(t))r[n][e]=i;return r}(t,o,s),l=[...new IB(n,{startRow:r.firstRow,endRow:r.lastRow,startColumn:r.firstColumn,endColumn:r.lastColumn,includeAllSlots:!0})],c=[];let d;for(const t of l){const{row:e,column:n}=t;n===r.firstColumn&&(d=t.getPositionBefore());const l=e-r.firstRow,h=n-r.firstColumn,u=a[l%s][h%o],m=u?i.cloneElement(u):null,g=this._replaceTableSlotCell(t,m,d,i);g&&($B(g,e,n,r.lastRow,r.lastColumn,i),c.push(g),d=i.createPositionAfter(g))}const h=parseInt(n.getAttribute("headingRows")||"0"),u=parseInt(n.getAttribute("headingColumns")||"0"),m=r.firstRow<h&&h<=r.lastRow,g=r.firstColumn<u&&u<=r.lastColumn;if(m){const t=ZD(n,h,{first:r.firstColumn,last:r.lastColumn},i,r.firstRow);c.push(...t)}if(g){const t=YD(n,u,{first:r.firstRow,last:r.lastRow},i);c.push(...t)}return c}_replaceTableSlotCell(t,e,n,r){const{cell:i,isAnchor:o}=t;return o&&r.remove(i),e?(r.insert(e,n),e):null}getTableIfOnlyTableInContent(t,e){if(!t.is("documentFragment")&&!t.is("element"))return null;if(t.is("element","table"))return t;if(1==t.childCount&&t.getChild(0).is("element","table"))return t.getChild(0);const n=e.createRangeIn(t);for(const t of n.getItems())if(t.is("element","table")){const r=e.createRange(n.start,e.createPositionBefore(t));if(e.hasContent(r,{ignoreWhitespaces:!0}))return null;const i=e.createRange(e.createPositionAfter(t),n.end);return e.hasContent(i,{ignoreWhitespaces:!0})?null:t}return null}}function ZD(t,e,n,r,i=0){if(e<1)return;return jB(t,e,i).filter((({column:t,cellWidth:e})=>JD(t,e,n))).map((({cell:t})=>qB(t,e,r)))}function YD(t,e,n,r){if(e<1)return;return UB(t,e).filter((({row:t,cellHeight:e})=>JD(t,e,n))).map((({cell:t,column:n})=>WB(t,n,e,r)))}function JD(t,e,n){const r=t+e-1,{first:i,last:o}=n;return t>=i&&t<=o||t<i&&r>=i}class QD extends Lo{static get pluginName(){return"TableKeyboard"}static get requires(){return[GD,pD]}init(){const t=this.editor,e=t.editing.view.document,n=t.t;this.listenTo(e,"arrowKey",((...t)=>this._onArrowKey(...t)),{context:"table"}),this.listenTo(e,"tab",((...t)=>this._handleTabOnSelectedTable(...t)),{context:"figure"}),this.listenTo(e,"tab",((...t)=>this._handleTab(...t)),{context:["th","td"]}),t.accessibility.addKeystrokeInfoGroup({id:"table",label:n("Keystrokes that can be used in a table cell"),keystrokes:[{label:n("Move the selection to the next cell"),keystroke:"Tab"},{label:n("Move the selection to the previous cell"),keystroke:"Shift+Tab"},{label:n("Insert a new table row (when in the last cell of a table)"),keystroke:"Tab"},{label:n("Navigate through the table"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]}]})}_handleTabOnSelectedTable(t,e){const n=this.editor,r=n.model.document.selection.getSelectedElement();r&&r.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change((t=>{t.setSelection(t.createRangeIn(r.getChild(0).getChild(0)))})))}_handleTab(t,e){const n=this.editor,r=this.editor.plugins.get(pD),i=this.editor.plugins.get("TableSelection"),o=n.model.document.selection,s=!e.shiftKey;let a=r.getTableCellsContainingSelection(o)[0];if(a||(a=i.getFocusCell()),!a)return;e.preventDefault(),e.stopPropagation(),t.stop();const l=a.parent,c=l.parent,d=c.getChildIndex(l),h=l.getChildIndex(a),u=0===h;if(!s&&u&&0===d)return void n.model.change((t=>{t.setSelection(t.createRangeOn(c))}));const m=h===l.childCount-1,g=d===r.getRows(c)-1;if(s&&g&&m&&(n.execute("insertTableRowBelow"),d===r.getRows(c)-1))return void n.model.change((t=>{t.setSelection(t.createRangeOn(c))}));let p;if(s&&m){const t=c.getChild(d+1);p=t.getChild(0)}else if(!s&&u){const t=c.getChild(d-1);p=t.getChild(t.childCount-1)}else p=l.getChild(h+(s?1:-1));n.model.change((t=>{t.setSelection(t.createRangeIn(p))}))}_onArrowKey(t,e){const n=this.editor,r=Ji(e.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(r,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(pD),r=this.editor.plugins.get("TableSelection"),i=this.editor.model,o=i.document.selection,s=["right","down"].includes(t),a=n.getSelectedTableCells(o);if(a.length){let n;return n=e?r.getFocusCell():s?a[a.length-1]:a[0],this._navigateFromCellInDirection(n,t,e),!0}const l=o.focus.findAncestor("tableCell");if(!l)return!1;if(!o.isCollapsed)if(e){if(o.isBackward==s&&!o.containsEntireContent(l))return!1}else{const t=o.getSelectedElement();if(!t||!i.schema.isObject(t))return!1}return!!this._isSelectionAtCellEdge(o,l,s)&&(this._navigateFromCellInDirection(l,t,e),!0)}_isSelectionAtCellEdge(t,e,n){const r=this.editor.model,i=this.editor.model.schema,o=n?t.getLastPosition():t.getFirstPosition();if(!i.getLimitElement(o).is("element","tableCell")){return r.createPositionAt(e,n?"end":0).isTouching(o)}const s=r.createSelection(o);return r.modifySelection(s,{direction:n?"forward":"backward"}),o.isEqual(s.focus)}_navigateFromCellInDirection(t,e,n=!1){const r=this.editor.model,i=t.findAncestor("table"),o=[...new IB(i,{includeAllSlots:!0})],{row:s,column:a}=o[o.length-1],l=o.find((({cell:e})=>e==t));let{row:c,column:d}=l;switch(e){case"left":d--;break;case"up":c--;break;case"right":d+=l.cellWidth;break;case"down":c+=l.cellHeight}if(c<0||c>s||d<0&&c<=0||d>a&&c>=s)return void r.change((t=>{t.setSelection(t.createRangeOn(i))}));d<0?(d=n?0:a,c--):d>a&&(d=n?a:0,c++);const h=o.find((t=>t.row==c&&t.column==d)).cell,u=["right","down"].includes(e),m=this.editor.plugins.get("TableSelection");if(n&&m.isEnabled){const e=m.getAnchorCell()||t;m.setCellSelection(e,h)}else{const t=r.createPositionAt(h,u?0:"end");r.change((e=>{e.setSelection(t)}))}}}class XD extends nl{domEventType=["mousemove","mouseleave"];onDomEvent(t){this.fire(t.type,t)}}class tS extends Lo{static get pluginName(){return"TableMouse"}static get requires(){return[GD,pD]}init(){this.editor.editing.view.addObserver(XD),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(pD);let n=!1;const r=t.plugins.get(GD);this.listenTo(t.editing.view.document,"mousedown",((i,o)=>{const s=t.model.document.selection;if(!this.isEnabled||!r.isEnabled)return;if(!o.domEvent.shiftKey)return;const a=r.getAnchorCell()||e.getTableCellsContainingSelection(s)[0];if(!a)return;const l=this._getModelTableCellFromDomEvent(o);l&&eS(a,l)&&(n=!0,r.setCellSelection(a,l),o.preventDefault())})),this.listenTo(t.editing.view.document,"mouseup",(()=>{n=!1})),this.listenTo(t.editing.view.document,"selectionChange",(t=>{n&&t.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const t=this.editor;let e,n,r=!1,i=!1;const o=t.plugins.get(GD);this.listenTo(t.editing.view.document,"mousedown",((t,n)=>{this.isEnabled&&o.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(n)))})),this.listenTo(t.editing.view.document,"mousemove",((t,s)=>{if(!s.domEvent.buttons)return;if(!e)return;const a=this._getModelTableCellFromDomEvent(s);a&&eS(e,a)&&(n=a,r||n==e||(r=!0)),r&&(i=!0,o.setCellSelection(e,n),s.preventDefault())})),this.listenTo(t.editing.view.document,"mouseup",(()=>{r=!1,i=!1,e=null,n=null})),this.listenTo(t.editing.view.document,"selectionChange",(t=>{i&&t.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(t){const e=t.target,n=this.editor.editing.view.createPositionAt(e,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function eS(t,e){return t.parent.parent==e.parent.parent}var nS=n(2329),rS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(nS.A,rS);nS.A.locals;function iS(t){const e=oS(t);return e||sS(t)}function oS(t){const e=t.getSelectedElement();return e&&aS(e)?e:null}function sS(t){const e=t.getFirstPosition();if(!e)return null;let n=e.parent;for(;n;){if(n.is("element")&&aS(n))return n;n=n.parent}return null}function aS(t){return!!t.getCustomProperty("table")&&p_(t)}var lS=n(5506),cS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(lS.A,cS);lS.A.locals;class dS extends lm{options;focusTracker;focusCycler;_focusables;dropdownView;inputView;keystrokes;_stillTyping;constructor(t,e){super(t),this.set("value",""),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isEmpty",!0),this.options=e,this.focusTracker=new Bo,this._focusables=new Mu,this.dropdownView=this._createDropdownView(),this.inputView=this._createInputTextView(),this.keystrokes=new Do,this._stillTyping=!1,this.focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-input-color"]},children:[this.dropdownView,this.inputView]}),this.on("change:value",((t,e,n)=>this._setInputValue(n)))}render(){super.render(),[this.inputView,this.dropdownView.buttonView].forEach((t=>{this.focusTracker.add(t.element),this._focusables.add(t)})),this.keystrokes.listenTo(this.element)}focus(t){-1===t?this.focusCycler.focusLast():this.focusCycler.focusFirst()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createDropdownView(){const t=this.locale,e=t.t,n=this.bindTemplate,r=this._createColorSelector(t),i=Dp(t),o=new lm;return o.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:n.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",n.if("value","ck-hidden",(t=>""!=t))]}}]}),i.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),i.buttonView.children.add(o),i.buttonView.label=e("Color picker"),i.buttonView.tooltip=!0,i.panelPosition="rtl"===t.uiLanguageDirection?"se":"sw",i.panelView.children.add(r),i.bind("isEnabled").to(this,"isReadOnly",(t=>!t)),i.on("change:isOpen",((t,e,n)=>{n&&(r.updateSelectedColors(),r.showColorGridsFragment())})),i}_createInputTextView(){const t=this.locale,e=new Fg(t);return e.extendTemplate({on:{blur:e.bindTemplate.to("blur")}}),e.value=this.value,e.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(e),e.on("input",(()=>{const t=e.element.value,n=this.options.colorDefinitions.find((e=>t===e.label));this._stillTyping=!0,this.value=n&&n.color||t})),e.on("blur",(()=>{this._stillTyping=!1,this._setInputValue(e.element.value)})),e.delegate("input").to(this),e}_createColorSelector(t){const e=t.t,n=this.options.defaultColorValue||"",r=e(n?"Restore default":"Remove color"),i=new Bf(t,{colors:this.options.colorDefinitions,columns:this.options.columns,removeButtonLabel:r,colorPickerLabel:e("Color picker"),colorPickerViewConfig:!1!==this.options.colorPickerConfig&&{...this.options.colorPickerConfig,hideInput:!0}});i.appendUI(),i.on("execute",((t,e)=>{"colorPickerSaveButton"!==e.source?(this.value=e.value||n,this.fire("input"),"colorPicker"!==e.source&&(this.dropdownView.isOpen=!1)):this.dropdownView.isOpen=!1}));let o=this.value;return i.on("colorPicker:cancel",(()=>{this.value=o,this.fire("input"),this.dropdownView.isOpen=!1})),i.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{o=this.value})),i.bind("selectedColor").to(this,"value"),i}_setInputValue(t){if(!this._stillTyping){const e=hS(t),n=this.options.colorDefinitions.find((t=>e===hS(t.color)));this.inputView.value=n?n.label:t||""}}}function hS(t){return t.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}const uS=t=>""===t;function mS(t){return{none:t("None"),solid:t("Solid"),dotted:t("Dotted"),dashed:t("Dashed"),double:t("Double"),groove:t("Groove"),ridge:t("Ridge"),inset:t("Inset"),outset:t("Outset")}}function gS(t){return t('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function pS(t){return t('The value is invalid. Try "10px" or "2em" or simply "2".')}function fS(t){return t=t.trim().toLowerCase(),uS(t)||Yh(t)}function bS(t){return t=t.trim(),uS(t)||vS(t)||tu(t)||nu(t)}function kS(t){return t=t.trim(),uS(t)||vS(t)||tu(t)}function wS(t,e){const n=new xo,r=mS(t.t);for(const i in r){const o={type:"button",model:new kb({_borderStyleValue:i,label:r[i],role:"menuitemradio",withText:!0})};"none"===i?o.model.bind("isOn").to(t,"borderStyle",(t=>"none"===e?!t:t===i)):o.model.bind("isOn").to(t,"borderStyle",(t=>t===i)),n.add(o)}return n}function AS(t){const{view:e,icons:n,toolbar:r,labels:i,propertyName:o,nameToValue:s,defaultValue:a}=t;for(const t in i){const l=new wm(e.locale);l.set({label:i[t],icon:n[t],tooltip:i[t]});const c=s?s(t):t;l.bind("isOn").to(e,o,(t=>{let e=t;return""===t&&a&&(e=a),c===e})),l.on("execute",(()=>{e[o]=c})),r.items.add(l)}}const _S=[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}];function CS(t){return(e,n,r)=>{const i=new dS(e.locale,{colorDefinitions:(o=t.colorConfig,o.map((t=>({color:t.model,label:t.label,options:{hasBorder:t.hasBorder}})))),columns:t.columns,defaultColorValue:t.defaultColorValue,colorPickerConfig:t.colorPickerConfig});var o;return i.inputView.set({id:n,ariaDescribedById:r}),i.bind("isReadOnly").to(e,"isEnabled",(t=>!t)),i.bind("hasError").to(e,"errorText",(t=>!!t)),i.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused").to(i),i}}function vS(t){const e=parseFloat(t);return!Number.isNaN(e)&&t===String(e)}var yS=n(2655),xS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(yS.A,xS);yS.A.locals;class ES extends lm{children;constructor(t,e={}){super(t);const n=this.bindTemplate;this.set("class",e.class||null),this.children=this.createCollection(),e.children&&e.children.forEach((t=>this.children.add(t))),this.set("_role",null),this.set("_ariaLabelledBy",null),e.labelView&&this.set({_role:"group",_ariaLabelledBy:e.labelView.id}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",n.to("class")],role:n.to("_role"),"aria-labelledby":n.to("_ariaLabelledBy")},children:this.children})}}var BS=n(4043),DS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(BS.A,DS);BS.A.locals;var SS=n(1623),TS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(SS.A,TS);SS.A.locals;var IS=n(8986),PS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(IS.A,PS);IS.A.locals;class VS extends lm{options;focusTracker;keystrokes;children;borderStyleDropdown;borderWidthInput;borderColorInput;backgroundInput;paddingInput;widthInput;heightInput;horizontalAlignmentToolbar;verticalAlignmentToolbar;saveButtonView;cancelButtonView;_focusables;_focusCycler;constructor(t,e){super(t),this.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),this.options=e;const{borderStyleDropdown:n,borderWidthInput:r,borderColorInput:i,borderRowLabel:o}=this._createBorderFields(),{backgroundRowLabel:s,backgroundInput:a}=this._createBackgroundFields(),{widthInput:l,operatorLabel:c,heightInput:d,dimensionsLabel:h}=this._createDimensionFields(),{horizontalAlignmentToolbar:u,verticalAlignmentToolbar:m,alignmentLabel:g}=this._createAlignmentFields();this.focusTracker=new Bo,this.keystrokes=new Do,this.children=this.createCollection(),this.borderStyleDropdown=n,this.borderWidthInput=r,this.borderColorInput=i,this.backgroundInput=a,this.paddingInput=this._createPaddingField(),this.widthInput=l,this.heightInput=d,this.horizontalAlignmentToolbar=u,this.verticalAlignmentToolbar=m;const{saveButtonView:p,cancelButtonView:f}=this._createActionButtons();this.saveButtonView=p,this.cancelButtonView=f,this._focusables=new Mu,this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new vm(t,{label:this.t("Cell properties")})),this.children.add(new ES(t,{labelView:o,children:[o,n,i,r],class:"ck-table-form__border-row"})),this.children.add(new ES(t,{labelView:s,children:[s,a],class:"ck-table-form__background-row"})),this.children.add(new ES(t,{children:[new ES(t,{labelView:h,children:[h,l,c,d],class:"ck-table-form__dimensions-row"}),new ES(t,{children:[this.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),this.children.add(new ES(t,{labelView:g,children:[g,u,m],class:"ck-table-cell-properties-form__alignment-row"})),this.children.add(new ES(t,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),hm({view:this}),[this.borderColorInput,this.backgroundInput].forEach((t=>{this._focusCycler.chain(t.fieldView.focusCycler)})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const t=this.options.defaultTableCellProperties,e={style:t.borderStyle,width:t.borderWidth,color:t.borderColor},n=CS({colorConfig:this.options.borderColors,columns:5,defaultColorValue:e.color,colorPickerConfig:this.options.colorPickerConfig}),r=this.locale,i=this.t,o=i("Style"),s=new Xm(r);s.text=i("Border");const a=mS(i),l=new Sg(r,zp);l.set({label:o,class:"ck-table-form__border-style"}),l.fieldView.buttonView.set({ariaLabel:o,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:o}),l.fieldView.buttonView.bind("label").to(this,"borderStyle",(t=>a[t||"none"])),l.fieldView.on("execute",(t=>{this.borderStyle=t.source._borderStyleValue})),l.bind("isEmpty").to(this,"borderStyle",(t=>!t)),Ip(l.fieldView,wS(this,e.style),{role:"menu",ariaLabel:o});const c=new Sg(r,Rp);c.set({label:i("Width"),class:"ck-table-form__border-width"}),c.fieldView.bind("value").to(this,"borderWidth"),c.bind("isEnabled").to(this,"borderStyle",FS),c.fieldView.on("input",(()=>{this.borderWidth=c.fieldView.element.value}));const d=new Sg(r,n);return d.set({label:i("Color"),class:"ck-table-form__border-color"}),d.fieldView.bind("value").to(this,"borderColor"),d.bind("isEnabled").to(this,"borderStyle",FS),d.fieldView.on("input",(()=>{this.borderColor=d.fieldView.value})),this.on("change:borderStyle",((t,n,r,i)=>{FS(r)||(this.borderColor="",this.borderWidth=""),FS(i)||(this.borderColor=e.color,this.borderWidth=e.width)})),{borderRowLabel:s,borderStyleDropdown:l,borderColorInput:d,borderWidthInput:c}}_createBackgroundFields(){const t=this.locale,e=this.t,n=new Xm(t);n.text=e("Background");const r=CS({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),i=new Sg(t,r);return i.set({label:e("Color"),class:"ck-table-cell-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",(()=>{this.backgroundColor=i.fieldView.value})),{backgroundRowLabel:n,backgroundInput:i}}_createDimensionFields(){const t=this.locale,e=this.t,n=new Xm(t);n.text=e("Dimensions");const r=new Sg(t,Rp);r.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),r.fieldView.bind("value").to(this,"width"),r.fieldView.on("input",(()=>{this.width=r.fieldView.element.value}));const i=new lm(t);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const o=new Sg(t,Rp);return o.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),o.fieldView.bind("value").to(this,"height"),o.fieldView.on("input",(()=>{this.height=o.fieldView.element.value})),{dimensionsLabel:n,widthInput:r,operatorLabel:i,heightInput:o}}_createPaddingField(){const t=this.locale,e=this.t,n=new Sg(t,Rp);return n.set({label:e("Padding"),class:"ck-table-cell-properties-form__padding"}),n.fieldView.bind("value").to(this,"padding"),n.fieldView.on("input",(()=>{this.padding=n.fieldView.element.value})),n}_createAlignmentFields(){const t=this.locale,e=this.t,n=new Xm(t),r={left:zu.alignLeft,center:zu.alignCenter,right:zu.alignRight,justify:zu.alignJustify,top:zu.alignTop,middle:zu.alignMiddle,bottom:zu.alignBottom};n.text=e("Table cell text alignment");const i=new bp(t),o="rtl"===t.contentLanguageDirection;i.set({isCompact:!0,ariaLabel:e("Horizontal text alignment toolbar")}),AS({view:this,icons:r,toolbar:i,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:t=>{if(o){if("left"===t)return"right";if("right"===t)return"left"}return t},defaultValue:this.options.defaultTableCellProperties.horizontalAlignment});const s=new bp(t);return s.set({isCompact:!0,ariaLabel:e("Vertical text alignment toolbar")}),AS({view:this,icons:r,toolbar:s,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:i,verticalAlignmentToolbar:s,alignmentLabel:n}}_createActionButtons(){const t=this.locale,e=this.t,n=new wm(t),r=new wm(t),i=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return n.set({label:e("Save"),icon:zu.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(i,"errorText",((...t)=>t.every((t=>!t)))),r.set({label:e("Cancel"),icon:zu.cancel,class:"ck-button-cancel",withText:!0}),r.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:r}}get _horizontalAlignmentLabels(){const t=this.locale,e=this.t,n=e("Align cell text to the left"),r=e("Align cell text to the center"),i=e("Align cell text to the right"),o=e("Justify cell text");return"rtl"===t.uiLanguageDirection?{right:i,center:r,left:n,justify:o}:{left:n,center:r,right:i,justify:o}}get _verticalAlignmentLabels(){const t=this.t;return{top:t("Align cell text to the top"),middle:t("Align cell text to the middle"),bottom:t("Align cell text to the bottom")}}}function FS(t){return"none"!==t}const RS=(()=>[op.defaultPositions.northArrowSouth,op.defaultPositions.northArrowSouthWest,op.defaultPositions.northArrowSouthEast,op.defaultPositions.southArrowNorth,op.defaultPositions.southArrowNorthWest,op.defaultPositions.southArrowNorthEast,op.defaultPositions.viewportStickyNorth])();function LS(t,e){const n=t.plugins.get("ContextualBalloon"),r=t.editing.view.document.selection;let i;"cell"===e?sS(r)&&(i=MS(t)):iS(r)&&(i=zS(t)),i&&n.updatePosition(i)}function zS(t){const e=BB(t.model.document.selection),n=t.editing.mapper.toViewElement(e);return{target:t.editing.view.domConverter.mapViewToDom(n),positions:RS}}function MS(t){const e=t.editing.mapper,n=t.editing.view.domConverter,r=t.model.document.selection;if(r.rangeCount>1)return{target:()=>function(t,e){const n=e.editing.mapper,r=e.editing.view.domConverter,i=Array.from(t).map((t=>{const e=NS(t.start),i=n.toViewElement(e);return new fi(r.mapViewToDom(i))}));return fi.getBoundingRect(i)}(r.getRanges(),t),positions:RS};const i=NS(r.getFirstPosition()),o=e.toViewElement(i);return{target:n.mapViewToDom(o),positions:RS}}function NS(t){return t.nodeAfter&&t.nodeAfter.is("element","tableCell")?t.nodeAfter:t.findAncestor("tableCell")}function OS(t){if(!t||!s(t))return t;const{top:e,right:n,bottom:r,left:i}=t;return e==n&&n==r&&r==i?e:void 0}function HS(t,e){const n=parseFloat(t);return Number.isNaN(n)||String(n)!==String(t)?t:`${n}${e}`}function jS(t,e={}){const n={borderStyle:"none",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",...t};return e.includeAlignmentProperty&&!n.alignment&&(n.alignment="center"),e.includePaddingProperty&&!n.padding&&(n.padding=""),e.includeVerticalAlignmentProperty&&!n.verticalAlignment&&(n.verticalAlignment="middle"),e.includeHorizontalAlignmentProperty&&!n.horizontalAlignment&&(n.horizontalAlignment=e.isRightToLeftContent?"right":"left"),n}function qS(t,e){return jS({borderStyle:"double",borderColor:"hsl(0, 0%, 70%)",borderWidth:"1px",...t},e)}function US(t,e){return jS({borderStyle:"solid",borderColor:"hsl(0, 0%, 75%)",borderWidth:"1px",...t},e)}const WS={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",height:"tableCellHeight",width:"tableCellWidth",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};class $S extends Lo{_defaultTableCellProperties;_balloon;view;_undoStepBatch;_isReady;static get requires(){return[yb]}static get pluginName(){return"TableCellPropertiesUI"}constructor(t){super(t),t.config.define("table.tableCellProperties",{borderColors:_S,backgroundColors:_S})}init(){const t=this.editor,e=t.t;this._defaultTableCellProperties=US(t.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===t.locale.contentLanguageDirection}),this._balloon=t.plugins.get(yb),this.view=null,this._isReady=!1,t.ui.componentFactory.add("tableCellProperties",(n=>{const r=new wm(n);r.set({label:e("Cell properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',tooltip:!0}),this.listenTo(r,"execute",(()=>this._showView()));const i=Object.values(WS).map((e=>t.commands.get(e)));return r.bind("isEnabled").toMany(i,"isEnabled",((...t)=>t.some((t=>t)))),r}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const t=this.editor,e=t.config.get("table.tableCellProperties"),n=pg(e.borderColors),r=gg(t.locale,n),i=pg(e.backgroundColors),o=gg(t.locale,i),s=!1!==e.colorPicker,a=new VS(t.locale,{borderColors:r,backgroundColors:o,defaultTableCellProperties:this._defaultTableCellProperties,colorPickerConfig:!!s&&(e.colorPicker||{})}),l=t.t;a.render(),this.listenTo(a,"submit",(()=>{this._hideView()})),this.listenTo(a,"cancel",(()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()})),a.keystrokes.set("Esc",((t,e)=>{this._hideView(),e()})),cm({emitter:a,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const c=gS(l),d=pS(l);return a.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle")),a.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:a.borderColorInput,commandName:"tableCellBorderColor",errorText:c,validator:fS})),a.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:a.borderWidthInput,commandName:"tableCellBorderWidth",errorText:d,validator:kS})),a.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:a.paddingInput,commandName:"tableCellPadding",errorText:d,validator:bS})),a.on("change:width",this._getValidatedPropertyChangeCallback({viewField:a.widthInput,commandName:"tableCellWidth",errorText:d,validator:bS})),a.on("change:height",this._getValidatedPropertyChangeCallback({viewField:a.heightInput,commandName:"tableCellHeight",errorText:d,validator:bS})),a.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:a.backgroundInput,commandName:"tableCellBackgroundColor",errorText:c,validator:fS})),a.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment")),a.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment")),a}_fillViewFormFromCommandValues(){const t=this.editor.commands,e=t.get("tableCellBorderStyle");Object.entries(WS).map((([e,n])=>{const r=this._defaultTableCellProperties[e]||"";return[e,t.get(n).value||r]})).forEach((([t,n])=>{("borderColor"!==t&&"borderWidth"!==t||"none"!==e.value)&&this.view.set(t,n)})),this._isReady=!0}_showView(){const t=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(t.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:MS(t)}),this._undoStepBatch=t.model.createBatch(),this.view.focus()}_hideView(){const t=this.editor;this.stopListening(t.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const t=this.editor;sS(t.editing.view.document.selection)?this._isViewVisible&&LS(t,"cell"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(t){return(e,n,r)=>{this._isReady&&this.editor.execute(t,{value:r,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(t){const{commandName:e,viewField:n,validator:r,errorText:i}=t,o=F((()=>{n.errorText=i}),500);return(t,i,s)=>{o.cancel(),this._isReady&&(r(s)?(this.editor.execute(e,{value:s,batch:this._undoStepBatch}),n.errorText=null):o())}}}class GS extends Mo{attributeName;_defaultValue;constructor(t,e,n){super(t),this.attributeName=e,this._defaultValue=n}refresh(){const t=this.editor,e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t.model.document.selection);this.isEnabled=!!e.length,this.value=this._getSingleValue(e)}execute(t={}){const{value:e,batch:n}=t,r=this.editor.model,i=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r.document.selection),o=this._getValueToSet(e);r.enqueueChange(n,(t=>{o?i.forEach((e=>t.setAttribute(this.attributeName,o,e))):i.forEach((e=>t.removeAttribute(this.attributeName,e)))}))}_getAttribute(t){if(!t)return;const e=t.getAttribute(this.attributeName);return e!==this._defaultValue?e:void 0}_getValueToSet(t){if(t!==this._defaultValue)return t}_getSingleValue(t){const e=this._getAttribute(t[0]);return t.every((t=>this._getAttribute(t)===e))?e:void 0}}class KS extends GS{constructor(t,e){super(t,"tableCellWidth",e)}_getValueToSet(t){if((t=HS(t,"px"))!==this._defaultValue)return t}}class ZS extends Lo{static get pluginName(){return"TableCellWidthEditing"}static get requires(){return[MD]}init(){const t=this.editor,e=US(t.config.get("table.tableCellProperties.defaultProperties"));EB(t.model.schema,t.conversion,{modelAttribute:"tableCellWidth",styleName:"width",defaultValue:e.width}),t.commands.add("tableCellWidth",new KS(t,e.width))}}class YS extends GS{constructor(t,e){super(t,"tableCellPadding",e)}_getAttribute(t){if(!t)return;const e=OS(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}_getValueToSet(t){const e=HS(t,"px");if(e!==this._defaultValue)return e}}class JS extends GS{constructor(t,e){super(t,"tableCellHeight",e)}_getValueToSet(t){const e=HS(t,"px");if(e!==this._defaultValue)return e}}class QS extends GS{constructor(t,e){super(t,"tableCellBackgroundColor",e)}}class XS extends GS{constructor(t,e){super(t,"tableCellVerticalAlignment",e)}}class tT extends GS{constructor(t,e){super(t,"tableCellHorizontalAlignment",e)}}class eT extends GS{constructor(t,e){super(t,"tableCellBorderStyle",e)}_getAttribute(t){if(!t)return;const e=OS(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class nT extends GS{constructor(t,e){super(t,"tableCellBorderColor",e)}_getAttribute(t){if(!t)return;const e=OS(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class rT extends GS{constructor(t,e){super(t,"tableCellBorderWidth",e)}_getAttribute(t){if(!t)return;const e=OS(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}_getValueToSet(t){const e=HS(t,"px");if(e!==this._defaultValue)return e}}const iT=/^(top|middle|bottom)$/,oT=/^(left|center|right|justify)$/;class sT extends Lo{static get pluginName(){return"TableCellPropertiesEditing"}static get requires(){return[MD,ZS]}init(){const t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableCellProperties.defaultProperties",{});const r=US(t.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===t.locale.contentLanguageDirection});t.data.addStyleProcessorRules(bu),function(t,e,n){const r={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};t.extend("tableCell",{allowAttributes:Object.values(r)}),wB(e,"td",r,n),wB(e,"th",r,n),AB(e,{modelElement:"tableCell",modelAttribute:r.style,styleName:"border-style"}),AB(e,{modelElement:"tableCell",modelAttribute:r.color,styleName:"border-color"}),AB(e,{modelElement:"tableCell",modelAttribute:r.width,styleName:"border-width"})}(e,n,{color:r.borderColor,style:r.borderStyle,width:r.borderWidth}),t.commands.add("tableCellBorderStyle",new eT(t,r.borderStyle)),t.commands.add("tableCellBorderColor",new nT(t,r.borderColor)),t.commands.add("tableCellBorderWidth",new rT(t,r.borderWidth)),EB(e,n,{modelAttribute:"tableCellHeight",styleName:"height",defaultValue:r.height}),t.commands.add("tableCellHeight",new JS(t,r.height)),t.data.addStyleProcessorRules(Du),EB(e,n,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:r.padding}),t.commands.add("tableCellPadding",new YS(t,r.padding)),t.data.addStyleProcessorRules(fu),EB(e,n,{modelAttribute:"tableCellBackgroundColor",styleName:"background-color",defaultValue:r.backgroundColor}),t.commands.add("tableCellBackgroundColor",new QS(t,r.backgroundColor)),function(t,e,n){t.extend("tableCell",{allowAttributes:["tableCellHorizontalAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellHorizontalAlignment"},view:t=>({key:"style",value:{"text-align":t}})}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"text-align":oT}},model:{key:"tableCellHorizontalAlignment",value:t=>{const e=t.getStyle("text-align");return e===n?null:e}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:oT}},model:{key:"tableCellHorizontalAlignment",value:t=>{const e=t.getAttribute("align");return e===n?null:e}}})}(e,n,r.horizontalAlignment),t.commands.add("tableCellHorizontalAlignment",new tT(t,r.horizontalAlignment)),function(t,e,n){t.extend("tableCell",{allowAttributes:["tableCellVerticalAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellVerticalAlignment"},view:t=>({key:"style",value:{"vertical-align":t}})}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"vertical-align":iT}},model:{key:"tableCellVerticalAlignment",value:t=>{const e=t.getStyle("vertical-align");return e===n?null:e}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:iT}},model:{key:"tableCellVerticalAlignment",value:t=>{const e=t.getAttribute("valign");return e===n?null:e}}})}(e,n,r.verticalAlignment),t.commands.add("tableCellVerticalAlignment",new XS(t,r.verticalAlignment))}}class aT extends Mo{attributeName;_defaultValue;constructor(t,e,n){super(t),this.attributeName=e,this._defaultValue=n}refresh(){const t=BB(this.editor.model.document.selection);this.isEnabled=!!t,this.value=this._getValue(t)}execute(t={}){const e=this.editor.model,n=e.document.selection,{value:r,batch:i}=t,o=BB(n),s=this._getValueToSet(r);e.enqueueChange(i,(t=>{s?t.setAttribute(this.attributeName,s,o):t.removeAttribute(this.attributeName,o)}))}_getValue(t){if(!t)return;const e=t.getAttribute(this.attributeName);return e!==this._defaultValue?e:void 0}_getValueToSet(t){if(t!==this._defaultValue)return t}}class lT extends aT{constructor(t,e){super(t,"tableBackgroundColor",e)}}class cT extends aT{constructor(t,e){super(t,"tableBorderColor",e)}_getValue(t){if(!t)return;const e=OS(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class dT extends aT{constructor(t,e){super(t,"tableBorderStyle",e)}_getValue(t){if(!t)return;const e=OS(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class hT extends aT{constructor(t,e){super(t,"tableBorderWidth",e)}_getValue(t){if(!t)return;const e=OS(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}_getValueToSet(t){const e=HS(t,"px");if(e!==this._defaultValue)return e}}class uT extends aT{constructor(t,e){super(t,"tableWidth",e)}_getValueToSet(t){if((t=HS(t,"px"))!==this._defaultValue)return t}}class mT extends aT{constructor(t,e){super(t,"tableHeight",e)}_getValueToSet(t){if((t=HS(t,"px"))!==this._defaultValue)return t}}class gT extends aT{constructor(t,e){super(t,"tableAlignment",e)}}const pT=/^(left|center|right)$/,fT=/^(left|none|right)$/;class bT extends Lo{static get pluginName(){return"TablePropertiesEditing"}static get requires(){return[MD]}init(){const t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableProperties.defaultProperties",{});const r=qS(t.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});t.data.addStyleProcessorRules(bu),function(t,e,n){const r={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};t.extend("table",{allowAttributes:Object.values(r)}),wB(e,"table",r,n),_B(e,{modelAttribute:r.color,styleName:"border-color"}),_B(e,{modelAttribute:r.style,styleName:"border-style"}),_B(e,{modelAttribute:r.width,styleName:"border-width"})}(e,n,{color:r.borderColor,style:r.borderStyle,width:r.borderWidth}),t.commands.add("tableBorderColor",new cT(t,r.borderColor)),t.commands.add("tableBorderStyle",new dT(t,r.borderStyle)),t.commands.add("tableBorderWidth",new hT(t,r.borderWidth)),function(t,e,n){t.extend("table",{allowAttributes:["tableAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"table",key:"tableAlignment"},view:t=>({key:"style",value:{float:"center"===t?"none":t}}),converterPriority:"high"}),e.for("upcast").attributeToAttribute({view:{name:/^(table|figure)$/,styles:{float:fT}},model:{key:"tableAlignment",value:t=>{let e=t.getStyle("float");return"none"===e&&(e="center"),e===n?null:e}}}).attributeToAttribute({view:{attributes:{align:pT}},model:{name:"table",key:"tableAlignment",value:t=>{const e=t.getAttribute("align");return e===n?null:e}}})}(e,n,r.alignment),t.commands.add("tableAlignment",new gT(t,r.alignment)),kT(e,n,{modelAttribute:"tableWidth",styleName:"width",defaultValue:r.width}),t.commands.add("tableWidth",new uT(t,r.width)),kT(e,n,{modelAttribute:"tableHeight",styleName:"height",defaultValue:r.height}),t.commands.add("tableHeight",new mT(t,r.height)),t.data.addStyleProcessorRules(fu),function(t,e,n){const{modelAttribute:r}=n;t.extend("table",{allowAttributes:[r]}),kB(e,{viewElement:"table",...n}),_B(e,n)}(e,n,{modelAttribute:"tableBackgroundColor",styleName:"background-color",defaultValue:r.backgroundColor}),t.commands.add("tableBackgroundColor",new lT(t,r.backgroundColor))}}function kT(t,e,n){const{modelAttribute:r}=n;t.extend("table",{allowAttributes:[r]}),kB(e,{viewElement:/^(table|figure)$/,shouldUpcast:t=>!("table"==t.name&&"figure"==t.parent.name),...n}),AB(e,{modelElement:"table",...n})}var wT=n(5562),AT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(wT.A,AT);wT.A.locals;class _T extends lm{options;focusTracker;keystrokes;children;borderStyleDropdown;borderWidthInput;borderColorInput;backgroundInput;widthInput;heightInput;alignmentToolbar;saveButtonView;cancelButtonView;_focusables;_focusCycler;constructor(t,e){super(t),this.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),this.options=e;const{borderStyleDropdown:n,borderWidthInput:r,borderColorInput:i,borderRowLabel:o}=this._createBorderFields(),{backgroundRowLabel:s,backgroundInput:a}=this._createBackgroundFields(),{widthInput:l,operatorLabel:c,heightInput:d,dimensionsLabel:h}=this._createDimensionFields(),{alignmentToolbar:u,alignmentLabel:m}=this._createAlignmentFields();this.focusTracker=new Bo,this.keystrokes=new Do,this.children=this.createCollection(),this.borderStyleDropdown=n,this.borderWidthInput=r,this.borderColorInput=i,this.backgroundInput=a,this.widthInput=l,this.heightInput=d,this.alignmentToolbar=u;const{saveButtonView:g,cancelButtonView:p}=this._createActionButtons();this.saveButtonView=g,this.cancelButtonView=p,this._focusables=new Mu,this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new vm(t,{label:this.t("Table properties")})),this.children.add(new ES(t,{labelView:o,children:[o,n,i,r],class:"ck-table-form__border-row"})),this.children.add(new ES(t,{labelView:s,children:[s,a],class:"ck-table-form__background-row"})),this.children.add(new ES(t,{children:[new ES(t,{labelView:h,children:[h,l,c,d],class:"ck-table-form__dimensions-row"}),new ES(t,{labelView:m,children:[m,u],class:"ck-table-properties-form__alignment-row"})]})),this.children.add(new ES(t,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),hm({view:this}),[this.borderColorInput,this.backgroundInput].forEach((t=>{this._focusCycler.chain(t.fieldView.focusCycler)})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const t=this.options.defaultTableProperties,e={style:t.borderStyle,width:t.borderWidth,color:t.borderColor},n=CS({colorConfig:this.options.borderColors,columns:5,defaultColorValue:e.color,colorPickerConfig:this.options.colorPickerConfig}),r=this.locale,i=this.t,o=i("Style"),s=new Xm(r);s.text=i("Border");const a=mS(i),l=new Sg(r,zp);l.set({label:o,class:"ck-table-form__border-style"}),l.fieldView.buttonView.set({ariaLabel:o,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:o}),l.fieldView.buttonView.bind("label").to(this,"borderStyle",(t=>a[t||"none"])),l.fieldView.on("execute",(t=>{this.borderStyle=t.source._borderStyleValue})),l.bind("isEmpty").to(this,"borderStyle",(t=>!t)),Ip(l.fieldView,wS(this,e.style),{role:"menu",ariaLabel:o});const c=new Sg(r,Rp);c.set({label:i("Width"),class:"ck-table-form__border-width"}),c.fieldView.bind("value").to(this,"borderWidth"),c.bind("isEnabled").to(this,"borderStyle",CT),c.fieldView.on("input",(()=>{this.borderWidth=c.fieldView.element.value}));const d=new Sg(r,n);return d.set({label:i("Color"),class:"ck-table-form__border-color"}),d.fieldView.bind("value").to(this,"borderColor"),d.bind("isEnabled").to(this,"borderStyle",CT),d.fieldView.on("input",(()=>{this.borderColor=d.fieldView.value})),this.on("change:borderStyle",((t,n,r,i)=>{CT(r)||(this.borderColor="",this.borderWidth=""),CT(i)||(this.borderColor=e.color,this.borderWidth=e.width)})),{borderRowLabel:s,borderStyleDropdown:l,borderColorInput:d,borderWidthInput:c}}_createBackgroundFields(){const t=this.locale,e=this.t,n=new Xm(t);n.text=e("Background");const r=CS({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),i=new Sg(t,r);return i.set({label:e("Color"),class:"ck-table-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",(()=>{this.backgroundColor=i.fieldView.value})),{backgroundRowLabel:n,backgroundInput:i}}_createDimensionFields(){const t=this.locale,e=this.t,n=new Xm(t);n.text=e("Dimensions");const r=new Sg(t,Rp);r.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),r.fieldView.bind("value").to(this,"width"),r.fieldView.on("input",(()=>{this.width=r.fieldView.element.value}));const i=new lm(t);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const o=new Sg(t,Rp);return o.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),o.fieldView.bind("value").to(this,"height"),o.fieldView.on("input",(()=>{this.height=o.fieldView.element.value})),{dimensionsLabel:n,widthInput:r,operatorLabel:i,heightInput:o}}_createAlignmentFields(){const t=this.locale,e=this.t,n=new Xm(t);n.text=e("Alignment");const r=new bp(t);return r.set({isCompact:!0,ariaLabel:e("Table alignment toolbar")}),AS({view:this,icons:{left:zu.objectLeft,center:zu.objectCenter,right:zu.objectRight},toolbar:r,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:n,alignmentToolbar:r}}_createActionButtons(){const t=this.locale,e=this.t,n=new wm(t),r=new wm(t),i=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return n.set({label:e("Save"),icon:zu.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(i,"errorText",((...t)=>t.every((t=>!t)))),r.set({label:e("Cancel"),icon:zu.cancel,class:"ck-button-cancel",withText:!0}),r.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:r}}get _alignmentLabels(){const t=this.locale,e=this.t,n=e("Align table to the left"),r=e("Center table"),i=e("Align table to the right");return"rtl"===t.uiLanguageDirection?{right:i,center:r,left:n}:{left:n,center:r,right:i}}}function CT(t){return"none"!==t}const vT={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};class yT extends Lo{_defaultTableProperties;_balloon;view=null;_undoStepBatch;_isReady;static get requires(){return[yb]}static get pluginName(){return"TablePropertiesUI"}constructor(t){super(t),t.config.define("table.tableProperties",{borderColors:_S,backgroundColors:_S})}init(){const t=this.editor,e=t.t;this._defaultTableProperties=qS(t.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._balloon=t.plugins.get(yb),t.ui.componentFactory.add("tableProperties",(n=>{const r=new wm(n);r.set({label:e("Table properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',tooltip:!0}),this.listenTo(r,"execute",(()=>this._showView()));const i=Object.values(vT).map((e=>t.commands.get(e)));return r.bind("isEnabled").toMany(i,"isEnabled",((...t)=>t.some((t=>t)))),r}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const t=this.editor,e=t.config.get("table.tableProperties"),n=pg(e.borderColors),r=gg(t.locale,n),i=pg(e.backgroundColors),o=gg(t.locale,i),s=!1!==e.colorPicker,a=new _T(t.locale,{borderColors:r,backgroundColors:o,defaultTableProperties:this._defaultTableProperties,colorPickerConfig:!!s&&(e.colorPicker||{})}),l=t.t;a.render(),this.listenTo(a,"submit",(()=>{this._hideView()})),this.listenTo(a,"cancel",(()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()})),a.keystrokes.set("Esc",((t,e)=>{this._hideView(),e()})),cm({emitter:a,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const c=gS(l),d=pS(l);return a.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle")),a.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:a.borderColorInput,commandName:"tableBorderColor",errorText:c,validator:fS})),a.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:a.borderWidthInput,commandName:"tableBorderWidth",errorText:d,validator:kS})),a.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:a.backgroundInput,commandName:"tableBackgroundColor",errorText:c,validator:fS})),a.on("change:width",this._getValidatedPropertyChangeCallback({viewField:a.widthInput,commandName:"tableWidth",errorText:d,validator:bS})),a.on("change:height",this._getValidatedPropertyChangeCallback({viewField:a.heightInput,commandName:"tableHeight",errorText:d,validator:bS})),a.on("change:alignment",this._getPropertyChangeCallback("tableAlignment")),a}_fillViewFormFromCommandValues(){const t=this.editor.commands,e=t.get("tableBorderStyle");Object.entries(vT).map((([e,n])=>{const r=e,i=this._defaultTableProperties[r]||"";return[r,t.get(n).value||i]})).forEach((([t,n])=>{("borderColor"!==t&&"borderWidth"!==t||"none"!==e.value)&&this.view.set(t,n)})),this._isReady=!0}_showView(){const t=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(t.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:zS(t)}),this._undoStepBatch=t.model.createBatch(),this.view.focus()}_hideView(){const t=this.editor;this.stopListening(t.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const t=this.editor;iS(t.editing.view.document.selection)?this._isViewVisible&&LS(t,"table"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(t){return(e,n,r)=>{this._isReady&&this.editor.execute(t,{value:r,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(t){const{commandName:e,viewField:n,validator:r,errorText:i}=t,o=F((()=>{n.errorText=i}),500);return(t,i,s)=>{o.cancel(),this._isReady&&(r(s)?(this.editor.execute(e,{value:s,batch:this._undoStepBatch}),n.errorText=null):o())}}}function xT(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let r=!1;for(const e of n){if("insert"!=e.type)continue;const n=e.position.parent;if(n.is("element","table")||"table"==e.name){const i="table"==e.name?e.position.nodeAfter:n,o=Array.from(i.getChildren()).filter((t=>t.is("element","caption"))),s=o.shift();if(!s)continue;for(const e of o)t.move(t.createRangeIn(e),s,"end"),t.remove(e);s.nextSibling&&(t.move(t.createRangeOn(s),i,"end"),r=!0),r=!!o.length||r}}return r}(e,t)))}function ET(t){return!!t&&t.is("element","table")}function BT(t){for(const e of t.getChildren())if(e.is("element","caption"))return e;return null}function DT(t){const e=t.parent;return"figcaption"==t.name&&e&&e.is("element","figure")&&e.hasClass("table")||"caption"==t.name&&e&&e.is("element","table")?{name:!0}:null}class ST extends Mo{refresh(){const t=BB(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?this.value=!!BT(t):this.value=!1}execute({focusCaptionOnShow:t=!1}={}){this.editor.model.change((e=>{this.value?this._hideTableCaption(e):this._showTableCaption(e,t)}))}_showTableCaption(t,e){const n=this.editor.model,r=BB(n.document.selection),i=this.editor.plugins.get("TableCaptionEditing")._getSavedCaption(r)||t.createElement("caption");n.insertContent(i,r,"end"),e&&t.setSelection(i,"in")}_hideTableCaption(t){const e=this.editor.model,n=BB(e.document.selection),r=this.editor.plugins.get("TableCaptionEditing"),i=BT(n);r._saveCaption(n,i),e.deleteContent(t.createSelection(i,"on"))}}class TT extends Lo{_savedCaptionsMap;static get pluginName(){return"TableCaptionEditing"}constructor(t){super(t),this._savedCaptionsMap=new WeakMap}init(){const t=this.editor,e=t.model.schema,n=t.editing.view,r=t.t;e.isRegistered("caption")?e.extend("caption",{allowIn:"table"}):e.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleTableCaption",new ST(this.editor)),t.conversion.for("upcast").elementToElement({view:DT,model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(t,{writer:e})=>ET(t.parent)?e.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(t,{writer:e})=>{if(!ET(t.parent))return null;const i=e.createEditableElement("figcaption");return e.setCustomProperty("tableCaption",!0,i),i.placeholder=r("Enter table caption"),Jo({view:n,element:i,keepOnFocus:!0}),A_(i,e)}}),xT(t.model)}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?ql.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}}class IT extends Lo{static get pluginName(){return"TableCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.t;t.ui.componentFactory.add("toggleTableCaption",(r=>{const i=t.commands.get("toggleTableCaption"),o=new wm(r);return o.set({icon:zu.caption,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),o.bind("label").to(i,"value",(t=>n(t?"Toggle caption off":"Toggle caption on"))),this.listenTo(o,"execute",(()=>{if(t.execute("toggleTableCaption",{focusCaptionOnShow:!0}),i.value){const n=function(t){const e=BB(t);return e?BT(e):null}(t.model.document.selection),r=t.editing.mapper.toViewElement(n);if(!r)return;e.scrollToTheSelection(),e.change((t=>{t.addClass("table__caption_highlighted",r)}))}t.editing.view.focus()})),o}))}}var PT=n(4143),VT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(PT.A,VT);PT.A.locals;class FT extends Mo{refresh(){this.isEnabled=!0}execute(t={}){const{model:e,plugins:n}=this.editor;let{table:r=e.document.selection.getSelectedElement(),columnWidths:i,tableWidth:o}=t;i&&(i=Array.isArray(i)?i:i.split(",")),e.change((t=>{o?t.setAttribute("tableWidth",o,r):t.removeAttribute("tableWidth",r);const e=n.get("TableColumnResizeEditing").getColumnGroupElement(r);if(!i&&!e)return;if(!i)return t.remove(e);const s=dD(i);if(e)Array.from(e.getChildren()).forEach(((e,n)=>t.setAttribute("columnWidth",s[n],e)));else{const e=t.createElement("tableColumnGroup");s.forEach((n=>t.appendElement("tableColumn",{columnWidth:n},e))),t.append(e,r)}}))}}function RT(t){return e=>e.on("element:colgroup",((e,n,r)=>{const i=n.modelCursor.findAncestor("table"),o=mD(i);if(!o)return;const s=gD(o),a=t.getColumns(i);let l=(c=o,d=r.writer,gD(c).reduce(((t,e)=>{const n=e.getAttribute("columnWidth"),r=e.getAttribute("colSpan");if(!r)return t.push(n),t;for(let e=0;e<r;e++)t.push(n);return d.removeAttribute("colSpan",e),t}),[]));var c,d;l=Array.from({length:a},((t,e)=>l[e]||"auto")),(l.length!=s.length||l.includes("auto"))&&uD(s,o,dD(l),r.writer)}),{priority:"low"})}class LT extends Lo{_isResizingActive;_resizingData;_domEmitter;_tableUtilsPlugin;static get requires(){return[MD,pD]}static get pluginName(){return"TableColumnResizeEditing"}constructor(t){super(t),this._isResizingActive=!1,this.set("_isResizingAllowed",!0),this._resizingData=null,this._domEmitter=new(oi()),this._tableUtilsPlugin=t.plugins.get("TableUtils"),this.on("change:_isResizingAllowed",((e,n,r)=>{const i=r?"removeClass":"addClass";t.editing.view.change((e=>{for(const n of t.editing.view.document.roots)e[i]("ck-column-resize_disabled",t.editing.view.document.getRoot(n.rootName))}))}))}init(){this._extendSchema(),this._registerPostFixer(),this._registerConverters(),this._registerResizingListeners(),this._registerResizerInserter();const t=this.editor,e=t.plugins.get("TableColumnResize");t.plugins.get("TableEditing").registerAdditionalSlot({filter:t=>t.is("element","tableColumnGroup"),positionOffset:0});const n=new FT(t);t.commands.add("resizeTableWidth",n),t.commands.add("resizeColumnWidths",n),this.bind("_isResizingAllowed").to(t,"isReadOnly",e,"isEnabled",n,"isEnabled",((t,e,n)=>!t&&e&&n))}destroy(){this._domEmitter.stopListening(),super.destroy()}getColumnGroupElement(t){return mD(t)}getTableColumnElements(t){return gD(t)}getTableColumnsWidths(t){return function(t){return gD(t).map((t=>t.getAttribute("columnWidth")))}(t)}_extendSchema(){this.editor.model.schema.extend("table",{allowAttributes:["tableWidth"]}),this.editor.model.schema.register("tableColumnGroup",{allowIn:"table",isLimit:!0}),this.editor.model.schema.register("tableColumn",{allowIn:"tableColumnGroup",allowAttributes:["columnWidth","colSpan"],isLimit:!0})}_registerPostFixer(){const t=this.editor.model;function e(t,e,n){const r=n._tableUtilsPlugin.getColumns(e);if(0===r-t.length)return t;const i=t.map((t=>Number(t.replace("%","")))),o=function(t,e){const n=new Set;for(const r of t.getChanges())if("insert"==r.type&&r.position.nodeAfter&&"tableCell"==r.position.nodeAfter.name&&r.position.nodeAfter.getAncestors().includes(e))n.add(r.position.nodeAfter);else if("remove"==r.type){const t=r.position.nodeBefore||r.position.nodeAfter;"tableCell"==t.name&&t.getAncestors().includes(e)&&n.add(t)}return n}(n.editor.model.document.differ,e);for(const t of o){const o=r-i.length;if(0===o)continue;const a=o>0,l=n._tableUtilsPlugin.getCellLocation(t).column;if(a){const t=iD(e,n.editor),r=(s=t,Array(o).fill(s));i.splice(l,0,...r)}else{const t=i.splice(l,Math.abs(o));i[l]+=cD(t)}}var s;return i.map((t=>t+"%"))}t.document.registerPostFixer((n=>{let r=!1;for(const i of function(t){const e=new Set;for(const n of t.document.differ.getChanges()){let r=null;switch(n.type){case"insert":r=["table","tableRow","tableCell"].includes(n.name)?n.position:null;break;case"remove":r=["tableRow","tableCell"].includes(n.name)?n.position:null;break;case"attribute":n.range.start.nodeAfter&&(r=["table","tableRow","tableCell"].includes(n.range.start.nodeAfter.name)?n.range.start:null)}if(!r)continue;const i=r.nodeAfter&&r.nodeAfter.is("element","table")?r.nodeAfter:r.findAncestor("table");for(const n of t.createRangeOn(i).getItems())n.is("element","table")&&mD(n)&&e.add(n)}return e}(t)){const t=this.getColumnGroupElement(i),o=this.getTableColumnElements(t),s=this.getTableColumnsWidths(t);let a=dD(s);a=e(a,i,this),Rd(s,a)||(uD(o,t,a,n),r=!0)}return r}))}_registerConverters(){const t=this.editor.conversion;t.for("upcast").attributeToAttribute({view:{name:"figure",key:"style",value:{width:/[\s\S]+/}},model:{name:"table",key:"tableWidth",value:t=>t.getStyle("width")}}),t.for("downcast").attributeToAttribute({model:{name:"table",key:"tableWidth"},view:t=>({name:"figure",key:"style",value:{width:t}})}),t.elementToElement({model:"tableColumnGroup",view:"colgroup"}),t.elementToElement({model:"tableColumn",view:"col"}),t.for("downcast").add((t=>t.on("insert:table",((t,e,n)=>{const r=n.writer,i=e.item,o=n.mapper.toViewElement(i),s=o.is("element","table")?o:Array.from(o.getChildren()).find((t=>t.is("element","table")));mD(i)?r.addClass("ck-table-resized",s):r.removeClass("ck-table-resized",s)}),{priority:"low"}))),t.for("upcast").add(RT(this._tableUtilsPlugin)),t.for("upcast").attributeToAttribute({view:{name:"col",styles:{width:/.*/}},model:{key:"columnWidth",value:t=>{const e=t.getStyle("width");return e&&(e.endsWith("%")||e.endsWith("pt"))?e:"auto"}}}),t.for("upcast").attributeToAttribute({view:{name:"col",key:"span"},model:"colSpan"}),t.for("downcast").attributeToAttribute({model:{name:"tableColumn",key:"columnWidth"},view:t=>({key:"style",value:{width:t}})})}_registerResizingListeners(){const t=this.editor.editing.view;t.addObserver(XD),t.document.on("mousedown",this._onMouseDownHandler.bind(this),{priority:"high"}),this._domEmitter.listenTo(Yn.window.document,"mousemove",R(this._onMouseMoveHandler.bind(this),50)),this._domEmitter.listenTo(Yn.window.document,"mouseup",this._onMouseUpHandler.bind(this))}_onMouseDownHandler(t,e){const n=e.target;if(!n.hasClass("ck-table-column-resizer"))return;if(!this._isResizingAllowed)return;const r=this.editor,i=r.editing.mapper.toModelElement(n.findAncestor("figure"));if(!r.model.canEditAt(i))return;e.preventDefault(),t.stop();const o=function(t,e,n){const r=Array(e.getColumns(t)),i=new IB(t);for(const t of i){const e=n.editing.mapper.toViewElement(t.cell),i=hD(n.editing.view.domConverter.mapViewToDom(e));(!r[t.column]||i<r[t.column])&&(r[t.column]=lD(i))}return r}(i,this._tableUtilsPlugin,r),s=n.findAncestor("table"),a=r.editing.view;Array.from(s.getChildren()).find((t=>t.is("element","colgroup")))||a.change((t=>{!function(t,e,n){const r=t.createContainerElement("colgroup");for(let n=0;n<e.length;n++){const i=t.createEmptyElement("col"),o=`${lD(e[n]/cD(e)*100)}%`;t.setStyle("width",o,i),t.insert(t.createPositionAt(r,"end"),i)}t.insert(t.createPositionAt(n,0),r)}(t,o,s)})),this._isResizingActive=!0,this._resizingData=this._getResizingData(e,o),a.change((t=>function(t,e,n){const r=n.widths.viewFigureWidth/n.widths.viewFigureParentWidth;t.addClass("ck-table-resized",e),t.addClass("ck-table-column-resizer__active",n.elements.viewResizer),t.setStyle("width",`${lD(100*r)}%`,e.findAncestor("figure"))}(t,s,this._resizingData)))}_onMouseMoveHandler(t,e){if(!this._isResizingActive)return;if(!this._isResizingAllowed)return void this._onMouseUpHandler();const{columnPosition:n,flags:{isRightEdge:r,isTableCentered:i,isLtrContent:o},elements:{viewFigure:s,viewLeftColumn:a,viewRightColumn:l},widths:{viewFigureParentWidth:c,tableWidth:d,leftColumnWidth:h,rightColumnWidth:u}}=this._resizingData,m=40-h,g=r?c-d:u-40,p=(o?1:-1)*(r&&i?2:1),f=(b=(e.clientX-n)*p,k=Math.min(m,0),w=Math.max(g,0),lD(b<=k?k:b>=w?w:b));var b,k,w;0!==f&&this.editor.editing.view.change((t=>{const e=lD(100*(h+f)/d);if(t.setStyle("width",`${e}%`,a),r){const e=lD(100*(d+f)/c);t.setStyle("width",`${e}%`,s)}else{const e=lD(100*(u-f)/d);t.setStyle("width",`${e}%`,l)}}))}_onMouseUpHandler(){if(!this._isResizingActive)return;const{viewResizer:t,modelTable:e,viewFigure:n,viewColgroup:r}=this._resizingData.elements,i=this.editor,o=i.editing.view,s=this.getColumnGroupElement(e),a=Array.from(r.getChildren()).filter((t=>t.is("view:element"))),l=s?this.getTableColumnsWidths(s):null,c=a.map((t=>t.getStyle("width"))),d=!Rd(l,c),h=e.getAttribute("tableWidth"),u=n.getStyle("width"),m=h!==u;(d||m)&&(this._isResizingAllowed?i.execute("resizeTableWidth",{table:e,tableWidth:`${lD(u)}%`,columnWidths:c}):o.change((t=>{if(l)for(const e of a)t.setStyle("width",l.shift(),e);else t.remove(r);m&&(h?t.setStyle("width",h,n):t.removeStyle("width",n)),l||h||t.removeClass("ck-table-resized",[...n.getChildren()].find((t=>"table"===t.name)))}))),o.change((e=>{e.removeClass("ck-table-column-resizer__active",t)})),this._isResizingActive=!1,this._resizingData=null}_getResizingData(t,e){const n=this.editor,r=t.domEvent.clientX,i=t.target,o=i.findAncestor("td")||i.findAncestor("th"),s=n.editing.mapper.toModelElement(o),a=s.findAncestor("table"),l=function(t,e){const n=e.getCellLocation(t).column;return{leftEdge:n,rightEdge:n+(t.getAttribute("colspan")||1)-1}}(s,this._tableUtilsPlugin).rightEdge,c=l===this._tableUtilsPlugin.getColumns(a)-1,d=!a.hasAttribute("tableAlignment"),h="rtl"!==n.locale.contentLanguageDirection,u=o.findAncestor("table"),m=u.findAncestor("figure"),g=[...u.getChildren()].find((t=>t.is("element","colgroup"))),p=g.getChild(l),f=c?void 0:g.getChild(l+1);return{columnPosition:r,flags:{isRightEdge:c,isTableCentered:d,isLtrContent:h},elements:{viewResizer:i,modelTable:a,viewFigure:m,viewColgroup:g,viewLeftColumn:p,viewRightColumn:f},widths:{viewFigureParentWidth:aD(n.editing.view.domConverter.mapViewToDom(m.parent)),viewFigureWidth:aD(n.editing.view.domConverter.mapViewToDom(m)),tableWidth:oD(a,n),leftColumnWidth:e[l],rightColumnWidth:c?void 0:e[l+1]}}}_registerResizerInserter(){this.editor.conversion.for("editingDowncast").add((t=>{t.on("insert:tableCell",((t,e,n)=>{const r=e.item,i=n.mapper.toViewElement(r),o=n.writer;o.insert(o.createPositionAt(i,"end"),o.createUIElement("div",{class:"ck-table-column-resizer"}))}),{priority:"lowest"})}))}}var zT=n(8795),MT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(zT.A,MT);zT.A.locals;class NT extends Mo{attributeKey;constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=e.selection.getAttribute(this.attributeKey),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,r=t.value,i=t.batch,o=t=>{if(n.isCollapsed)r?t.setSelectionAttribute(this.attributeKey,r):t.removeSelectionAttribute(this.attributeKey);else{const i=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of i)r?t.setAttribute(this.attributeKey,r,e):t.removeAttribute(this.attributeKey,e)}};i?e.enqueueChange(i,(t=>{o(t)})):e.change((t=>{o(t)}))}}const OT="fontSize",HT="fontFamily",jT="fontColor",qT="fontBackgroundColor";function UT(t,e){const n={model:{key:t,values:[]},view:{},upcastAlso:{}};for(const t of e)n.model.values.push(t.model),n.view[t.model]=t.view,t.upcastAlso&&(n.upcastAlso[t.model]=t.upcastAlso);return n}function WT(t){return e=>e.getStyle(t).replace(/\s/g,"")}function $T(t){return(e,{writer:n})=>n.createAttributeElement("span",{style:`${t}:${e}`},{priority:7})}class GT extends NT{constructor(t){super(t,HT)}}function KT(t){return t.map(ZT).filter((t=>void 0!==t))}function ZT(t){return"object"==typeof t?t:"default"===t?{title:"Default",model:void 0}:"string"==typeof t?function(t){const e=t.replace(/"|'/g,"").split(","),n=e[0],r=e.map(YT).join(", ");return{title:n,model:r,view:{name:"span",styles:{"font-family":r},priority:7}}}(t):void 0}function YT(t){return(t=t.trim()).indexOf(" ")>0&&(t=`'${t}'`),t}class JT extends Lo{static get pluginName(){return"FontFamilyEditing"}constructor(t){super(t),t.config.define(HT,{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:HT}),t.model.schema.setAttributeProperties(HT,{isFormatting:!0,copyOnEnter:!0});const e=KT(t.config.get("fontFamily.options")).filter((t=>t.model)),n=UT(HT,e);t.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(n),t.commands.add(HT,new GT(t))}_prepareAnyValueConverters(){const t=this.editor;t.conversion.for("downcast").attributeToElement({model:HT,view:(t,{writer:e})=>e.createAttributeElement("span",{style:"font-family:"+t},{priority:7})}),t.conversion.for("upcast").elementToAttribute({model:{key:HT,value:t=>t.getStyle("font-family")},view:{name:"span",styles:{"font-family":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{face:/.*/}},model:{key:HT,value:t=>t.getAttribute("face")}})}}const QT='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>';class XT extends Lo{static get pluginName(){return"FontFamilyUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),r=t.commands.get(HT),i=e("Font Family"),o=function(t,e){const n=new xo;for(const r of t){const t={type:"button",model:new kb({commandName:HT,commandParam:r.model,label:r.title,role:"menuitemradio",withText:!0})};t.model.bind("isOn").to(e,"value",(t=>t===r.model||!(!t||!r.model)&&t.split(",")[0].replace(/'/g,"").toLowerCase()===r.model.toLowerCase())),r.view&&"string"!=typeof r.view&&r.view.styles&&t.model.set("labelStyle",`font-family: ${r.view.styles["font-family"]}`),n.add(t)}return n}(n,r);t.ui.componentFactory.add(HT,(e=>{const n=Dp(e);return Ip(n,o,{role:"menu",ariaLabel:i}),n.buttonView.set({label:i,icon:QT,tooltip:!0}),n.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),n.bind("isEnabled").to(r),this.listenTo(n,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),n})),t.ui.componentFactory.add(`menuBar:${HT}`,(e=>{const n=new ik(e);n.buttonView.set({label:i,icon:QT}),n.bind("isEnabled").to(r);const s=new ok(e);for(const r of o){const i=new Kf(e,n),o=new Ym(e);o.set({role:"menuitemradio",isToggleable:!0}),o.bind(...Object.keys(r.model)).to(r.model),o.delegate("execute").to(n),o.on("execute",(()=>{t.execute(r.model.commandName,{value:r.model.commandParam}),t.editing.view.focus()})),i.children.add(o),s.items.add(i)}return n.panelView.children.add(s),n}))}_getLocalizedOptions(){const t=this.editor,e=t.t;return KT(t.config.get(HT).options).map((t=>("Default"===t.title&&(t.title=e("Default")),t)))}}class tI extends Lo{static get requires(){return[JT,XT]}static get pluginName(){return"FontFamily"}}class eI extends NT{constructor(t){super(t,OT)}}function nI(t){return t.map((t=>function(t){"number"==typeof t&&(t=String(t));if("object"==typeof t&&(e=t,e.title&&e.model&&e.view))return iI(t);var e;const n=function(t){return"string"==typeof t?rI[t]:rI[t.model]}(t);if(n)return iI(n);if("default"===t)return{model:void 0,title:"Default"};if(function(t){let e;if("object"==typeof t){if(!t.model)throw new kr("font-size-invalid-definition",null,t);e=parseFloat(t.model)}else e=parseFloat(t);return isNaN(e)}(t))return;return function(t){"string"==typeof t&&(t={title:t,model:`${parseFloat(t)}px`});return t.view={name:"span",styles:{"font-size":t.model}},iI(t)}(t)}(t))).filter((t=>void 0!==t))}const rI={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function iI(t){return t.view&&"string"!=typeof t.view&&!t.view.priority&&(t.view.priority=7),t}const oI=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];class sI extends Lo{static get pluginName(){return"FontSizeEditing"}constructor(t){super(t),t.config.define(OT,{options:["tiny","small","default","big","huge"],supportAllValues:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:OT}),t.model.schema.setAttributeProperties(OT,{isFormatting:!0,copyOnEnter:!0});const e=t.config.get("fontSize.supportAllValues"),n=nI(this.editor.config.get("fontSize.options")).filter((t=>t.model)),r=UT(OT,n);e?(this._prepareAnyValueConverters(r),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(r),t.commands.add(OT,new eI(t))}_prepareAnyValueConverters(t){const e=this.editor,n=t.model.values.filter((t=>!tu(String(t))&&!nu(String(t))));if(n.length)throw new kr("font-size-invalid-use-of-named-presets",null,{presets:n});e.conversion.for("downcast").attributeToElement({model:OT,view:(t,{writer:e})=>{if(t)return e.createAttributeElement("span",{style:"font-size:"+t},{priority:7})}}),e.conversion.for("upcast").elementToAttribute({model:{key:OT,value:t=>t.getStyle("font-size")},view:{name:"span",styles:{"font-size":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:OT,value:t=>{const e=t.getAttribute("size"),n="-"===e[0]||"+"===e[0];let r=parseInt(e,10);n&&(r=3+r);const i=oI.length-1,o=Math.min(Math.max(r,0),i);return oI[o]}}})}}var aI=n(1058),lI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(aI.A,lI);aI.A.locals;const cI='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>';class dI extends Lo{static get pluginName(){return"FontSizeUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),r=t.commands.get(OT),i=e("Font Size"),o=function(t,e){const n=new xo;for(const r of t){const t={type:"button",model:new kb({commandName:OT,commandParam:r.model,label:r.title,class:"ck-fontsize-option",role:"menuitemradio",withText:!0})};r.view&&"string"!=typeof r.view&&(r.view.styles&&t.model.set("labelStyle",`font-size:${r.view.styles["font-size"]}`),r.view.classes&&t.model.set("class",`${t.model.class} ${r.view.classes}`)),t.model.bind("isOn").to(e,"value",(t=>t===r.model)),n.add(t)}return n}(n,r);t.ui.componentFactory.add(OT,(e=>{const n=Dp(e);return Ip(n,o,{role:"menu",ariaLabel:i}),n.buttonView.set({label:i,icon:cI,tooltip:!0}),n.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),n.bind("isEnabled").to(r),this.listenTo(n,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),n})),t.ui.componentFactory.add(`menuBar:${OT}`,(e=>{const n=new ik(e);n.buttonView.set({label:i,icon:cI}),n.bind("isEnabled").to(r);const s=new ok(e);for(const r of o){const i=new Kf(e,n),o=new Ym(e);o.set({role:"menuitemradio",isToggleable:!0}),o.bind(...Object.keys(r.model)).to(r.model),o.delegate("execute").to(n),o.on("execute",(()=>{t.execute(r.model.commandName,{value:r.model.commandParam}),t.editing.view.focus()})),i.children.add(o),s.items.add(i)}return n.panelView.children.add(s),n}))}_getLocalizedOptions(){const t=this.editor,e=t.t,n={Default:e("Default"),Tiny:e("Tiny"),Small:e("Small"),Big:e("Big"),Huge:e("Huge")};return nI(t.config.get(OT).options).map((t=>{const e=n[t.title];return e&&e!=t.title&&(t=Object.assign({},t,{title:e})),t}))}}class hI extends Lo{static get requires(){return[sI,dI]}static get pluginName(){return"FontSize"}normalizeSizeOptions(t){return nI(t)}}class uI extends NT{constructor(t){super(t,jT)}}class mI extends Lo{static get pluginName(){return"FontColorEditing"}constructor(t){super(t),t.config.define(jT,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:jT,value:WT("color")}}),t.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:jT,value:t=>t.getAttribute("color")}}),t.conversion.for("downcast").attributeToElement({model:jT,view:$T("color")}),t.commands.add(jT,new uI(t)),t.model.schema.extend("$text",{allowAttributes:jT}),t.model.schema.setAttributeProperties(jT,{isFormatting:!0,copyOnEnter:!0})}}class gI extends Lo{commandName;componentName;icon;dropdownLabel;columns;constructor(t,{commandName:e,componentName:n,icon:r,dropdownLabel:i}){super(t),this.commandName=e,this.componentName=n,this.icon=r,this.dropdownLabel=i,this.columns=t.config.get(`${this.componentName}.columns`)}init(){const t=this.editor,e=t.locale,n=e.t,r=t.commands.get(this.commandName),i=t.config.get(this.componentName),o=gg(e,pg(i.colors)),s=i.documentColors,a=!1!==i.colorPicker;t.ui.componentFactory.add(this.componentName,(e=>{const l=Dp(e);let c=!1;const d=function({dropdownView:t,colors:e,columns:n,removeButtonLabel:r,colorPickerLabel:i,documentColorsLabel:o,documentColorsCount:s,colorPickerViewConfig:a}){const l=t.locale,c=new Bf(l,{colors:e,columns:n,removeButtonLabel:r,colorPickerLabel:i,documentColorsLabel:o,documentColorsCount:s,colorPickerViewConfig:a});return t.colorSelectorView=c,t.panelView.children.add(c),c}({dropdownView:l,colors:o.map((t=>({label:t.label,color:t.model,options:{hasBorder:t.hasBorder}}))),columns:this.columns,removeButtonLabel:n("Remove color"),colorPickerLabel:n("Color picker"),documentColorsLabel:0!==s?n("Document colors"):"",documentColorsCount:void 0===s?this.columns:s,colorPickerViewConfig:!!a&&(i.colorPicker||{})});return d.bind("selectedColor").to(r,"value"),l.buttonView.set({label:this.dropdownLabel,icon:this.icon,tooltip:!0}),l.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),l.bind("isEnabled").to(r),d.on("execute",((e,n)=>{l.isOpen&&t.execute(this.commandName,{value:n.value,batch:this._undoStepBatch}),"colorPicker"!==n.source&&t.editing.view.focus(),"colorPickerSaveButton"===n.source&&(l.isOpen=!1)})),d.on("colorPicker:show",(()=>{this._undoStepBatch=t.model.createBatch()})),d.on("colorPicker:cancel",(()=>{this._undoStepBatch.operations.length&&(l.isOpen=!1,t.execute("undo",this._undoStepBatch)),t.editing.view.focus()})),l.on("change:isOpen",((e,n,r)=>{c||(c=!0,l.colorSelectorView.appendUI()),r&&(0!==s&&d.updateDocumentColors(t.model,this.componentName),d.updateSelectedColors(),d.showColorGridsFragment())})),Vp(l,(()=>l.colorSelectorView.colorGridsFragmentView.staticColorsGrid.items.find((t=>t.isOn)))),l})),t.ui.componentFactory.add(`menuBar:${this.componentName}`,(e=>{const i=new ik(e);i.buttonView.set({label:this.dropdownLabel,icon:this.icon}),i.bind("isEnabled").to(r);let a=!1;const l=new Bf(e,{colors:o.map((t=>({label:t.label,color:t.model,options:{hasBorder:t.hasBorder}}))),columns:this.columns,removeButtonLabel:n("Remove color"),colorPickerLabel:n("Color picker"),documentColorsLabel:0!==s?n("Document colors"):"",documentColorsCount:void 0===s?this.columns:s,colorPickerViewConfig:!1});return l.bind("selectedColor").to(r,"value"),l.delegate("execute").to(i),l.on("execute",((e,n)=>{t.execute(this.commandName,{value:n.value,batch:this._undoStepBatch}),t.editing.view.focus()})),i.on("change:isOpen",((e,n,r)=>{a||(a=!0,l.appendUI()),r&&(0!==s&&l.updateDocumentColors(t.model,this.componentName),l.updateSelectedColors(),l.showColorGridsFragment())})),i.panelView.children.add(l),i}))}}class pI extends gI{constructor(t){const e=t.locale.t;super(t,{commandName:jT,componentName:jT,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3 10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:e("Font Color")})}static get pluginName(){return"FontColorUI"}}class fI extends Lo{static get requires(){return[mI,pI]}static get pluginName(){return"FontColor"}}class bI extends NT{constructor(t){super(t,qT)}}class kI extends Lo{static get pluginName(){return"FontBackgroundColorEditing"}constructor(t){super(t),t.config.define(qT,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),t.data.addStyleProcessorRules(fu),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:qT,value:WT("background-color")}}),t.conversion.for("downcast").attributeToElement({model:qT,view:$T("background-color")}),t.commands.add(qT,new bI(t)),t.model.schema.extend("$text",{allowAttributes:qT}),t.model.schema.setAttributeProperties(qT,{isFormatting:!0,copyOnEnter:!0})}}class wI extends gI{constructor(t){const e=t.locale.t;super(t,{commandName:qT,componentName:qT,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8.38 9.262H7.62L10 5.506l2.38 5.756zm.532 1.285L14.34 16h1.426L10.804 4H9.196L4.234 16H5.66l1.428-3.453h5.824z"/></svg>',dropdownLabel:e("Font Background Color")})}static get pluginName(){return"FontBackgroundColorUI"}}class AI extends Lo{static get requires(){return[kI,wI]}static get pluginName(){return"FontBackgroundColor"}}function _I(t){const e=t.t,n=t.config.get("codeBlock.languages");for(const t of n)"Plain text"===t.label&&(t.label=e("Plain text")),void 0===t.class&&(t.class=`language-${t.language}`);return n}function CI(t,e,n){const r={};for(const i of t)if("class"===e){r[i[e].split(" ").shift()]=i[n]}else r[i[e]]=i[n];return r}function vI(t){return t.data.match(/^(\s*)/)[0]}function yI(t){const e=t.document.selection,n=[];if(e.isCollapsed)return[e.anchor];const r=e.getFirstRange().getWalker({ignoreElementEnd:!0,direction:"backward"});for(const{item:e}of r){let r=e.is("$textProxy")?e.textNode:e;const i=r.parent;if(!i.is("element","codeBlock")||r.is("element","softBreak"))continue;for(;r.previousSibling&&!r.previousSibling.is("element","softBreak");)r=r.previousSibling;const o=r.is("$text")?r.startOffset+vI(r).length:r.startOffset,s=t.createPositionAt(i,o);n.every((t=>!t.isEqual(s)))&&n.push(s)}return n}function xI(t){const e=Eo(t.getSelectedBlocks());return!!e&&e.is("element","codeBlock")}function EI(t,e){return!e.is("rootElement")&&!t.isLimit(e)&&t.checkChild(e.parent,"codeBlock")}function BI(t,e,n,r){const i=CI(e,"language","label"),o=n.getAttribute("language");if(o in i){const e=i[o];return t("enter"===r?"Entering %0 code snippet":"Leaving %0 code snippet",e)}return t("enter"===r?"Entering code snippet":"Leaving code snippet")}function DI(t,e){for(t.textNode&&(t=e.createPositionBefore(t.textNode));t.nodeBefore&&!t.nodeBefore.is("element","softBreak");)t=e.createPositionBefore(t.nodeBefore);const n=t.nodeAfter;return n&&n.is("$text")?n:null}class SI extends Mo{_lastLanguage;constructor(t){super(t),this._lastLanguage=null}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor,n=e.model,r=n.document.selection,i=_I(e)[0],o=Array.from(r.getSelectedBlocks()),s=null==t.forceValue?!this.value:t.forceValue,a=function(t,e,n){if(t.language)return t.language;if(t.usePreviousLanguageChoice&&e)return e;return n}(t,this._lastLanguage,i.language);n.change((t=>{s?this._applyCodeBlock(t,o,a):this._removeCodeBlock(t,o)}))}_getValue(){const t=Eo(this.editor.model.document.selection.getSelectedBlocks());return!!!(!t||!t.is("element","codeBlock"))&&t.getAttribute("language")}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Eo(t.getSelectedBlocks());return!!n&&EI(e,n)}_applyCodeBlock(t,e,n){this._lastLanguage=n;const r=this.editor.model.schema,i=e.filter((t=>EI(r,t)));for(const e of i)t.rename(e,"codeBlock"),t.setAttribute("language",n,e),r.removeDisallowedAttributes([e],t),Array.from(e.getChildren()).filter((t=>!r.checkChild(e,t))).forEach((e=>t.remove(e)));i.reverse().forEach(((e,n)=>{const r=i[n+1];e.previousSibling===r&&(t.appendElement("softBreak",r),t.merge(t.createPositionBefore(e)))}))}_removeCodeBlock(t,e){const n=e.filter((t=>t.is("element","codeBlock")));for(const e of n){const n=t.createRangeOn(e);for(const e of Array.from(n.getItems()).reverse())if(e.is("element","softBreak")&&e.parent.is("element","codeBlock")){const{position:n}=t.split(t.createPositionBefore(e)),r=n.nodeAfter;t.rename(r,"paragraph"),t.removeAttribute("language",r),t.remove(e)}t.rename(e,"paragraph"),t.removeAttribute("language",e)}}}class TI extends Mo{_indentSequence;constructor(t){super(t),this._indentSequence=t.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model;t.change((e=>{const n=yI(t);for(const r of n){const n=e.createText(this._indentSequence);t.insertContent(n,r)}}))}_checkEnabled(){return!!this._indentSequence&&xI(this.editor.model.document.selection)}}class II extends Mo{_indentSequence;constructor(t){super(t),this._indentSequence=t.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model;t.change((()=>{const e=yI(t);for(const n of e){const e=PI(t,n,this._indentSequence);e&&t.deleteContent(t.createSelection(e))}}))}_checkEnabled(){if(!this._indentSequence)return!1;const t=this.editor.model;return!!xI(t.document.selection)&&yI(t).some((e=>PI(t,e,this._indentSequence)))}}function PI(t,e,n){const r=DI(e,t);if(!r)return null;const i=vI(r),o=i.lastIndexOf(n);if(o+n.length!==i.length)return null;if(-1===o)return null;const{parent:s,startOffset:a}=r;return t.createRange(t.createPositionAt(s,a+o),t.createPositionAt(s,a+o+n.length))}function VI(t,e,n=!1){const r=CI(e,"language","class"),i=CI(e,"language","label");return(e,o,s)=>{const{writer:a,mapper:l,consumable:c}=s;if(!c.consume(o.item,"insert"))return;const d=o.item.getAttribute("language"),h=l.toViewPosition(t.createPositionBefore(o.item)),u={};n&&(u["data-language"]=i[d],u.class="hljs",u.spellcheck="false");const m=r[d]?{class:r[d]}:void 0,g=a.createContainerElement("code",m),p=a.createContainerElement("pre",u,g);a.insert(h,p),l.bindElements(o.item,g)}}const FI="paragraph";class RI extends Lo{static get pluginName(){return"CodeBlockEditing"}static get requires(){return[wA]}constructor(t){super(t),t.config.define("codeBlock",{languages:[{language:"plaintext",label:"Plain text"},{language:"c",label:"C"},{language:"cs",label:"C#"},{language:"cpp",label:"C++"},{language:"css",label:"CSS"},{language:"diff",label:"Diff"},{language:"html",label:"HTML"},{language:"java",label:"Java"},{language:"javascript",label:"JavaScript"},{language:"php",label:"PHP"},{language:"python",label:"Python"},{language:"ruby",label:"Ruby"},{language:"typescript",label:"TypeScript"},{language:"xml",label:"XML"}],indentSequence:"\t"})}init(){const t=this.editor,e=t.model.schema,n=t.model,r=t.editing.view,i=_I(t);t.commands.add("codeBlock",new SI(t)),t.commands.add("indentCodeBlock",new TI(t)),t.commands.add("outdentCodeBlock",new II(t)),this.listenTo(r.document,"tab",((e,n)=>{const r=n.shiftKey?"outdentCodeBlock":"indentCodeBlock";t.commands.get(r).isEnabled&&(t.execute(r),n.stopPropagation(),n.preventDefault(),e.stop())}),{context:"pre"}),e.register("codeBlock",{allowWhere:"$block",allowChildren:"$text",disallowChildren:"$inlineObject",allowAttributes:["language"],allowAttributesOf:"$listItem",isBlock:!0}),e.addAttributeCheck(((t,n)=>{const r=t.getItem(t.length-2);if(e.getAttributeProperties(n).isFormatting&&r&&"codeBlock"==r.name)return!1})),t.editing.downcastDispatcher.on("insert:codeBlock",VI(n,i,!0)),t.data.downcastDispatcher.on("insert:codeBlock",VI(n,i)),t.data.downcastDispatcher.on("insert:softBreak",function(t){return(e,n,r)=>{if("codeBlock"!==n.item.parent.name)return;const{writer:i,mapper:o,consumable:s}=r;if(!s.consume(n.item,"insert"))return;const a=o.toViewPosition(t.createPositionBefore(n.item));i.insert(a,i.createText("\n"))}}(n),{priority:"high"}),t.data.upcastDispatcher.on("element:code",function(t,e){const n=CI(e,"class","language"),r=e[0].language;return(t,e,i)=>{const o=e.viewItem,s=o.parent;if(!s||!s.is("element","pre"))return;if(e.modelCursor.findAncestor("codeBlock"))return;const{consumable:a,writer:l}=i;if(!a.test(o,{name:!0}))return;const c=l.createElement("codeBlock"),d=[...o.getClassNames()];d.length||d.push("");for(const t of d){const e=n[t];if(e){l.setAttribute("language",e,c);break}}c.hasAttribute("language")||l.setAttribute("language",r,c),i.convertChildren(o,c),i.safeInsert(c,e.modelCursor)&&(a.consume(o,{name:!0}),i.updateConversionResult(c,e))}}(0,i)),t.data.upcastDispatcher.on("text",((t,e,{consumable:n,writer:r})=>{let i=e.modelCursor;if(!n.test(e.viewItem))return;if(!i.findAncestor("codeBlock"))return;n.consume(e.viewItem);const o=e.viewItem.data.split("\n").map((t=>r.createText(t))),s=o[o.length-1];for(const t of o)if(r.insert(t,i),i=i.getShiftedBy(t.offsetSize),t!==s){const t=r.createElement("softBreak");r.insert(t,i),i=r.createPositionAfter(t)}e.modelRange=r.createRange(e.modelCursor,i),e.modelCursor=i})),t.data.upcastDispatcher.on("element:pre",((t,e,{consumable:n})=>{const r=e.viewItem;if(r.findAncestor("pre"))return;const i=Array.from(r.getChildren()),o=i.find((t=>t.is("element","code")));if(o)for(const t of i)t!==o&&t.is("$text")&&n.consume(t,{name:!0})}),{priority:"high"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,r)=>{let i=n.createRange(n.document.selection.anchor);if(r.targetRanges&&(i=t.editing.mapper.toModelRange(r.targetRanges[0])),!i.start.parent.is("element","codeBlock"))return;const o=r.dataTransfer.getData("text/plain"),s=new jh(t.editing.view.document);r.content=function(t,e){const n=t.createDocumentFragment(),r=e.split("\n"),i=r.reduce(((e,n,i)=>(e.push(n),i<r.length-1&&e.push(t.createElement("br")),e)),[]);return t.appendChild(i,n),n}(s,o)})),t.plugins.has("ClipboardPipeline")&&t.plugins.get(l_).on("contentInsertion",((n,r)=>{const i=t.model,o=i.document.selection;o.anchor.parent.is("element","codeBlock")&&i.change((t=>{const n=t.createRangeIn(r.content);for(const r of[...n.getItems()])r.is("node")&&!e.checkChild(o.anchor,r)&&t.remove(r)}))})),this.listenTo(n,"getSelectedContent",((t,[r])=>{const i=r.anchor;!r.isCollapsed&&i.parent.is("element","codeBlock")&&i.hasSameParentAs(r.focus)&&n.change((n=>{const o=t.return;if(i.parent.is("element")&&(o.childCount>1||r.containsEntireContent(i.parent))){const e=n.createElement("codeBlock",i.parent.getAttributes());n.append(o,e);const r=n.createDocumentFragment();return n.append(e,r),void(t.return=r)}const s=o.getChild(0);e.checkAttribute(s,"code")&&n.setAttribute("code",!0,s)}))}))}afterInit(){const t=this.editor,e=t.commands,n=e.get("indent"),r=e.get("outdent");n&&n.registerChildCommand(e.get("indentCodeBlock"),{priority:"highest"}),r&&r.registerChildCommand(e.get("outdentCodeBlock")),this.listenTo(t.editing.view.document,"enter",((e,n)=>{t.model.document.selection.getLastPosition().parent.is("element","codeBlock")&&(function(t,e){const n=t.model,r=n.document,i=t.editing.view,o=r.selection.getLastPosition(),s=o.nodeAfter;if(e||!r.selection.isCollapsed||!o.isAtStart)return!1;if(!zI(s))return!1;return t.model.change((e=>{t.execute("enter");const n=r.selection.anchor.parent.previousSibling;e.rename(n,FI),e.setSelection(n,"in"),t.model.schema.removeDisallowedAttributes([n],e),e.remove(s)})),i.scrollToTheSelection(),!0}(t,n.isSoft)||function(t,e){const n=t.model,r=n.document,i=t.editing.view,o=r.selection.getLastPosition(),s=o.nodeBefore;let a;if(e||!r.selection.isCollapsed||!o.isAtEnd||!s||!s.previousSibling)return!1;if(zI(s)&&zI(s.previousSibling))a=n.createRange(n.createPositionBefore(s.previousSibling),n.createPositionAfter(s));else if(LI(s)&&zI(s.previousSibling)&&zI(s.previousSibling.previousSibling))a=n.createRange(n.createPositionBefore(s.previousSibling.previousSibling),n.createPositionAfter(s));else{if(!(LI(s)&&zI(s.previousSibling)&&LI(s.previousSibling.previousSibling)&&s.previousSibling.previousSibling&&zI(s.previousSibling.previousSibling.previousSibling)))return!1;a=n.createRange(n.createPositionBefore(s.previousSibling.previousSibling.previousSibling),n.createPositionAfter(s))}return t.model.change((e=>{e.remove(a),t.execute("enter");const n=r.selection.anchor.parent;e.rename(n,FI),t.model.schema.removeDisallowedAttributes([n],e)})),i.scrollToTheSelection(),!0}(t,n.isSoft)||function(t){const e=t.model,n=e.document;let r;const i=DI(n.selection.getLastPosition(),e);i&&i.is("$text")&&(r=vI(i));t.model.change((e=>{t.execute("shiftEnter"),r&&e.insertText(r,n.selection.anchor)}))}(t),n.preventDefault(),e.stop())}),{context:"pre"}),this._initAriaAnnouncements()}_initAriaAnnouncements(){const{model:t,ui:e,t:n}=this.editor,r=_I(this.editor);let i=null;t.document.selection.on("change:range",(()=>{const o=t.document.selection.focus.parent;e&&i!==o&&o.is("element")&&(i&&i.is("element","codeBlock")&&e.ariaLiveAnnouncer.announce(BI(n,r,i,"leave")),o.is("element","codeBlock")&&e.ariaLiveAnnouncer.announce(BI(n,r,o,"enter")),i=o)}))}}function LI(t){return t&&t.is("$text")&&!t.data.match(/\S/)}function zI(t){return t&&t.is("element","softBreak")}var MI=n(6610),NI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(MI.A,NI);MI.A.locals;class OI extends Lo{static get pluginName(){return"CodeBlockUI"}init(){const t=this.editor,e=t.t,n=t.ui.componentFactory,r=_I(t),i=this._getLanguageListItemDefinitions(r),o=t.commands.get("codeBlock");n.add("codeBlock",(n=>{const r=Dp(n,vp),s=r.buttonView,a=e("Insert code block");return s.set({label:a,tooltip:!0,icon:zu.codeBlock,isToggleable:!0}),s.bind("isOn").to(o,"value",(t=>!!t)),s.on("execute",(()=>{t.execute("codeBlock",{usePreviousLanguageChoice:!0}),t.editing.view.focus()})),r.on("execute",(e=>{t.execute("codeBlock",{language:e.source._codeBlockLanguage,forceValue:!0}),t.editing.view.focus()})),r.class="ck-code-block-dropdown",r.bind("isEnabled").to(o),Ip(r,i,{role:"menu",ariaLabel:a}),r})),n.add("menuBar:codeBlock",(n=>{const r=new ik(n);r.buttonView.set({role:"menuitem",label:e("Code block"),icon:zu.codeBlock}),r.bind("isEnabled").to(o);const s=new ok(n);s.set({ariaLabel:e("Insert code block")});for(const e of i){const i=new Kf(n,r),a=new Ym(n);a.bind(...Object.keys(e.model)).to(e.model),a.set({isToggleable:!0,role:"menuitemcheckbox"}),a.delegate("execute").to(r),a.on("execute",(()=>{t.execute("codeBlock",{language:e.model._codeBlockLanguage,forceValue:o.value!=e.model._codeBlockLanguage}),t.editing.view.focus()})),i.children.add(a),s.items.add(i)}return r.panelView.children.add(s),r}))}_getLanguageListItemDefinitions(t){const e=this.editor.commands.get("codeBlock"),n=new xo;for(const r of t){const t={type:"button",model:new kb({_codeBlockLanguage:r.language,label:r.label,role:"menuitemradio",withText:!0})};t.model.bind("isOn").to(e,"value",(e=>e===t.model._codeBlockLanguage)),n.add(t)}return n}}const HI={"(":")","[":"]","{":"}"};class jI extends Mo{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"mention")}execute(t){const e=this.editor.model,n=e.document.selection,r="string"==typeof t.mention?{id:t.mention}:t.mention,i=r.id,o=t.range||n.getFirstRange();if(!e.canEditAt(o))return;const s=t.text||i,a=UI({_text:s,id:i},r);if(1!=t.marker.length)throw new kr("mentioncommand-incorrect-marker",this);if(i.charAt(0)!=t.marker)throw new kr("mentioncommand-incorrect-id",this);e.change((t=>{const r=So(n.getAttributes()),i=new Map(r.entries());i.set("mention",a);const l=e.insertContent(t.createText(s,i),o),c=l.start.nodeBefore,d=l.end.nodeAfter,h=d&&d.is("$text")&&d.data.startsWith(" ");let u=!1;if(c&&d&&c.is("$text")&&d.is("$text")){const t=c.data.slice(-1),e=t in HI,n=e&&d.data.startsWith(HI[t]);u=e&&n}u||h||e.insertContent(t.createText(" ",r),o.start.getShiftedBy(s.length))}))}}class qI extends Lo{static get pluginName(){return"MentionEditing"}init(){const t=this.editor,e=t.model,n=e.document;e.schema.extend("$text",{allowAttributes:"mention"}),t.conversion.for("upcast").elementToAttribute({view:{name:"span",key:"data-mention",classes:"mention"},model:{key:"mention",value:t=>WI(t)}}),t.conversion.for("downcast").attributeToElement({model:"mention",view:GI}),t.conversion.for("downcast").add($I),n.registerPostFixer((t=>function(t,e,n){const r=e.differ.getChanges();let i=!1;for(const e of r){if("attribute"==e.type)continue;const r=e.position;if("$text"==e.name){const e=r.textNode&&r.textNode.nextSibling;i=ZI(r.textNode,t)||i,i=ZI(e,t)||i,i=ZI(r.nodeBefore,t)||i,i=ZI(r.nodeAfter,t)||i}if("$text"!=e.name&&"insert"==e.type){const e=r.nodeAfter;for(const n of t.createRangeIn(e).getItems())i=ZI(n,t)||i}if("insert"==e.type&&n.isInline(e.name)){const e=r.nodeAfter&&r.nodeAfter.nextSibling;i=ZI(r.nodeBefore,t)||i,i=ZI(e,t)||i}}return i}(t,n,e.schema))),n.registerPostFixer((t=>function(t,e){const n=e.differ.getChanges();let r=!1;for(const e of n)if("attribute"===e.type&&"mention"!=e.attributeKey){const n=e.range.start.nodeBefore,i=e.range.end.nodeAfter;for(const o of[n,i])KI(o)&&o.getAttribute(e.attributeKey)!=e.attributeNewValue&&(t.setAttribute(e.attributeKey,e.attributeNewValue,o),r=!0)}return r}(t,n))),n.registerPostFixer((t=>function(t,e){const n=e.selection,r=n.focus;if(n.isCollapsed&&n.hasAttribute("mention")&&function(t){const e=t.isAtStart;return t.nodeBefore&&t.nodeBefore.is("$text")||e}(r))return t.removeSelectionAttribute("mention"),!0;return!1}(t,n))),t.commands.add("mention",new jI(t))}}function UI(t,e){return Object.assign({uid:pr()},t,e||{})}function WI(t,e){const n=t.getAttribute("data-mention"),r=t.getChild(0);if(!r)return;return UI({id:n,_text:r.data},e)}function $I(t){t.on("attribute:mention",((t,e,n)=>{const r=e.attributeNewValue;if(!e.item.is("$textProxy")||!r)return;const i=e.range.start;(i.textNode||i.nodeAfter).data!=r._text&&n.consumable.consume(e.item,t.name)}),{priority:"highest"})}function GI(t,{writer:e}){if(!t)return;const n={class:"mention","data-mention":t.id},r={id:t.uid,priority:20};return e.createAttributeElement("span",n,r)}function KI(t){if(!t||!t.is("$text")&&!t.is("$textProxy")||!t.hasAttribute("mention"))return!1;return t.data!=t.getAttribute("mention")._text}function ZI(t,e){return!!KI(t)&&(e.removeAttribute("mention",t),!0)}var YI=n(9055),JI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(YI.A,JI);YI.A.locals;class QI extends Qg{selected;position;constructor(t){super(t),this.extendTemplate({attributes:{class:["ck-mentions"],tabindex:"-1"}})}selectFirst(){this.select(0)}selectNext(){const t=this.selected,e=this.items.getIndex(t);this.select(e+1)}selectPrevious(){const t=this.selected,e=this.items.getIndex(t);this.select(e-1)}select(t){let e=0;t>0&&t<this.items.length?e=t:t<0&&(e=this.items.length-1);const n=this.items.get(e);this.selected!==n&&(this.selected&&this.selected.removeHighlight(),n.highlight(),this.selected=n,this._isItemVisibleInScrolledArea(n)||(this.element.scrollTop=n.element.offsetTop))}executeSelected(){this.selected.fire("execute")}_isItemVisibleInScrolledArea(t){return new fi(this.element).contains(new fi(t.element))}}class XI extends lm{domElement;constructor(t,e){super(t),this.template=void 0,this.domElement=e,this.domElement.classList.add("ck-button"),this.set("isOn",!1),this.on("change:isOn",((t,e,n)=>{n?(this.domElement.classList.add("ck-on"),this.domElement.classList.remove("ck-off")):(this.domElement.classList.add("ck-off"),this.domElement.classList.remove("ck-on"))})),this.listenTo(this.domElement,"click",(()=>{this.fire("execute")}))}render(){super.render(),this.element=this.domElement}focus(){this.domElement.focus()}}class tP extends Gg{item;marker;highlight(){this.children.first.isOn=!0}removeHighlight(){this.children.first.isOn=!1}}const eP=[$i.arrowup,$i.arrowdown,$i.esc],nP=[$i.enter,$i.tab];class rP extends Lo{_mentionsView;_mentionsConfigurations;_balloon;_items=new xo;_lastRequested;_requestFeedDebounced;static get pluginName(){return"MentionUI"}static get requires(){return[yb]}constructor(t){super(t),this._mentionsView=this._createMentionView(),this._mentionsConfigurations=new Map,this._requestFeedDebounced=F(this._requestFeed,100),t.config.define("mention",{feeds:[]})}init(){const t=this.editor,e=t.config.get("mention.commitKeys")||nP,n=eP.concat(e);this._balloon=t.plugins.get(yb),t.editing.view.document.on("keydown",((r,i)=>{if(o=i.keyCode,n.includes(o)&&this._isUIVisible){if(i.keyCode==$i.space)return void this._hideUIAndRemoveMarker();i.preventDefault(),r.stop(),i.keyCode==$i.arrowdown&&this._mentionsView.selectNext(),i.keyCode==$i.arrowup&&this._mentionsView.selectPrevious(),e.includes(i.keyCode)&&this._mentionsView.executeSelected(),i.keyCode==$i.esc&&(this._hideUIAndRemoveMarker(),t.model.change((e=>{const n=t.model.document.selection.getLastPosition();null!==n&&e.insertText("",n)})))}var o}),{priority:"highest"}),cm({emitter:this._mentionsView,activator:()=>this._isUIVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUIAndRemoveMarker()});const r=t.config.get("mention.feeds");for(const t of r){const{feed:e,marker:n,dropdownLimit:r}=t;if(!lP(n))throw new kr("mentionconfig-incorrect-marker",null,{marker:n});const i={marker:n,feedCallback:"function"==typeof e?e.bind(this.editor):aP(e),itemRenderer:t.itemRenderer,dropdownLimit:r};this._mentionsConfigurations.set(n,i)}this._setupTextWatcher(r),this.listenTo(t,"change:isReadOnly",(()=>{this._hideUIAndRemoveMarker()})),this.on("requestFeed:response",((t,e)=>this._handleFeedResponse(e))),this.on("requestFeed:error",(()=>this._hideUIAndRemoveMarker()))}destroy(){super.destroy(),this._mentionsView.destroy()}get _isUIVisible(){return this._balloon.visibleView===this._mentionsView}_createMentionView(){const t=this.editor.locale,e=new QI(t);return e.items.bindTo(this._items).using((n=>{const{item:r,marker:i}=n,{dropdownLimit:o}=this._mentionsConfigurations.get(i),s=o||this.editor.config.get("mention.dropdownLimit")||10;if(e.items.length>=s)return null;const a=new tP(t),l=this._renderItem(r,i);return l.delegate("execute").to(a),a.children.add(l),a.item=r,a.marker=i,a.on("execute",(()=>{e.fire("execute",{item:r,marker:i})})),a})),e.on("execute",((t,e)=>{const n=this.editor,r=n.model,i=e.item,o=e.marker,s=n.model.markers.get("mention"),a=r.createPositionAt(r.document.selection.focus),l=r.createPositionAt(s.getStart()),c=r.createRange(l,a);this._hideUIAndRemoveMarker(),n.execute("mention",{mention:i,text:i.text,marker:o,range:c}),n.editing.view.focus()})),e}_getItemRenderer(t){const{itemRenderer:e}=this._mentionsConfigurations.get(t);return e}_requestFeed(t,e){this._lastRequested=e;const{feedCallback:n}=this._mentionsConfigurations.get(t),r=n(e);r instanceof Promise?r.then((n=>{this._lastRequested==e?this.fire("requestFeed:response",{feed:n,marker:t,feedText:e}):this.fire("requestFeed:discarded",{feed:n,marker:t,feedText:e})})).catch((e=>{this.fire("requestFeed:error",{error:e}),wr("mention-feed-callback-error",{marker:t})})):this.fire("requestFeed:response",{feed:r,marker:t,feedText:e})}_setupTextWatcher(t){const e=this.editor,n=t.map((t=>({...t,pattern:sP(t.marker,t.minimumCharacters||0)}))),r=new cw(e.model,function(t){const e=e=>{const n=oP(t,e);if(!n)return!1;let r=0;0!==n.position&&(r=n.position-1);const i=e.substring(r);return n.pattern.test(i)};return e}(n));r.on("matched:data",((t,r)=>{const i=oP(n,r.text),o=e.model.document.selection.focus,s=e.model.createPositionAt(o.parent,i.position);if(function(t){const e=t.textNode&&t.textNode.hasAttribute("mention"),n=t.nodeBefore;return e||n&&n.is("$text")&&n.hasAttribute("mention")}(o)||function(t){const e=t.nodeAfter;return e&&e.is("$text")&&e.hasAttribute("mention")}(s))return void this._hideUIAndRemoveMarker();const a=function(t,e){let n=0;0!==t.position&&(n=t.position-1);const r=sP(t.marker,0),i=e.substring(n);return i.match(r)[2]}(i,r.text),l=i.marker.length+a.length,c=o.getShiftedBy(-l),d=o.getShiftedBy(-a.length),h=e.model.createRange(c,d);if(cP(e)){const t=e.model.markers.get("mention");e.model.change((e=>{e.updateMarker(t,{range:h})}))}else e.model.change((t=>{t.addMarker("mention",{range:h,usingOperation:!1,affectsData:!1})}));this._requestFeedDebounced(i.marker,a)})),r.on("unmatched",(()=>{this._hideUIAndRemoveMarker()}));const i=e.commands.get("mention");return r.bind("isEnabled").to(i),r}_handleFeedResponse(t){const{feed:e,marker:n}=t;if(!cP(this.editor))return;this._items.clear();for(const t of e){const e="object"!=typeof t?{id:t,text:t}:t;this._items.add({item:e,marker:n})}const r=this.editor.model.markers.get("mention");this._items.length?this._showOrUpdateUI(r):this._hideUIAndRemoveMarker()}_showOrUpdateUI(t){this._isUIVisible?this._balloon.updatePosition(this._getBalloonPanelPositionData(t,this._mentionsView.position)):this._balloon.add({view:this._mentionsView,position:this._getBalloonPanelPositionData(t,this._mentionsView.position),singleViewMode:!0}),this._mentionsView.position=this._balloon.view.position,this._mentionsView.selectFirst()}_hideUIAndRemoveMarker(){this._balloon.hasView(this._mentionsView)&&this._balloon.remove(this._mentionsView),cP(this.editor)&&this.editor.model.change((t=>t.removeMarker("mention"))),this._mentionsView.position=void 0}_renderItem(t,e){const n=this.editor;let r,i=t.id;const o=this._getItemRenderer(e);if(o){const e=o(t);"string"!=typeof e?r=new XI(n.locale,e):i=e}if(!r){const t=new wm(n.locale);t.label=i,t.withText=!0,r=t}return r}_getBalloonPanelPositionData(t,e){const n=this.editor,r=n.editing,i=r.view.domConverter,o=r.mapper;return{target:()=>{let e=t.getRange();"$graveyard"==e.start.root.rootName&&(e=n.model.document.selection.getFirstRange());const r=o.toViewRange(e);return fi.getDomRangeRects(i.viewRangeToDom(r)).pop()},limiter:()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},positions:iP(e,n.locale.uiLanguageDirection)}}}function iP(t,e){const n={caret_se:t=>({top:t.bottom+3,left:t.right,name:"caret_se",config:{withArrow:!1}}),caret_ne:(t,e)=>({top:t.top-e.height-3,left:t.right,name:"caret_ne",config:{withArrow:!1}}),caret_sw:(t,e)=>({top:t.bottom+3,left:t.right-e.width,name:"caret_sw",config:{withArrow:!1}}),caret_nw:(t,e)=>({top:t.top-e.height-3,left:t.right-e.width,name:"caret_nw",config:{withArrow:!1}})};return Object.prototype.hasOwnProperty.call(n,t)?[n[t]]:"rtl"!==e?[n.caret_se,n.caret_sw,n.caret_ne,n.caret_nw]:[n.caret_sw,n.caret_se,n.caret_nw,n.caret_ne]}function oP(t,e){let n;for(const r of t){const t=e.lastIndexOf(r.marker);t>0&&!e.substring(t-1).match(r.pattern)||(!n||t>=n.position)&&(n={marker:r.marker,position:t,minimumCharacters:r.minimumCharacters,pattern:r.pattern})}return n}function sP(t,e){const n=0==e?"*":`{${e},}`,r=Xn.features.isRegExpUnicodePropertySupported?"\\p{Ps}\\p{Pi}\"'":"\\(\\[{\"'";return new RegExp(`(?:^|[= ${r}])([${t}])([^=]${n})$`,"u")}function aP(t){return e=>t.filter((t=>("string"==typeof t?t:String(t.id)).toLowerCase().includes(e.toLowerCase())))}function lP(t){return t&&1==t.length}function cP(t){return t.model.markers.has("mention")}var dP=n(9409),hP={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(dP.A,hP);dP.A.locals;class uP extends Lo{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new Oo(t)),t.commands.add("outdent",new Oo(t))}}class mP extends Lo{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,r="ltr"==e.uiLanguageDirection?zu.indent:zu.outdent,i="ltr"==e.uiLanguageDirection?zu.outdent:zu.indent;this._defineButton("indent",n("Increase indent"),r),this._defineButton("outdent",n("Decrease indent"),i)}_defineButton(t,e,n){const r=this.editor;r.ui.componentFactory.add(t,(()=>{const r=this._createButton(wm,t,e,n);return r.set({tooltip:!0}),r})),r.ui.componentFactory.add("menuBar:"+t,(()=>this._createButton(Ym,t,e,n)))}_createButton(t,e,n,r){const i=this.editor,o=i.commands.get(e),s=new t(i.locale);return s.set({label:n,icon:r}),s.bind("isEnabled").to(o,"isEnabled"),this.listenTo(s,"execute",(()=>{i.execute(e),i.editing.view.focus()})),s}}class gP extends Mo{_indentBehavior;constructor(t,e){super(t),this._indentBehavior=e}refresh(){const t=Eo(this.editor.model.document.selection.getSelectedBlocks());t&&this._isIndentationChangeAllowed(t)?this.isEnabled=this._indentBehavior.checkEnabled(t.getAttribute("blockIndent")):this.isEnabled=!1}execute(){const t=this.editor.model,e=this._getBlocksToChange();t.change((t=>{for(const n of e){const e=n.getAttribute("blockIndent"),r=this._indentBehavior.getNextIndent(e);r?t.setAttribute("blockIndent",r,n):t.removeAttribute("blockIndent",n)}}))}_getBlocksToChange(){const t=this.editor.model.document.selection;return Array.from(t.getSelectedBlocks()).filter((t=>this._isIndentationChangeAllowed(t)))}_isIndentationChangeAllowed(t){const e=this.editor;if(!e.model.schema.checkAttribute(t,"blockIndent"))return!1;if(!e.plugins.has("ListUtils"))return!0;if(!this._indentBehavior.isForward)return!0;return!e.plugins.get("ListUtils").isListItemBlock(t)}}class pP{isForward;offset;unit;constructor(t){this.isForward="forward"===t.direction,this.offset=t.offset,this.unit=t.unit}checkEnabled(t){const e=parseFloat(t||"0");return this.isForward||e>0}getNextIndent(t){const e=parseFloat(t||"0");if(!(!t||t.endsWith(this.unit)))return this.isForward?this.offset+this.unit:void 0;const n=e+(this.isForward?this.offset:-this.offset);return n>0?n+this.unit:void 0}}class fP{isForward;classes;constructor(t){this.isForward="forward"===t.direction,this.classes=t.classes}checkEnabled(t){const e=this.classes.indexOf(t);return this.isForward?e<this.classes.length-1:e>=0}getNextIndent(t){const e=this.classes.indexOf(t),n=this.isForward?1:-1;return this.classes[e+n]}}const bP=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"];class kP extends Mo{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!wP(t.schema,n))do{if(n=n.parent,!n)return}while(!wP(t.schema,n));t.change((t=>{t.setSelection(n,"in")}))}}function wP(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"))}const AP=Zi("Ctrl+A");class _P extends Lo{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.t,n=t.editing.view.document;t.commands.add("selectAll",new kP(t)),this.listenTo(n,"keydown",((e,n)=>{Ki(n)===AP&&(t.execute("selectAll"),n.preventDefault())})),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Select all"),keystroke:"CTRL+A"}]})}}class CP extends Lo{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",(()=>{const t=this._createButton(wm);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:selectAll",(()=>this._createButton(Ym)))}_createButton(t){const e=this.editor,n=e.locale,r=e.commands.get("selectAll"),i=new t(e.locale),o=n.t;return i.set({label:o("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A"}),i.bind("isEnabled").to(r,"isEnabled"),this.listenTo(i,"execute",(()=>{e.execute("selectAll"),e.editing.view.focus()})),i}}class vP extends Lo{static get requires(){return[_P,CP]}static get pluginName(){return"SelectAll"}}class yP extends Mo{refresh(){const t=this.editor.model,e=t.schema,n=t.document.selection;this.isEnabled=function(t,e,n){const r=function(t,e){const n=__(t,e),r=n.start.parent;if(r.isEmpty&&!r.is("element","$root"))return r.parent;return r}(t,n);return e.checkChild(r,"horizontalLine")}(n,e,t)}execute(){const t=this.editor.model;t.change((e=>{const n=e.createElement("horizontalLine");t.insertObject(n,null,null,{setSelection:"after"})}))}}var xP=n(2626),EP={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(xP.A,EP);xP.A.locals;class BP extends Lo{static get pluginName(){return"HorizontalLineEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,r=t.conversion;e.register("horizontalLine",{inheritAllFrom:"$blockObject"}),r.for("dataDowncast").elementToElement({model:"horizontalLine",view:(t,{writer:e})=>e.createEmptyElement("hr")}),r.for("editingDowncast").elementToStructure({model:"horizontalLine",view:(t,{writer:e})=>{const r=n("Horizontal line"),i=e.createContainerElement("div",null,e.createEmptyElement("hr"));return e.addClass("ck-horizontal-line",i),e.setCustomProperty("hr",!0,i),function(t,e,n){return e.setCustomProperty("horizontalLine",!0,t),f_(t,e,{label:n})}(i,e,r)}}),r.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),t.commands.add("horizontalLine",new yP(t))}}class DP extends Lo{static get pluginName(){return"HorizontalLineUI"}init(){const t=this.editor;t.ui.componentFactory.add("horizontalLine",(()=>{const t=this._createButton(wm);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:horizontalLine",(()=>this._createButton(Ym)))}_createButton(t){const e=this.editor,n=e.locale,r=e.commands.get("horizontalLine"),i=new t(e.locale),o=n.t;return i.set({label:o("Horizontal line"),icon:zu.horizontalLine}),i.bind("isEnabled").to(r,"isEnabled"),this.listenTo(i,"execute",(()=>{e.execute("horizontalLine"),e.editing.view.focus()})),i}}const SP="removeFormat";class TP extends Lo{static get pluginName(){return"RemoveFormatUI"}init(){const t=this.editor;t.ui.componentFactory.add(SP,(()=>{const t=this._createButton(wm);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add(`menuBar:${SP}`,(()=>this._createButton(Ym)))}_createButton(t){const e=this.editor,n=e.locale,r=e.commands.get(SP),i=new t(e.locale),o=n.t;return i.set({label:o("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>'}),i.bind("isEnabled").to(r,"isEnabled"),this.listenTo(i,"execute",(()=>{e.execute(SP),e.editing.view.focus()})),i}}class IP extends Mo{refresh(){const t=this.editor.model;this.isEnabled=!!Eo(this._getFormattingItems(t.document.selection,t.schema))}execute(){const t=this.editor.model,e=t.schema;t.change((n=>{for(const r of this._getFormattingItems(t.document.selection,e))if(r.is("selection"))for(const t of this._getFormattingAttributes(r,e))n.removeSelectionAttribute(t);else{const t=n.createRangeOn(r);for(const i of this._getFormattingAttributes(r,e))n.removeAttribute(i,t)}}))}*_getFormattingItems(t,e){const n=t=>!!Eo(this._getFormattingAttributes(t,e));for(const r of t.getRanges())for(const t of r.getItems())!e.isBlock(t)&&n(t)&&(yield t);for(const e of t.getSelectedBlocks())n(e)&&(yield e);n(t)&&(yield t)}*_getFormattingAttributes(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);t&&t.isFormatting&&(yield n)}}}class PP extends Lo{static get pluginName(){return"RemoveFormatEditing"}init(){const t=this.editor;t.commands.add("removeFormat",new IP(t))}}var VP=n(8868),FP={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(VP.A,FP);VP.A.locals;class RP extends lm{tiles;focusTracker;keystrokes;constructor(t){super(t),this.tiles=this.createCollection(),this.setTemplate({tag:"div",children:[{tag:"div",attributes:{class:["ck","ck-character-grid__tiles"]},children:this.tiles}],attributes:{class:["ck","ck-character-grid"]}}),this.focusTracker=new Bo,this.keystrokes=new Do,um({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.tiles,numberOfColumns:()=>Yn.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}createTile(t,e){const n=new wm(this.locale);return n.set({label:t,withText:!0,class:"ck-character-grid__tile"}),n.extendTemplate({attributes:{title:e},on:{mouseover:n.bindTemplate.to("mouseover"),focus:n.bindTemplate.to("focus")}}),n.on("mouseover",(()=>{this.fire("tileHover",{name:e,character:t})})),n.on("focus",(()=>{this.fire("tileFocus",{name:e,character:t})})),n.on("execute",(()=>{this.fire("execute",{name:e,character:t})})),n}render(){super.render();for(const t of this.tiles)this.focusTracker.add(t.element);this.tiles.on("change",((t,{added:e,removed:n})=>{if(e.length>0)for(const t of e)this.focusTracker.add(t.element);if(n.length>0)for(const t of n)this.focusTracker.remove(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.keystrokes.destroy()}focus(){this.tiles.first.focus()}}var LP=n(128),zP={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(LP.A,zP);LP.A.locals;class MP extends lm{constructor(t){super(t);const e=this.bindTemplate;this.set("character",null),this.set("name",null),this.bind("code").to(this,"character",NP),this.setTemplate({tag:"div",children:[{tag:"span",attributes:{class:["ck-character-info__name"]},children:[{text:e.to("name",(t=>t||""))}]},{tag:"span",attributes:{class:["ck-character-info__code"]},children:[{text:e.to("code")}]}],attributes:{class:["ck","ck-character-info"]}})}}function NP(t){if(null===t)return"";return"U+"+("0000"+t.codePointAt(0).toString(16)).slice(-4)}class OP extends lm{items;focusTracker;keystrokes;_focusCycler;categoriesView;gridView;infoView;constructor(t,e,n,r){super(t),this.categoriesView=e,this.gridView=n,this.infoView=r,this.items=this.createCollection(),this.focusTracker=new Bo,this.keystrokes=new Do,this._focusCycler=new ym({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",children:[this.categoriesView,this.gridView,this.infoView],attributes:{tabindex:"-1"}}),this.items.add(this.categoriesView),this.items.add(this.gridView)}render(){super.render(),this.focusTracker.add(this.categoriesView.element),this.focusTracker.add(this.gridView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}var HP=n(4272),jP={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(HP.A,jP);HP.A.locals;class qP extends lm{_groupNames;_dropdownView;constructor(t,e){super(t),this.set("currentGroupName",Array.from(e.entries())[0][0]),this._groupNames=e,this._dropdownView=new Sg(t,zp),this.setTemplate({tag:"div",attributes:{class:["ck","ck-character-categories"]},children:[this._dropdownView]})}render(){super.render(),this._setupDropdown()}focus(){this._dropdownView.focus()}_setupDropdown(){const t=new xo;for(const[e,n]of this._groupNames){const r={type:"button",model:new kb({name:e,label:n,role:"menuitemradio",withText:!0})};r.model.bind("isOn").to(this,"currentGroupName",(t=>t===e)),t.add(r)}const e=(0,this.locale.t)("Category");this._dropdownView.set({label:e,isEmpty:!1}),this._dropdownView.fieldView.panelPosition="rtl"===this.locale.uiLanguageDirection?"se":"sw",this._dropdownView.fieldView.buttonView.set({withText:!0,tooltip:e,ariaLabel:e,ariaLabelledBy:void 0,isOn:!1}),this._dropdownView.fieldView.buttonView.bind("label").to(this,"currentGroupName",(t=>this._groupNames.get(t))),this._dropdownView.fieldView.on("execute",(({source:t})=>{this.currentGroupName=t.name})),Ip(this._dropdownView.fieldView,t,{ariaLabel:e,role:"menu"})}}const UP="All";class WP extends Lo{static get pluginName(){return"SpecialCharactersArrows"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Arrows",[{title:e("leftwards simple arrow"),character:"←"},{title:e("rightwards simple arrow"),character:"→"},{title:e("upwards simple arrow"),character:"↑"},{title:e("downwards simple arrow"),character:"↓"},{title:e("leftwards double arrow"),character:"⇐"},{title:e("rightwards double arrow"),character:"⇒"},{title:e("upwards double arrow"),character:"⇑"},{title:e("downwards double arrow"),character:"⇓"},{title:e("leftwards dashed arrow"),character:"⇠"},{title:e("rightwards dashed arrow"),character:"⇢"},{title:e("upwards dashed arrow"),character:"⇡"},{title:e("downwards dashed arrow"),character:"⇣"},{title:e("leftwards arrow to bar"),character:"⇤"},{title:e("rightwards arrow to bar"),character:"⇥"},{title:e("upwards arrow to bar"),character:"⤒"},{title:e("downwards arrow to bar"),character:"⤓"},{title:e("up down arrow with base"),character:"↨"},{title:e("back with leftwards arrow above"),character:"🔙"},{title:e("end with leftwards arrow above"),character:"🔚"},{title:e("on with exclamation mark with left right arrow above"),character:"🔛"},{title:e("soon with rightwards arrow above"),character:"🔜"},{title:e("top with upwards arrow above"),character:"🔝"}],{label:e("Arrows")})}}class $P extends Lo{static get pluginName(){return"SpecialCharactersText"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Text",[{character:"",title:e("Single left-pointing angle quotation mark")},{character:"",title:e("Single right-pointing angle quotation mark")},{character:"«",title:e("Left-pointing double angle quotation mark")},{character:"»",title:e("Right-pointing double angle quotation mark")},{character:"",title:e("Left single quotation mark")},{character:"",title:e("Right single quotation mark")},{character:"“",title:e("Left double quotation mark")},{character:"”",title:e("Right double quotation mark")},{character:"",title:e("Single low-9 quotation mark")},{character:"„",title:e("Double low-9 quotation mark")},{character:"¡",title:e("Inverted exclamation mark")},{character:"¿",title:e("Inverted question mark")},{character:"‥",title:e("Two dot leader")},{character:"…",title:e("Horizontal ellipsis")},{character:"‡",title:e("Double dagger")},{character:"‰",title:e("Per mille sign")},{character:"‱",title:e("Per ten thousand sign")},{character:"‼",title:e("Double exclamation mark")},{character:"⁈",title:e("Question exclamation mark")},{character:"⁉",title:e("Exclamation question mark")},{character:"⁇",title:e("Double question mark")},{character:"©",title:e("Copyright sign")},{character:"®",title:e("Registered sign")},{character:"™",title:e("Trade mark sign")},{character:"§",title:e("Section sign")},{character:"¶",title:e("Paragraph sign")},{character:"⁋",title:e("Reversed paragraph sign")}],{label:e("Text")})}}class GP extends Lo{static get pluginName(){return"SpecialCharactersMathematical"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Mathematical",[{character:"<",title:e("Less-than sign")},{character:">",title:e("Greater-than sign")},{character:"≤",title:e("Less-than or equal to")},{character:"≥",title:e("Greater-than or equal to")},{character:"",title:e("En dash")},{character:"—",title:e("Em dash")},{character:"¯",title:e("Macron")},{character:"‾",title:e("Overline")},{character:"°",title:e("Degree sign")},{character:"",title:e("Minus sign")},{character:"±",title:e("Plus-minus sign")},{character:"÷",title:e("Division sign")},{character:"",title:e("Fraction slash")},{character:"×",title:e("Multiplication sign")},{character:"ƒ",title:e("Latin small letter f with hook")},{character:"∫",title:e("Integral")},{character:"∑",title:e("N-ary summation")},{character:"∞",title:e("Infinity")},{character:"√",title:e("Square root")},{character:"",title:e("Tilde operator")},{character:"≅",title:e("Approximately equal to")},{character:"≈",title:e("Almost equal to")},{character:"≠",title:e("Not equal to")},{character:"≡",title:e("Identical to")},{character:"∈",title:e("Element of")},{character:"∉",title:e("Not an element of")},{character:"∋",title:e("Contains as member")},{character:"∏",title:e("N-ary product")},{character:"∧",title:e("Logical and")},{character:"",title:e("Logical or")},{character:"¬",title:e("Not sign")},{character:"∩",title:e("Intersection")},{character:"",title:e("Union")},{character:"∂",title:e("Partial differential")},{character:"∀",title:e("For all")},{character:"∃",title:e("There exists")},{character:"∅",title:e("Empty set")},{character:"∇",title:e("Nabla")},{character:"",title:e("Asterisk operator")},{character:"∝",title:e("Proportional to")},{character:"∠",title:e("Angle")},{character:"¼",title:e("Vulgar fraction one quarter")},{character:"½",title:e("Vulgar fraction one half")},{character:"¾",title:e("Vulgar fraction three quarters")}],{label:e("Mathematical")})}}class KP extends Lo{static get pluginName(){return"SpecialCharactersLatin"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Latin",[{character:"Ā",title:e("Latin capital letter a with macron")},{character:"ā",title:e("Latin small letter a with macron")},{character:"Ă",title:e("Latin capital letter a with breve")},{character:"ă",title:e("Latin small letter a with breve")},{character:"Ą",title:e("Latin capital letter a with ogonek")},{character:"ą",title:e("Latin small letter a with ogonek")},{character:"Ć",title:e("Latin capital letter c with acute")},{character:"ć",title:e("Latin small letter c with acute")},{character:"Ĉ",title:e("Latin capital letter c with circumflex")},{character:"ĉ",title:e("Latin small letter c with circumflex")},{character:"Ċ",title:e("Latin capital letter c with dot above")},{character:"ċ",title:e("Latin small letter c with dot above")},{character:"Č",title:e("Latin capital letter c with caron")},{character:"č",title:e("Latin small letter c with caron")},{character:"Ď",title:e("Latin capital letter d with caron")},{character:"ď",title:e("Latin small letter d with caron")},{character:"Đ",title:e("Latin capital letter d with stroke")},{character:"đ",title:e("Latin small letter d with stroke")},{character:"Ē",title:e("Latin capital letter e with macron")},{character:"ē",title:e("Latin small letter e with macron")},{character:"Ĕ",title:e("Latin capital letter e with breve")},{character:"ĕ",title:e("Latin small letter e with breve")},{character:"Ė",title:e("Latin capital letter e with dot above")},{character:"ė",title:e("Latin small letter e with dot above")},{character:"Ę",title:e("Latin capital letter e with ogonek")},{character:"ę",title:e("Latin small letter e with ogonek")},{character:"Ě",title:e("Latin capital letter e with caron")},{character:"ě",title:e("Latin small letter e with caron")},{character:"Ĝ",title:e("Latin capital letter g with circumflex")},{character:"ĝ",title:e("Latin small letter g with circumflex")},{character:"Ğ",title:e("Latin capital letter g with breve")},{character:"ğ",title:e("Latin small letter g with breve")},{character:"Ġ",title:e("Latin capital letter g with dot above")},{character:"ġ",title:e("Latin small letter g with dot above")},{character:"Ģ",title:e("Latin capital letter g with cedilla")},{character:"ģ",title:e("Latin small letter g with cedilla")},{character:"Ĥ",title:e("Latin capital letter h with circumflex")},{character:"ĥ",title:e("Latin small letter h with circumflex")},{character:"Ħ",title:e("Latin capital letter h with stroke")},{character:"ħ",title:e("Latin small letter h with stroke")},{character:"Ĩ",title:e("Latin capital letter i with tilde")},{character:"ĩ",title:e("Latin small letter i with tilde")},{character:"Ī",title:e("Latin capital letter i with macron")},{character:"ī",title:e("Latin small letter i with macron")},{character:"Ĭ",title:e("Latin capital letter i with breve")},{character:"ĭ",title:e("Latin small letter i with breve")},{character:"Į",title:e("Latin capital letter i with ogonek")},{character:"į",title:e("Latin small letter i with ogonek")},{character:"İ",title:e("Latin capital letter i with dot above")},{character:"ı",title:e("Latin small letter dotless i")},{character:"IJ",title:e("Latin capital ligature ij")},{character:"ij",title:e("Latin small ligature ij")},{character:"Ĵ",title:e("Latin capital letter j with circumflex")},{character:"ĵ",title:e("Latin small letter j with circumflex")},{character:"Ķ",title:e("Latin capital letter k with cedilla")},{character:"ķ",title:e("Latin small letter k with cedilla")},{character:"ĸ",title:e("Latin small letter kra")},{character:"Ĺ",title:e("Latin capital letter l with acute")},{character:"ĺ",title:e("Latin small letter l with acute")},{character:"Ļ",title:e("Latin capital letter l with cedilla")},{character:"ļ",title:e("Latin small letter l with cedilla")},{character:"Ľ",title:e("Latin capital letter l with caron")},{character:"ľ",title:e("Latin small letter l with caron")},{character:"Ŀ",title:e("Latin capital letter l with middle dot")},{character:"ŀ",title:e("Latin small letter l with middle dot")},{character:"Ł",title:e("Latin capital letter l with stroke")},{character:"ł",title:e("Latin small letter l with stroke")},{character:"Ń",title:e("Latin capital letter n with acute")},{character:"ń",title:e("Latin small letter n with acute")},{character:"Ņ",title:e("Latin capital letter n with cedilla")},{character:"ņ",title:e("Latin small letter n with cedilla")},{character:"Ň",title:e("Latin capital letter n with caron")},{character:"ň",title:e("Latin small letter n with caron")},{character:"ʼn",title:e("Latin small letter n preceded by apostrophe")},{character:"Ŋ",title:e("Latin capital letter eng")},{character:"ŋ",title:e("Latin small letter eng")},{character:"Ō",title:e("Latin capital letter o with macron")},{character:"ō",title:e("Latin small letter o with macron")},{character:"Ŏ",title:e("Latin capital letter o with breve")},{character:"ŏ",title:e("Latin small letter o with breve")},{character:"Ő",title:e("Latin capital letter o with double acute")},{character:"ő",title:e("Latin small letter o with double acute")},{character:"Œ",title:e("Latin capital ligature oe")},{character:"œ",title:e("Latin small ligature oe")},{character:"Ŕ",title:e("Latin capital letter r with acute")},{character:"ŕ",title:e("Latin small letter r with acute")},{character:"Ŗ",title:e("Latin capital letter r with cedilla")},{character:"ŗ",title:e("Latin small letter r with cedilla")},{character:"Ř",title:e("Latin capital letter r with caron")},{character:"ř",title:e("Latin small letter r with caron")},{character:"Ś",title:e("Latin capital letter s with acute")},{character:"ś",title:e("Latin small letter s with acute")},{character:"Ŝ",title:e("Latin capital letter s with circumflex")},{character:"ŝ",title:e("Latin small letter s with circumflex")},{character:"Ş",title:e("Latin capital letter s with cedilla")},{character:"ş",title:e("Latin small letter s with cedilla")},{character:"Š",title:e("Latin capital letter s with caron")},{character:"š",title:e("Latin small letter s with caron")},{character:"Ţ",title:e("Latin capital letter t with cedilla")},{character:"ţ",title:e("Latin small letter t with cedilla")},{character:"Ť",title:e("Latin capital letter t with caron")},{character:"ť",title:e("Latin small letter t with caron")},{character:"Ŧ",title:e("Latin capital letter t with stroke")},{character:"ŧ",title:e("Latin small letter t with stroke")},{character:"Ũ",title:e("Latin capital letter u with tilde")},{character:"ũ",title:e("Latin small letter u with tilde")},{character:"Ū",title:e("Latin capital letter u with macron")},{character:"ū",title:e("Latin small letter u with macron")},{character:"Ŭ",title:e("Latin capital letter u with breve")},{character:"ŭ",title:e("Latin small letter u with breve")},{character:"Ů",title:e("Latin capital letter u with ring above")},{character:"ů",title:e("Latin small letter u with ring above")},{character:"Ű",title:e("Latin capital letter u with double acute")},{character:"ű",title:e("Latin small letter u with double acute")},{character:"Ų",title:e("Latin capital letter u with ogonek")},{character:"ų",title:e("Latin small letter u with ogonek")},{character:"Ŵ",title:e("Latin capital letter w with circumflex")},{character:"ŵ",title:e("Latin small letter w with circumflex")},{character:"Ŷ",title:e("Latin capital letter y with circumflex")},{character:"ŷ",title:e("Latin small letter y with circumflex")},{character:"Ÿ",title:e("Latin capital letter y with diaeresis")},{character:"Ź",title:e("Latin capital letter z with acute")},{character:"ź",title:e("Latin small letter z with acute")},{character:"Ż",title:e("Latin capital letter z with dot above")},{character:"ż",title:e("Latin small letter z with dot above")},{character:"Ž",title:e("Latin capital letter z with caron")},{character:"ž",title:e("Latin small letter z with caron")},{character:"ſ",title:e("Latin small letter long s")}],{label:e("Latin")})}}class ZP extends Lo{static get pluginName(){return"SpecialCharactersCurrency"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Currency",[{character:"$",title:e("Dollar sign")},{character:"€",title:e("Euro sign")},{character:"¥",title:e("Yen sign")},{character:"£",title:e("Pound sign")},{character:"¢",title:e("Cent sign")},{character:"₠",title:e("Euro-currency sign")},{character:"₡",title:e("Colon sign")},{character:"₢",title:e("Cruzeiro sign")},{character:"₣",title:e("French franc sign")},{character:"₤",title:e("Lira sign")},{character:"¤",title:e("Currency sign")},{character:"₿",title:e("Bitcoin sign")},{character:"₥",title:e("Mill sign")},{character:"₦",title:e("Naira sign")},{character:"₧",title:e("Peseta sign")},{character:"₨",title:e("Rupee sign")},{character:"₩",title:e("Won sign")},{character:"₪",title:e("New sheqel sign")},{character:"₫",title:e("Dong sign")},{character:"₭",title:e("Kip sign")},{character:"₮",title:e("Tugrik sign")},{character:"₯",title:e("Drachma sign")},{character:"₰",title:e("German penny sign")},{character:"₱",title:e("Peso sign")},{character:"₲",title:e("Guarani sign")},{character:"₳",title:e("Austral sign")},{character:"₴",title:e("Hryvnia sign")},{character:"₵",title:e("Cedi sign")},{character:"₶",title:e("Livre tournois sign")},{character:"₷",title:e("Spesmilo sign")},{character:"₸",title:e("Tenge sign")},{character:"₹",title:e("Indian rupee sign")},{character:"₺",title:e("Turkish lira sign")},{character:"₻",title:e("Nordic mark sign")},{character:"₼",title:e("Manat sign")},{character:"₽",title:e("Ruble sign")}],{label:e("Currency")})}}const YP=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n};const JP=Lb({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});var QP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,XP=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const tV=function(t){return(t=ys(t))&&t.replace(QP,JP).replace(XP,"")};var eV=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const nV=function(t){return t.match(eV)||[]};var rV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const iV=function(t){return rV.test(t)};var oV="\\ud800-\\udfff",sV="\\u2700-\\u27bf",aV="a-z\\xdf-\\xf6\\xf8-\\xff",lV="A-Z\\xc0-\\xd6\\xd8-\\xde",cV="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dV="["+cV+"]",hV="\\d+",uV="["+sV+"]",mV="["+aV+"]",gV="[^"+oV+cV+hV+sV+aV+lV+"]",pV="(?:\\ud83c[\\udde6-\\uddff]){2}",fV="[\\ud800-\\udbff][\\udc00-\\udfff]",bV="["+lV+"]",kV="(?:"+mV+"|"+gV+")",wV="(?:"+bV+"|"+gV+")",AV="(?:['](?:d|ll|m|re|s|t|ve))?",_V="(?:['](?:D|LL|M|RE|S|T|VE))?",CV="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",vV="[\\ufe0e\\ufe0f]?",yV=vV+CV+("(?:\\u200d(?:"+["[^"+oV+"]",pV,fV].join("|")+")"+vV+CV+")*"),xV="(?:"+[uV,pV,fV].join("|")+")"+yV,EV=RegExp([bV+"?"+mV+"+"+AV+"(?="+[dV,bV,"$"].join("|")+")",wV+"+"+_V+"(?="+[dV,bV+kV,"$"].join("|")+")",bV+"?"+kV+"+"+AV,bV+"+"+_V,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hV,xV].join("|"),"g");const BV=function(t){return t.match(EV)||[]};const DV=function(t,e,n){return t=ys(t),void 0===(e=n?void 0:e)?iV(t)?BV(t):nV(t):t.match(e)||[]};var SV=RegExp("[']","g");const TV=function(t){return function(e){return YP(DV(tV(e).replace(SV,"")),t,"")}}((function(t,e,n){return t+(n?" ":"")+Ty(e)}));function IV(t,e,n,r){e&&function(t,e,n){if(e.attributes)for(const[r]of Object.entries(e.attributes))t.removeAttribute(r,n);if(e.styles)for(const r of Object.keys(e.styles))t.removeStyle(r,n);e.classes&&t.removeClass(e.classes,n)}(t,e,r),n&&PV(t,n,r)}function PV(t,e,n){if(e.attributes)for(const[r,i]of Object.entries(e.attributes))t.setAttribute(r,i,n);e.styles&&t.setStyle(e.styles,n),e.classes&&t.addClass(e.classes,n)}function VV(t,e,n,r,i){const o=e.getAttribute(n),s={};for(const t of["attributes","styles","classes"]){if(t!=r){o&&o[t]&&(s[t]=o[t]);continue}if("classes"==r){const e=new Set(o&&o.classes||[]);i(e),e.size&&(s[t]=Array.from(e));continue}const e=new Map(Object.entries(o&&o[t]||{}));i(e),e.size&&(s[t]=Object.fromEntries(e))}Object.keys(s).length?e.is("documentSelection")?t.setSelectionAttribute(n,s):t.setAttribute(n,s,e):o&&(e.is("documentSelection")?t.removeSelectionAttribute(n):t.removeAttribute(n,e))}function FV(t){return`html${e=t,TV(e).replace(/ /g,"")}Attributes`;var e}function RV({model:t}){return(e,n)=>n.writer.createElement(t,{htmlContent:e.getCustomProperty("$rawContent")})}function LV(t,{view:e,isInline:n}){const r=t.t;return(t,{writer:i})=>{const o=r("HTML object"),s=zV(e,t,i),a=t.getAttribute(FV(e));i.addClass("html-object-embed__content",s),a&&PV(i,a,s);return f_(i.createContainerElement(n?"span":"div",{class:"html-object-embed","data-html-object-embed-label":o},s),i,{label:o})}}function zV(t,e,n){return n.createRawElement(t,null,((t,n)=>{n.setContentOf(t,e.getAttribute("htmlContent"))}))}function MV({view:t,model:e,allowEmpty:n},r){return e=>{e.on(`element:${t}`,((t,e,o)=>{let s=r.processViewAttributes(e.viewItem,o);if(s||o.consumable.test(e.viewItem,{name:!0})){if(s=s||{},o.consumable.consume(e.viewItem,{name:!0}),e.modelRange||(e=Object.assign(e,o.convertChildren(e.viewItem,e.modelCursor))),n&&e.modelRange.isCollapsed&&Object.keys(s).length){const t=o.writer.createElement("htmlEmptyElement");if(!o.safeInsert(t,e.modelCursor))return;const n=o.getSplitParts(t);return e.modelRange=o.writer.createRange(e.modelRange.start,o.writer.createPositionAfter(n[n.length-1])),o.updateConversionResult(t,e),void i(t,s,o)}for(const t of e.modelRange.getItems())i(t,s,o)}}),{priority:"low"})};function i(t,n,r){if(r.schema.checkAttribute(t,e)){const i=function(t,e){const n=Ll(t);let r="attributes";for(r in e)n[r]="classes"==r?Array.from(new Set([...t[r]||[],...e[r]])):{...t[r],...e[r]};return n}(n,t.getAttribute(e)||{});r.writer.setAttribute(e,i,t)}}}function NV({model:t,view:e},n){return(r,{writer:i,consumable:o})=>{if(!r.hasAttribute(t))return null;const s=i.createContainerElement(e),a=r.getAttribute(t);return o.consume(r,`attribute:${t}`),PV(i,a,s),s.getFillerOffset=()=>null,n?f_(s,i):s}}function OV({priority:t,view:e}){return(n,r)=>{if(!n)return;const{writer:i}=r,o=i.createAttributeElement(e,null,{priority:t});return PV(i,n,o),o}}function HV({view:t},e){return n=>{n.on(`element:${t}`,((t,n,r)=>{if(!n.modelRange||n.modelRange.isCollapsed)return;const i=e.processViewAttributes(n.viewItem,r);i&&r.writer.setAttribute(FV(n.viewItem.name),i,n.modelRange)}),{priority:"low"})}}function jV({view:t,model:e}){return n=>{n.on(`attribute:${FV(t)}:${e}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:r,attributeNewValue:i}=e;IV(n.writer,r,i,n.mapper.toViewElement(e.item))}))}}const qV=[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"tableColumnGroup",view:"colgroup"},{model:"tableColumn",view:"col"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!1}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!1}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!1}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"],isLimit:!0}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!1}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6","$text"],allowIn:"htmlDetails",isBlock:!1}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowIn:["$root","$container"],allowChildren:["paragraph","htmlP","htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!1}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!1}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!1}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDivDl",view:"div",modelSchema:{allowChildren:["htmlDt","htmlDd"],allowIn:"htmlDl"}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd","htmlDivDl"],isBlock:!1}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!1}}],UV=[{model:"htmlLiAttributes",view:"li",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlOlAttributes",view:"ol",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlUlAttributes",view:"ul",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"table"},{model:"htmlTheadAttributes",view:"thead",appliesToBlock:"table"},{model:"htmlTbodyAttributes",view:"tbody",appliesToBlock:"table"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"imageBlock"},{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref"},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],allowAttributesOf:"$inlineObject",isInline:!0}}];const WV=_o((function(t,e,n,r){lo(t,e,n,r)}));class $V extends Lo{_definitions=[];static get pluginName(){return"DataSchema"}init(){for(const t of qV)this.registerBlockElement(t);for(const t of UV)this.registerInlineElement(t)}registerBlockElement(t){this._definitions.push({...t,isBlock:!0})}registerInlineElement(t){this._definitions.push({...t,isInline:!0})}extendBlockElement(t){this._extendDefinition({...t,isBlock:!0})}extendInlineElement(t){this._extendDefinition({...t,isInline:!0})}getDefinitionsForView(t,e=!1){const n=new Set;for(const r of this._getMatchingViewDefinitions(t)){if(e)for(const t of this._getReferences(r.model))n.add(t);n.add(r)}return n}getDefinitionsForModel(t){return this._definitions.filter((e=>e.model==t))}_getMatchingViewDefinitions(t){return this._definitions.filter((e=>e.view&&function(t,e){if("string"==typeof t)return t===e;if(t instanceof RegExp)return t.test(e);return!1}(t,e.view)))}*_getReferences(t){const e=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"],n=this._definitions.filter((e=>e.model==t));for(const{modelSchema:r}of n)if(r)for(const n of e)for(const e of eo(r[n]||[])){const n=this._definitions.filter((t=>t.model==e));for(const r of n)e!==t&&(yield*this._getReferences(r.model),yield r)}}_extendDefinition(t){const e=Array.from(this._definitions.entries()).filter((([,e])=>e.model==t.model));if(0!=e.length)for(const[n,r]of e)this._definitions[n]=WV({},r,t,((t,e)=>Array.isArray(t)?t.concat(e):void 0));else this._definitions.push(t)}}var GV=n(8914),KV={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(GV.A,KV);GV.A.locals;class ZV extends Lo{_dataSchema;_allowedAttributes;_disallowedAttributes;_allowedElements;_disallowedElements;_dataInitialized;_coupledAttributes;constructor(t){super(t),this._dataSchema=t.plugins.get("DataSchema"),this._allowedAttributes=new as,this._disallowedAttributes=new as,this._allowedElements=new Set,this._disallowedElements=new Set,this._dataInitialized=!1,this._coupledAttributes=null,this._registerElementsAfterInit(),this._registerElementHandlers(),this._registerCoupledAttributesPostFixer(),this._registerAssociatedHtmlAttributesPostFixer()}static get pluginName(){return"DataFilter"}static get requires(){return[$V,N_]}loadAllowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,n=tF(e);this.allowElement(t),n.forEach((t=>this.allowAttributes(t)))}}loadDisallowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,n=tF(e);0==n.length?this.disallowElement(t):n.forEach((t=>this.disallowAttributes(t)))}}loadAllowedEmptyElementsConfig(t){for(const e of t)this.allowEmptyElement(e)}allowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))this._addAllowedElement(e),this._coupledAttributes=null}disallowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!1))this._disallowedElements.add(e.view)}allowEmptyElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))e.isInline&&this._dataSchema.extendInlineElement({...e,allowEmpty:!0})}allowAttributes(t){this._allowedAttributes.add(t)}disallowAttributes(t){this._disallowedAttributes.add(t)}processViewAttributes(t,e){const{consumable:n}=e;return YV(t,this._disallowedAttributes,n),function(t,{attributes:e,classes:n,styles:r}){if(!e.length&&!n.length&&!r.length)return null;return{...e.length&&{attributes:JV(t,e)},...r.length&&{styles:QV(t,r)},...n.length&&{classes:n}}}(t,YV(t,this._allowedAttributes,n))}_addAllowedElement(t){if(!this._allowedElements.has(t)){if(this._allowedElements.add(t),"appliesToBlock"in t&&"string"==typeof t.appliesToBlock)for(const e of this._dataSchema.getDefinitionsForModel(t.appliesToBlock))e.isBlock&&this._addAllowedElement(e);this._dataInitialized&&this.editor.data.once("set",(()=>{this._fireRegisterEvent(t)}),{priority:fr.highest+1})}}_registerElementsAfterInit(){this.editor.data.on("init",(()=>{this._dataInitialized=!0;for(const t of this._allowedElements)this._fireRegisterEvent(t)}),{priority:fr.highest+1})}_registerElementHandlers(){this.on("register",((t,e)=>{const n=this.editor.model.schema;if(e.isObject&&!n.isRegistered(e.model))this._registerObjectElement(e);else if(e.isBlock)this._registerBlockElement(e);else{if(!e.isInline)throw new kr("data-filter-invalid-definition",null,e);this._registerInlineElement(e)}t.stop()}),{priority:"lowest"})}_registerCoupledAttributesPostFixer(){const t=this.editor.model,e=t.document.selection;t.document.registerPostFixer((e=>{const n=t.document.differ.getChanges();let r=!1;const i=this._getCoupledAttributesMap();for(const t of n){if("attribute"!=t.type||null!==t.attributeNewValue)continue;const n=i.get(t.attributeKey);if(n)for(const{item:i}of t.range.getWalker())for(const t of n)i.hasAttribute(t)&&(e.removeAttribute(t,i),r=!0)}return r})),this.listenTo(e,"change:attribute",((n,{attributeKeys:r})=>{const i=new Set,o=this._getCoupledAttributesMap();for(const t of r){if(e.hasAttribute(t))continue;const n=o.get(t);if(n)for(const t of n)e.hasAttribute(t)&&i.add(t)}0!=i.size&&t.change((t=>{for(const e of i)t.removeSelectionAttribute(e)}))}))}_registerAssociatedHtmlAttributesPostFixer(){const t=this.editor.model;t.document.registerPostFixer((e=>{const n=t.document.differ.getChanges();let r=!1;for(const i of n)if("insert"===i.type&&"$text"!==i.name)for(const n of i.attributes.keys())n.startsWith("html")&&n.endsWith("Attributes")&&(t.schema.checkAttribute(i.name,n)||(e.removeAttribute(n,i.position.nodeAfter),r=!0));return r}))}_getCoupledAttributesMap(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;for(const t of this._allowedElements)if(t.coupledAttribute&&t.model){const e=this._coupledAttributes.get(t.coupledAttribute);e?e.push(t.model):this._coupledAttributes.set(t.coupledAttribute,[t.model])}return this._coupledAttributes}_fireRegisterEvent(t){t.view&&this._disallowedElements.has(t.view)||this.fire(t.view?`register:${t.view}`:"register",t)}_registerObjectElement(t){const e=this.editor,n=e.model.schema,r=e.conversion,{view:i,model:o}=t;n.register(o,t.modelSchema),i&&(n.extend(t.model,{allowAttributes:[FV(i),"htmlContent"]}),e.data.registerRawContentMatcher({name:i}),r.for("upcast").elementToElement({view:i,model:RV(t),converterPriority:fr.low+2}),r.for("upcast").add(HV(t,this)),r.for("editingDowncast").elementToStructure({model:{name:o,attributes:[FV(i)]},view:LV(e,t)}),r.for("dataDowncast").elementToElement({model:o,view:(t,{writer:e})=>zV(i,t,e)}),r.for("dataDowncast").add(jV(t)))}_registerBlockElement(t){const e=this.editor,n=e.model.schema,r=e.conversion,{view:i,model:o}=t;if(!n.isRegistered(t.model)){if(n.register(t.model,t.modelSchema),!i)return;r.for("upcast").elementToElement({model:o,view:i,converterPriority:fr.low+2}),r.for("downcast").elementToElement({model:o,view:i})}i&&(n.extend(t.model,{allowAttributes:FV(i)}),r.for("upcast").add(HV(t,this)),r.for("downcast").add(jV(t)))}_registerInlineElement(t){const e=this.editor,n=e.model.schema,r=e.conversion,i=t.model;t.appliesToBlock||(n.extend("$text",{allowAttributes:i}),t.attributeProperties&&n.setAttributeProperties(i,t.attributeProperties),r.for("upcast").add(MV(t,this)),r.for("downcast").attributeToElement({model:i,view:OV(t)}),t.allowEmpty&&(n.setAttributeProperties(i,{copyFromObject:!1}),n.isRegistered("htmlEmptyElement")||n.register("htmlEmptyElement",{inheritAllFrom:"$inlineObject"}),e.data.htmlProcessor.domConverter.registerInlineObjectMatcher((e=>e.name==t.view&&e.isEmpty&&Array.from(e.getAttributeKeys()).length?{name:!0}:null)),r.for("editingDowncast").elementToElement({model:"htmlEmptyElement",view:NV(t,!0)}),r.for("dataDowncast").elementToElement({model:"htmlEmptyElement",view:NV(t)})))}}function YV(t,e,n){const r=e.matchAll(t)||[],i=t.document.stylesProcessor;return r.reduce(((e,{match:r})=>{for(const o of r.styles||[]){const r=i.getRelatedStyles(o).filter((t=>t.split("-").length>o.split("-").length)).sort(((t,e)=>e.split("-").length-t.split("-").length));for(const i of r)n.consume(t,{styles:[i]})&&e.styles.push(i);n.consume(t,{styles:[o]})&&e.styles.push(o)}for(const i of r.classes||[])n.consume(t,{classes:[i]})&&e.classes.push(i);for(const i of r.attributes||[])n.consume(t,{attributes:[i]})&&e.attributes.push(i);return e}),{attributes:[],classes:[],styles:[]})}function JV(t,e){const n={};for(const r of e){const e=t.getAttribute(r);void 0!==e&&Bi(r)&&(n[r]=e)}return n}function QV(t,e){const n=new Ls(t.document.stylesProcessor);for(const r of e){const e=t.getStyle(r);void 0!==e&&n.set(r,e)}return Object.fromEntries(n.getStylesEntries())}function XV(t,e){const{name:n}=t,r=t[e];return q(r)?Object.entries(r).map((([t,r])=>({name:n,[e]:{[t]:r}}))):Array.isArray(r)?r.map((t=>({name:n,[e]:[t]}))):[t]}function tF(t){const{name:e,attributes:n,classes:r,styles:i}=t,o=[];return n&&o.push(...XV({name:e,attributes:n},"attributes")),r&&o.push(...XV({name:e,classes:r},"classes")),i&&o.push(...XV({name:e,styles:i},"styles")),o}class eF extends Lo{static get requires(){return[ZV]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const t=this.editor.plugins.get(ZV);t.on("register:pre",((e,n)=>{if("codeBlock"!==n.model)return;const r=this.editor,i=r.model.schema,o=r.conversion;i.extend("codeBlock",{allowAttributes:["htmlPreAttributes","htmlContentAttributes"]}),o.for("upcast").add(function(t){return e=>{e.on("element:code",((e,n,r)=>{const i=n.viewItem,o=i.parent;function s(e,i){const o=t.processViewAttributes(e,r);o&&r.writer.setAttribute(i,o,n.modelRange)}o&&o.is("element","pre")&&(s(o,"htmlPreAttributes"),s(i,"htmlContentAttributes"))}),{priority:"low"})}}(t)),o.for("downcast").add((t=>{t.on("attribute:htmlPreAttributes:codeBlock",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:r,attributeNewValue:i}=e,o=n.mapper.toViewElement(e.item).parent;IV(n.writer,r,i,o)})),t.on("attribute:htmlContentAttributes:codeBlock",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:r,attributeNewValue:i}=e,o=n.mapper.toViewElement(e.item);IV(n.writer,r,i,o)}))})),e.stop()}))}}class nF extends Lo{static get requires(){return[ZV]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(ZV).on("register",((t,e)=>{const n=e,r=this.editor,i=r.model.schema,o=r.conversion;if(!n.paragraphLikeModel)return;if(i.isRegistered(n.model)||i.isRegistered(n.paragraphLikeModel))return;const s={model:n.paragraphLikeModel,view:n.view};i.register(n.model,n.modelSchema),i.register(s.model,{inheritAllFrom:"$block"}),o.for("upcast").elementToElement({view:n.view,model:(t,{writer:e})=>this._hasBlockContent(t)?e.createElement(n.model):e.createElement(s.model),converterPriority:fr.low+.5}),o.for("downcast").elementToElement({view:n.view,model:n.model}),this._addAttributeConversion(n),o.for("downcast").elementToElement({view:s.view,model:s.model}),this._addAttributeConversion(s),t.stop()}))}_hasBlockContent(t){const e=this.editor.editing.view,n=e.domConverter.blockElements;for(const r of e.createRangeIn(t).getItems())if(r.is("element")&&n.includes(r.name))return!0;return!1}_addAttributeConversion(t){const e=this.editor,n=e.conversion,r=e.plugins.get(ZV);e.model.schema.extend(t.model,{allowAttributes:FV(t.view)}),n.for("upcast").add(HV(t,r)),n.for("downcast").add(jV(t))}}class rF extends Lo{static get requires(){return[$V,pA]}static get pluginName(){return"HeadingElementSupport"}init(){const t=this.editor;if(!t.plugins.has("HeadingEditing"))return;const e=t.config.get("heading.options");this.registerHeadingElements(t,e)}registerHeadingElements(t,e){const n=t.plugins.get($V),r=[];for(const t of e)"model"in t&&"view"in t&&(n.registerBlockElement({view:t.view,model:t.model}),r.push(t.model));n.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:r}}),n.extendBlockElement({model:"htmlSummary",modelSchema:{allowChildren:r}})}}function iF(t,e,n){const r=t.createRangeOn(e);for(const{item:t}of r.getWalker())if(t.is("element",n))return t}class oF extends Lo{static get requires(){return[ZV]}static get pluginName(){return"ImageElementSupport"}init(){const t=this.editor;if(!t.plugins.has("ImageInlineEditing")&&!t.plugins.has("ImageBlockEditing"))return;const e=t.model.schema,n=t.conversion,r=t.plugins.get(ZV);r.on("register:figure",(()=>{n.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,n,r)=>{const i=n.viewItem;if(!n.modelRange||!i.hasClass("image"))return;const o=t.processViewAttributes(i,r);o&&r.writer.setAttribute("htmlFigureAttributes",o,n.modelRange)}),{priority:"low"})}}(r))})),r.on("register:img",((i,o)=>{"imageBlock"!==o.model&&"imageInline"!==o.model||(e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["htmlImgAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["htmlA","htmlImgAttributes"]}),n.for("upcast").add(function(t){return e=>{e.on("element:img",((e,n,r)=>{if(!n.modelRange)return;const i=n.viewItem,o=t.processViewAttributes(i,r);o&&r.writer.setAttribute("htmlImgAttributes",o,n.modelRange)}),{priority:"low"})}}(r)),n.for("downcast").add((t=>{function e(e){t.on(`attribute:${e}:imageInline`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:r,attributeNewValue:i}=e,o=n.mapper.toViewElement(e.item);IV(n.writer,r,i,o)}),{priority:"low"})}function n(e,n){t.on(`attribute:${n}:imageBlock`,((t,n,r)=>{if(!r.consumable.test(n.item,t.name))return;const{attributeOldValue:i,attributeNewValue:o}=n,s=r.mapper.toViewElement(n.item),a=iF(r.writer,s,e);a&&(IV(r.writer,i,o,a),r.consumable.consume(n.item,t.name))}),{priority:"low"}),"a"===e&&t.on("attribute:linkHref:imageBlock",((t,e,n)=>{if(!n.consumable.consume(e.item,"attribute:htmlLinkAttributes:imageBlock"))return;const r=n.mapper.toViewElement(e.item),i=iF(n.writer,r,"a");PV(n.writer,e.item.getAttribute("htmlLinkAttributes"),i)}),{priority:"low"})}e("htmlImgAttributes"),n("img","htmlImgAttributes"),n("figure","htmlFigureAttributes"),n("a","htmlLinkAttributes")})),t.plugins.has("LinkImage")&&n.for("upcast").add(function(t,e){const n=e.plugins.get("ImageUtils");return e=>{e.on("element:a",((e,r,i)=>{const o=r.viewItem;if(!n.findViewImgElement(o))return;const s=r.modelCursor.parent;if(!s.is("element","imageBlock"))return;const a=t.processViewAttributes(o,i);a&&i.writer.setAttribute("htmlLinkAttributes",a,s)}),{priority:"low"})}}(r,t)),i.stop())}))}}class sF extends Lo{static get requires(){return[ZV]}static get pluginName(){return"MediaEmbedElementSupport"}init(){const t=this.editor;if(!t.plugins.has("MediaEmbed")||t.config.get("mediaEmbed.previewsInData"))return;const e=t.model.schema,n=t.conversion,r=this.editor.plugins.get(ZV),i=this.editor.plugins.get($V),o=t.config.get("mediaEmbed.elementName");i.registerBlockElement({model:"media",view:o}),r.on("register:figure",(()=>{n.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,n,r)=>{const i=n.viewItem;if(!n.modelRange||!i.hasClass("media"))return;const o=t.processViewAttributes(i,r);o&&r.writer.setAttribute("htmlFigureAttributes",o,n.modelRange)}),{priority:"low"})}}(r))})),r.on(`register:${o}`,((t,i)=>{"media"===i.model&&(e.extend("media",{allowAttributes:[FV(o),"htmlFigureAttributes"]}),n.for("upcast").add(function(t,e){const n=(n,r,i)=>{function o(e,n){const o=t.processViewAttributes(e,i);o&&i.writer.setAttribute(n,o,r.modelRange)}o(r.viewItem,FV(e))};return t=>{t.on(`element:${e}`,n,{priority:"low"})}}(r,o)),n.for("dataDowncast").add(function(t){return e=>{function n(t,n){e.on(`attribute:${n}:media`,((e,n,r)=>{if(!r.consumable.consume(n.item,e.name))return;const{attributeOldValue:i,attributeNewValue:o}=n,s=r.mapper.toViewElement(n.item),a=iF(r.writer,s,t);IV(r.writer,i,o,a)}))}n(t,FV(t)),n("figure","htmlFigureAttributes")}}(o)),t.stop())}))}}class aF extends Lo{static get requires(){return[ZV]}static get pluginName(){return"ScriptElementSupport"}init(){const t=this.editor.plugins.get(ZV);t.on("register:script",((e,n)=>{const r=this.editor,i=r.model.schema,o=r.conversion;i.register("htmlScript",n.modelSchema),i.extend("htmlScript",{allowAttributes:["htmlScriptAttributes","htmlContent"],isContent:!0}),r.data.registerRawContentMatcher({name:"script"}),o.for("upcast").elementToElement({view:"script",model:RV(n)}),o.for("upcast").add(HV(n,t)),o.for("downcast").elementToElement({model:"htmlScript",view:(t,{writer:e})=>zV("script",t,e)}),o.for("downcast").add(jV(n)),e.stop()}))}}class lF extends Lo{static get requires(){return[ZV]}static get pluginName(){return"TableElementSupport"}init(){const t=this.editor;if(!t.plugins.has("TableEditing"))return;const e=t.model.schema,n=t.conversion,r=t.plugins.get(ZV),i=t.plugins.get("TableUtils");r.on("register:figure",(()=>{n.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,n,r)=>{const i=n.viewItem;if(!n.modelRange||!i.hasClass("table"))return;const o=t.processViewAttributes(i,r);o&&r.writer.setAttribute("htmlFigureAttributes",o,n.modelRange)}),{priority:"low"})}}(r))})),r.on("register:table",((o,s)=>{"table"===s.model&&(e.extend("table",{allowAttributes:["htmlTableAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),n.for("upcast").add(function(t){return e=>{e.on("element:table",((e,n,r)=>{if(!n.modelRange)return;const i=n.viewItem;o(i,"htmlTableAttributes");for(const t of i.getChildren())t.is("element","thead")&&o(t,"htmlTheadAttributes"),t.is("element","tbody")&&o(t,"htmlTbodyAttributes");function o(e,i){const o=t.processViewAttributes(e,r);o&&r.writer.setAttribute(i,o,n.modelRange)}}),{priority:"low"})}}(r)),n.for("downcast").add((t=>{function e(e,n){t.on(`attribute:${n}:table`,((t,n,r)=>{if(!r.consumable.test(n.item,t.name))return;const i=r.mapper.toViewElement(n.item),o=iF(r.writer,i,e);o&&(r.consumable.consume(n.item,t.name),IV(r.writer,n.attributeOldValue,n.attributeNewValue,o))}))}e("table","htmlTableAttributes"),e("figure","htmlFigureAttributes"),e("thead","htmlTheadAttributes"),e("tbody","htmlTbodyAttributes")})),t.model.document.registerPostFixer(function(t,e){return n=>{const r=t.document.differ.getChanges();let i=!1;for(const t of r){if("attribute"!=t.type||"headingRows"!=t.attributeKey)continue;const r=t.range.start.nodeAfter,o=r.getAttribute("htmlTheadAttributes"),s=r.getAttribute("htmlTbodyAttributes");o&&!t.attributeNewValue?(n.removeAttribute("htmlTheadAttributes",r),i=!0):s&&t.attributeNewValue==e.getRows(r)&&(n.removeAttribute("htmlTbodyAttributes",r),i=!0)}return i}}(t.model,i)),o.stop())}))}}class cF extends Lo{static get requires(){return[ZV]}static get pluginName(){return"StyleElementSupport"}init(){const t=this.editor.plugins.get(ZV);t.on("register:style",((e,n)=>{const r=this.editor,i=r.model.schema,o=r.conversion;i.register("htmlStyle",n.modelSchema),i.extend("htmlStyle",{allowAttributes:["htmlStyleAttributes","htmlContent"],isContent:!0}),r.data.registerRawContentMatcher({name:"style"}),o.for("upcast").elementToElement({view:"style",model:RV(n)}),o.for("upcast").add(HV(n,t)),o.for("downcast").elementToElement({model:"htmlStyle",view:(t,{writer:e})=>zV("style",t,e)}),o.for("downcast").add(jV(n)),e.stop()}))}}class dF extends Lo{static get requires(){return[ZV]}static get pluginName(){return"ListElementSupport"}init(){const t=this.editor;if(!t.plugins.has("ListEditing"))return;const e=t.model.schema,n=t.conversion,r=t.plugins.get(ZV),i=t.plugins.get("ListEditing"),o=t.plugins.get("ListUtils"),s=["ul","ol","li"];i.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast:PV}),i.registerDowncastStrategy({scope:"list",attributeName:"htmlUlAttributes",setAttributeOnDowncast:PV}),i.registerDowncastStrategy({scope:"list",attributeName:"htmlOlAttributes",setAttributeOnDowncast:PV}),r.on("register",((t,i)=>{if(!s.includes(i.view))return;if(t.stop(),e.checkAttribute("$block","htmlLiAttributes"))return;const o=s.map((t=>FV(t)));e.extend("$listItem",{allowAttributes:o}),n.for("upcast").add((t=>{t.on("element:ul",hF("htmlUlAttributes",r),{priority:"low"}),t.on("element:ol",hF("htmlOlAttributes",r),{priority:"low"}),t.on("element:li",hF("htmlLiAttributes",r),{priority:"low"})}))})),i.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:r,previousNodeInList:i}of e)if(i){if(i.getAttribute("listType")==r.getAttribute("listType")){const e=uF(i.getAttribute("listType")),o=i.getAttribute(e);!Rd(r.getAttribute(e),o)&&n.model.schema.checkAttribute(r,e)&&(n.setAttribute(e,o,r),t.return=!0)}if(i.getAttribute("listItemId")==r.getAttribute("listItemId")){const e=i.getAttribute("htmlLiAttributes");!Rd(r.getAttribute("htmlLiAttributes"),e)&&n.model.schema.checkAttribute(r,"htmlLiAttributes")&&(n.setAttribute("htmlLiAttributes",e,r),t.return=!0)}}})),i.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:r}of e){const e=r.getAttribute("listType");!o.isNumberedListType(e)&&r.getAttribute("htmlOlAttributes")&&(n.removeAttribute("htmlOlAttributes",r),t.return=!0),o.isNumberedListType(e)&&r.getAttribute("htmlUlAttributes")&&(n.removeAttribute("htmlUlAttributes",r),t.return=!0)}}))}afterInit(){const t=this.editor;if(!t.commands.get("indentList"))return;const e=t.commands.get("indentList");this.listenTo(e,"afterExecute",((e,n)=>{t.model.change((e=>{for(const r of n){const n=uF(r.getAttribute("listType"));t.model.schema.checkAttribute(r,n)&&e.setAttribute(n,{},r)}}))}))}}function hF(t,e){return(n,r,i)=>{const o=r.viewItem;r.modelRange||Object.assign(r,i.convertChildren(r.viewItem,r.modelCursor));const s=e.processViewAttributes(o,i);for(const e of r.modelRange.getItems({shallow:!0}))e.hasAttribute("listItemId")&&(e.hasAttribute("htmlUlAttributes")||e.hasAttribute("htmlOlAttributes")||i.writer.model.schema.checkAttribute(e,t)&&i.writer.setAttribute(t,s||{},e))}}function uF(t){return"numbered"===t||"customNumbered"==t?"htmlOlAttributes":"htmlUlAttributes"}class mF extends Lo{static get requires(){return[ZV,$V]}static get pluginName(){return"CustomElementSupport"}init(){const t=this.editor.plugins.get(ZV),e=this.editor.plugins.get($V);t.on("register:$customElement",((n,r)=>{n.stop();const i=this.editor,o=i.model.schema,s=i.conversion,a=i.editing.view.domConverter.unsafeElements,l=i.data.htmlProcessor.domConverter.preElements;o.register(r.model,r.modelSchema),o.extend(r.model,{allowAttributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"],isContent:!0}),i.data.htmlProcessor.domConverter.registerRawContentMatcher({name:"template"}),s.for("upcast").elementToElement({view:/.*/,model:(n,o)=>{if("$comment"==n.name)return null;if(!function(t){try{document.createElement(t)}catch(t){return!1}return!0}(n.name))return null;if(e.getDefinitionsForView(n.name).size)return null;a.includes(n.name)||a.push(n.name),l.includes(n.name)||l.push(n.name);const s=o.writer.createElement(r.model,{htmlElementName:n.name}),c=t.processViewAttributes(n,o);let d;if(c&&o.writer.setAttribute("htmlCustomElementAttributes",c,s),n.is("element","template")&&n.getCustomProperty("$rawContent"))d=n.getCustomProperty("$rawContent");else{const t=new jh(n.document).createDocumentFragment(n),e=i.data.htmlProcessor.domConverter.viewToDom(t),r=e.firstChild;for(;r.firstChild;)e.appendChild(r.firstChild);r.remove(),d=i.data.htmlProcessor.htmlWriter.getHtml(e)}o.writer.setAttribute("htmlContent",d,s);for(const{item:t}of i.editing.view.createRangeIn(n))o.consumable.consume(t,{name:!0});return s},converterPriority:"low"}),s.for("editingDowncast").elementToElement({model:{name:r.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const n=t.getAttribute("htmlElementName"),r=e.createRawElement(n);return t.hasAttribute("htmlCustomElementAttributes")&&PV(e,t.getAttribute("htmlCustomElementAttributes"),r),r}}),s.for("dataDowncast").elementToElement({model:{name:r.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const n=t.getAttribute("htmlElementName"),r=t.getAttribute("htmlContent"),i=e.createRawElement(n,null,((t,e)=>{e.setContentOf(t,r)}));return t.hasAttribute("htmlCustomElementAttributes")&&PV(e,t.getAttribute("htmlCustomElementAttributes"),i),i}})}))}}function*gF(t,e,n){if(e)if(!(Symbol.iterator in e)&&e.is("documentSelection")&&e.isCollapsed)t.schema.checkAttributeInSelection(e,n)&&(yield e);else for(const r of function(t,e,n){return!(Symbol.iterator in e)&&(e.is("node")||e.is("$text")||e.is("$textProxy"))?t.schema.checkAttribute(e,n)?[t.createRangeOn(e)]:[]:t.schema.getValidRanges(t.createSelection(e).getRanges(),n)}(t,e,n))yield*r.getItems({shallow:!0})}class pF extends Mo{refresh(){this.isEnabled=!0}execute(t){const e=this.editor,n=e.model,r=e.plugins.get(Mk);n.change((e=>{const i=t.file;for(const t of i)fF(e,n,r,t)}))}}function fF(t,e,n,r){const i=n.createLoader(r);i&&function(t,e,n={}){const r=t.createElement("reference",n);e.insertContent(r,e.document.selection),t.insertText(" ",r,"after")}(t,e,{href:"",uploadId:i.id})}class bF extends Lo{static get requires(){return[Mk,bb,mC]}static get pluginName(){return"FileUploadEditing"}init(){const t=this.editor,e=t.model.document,n=t.conversion,r=t.plugins.get(Mk);t.commands.add("fileUpload",new pF(t)),n.for("upcast").attributeToAttribute({view:{name:"a",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,n)=>{if(r=n.dataTransfer,Array.from(r.types).includes("text/html")&&""!==r.getData("text/html"))return;var r;const i=Array.from(n.dataTransfer.files);t.model.change((r=>{n.targetRanges&&r.setSelection(n.targetRanges.map((e=>t.editing.mapper.toModelRange(e)))),i.length&&(e.stop(),t.model.enqueueChange("default",(()=>{t.execute("fileUpload",{file:i})})))}))})),this.listenTo(t.plugins.get(mC),"inputTransformation",((e,n)=>{const i=Array.from(t.editing.view.createRangeIn(n.content)).filter((t=>function(t){if(!t.is("element","a")||!t.getAttribute("href"))return!1;return t.getAttribute("href")}(t.item)&&!t.item.getAttribute("uploadProcessed"))).map((t=>{return{promise:(e=t.item,new Promise(((t,n)=>{const r=e.getAttribute("href");fetch(r).then((t=>t.blob())).then((e=>{const i=function(t,e){if(t.type)return t.type;if(e.match(/data:(image\/\w+);base64/))return e.match(/data:(image\/\w+);base64/)[1].toLowerCase();throw new Error("Could not retrieve mime type for file.")}(e,r),o=i.replace("file/",""),s=`file.${o}`,a=function(t,e,n){try{return new File([t],e,{type:n})}catch(t){return null}}(e,s,i);a?t(a):n()})).catch(n)}))),fileElement:t.item};var e}));if(!i.length)return;const o=new jh;for(const t of i){o.setAttribute("uploadProcessed",!0,t.fileElement);const e=r.createLoader(t.promise);e&&(o.setAttribute("href","",t.fileElement),o.setAttribute("uploadId",e.id,t.fileElement))}})),t.editing.view.document.on("dragover",((t,e)=>{e.preventDefault()})),e.on("change",(()=>{const n=e.differ.getChanges({includeChangesInGraveyard:!0});for(const e of n)if("insert"==e.type){const n=e.position.nodeAfter;if(n){const i="$graveyard"==e.position.root.rootName;for(const e of kF(t,n)){const t=e.getAttribute("uploadId");if(!t)continue;const n=r.loaders.get(t);n&&(i?n.abort():"idle"==n.status&&this._readAndUpload(n,e))}}}}))}_readAndUpload(t,e){const n=this.editor,r=n.model,i=n.locale.t,o=n.plugins.get(Mk),s=n.plugins.get(bb);return r.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","reading",e)})),t.read().then((()=>{const n=t.upload();return r.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","uploading",e)})),n})).then((t=>(r.enqueueChange("transparent",(n=>{n.setAttributes({uploadStatus:"complete",href:t.default},e)})),a(),new Promise((t=>setTimeout(t,100)))))).then((()=>{n.setData(n.getData())})).catch((n=>{if("error"!==t.status&&"aborted"!==t.status)throw n;"error"==t.status&&n&&s.showWarning(n,{title:i("Upload failed"),namespace:"upload"}),a(),r.enqueueChange("transparent",(t=>{t.remove(e)}))}));function a(){r.enqueueChange("transparent",(t=>{t.removeAttribute("uploadId",e),t.removeAttribute("uploadStatus",e)})),o.destroyLoader(t)}}}function kF(t,e){return Array.from(t.model.createRangeOn(e)).filter((t=>t.item.hasAttribute("href"))).map((t=>t.item))}class wF extends Mo{refresh(){const t=this.editor.model,e=t.schema,n=t.document.selection;this.isEnabled=function(t,e,n){const r=function(t,e){const n=__(t,e),r=n.start.parent;if(r.isEmpty&&!r.is("element","$root"))return r.parent;return r}(t,n);return e.checkChild(r,"pageBreak")}(n,e,t)}execute(){const t=this.editor.model;t.change((e=>{const n=e.createElement("pageBreak");t.insertObject(n,null,null,{setSelection:"after"})}))}}var AF=n(6426),_F={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(AF.A,_F);AF.A.locals;class CF extends Lo{static get pluginName(){return"PageBreakEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,r=t.conversion;e.register("pageBreak",{inheritAllFrom:"$blockObject"}),r.for("dataDowncast").elementToStructure({model:"pageBreak",view:(t,{writer:e})=>e.createContainerElement("div",{class:"page-break",style:"page-break-after: always"},e.createContainerElement("span",{style:"display: none"}))}),r.for("editingDowncast").elementToStructure({model:"pageBreak",view:(t,{writer:e})=>{const r=n("Page break"),i=e.createContainerElement("div"),o=e.createRawElement("span",{class:"page-break__label"},(function(t){t.innerText=n("Page break")}));return e.addClass("page-break",i),e.insert(e.createPositionAt(i,0),o),function(t,e,n){return e.setCustomProperty("pageBreak",!0,t),f_(t,e,{label:n})}(i,e,r)}}),r.for("upcast").elementToElement({view:t=>{const e="always"==t.getStyle("page-break-before"),n="always"==t.getStyle("page-break-after");if(!e&&!n)return null;if(1==t.childCount){const e=t.getChild(0);if(!e.is("element","span")||"none"!=e.getStyle("display"))return null}else if(t.childCount>1)return null;return{name:!0}},model:"pageBreak",converterPriority:"high"}),t.commands.add("pageBreak",new wF(t))}}class vF extends Lo{static get pluginName(){return"PageBreakUI"}init(){const t=this.editor;t.ui.componentFactory.add("pageBreak",(()=>{const t=this._createButton(wm);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:pageBreak",(()=>this._createButton(Ym)))}_createButton(t){const e=this.editor,n=e.locale,r=e.commands.get("pageBreak"),i=new t(e.locale),o=n.t;return i.set({label:o("Page break"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.598.687h1.5v5h-1.5zm14.5 0h1.5v5h-1.5z"/><path d="M19.598 4.187v1.5h-16v-1.5zm-16 14.569h1.5v-5h-1.5zm14.5 0h1.5v-5h-1.5z"/><path d="M19.598 15.256v-1.5h-16v1.5zM5.081 9h6v2h-6zm8 0h6v2h-6zm-9.483 1L0 12.5v-5z"/></svg>'}),i.bind("isEnabled").to(r,"isEnabled"),this.listenTo(i,"execute",(()=>{e.execute("pageBreak"),e.editing.view.focus()})),i}}function yF(t,e){return`${t}:${e=e||to(t)}`}class xF extends Mo{refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"language")}execute({languageCode:t,textDirection:e}={}){const n=this.editor.model,r=n.document.selection,i=!!t&&yF(t,e);n.change((t=>{if(r.isCollapsed)i?t.setSelectionAttribute("language",i):t.removeSelectionAttribute("language");else{const e=n.schema.getValidRanges(r.getRanges(),"language");for(const n of e)i?t.setAttribute("language",i,n):t.removeAttribute("language",n)}}))}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.getAttribute("language")||!1;for(const t of n.getRanges())for(const n of t.getItems())if(e.checkAttribute(n,"language"))return n.getAttribute("language")||!1;return!1}}class EF extends Lo{static get pluginName(){return"TextPartLanguageEditing"}constructor(t){super(t),t.config.define("language",{textPartLanguage:[{title:"Arabic",languageCode:"ar"},{title:"French",languageCode:"fr"},{title:"Spanish",languageCode:"es"}]})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"language"}),t.model.schema.setAttributeProperties("language",{copyOnEnter:!0}),this._defineConverters(),t.commands.add("textPartLanguage",new xF(t))}_defineConverters(){const t=this.editor.conversion;t.for("upcast").elementToAttribute({model:{key:"language",value:t=>yF(t.getAttribute("lang"),t.getAttribute("dir"))},view:{name:"span",attributes:{lang:/[\s\S]+/}}}),t.for("downcast").attributeToElement({model:"language",view:(t,{writer:e},n)=>{if(!t)return;if(!n.item.is("$textProxy")&&!n.item.is("documentSelection"))return;const{languageCode:r,textDirection:i}=function(t){const[e,n]=t.split(":");return{languageCode:e,textDirection:n}}(t);return e.createAttributeElement("span",{lang:r,dir:i})}})}}class BF extends Lo{static get pluginName(){return"TextPartLanguageUI"}init(){const t=this.editor,e=t.t,n=e("Choose language"),r=e("Language");t.ui.componentFactory.add("textPartLanguage",(e=>{const{definitions:i,titles:o}=this._getItemMetadata(),s=t.commands.get("textPartLanguage"),a=Dp(e);return Ip(a,i,{ariaLabel:r,role:"menu"}),a.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),a.extendTemplate({attributes:{class:["ck-text-fragment-language-dropdown"]}}),a.bind("isEnabled").to(s,"isEnabled"),a.buttonView.bind("label").to(s,"value",(t=>t&&o[t]||n)),a.buttonView.bind("ariaLabel").to(s,"value",(t=>{const e=t&&o[t];return e?`${e}, ${r}`:r})),this.listenTo(a,"execute",(e=>{s.execute({languageCode:e.source.languageCode,textDirection:e.source.textDirection}),t.editing.view.focus()})),a})),t.ui.componentFactory.add("menuBar:textPartLanguage",(n=>{const{definitions:i}=this._getItemMetadata(),o=t.commands.get("textPartLanguage"),s=new ik(n);s.buttonView.set({label:r});const a=new ok(n);a.set({ariaLabel:e("Language"),role:"menu"});for(const t of i){if("button"!=t.type){a.items.add(new Kg(n));continue}const e=new Kf(n,s),r=new Ym(n);r.set({role:"menuitemradio",isToggleable:!0}),r.bind(...Object.keys(t.model)).to(t.model),r.delegate("execute").to(s),e.children.add(r),a.items.add(e)}return s.bind("isEnabled").to(o,"isEnabled"),s.panelView.children.add(a),s.on("execute",(e=>{o.execute({languageCode:e.source.languageCode,textDirection:e.source.textDirection}),t.editing.view.focus()})),s}))}_getItemMetadata(){const t=this.editor,e=new xo,n={},r=t.commands.get("textPartLanguage"),i=t.config.get("language.textPartLanguage"),o=(0,t.locale.t)("Remove language");e.add({type:"button",model:new kb({label:o,languageCode:!1,withText:!0})}),e.add({type:"separator"});for(const t of i){const i={type:"button",model:new kb({label:t.title,languageCode:t.languageCode,role:"menuitemradio",textDirection:t.textDirection,withText:!0})},o=yF(t.languageCode,t.textDirection);i.model.bind("isOn").to(r,"value",(t=>t===o)),e.add(i),n[o]=t.title}return{definitions:e,titles:n}}}class DF extends wm{styleDefinition;previewView;constructor(t,e){super(t),this.styleDefinition=e,this.previewView=this._createPreview(),this.set({label:e.name,class:"ck-style-grid__button",withText:!0}),this.extendTemplate({attributes:{role:"option"}}),this.children.add(this.previewView,0)}_createPreview(){const t=new lm(this.locale);return t.setTemplate({tag:"div",attributes:{class:["ck","ck-reset_all-excluded","ck-style-grid__button__preview","ck-content"],"aria-hidden":"true"},children:[this.styleDefinition.previewTemplate]}),t}}var SF=n(8737),TF={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(SF.A,TF);SF.A.locals;class IF extends lm{focusTracker;keystrokes;children;constructor(t,e){super(t),this.focusTracker=new Bo,this.keystrokes=new Do,this.set("activeStyles",[]),this.set("enabledStyles",[]),this.children=this.createCollection(),this.children.delegate("execute").to(this);for(const n of e){const e=new DF(t,n);this.children.add(e)}this.on("change:activeStyles",(()=>{for(const t of this.children)t.isOn=this.activeStyles.includes(t.styleDefinition.name)})),this.on("change:enabledStyles",(()=>{for(const t of this.children)t.isEnabled=this.enabledStyles.includes(t.styleDefinition.name)})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-grid"],role:"listbox"},children:this.children})}render(){super.render();for(const t of this.children)this.focusTracker.add(t.element);um({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.children,numberOfColumns:3,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection}),this.keystrokes.listenTo(this.element)}focus(){this.children.first.focus()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var PF=n(4892),VF={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(PF.A,VF);PF.A.locals;class FF extends lm{gridView;labelView;constructor(t,e,n){super(t),this.labelView=new Xm(t),this.labelView.text=e,this.gridView=new IF(t,n),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel__style-group"],role:"group","aria-labelledby":this.labelView.id},children:[this.labelView,this.gridView]})}}var RF=n(7331),LF={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(RF.A,LF);RF.A.locals;class zF extends lm{focusTracker;keystrokes;children;blockStylesGroupView;inlineStylesGroupView;_focusables;_focusCycler;constructor(t,e){super(t);const n=t.t;this.focusTracker=new Bo,this.keystrokes=new Do,this.children=this.createCollection(),this.blockStylesGroupView=new FF(t,n("Block styles"),e.block),this.inlineStylesGroupView=new FF(t,n("Text styles"),e.inline),this.set("activeStyles",[]),this.set("enabledStyles",[]),this._focusables=new Mu,this._focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["shift + tab"],focusNext:["tab"]}}),e.block.length&&this.children.add(this.blockStylesGroupView),e.inline.length&&this.children.add(this.inlineStylesGroupView),this.blockStylesGroupView.gridView.delegate("execute").to(this),this.inlineStylesGroupView.gridView.delegate("execute").to(this),this.blockStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.inlineStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel"]},children:this.children})}render(){super.render(),this._focusables.add(this.blockStylesGroupView.gridView),this._focusables.add(this.inlineStylesGroupView.gridView),this.focusTracker.add(this.blockStylesGroupView.gridView.element),this.focusTracker.add(this.inlineStylesGroupView.gridView.element),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}const MF=["caption","colgroup","dd","dt","figcaption","legend","li","optgroup","option","rp","rt","summary","tbody","td","tfoot","th","thead","tr"];class NF extends Lo{_htmlSupport;static get pluginName(){return"StyleUtils"}constructor(t){super(t),this.decorate("isStyleEnabledForBlock"),this.decorate("isStyleActiveForBlock"),this.decorate("getAffectedBlocks"),this.decorate("isStyleEnabledForInlineSelection"),this.decorate("isStyleActiveForInlineSelection"),this.decorate("getAffectedInlineSelectable"),this.decorate("getStylePreview"),this.decorate("configureGHSDataFilter")}init(){this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport")}normalizeConfig(t,e=[]){const n={block:[],inline:[]};for(const r of e){const e=[],i=[];for(const n of t.getDefinitionsForView(r.element)){const t="appliesToBlock"in n&&n.appliesToBlock;if(n.isBlock||t){if("string"==typeof t)e.push(t);else if(n.isBlock){const t=n;e.push(n.model),t.paragraphLikeModel&&e.push(t.paragraphLikeModel)}}else i.push(n.model)}const o=this.getStylePreview(r,[{text:"AaBbCcDdEeFfGgHhIiJj"}]);e.length?n.block.push({...r,previewTemplate:o,modelElements:e,isBlock:!0}):n.inline.push({...r,previewTemplate:o,ghsAttributes:i})}return n}isStyleEnabledForBlock(t,e){const n=this.editor.model,r=this._htmlSupport.getGhsAttributeNameForElement(t.element);return!!n.schema.checkAttribute(e,r)&&t.modelElements.includes(e.name)}isStyleActiveForBlock(t,e){const n=this._htmlSupport.getGhsAttributeNameForElement(t.element),r=e.getAttribute(n);return this.hasAllClasses(r,t.classes)}getAffectedBlocks(t,e){return t.modelElements.includes(e.name)?[e]:null}isStyleEnabledForInlineSelection(t,e){const n=this.editor.model;for(const r of t.ghsAttributes)if(n.schema.checkAttributeInSelection(e,r))return!0;return!1}isStyleActiveForInlineSelection(t,e){for(const n of t.ghsAttributes){const r=this._getValueFromFirstAllowedNode(e,n);if(this.hasAllClasses(r,t.classes))return!0}return!1}getAffectedInlineSelectable(t,e){return e}getStylePreview(t,e){const{element:n,classes:r}=t;return{tag:(i=n,MF.includes(i)?"div":n),attributes:{class:r},children:e};var i}hasAllClasses(t,e){return s(t)&&(n=t,Boolean(n.classes)&&Array.isArray(n.classes))&&e.every((e=>t.classes.includes(e)));var n}configureGHSDataFilter({block:t,inline:e}){const n=this.editor.plugins.get("DataFilter");n.loadAllowedConfig(t.map(OF)),n.loadAllowedConfig(e.map(OF))}_getValueFromFirstAllowedNode(t,e){const n=this.editor.model.schema;if(t.isCollapsed)return t.getAttribute(e);for(const r of t.getRanges())for(const t of r.getItems())if(n.checkAttribute(t,e))return t.getAttribute(e);return null}}function OF({element:t,classes:e}){return{name:t,classes:e}}var HF=n(1833),jF={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(HF.A,jF);HF.A.locals;class qF extends Lo{static get pluginName(){return"StyleUI"}static get requires(){return[NF]}init(){const t=this.editor,e=t.plugins.get("DataSchema"),n=t.plugins.get("StyleUtils"),r=t.config.get("style.definitions"),i=n.normalizeConfig(e,r);t.ui.componentFactory.add("style",(e=>{const n=e.t,r=Dp(e),o=t.commands.get("style");return r.once("change:isOpen",(()=>{const t=new zF(e,i);r.panelView.children.add(t),t.delegate("execute").to(r),t.bind("activeStyles").to(o,"value"),t.bind("enabledStyles").to(o,"enabledStyles")})),r.bind("isEnabled").to(o),r.buttonView.withText=!0,r.buttonView.bind("label").to(o,"value",(t=>t.length>1?n("Multiple styles"):1===t.length?t[0]:n("Styles"))),r.bind("class").to(o,"value",(t=>{const e=["ck-style-dropdown"];return t.length>1&&e.push("ck-style-dropdown_multiple-active"),e.join(" ")})),r.on("execute",(e=>{t.execute("style",{styleName:e.source.styleDefinition.name}),t.editing.view.focus()})),r}))}}class UF extends Mo{_styleDefinitions;_styleUtils;constructor(t,e){super(t),this.set("value",[]),this.set("enabledStyles",[]),this._styleDefinitions=e,this._styleUtils=this.editor.plugins.get(NF)}refresh(){const t=this.editor.model,e=t.document.selection,n=new Set,r=new Set;for(const t of this._styleDefinitions.inline)this._styleUtils.isStyleEnabledForInlineSelection(t,e)&&r.add(t.name),this._styleUtils.isStyleActiveForInlineSelection(t,e)&&n.add(t.name);const i=Eo(e.getSelectedBlocks())||e.getFirstPosition().parent;if(i){const e=i.getAncestors({includeSelf:!0,parentFirst:!0});for(const i of e){if(i.is("rootElement"))break;for(const t of this._styleDefinitions.block)this._styleUtils.isStyleEnabledForBlock(t,i)&&(r.add(t.name),this._styleUtils.isStyleActiveForBlock(t,i)&&n.add(t.name));if(t.schema.isObject(i))break}}this.enabledStyles=Array.from(r).sort(),this.isEnabled=this.enabledStyles.length>0,this.value=this.isEnabled?Array.from(n).sort():[]}execute({styleName:t,forceValue:e}){if(!this.enabledStyles.includes(t))return void wr("style-command-executed-with-incorrect-style-name");const n=this.editor.model,r=n.document.selection,i=this.editor.plugins.get("GeneralHtmlSupport"),o=[...this._styleDefinitions.inline,...this._styleDefinitions.block],s=o.filter((({name:t})=>this.value.includes(t))),a=o.find((({name:e})=>e==t)),l=void 0===e?!this.value.includes(a.name):e;n.change((()=>{let t;t=function(t){return"isBlock"in t}(a)?this._findAffectedBlocks(function(t){const e=Array.from(t.getSelectedBlocks());if(e.length)return e;return[t.getFirstPosition().parent]}(r),a):[this._styleUtils.getAffectedInlineSelectable(a,r)];for(const e of t)l?i.addModelHtmlClass(a.element,a.classes,e):i.removeModelHtmlClass(a.element,WF(s,a),e)}))}_findAffectedBlocks(t,e){const n=new Set;for(const r of t){const t=r.getAncestors({includeSelf:!0,parentFirst:!0});for(const r of t){if(r.is("rootElement"))break;const t=this._styleUtils.getAffectedBlocks(e,r);if(t){for(const e of t)n.add(e);break}}}return n}}function WF(t,e){return t.reduce(((t,n)=>n.name===e.name?t:t.filter((t=>!n.classes.includes(t)))),e.classes)}class $F extends Lo{_listUtils;_styleUtils;_htmlSupport;static get pluginName(){return"ListStyleSupport"}static get requires(){return[NF,"GeneralHtmlSupport"]}init(){const t=this.editor;t.plugins.has("ListEditing")&&(this._styleUtils=t.plugins.get(NF),this._listUtils=this.editor.plugins.get("ListUtils"),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",((t,[e,n])=>{this._isStyleEnabledForBlock(e,n)&&(t.return=!0,t.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForBlock",((t,[e,n])=>{this._isStyleActiveForBlock(e,n)&&(t.return=!0,t.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",((t,[e,n])=>{const r=this._getAffectedBlocks(e,n);r&&(t.return=r,t.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getStylePreview",((t,[e,n])=>{const r=this._getStylePreview(e,n);r&&(t.return=r,t.stop())}),{priority:"high"}))}_isStyleEnabledForBlock(t,e){const n=this.editor.model;if(!["ol","ul","li"].includes(t.element))return!1;if(!this._listUtils.isListItemBlock(e))return!1;const r=this._htmlSupport.getGhsAttributeNameForElement(t.element);if("ol"==t.element||"ul"==t.element){if(!n.schema.checkAttribute(e,r))return!1;const i=this._listUtils.isNumberedListType(e.getAttribute("listType"))?"ol":"ul";return t.element==i}return n.schema.checkAttribute(e,r)}_isStyleActiveForBlock(t,e){const n=this._htmlSupport.getGhsAttributeNameForElement(t.element),r=e.getAttribute(n);return this._styleUtils.hasAllClasses(r,t.classes)}_getAffectedBlocks(t,e){return this._isStyleEnabledForBlock(t,e)?"li"==t.element?this._listUtils.expandListBlocksToCompleteItems(e,{withNested:!1}):this._listUtils.expandListBlocksToCompleteList(e):null}_getStylePreview(t,e){const{element:n,classes:r}=t;return"ol"==n||"ul"==n?{tag:n,attributes:{class:r},children:[{tag:"li",children:e}]}:"li"==n?{tag:"ol",children:[{tag:n,attributes:{class:r},children:e}]}:null}}class GF extends Lo{_tableUtils;_styleUtils;static get pluginName(){return"TableStyleSupport"}static get requires(){return[NF]}init(){const t=this.editor;t.plugins.has("TableEditing")&&(this._styleUtils=t.plugins.get(NF),this._tableUtils=this.editor.plugins.get("TableUtils"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",((t,[e,n])=>{this._isApplicable(e,n)&&(t.return=this._isStyleEnabledForBlock(e,n),t.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",((t,[e,n])=>{this._isApplicable(e,n)&&(t.return=this._getAffectedBlocks(e,n),t.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"configureGHSDataFilter",((t,[{block:e}])=>{this.editor.plugins.get("DataFilter").loadAllowedConfig(e.filter((t=>"figcaption"==t.element)).map((t=>({name:"caption",classes:t.classes}))))})))}_isApplicable(t,e){return["td","th"].includes(t.element)?"tableCell"==e.name:!!["thead","tbody"].includes(t.element)&&"table"==e.name}_isStyleEnabledForBlock(t,e){if(["td","th"].includes(t.element)){const n=this._tableUtils.getCellLocation(e),r=e.parent.parent,i=r.getAttribute("headingRows")||0,o=r.getAttribute("headingColumns")||0,s=n.row<i||n.column<o;return"th"==t.element?s:!s}if(["thead","tbody"].includes(t.element)){const n=e.getAttribute("headingRows")||0;return"thead"==t.element?n>0:n<this._tableUtils.getRows(e)}return!1}_getAffectedBlocks(t,e){return this._isStyleEnabledForBlock(t,e)?[e]:null}}class KF extends Lo{_styleUtils;_htmlSupport;static get pluginName(){return"LinkStyleSupport"}static get requires(){return[NF,"GeneralHtmlSupport"]}init(){const t=this.editor;t.plugins.has("LinkEditing")&&(this._styleUtils=t.plugins.get(NF),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForInlineSelection",((t,[e,n])=>{"a"==e.element&&(t.return=this._isStyleEnabled(e,n),t.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForInlineSelection",((t,[e,n])=>{"a"==e.element&&(t.return=this._isStyleActive(e,n),t.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedInlineSelectable",((t,[e,n])=>{if("a"!=e.element)return;const r=this._getAffectedSelectable(e,n);r&&(t.return=r,t.stop())}),{priority:"high"}))}_isStyleEnabled(t,e){const n=this.editor.model;if(e.isCollapsed)return e.hasAttribute("linkHref");for(const t of e.getRanges())for(const e of t.getItems())if((e.is("$textProxy")||n.schema.isInline(e))&&e.hasAttribute("linkHref"))return!0;return!1}_isStyleActive(t,e){const n=this.editor.model,r=this._htmlSupport.getGhsAttributeNameForElement(t.element);if(e.isCollapsed){if(e.hasAttribute("linkHref")){const n=e.getAttribute(r);if(this._styleUtils.hasAllClasses(n,t.classes))return!0}return!1}for(const i of e.getRanges())for(const e of i.getItems())if((e.is("$textProxy")||n.schema.isInline(e))&&e.hasAttribute("linkHref")){const n=e.getAttribute(r);return this._styleUtils.hasAllClasses(n,t.classes)}return!1}_getAffectedSelectable(t,e){const n=this.editor.model;if(e.isCollapsed){const t=e.getAttribute("linkHref");return yw(e.getFirstPosition(),"linkHref",t,n)}const r=[];for(const t of e.getRanges()){const e=n.createRange(ZF(t.start,"linkHref",!0,n),ZF(t.end,"linkHref",!1,n));for(const t of e.getItems())(t.is("$textProxy")||n.schema.isInline(t))&&t.hasAttribute("linkHref")&&r.push(this.editor.model.createRangeOn(t))}return function(t){for(let e=1;e<t.length;e++){const n=t[e-1].getJoined(t[e]);n&&t.splice(--e,2,n)}return t}(r)}}function ZF(t,e,n,r){const i=t.textNode||(n?t.nodeAfter:t.nodeBefore);if(!i||!i.hasAttribute(e))return t;return xw(t,e,i.getAttribute(e),n,r)}class YF extends Lo{static get pluginName(){return"StyleEditing"}static get requires(){return["GeneralHtmlSupport",NF,$F,GF,KF]}init(){const t=this.editor,e=t.plugins.get("DataSchema"),n=t.plugins.get("StyleUtils"),r=t.config.get("style.definitions"),i=n.normalizeConfig(e,r);t.commands.add("style",new UF(t,i)),n.configureGHSDataFilter(i)}}class JF extends Mo{execute(t){const{model:e}=this.editor,{document:n}=e,{selection:r}=n,{mention:i}=t,o=t.range||r.getFirstRange();if(i.id.startsWith("#")||i.id.startsWith("~"))e.change((t=>{e.insertContent(t.createText(i.id,{}),o)}));else if("create-note"===i.action){const t=this.editor.editing.view.getDomRoot();glob.getComponentByEl(t).createNoteForReferenceLink(i.noteTitle).then((t=>{this.insertReference(o,t)}))}else this.insertReference(o,t.mention.notePath)}insertReference(t,e){const{model:n}=this.editor;n.change((r=>{n.insertContent(r.createText("",{}),t),this.editor.execute("referenceLink",{href:"#"+e})}))}}class QF{constructor(t){this.loader=t}upload(){return this.loader.file.then((t=>new Promise(((e,n)=>{this._initRequest().then((()=>{this._initListeners(e,n,t),this._sendRequest(t)}))}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){return glob.getHeaders().then((t=>{const e=this.xhr=new XMLHttpRequest,{noteId:n}=glob.getActiveContextNote(),r=`api/notes/${n}/attachments/upload`;e.open("POST",r,!0),e.responseType="json";for(const n in t)e.setRequestHeader(n,t[n])}))}async _initListeners(t,e){const n=this.xhr,r=this.loader,i=`Cannot upload file: ${(await r.file).name}.`;n.addEventListener("error",(()=>e(i))),n.addEventListener("abort",(()=>e())),n.addEventListener("load",(()=>{const r=n.response;if(!r||!r.uploaded)return e(r&&r.error&&r.error.message?r.error.message:i);t({default:r.url})})),n.upload&&n.upload.addEventListener("progress",(t=>{t.lengthComputable&&(r.uploadTotal=t.total,r.uploaded=t.loaded)}))}async _sendRequest(){const t=new FormData;t.append("upload",await this.loader.file),this.xhr.send(t)}}class XF extends Lo{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("includeNote",(n=>{const r=t.commands.get("insertIncludeNote"),i=new wm(n);return i.set({label:e("Include note"),icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19,3H5C3.897,3,3,3.897,3,5v14c0,1.103,0.897,2,2,2h8c0.131,0,0.26-0.026,0.381-0.076s0.232-0.123,0.326-0.217l7-7 c0.086-0.086,0.147-0.187,0.196-0.293c0.014-0.03,0.022-0.061,0.033-0.093c0.028-0.084,0.046-0.17,0.051-0.259 C20.989,13.041,21,13.021,21,13V5C21,3.897,20.103,3,19,3z M5,5h14v7h-6c-0.553,0-1,0.448-1,1v6H5V5z M14,17.586V14h3.586 L14,17.586z"/></svg>',tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(i,"execute",(()=>t.execute("insertIncludeNote"))),i}))}}class tR extends Lo{static get requires(){return[N_]}init(){this._defineSchema(),this._defineConverters(),this.editor.commands.add("insertIncludeNote",new eR(this.editor))}_defineSchema(){this.editor.model.schema.register("includeNote",{isObject:!0,allowAttributes:["noteId","boxSize"],allowWhere:"$block"})}_defineConverters(){const t=this.editor,e=t.conversion;e.for("upcast").elementToElement({model:(t,{writer:e})=>e.createElement("includeNote",{noteId:t.getAttribute("data-note-id"),boxSize:t.getAttribute("data-box-size")}),view:{name:"section",classes:"include-note"}}),e.for("dataDowncast").elementToElement({model:"includeNote",view:(t,{writer:e})=>e.createContainerElement("section",{class:"include-note","data-note-id":t.getAttribute("noteId"),"data-box-size":t.getAttribute("boxSize")})}),e.for("editingDowncast").elementToElement({model:"includeNote",view:(e,{writer:n})=>{const r=e.getAttribute("noteId"),i=e.getAttribute("boxSize"),o=n.createContainerElement("section",{class:"include-note box-size-"+i,"data-note-id":r,"data-box-size":i}),s=n.createUIElement("div",{class:"include-note-wrapper","data-cke-ignore-events":!0},(function(e){const n=this.toDomElement(e),i=t.editing.view.getDomRoot();return glob.getComponentByEl(i).loadIncludedNote(r,$(n)),function(t,e){function n(t){t.stopPropagation(),e.editing.view._renderer.isFocused=!1}t.addEventListener("mousedown",n,{capture:!0}),t.addEventListener("focus",n,{capture:!0}),t.addEventListener("keydown",n,{capture:!0})}(n,t),n}));return n.insert(n.createPositionAt(o,0),s),f_(o,n,{label:"include note widget"})}})}}class eR extends Mo{execute(){const t=this.editor.editing.view.getDomRoot();glob.getComponentByEl(t).triggerCommand("addIncludeNoteToText")}refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema.findAllowedParent(e.getFirstPosition(),"includeNote");this.isEnabled=null!==n}}class nR extends Mo{execute({href:t}){if(!t?.trim())return;const e=this.editor;glob.getReferenceLinkTitle(t).then((()=>{e.model.change((n=>{const r=n.createElement("reference",{href:t});e.model.insertContent(r),n.setSelection(r,"after")}))}))}refresh(){const t=this.editor.model,e=t.document.selection;this.isEnabled=t.schema.checkChild(e.focus.parent,"reference")}}class rR extends Lo{static get requires(){return[N_]}init(){this._defineSchema(),this._defineConverters(),this.editor.commands.add("referenceLink",new nR(this.editor)),this.editor.editing.mapper.on("viewToModelPosition",C_(this.editor.model,(t=>t.hasClass("reference-link"))))}_defineSchema(){this.editor.model.schema.register("reference",{allowWhere:"$text",isInline:!0,isObject:!0,allowAttributes:["href","uploadId","uploadStatus"]})}_defineConverters(){const t=this.editor,e=t.conversion;e.for("upcast").elementToElement({view:{name:"a",classes:["reference-link"]},model:(t,{writer:e})=>{const n=t.getAttribute("href");return e.createElement("reference",{href:n})}}),e.for("editingDowncast").elementToElement({model:"reference",view:(e,{writer:n})=>{const r=e.getAttribute("href"),i=n.createContainerElement("a",{href:r,class:"reference-link"},{renderUnsafeAttributes:["href"]}),o=n.createUIElement("span",{},(function(e){const n=this.toDomElement(e),i=t.editing.view.getDomRoot();return glob.getComponentByEl(i).loadReferenceLinkTitle($(n),r),n}));return n.insert(n.createPositionAt(i,0),o),f_(i,n)}}),e.for("dataDowncast").elementToElement({model:"reference",view:(t,{writer:e})=>{const n=t.getAttribute("href"),r=e.createContainerElement("a",{href:n,class:"reference-link"}),i=glob.getReferenceLinkTitleSync(n),o=e.createText(i);return e.insert(e.createPositionAt(r,0),o),r}})}}function iR(t){return null!=t&&"object"==typeof t&&"version"in t&&"string"==typeof t.version&&3===t.version.split(".").length&&"3"===t.version.split(".")[0]}function oR(t){return null!=t&&"object"==typeof t&&"Hub"in t}function sR(t){return t.match(/^(\\\[.*?\\\]|\\\(.*?\\\))$/)}function aR(t){const e=(t=t.trim()).includes("\\(")&&t.includes("\\)"),n=t.includes("\\[")&&t.includes("\\]");return(e||n)&&(t=t.substring(2,t.length-2).trim()),{equation:t,display:n}}async function lR(t,e,n="katex",r,i=!1,o=!1,s="",a=[],l={}){if("mathjax"==n)iR(MathJax)?dR(e,o,s,a,(n=>{!function(t,e,n,r){let i;if(!iR(MathJax))return;MathJax.tex2chtmlPromise?i=MathJax.tex2chtmlPromise:MathJax.tex2svgPromise&&(i=MathJax.tex2svgPromise);null!=i&&i(t,{display:n}).then((t=>{e.firstChild&&e.removeChild(e.firstChild),e.appendChild(t),r()}))}(t,n,i,(()=>{o&&(hR(e,n),n.style.visibility="visible")}))})):dR(e,o,s,a,(n=>{window.setTimeout((()=>{!function(t,e,n){oR(MathJax)&&(e.innerHTML=n?"\\["+t+"\\]":"\\("+t+"\\)",MathJax.Hub.Queue(["Typeset",MathJax.Hub,e]))}(t,n,i),o&&oR(MathJax)&&MathJax.Hub.Queue((()=>{hR(e,n),n.style.visibility="visible"}))}))}));else if("katex"===n&&void 0!==window.katex)dR(e,o,s,a,(n=>{katex&&katex.render(t,n,{throwOnError:!1,displayMode:i,...l}),o&&(hR(e,n),n.style.visibility="visible")}));else if("function"==typeof n)n(t,e,i);else if(null!=r)try{window.CKEDITOR_MATH_LAZY_LOAD??=r(),e.innerHTML=t,await window.CKEDITOR_MATH_LAZY_LOAD,await lR(t,e,n,void 0,i,o,s,a,l)}catch(n){e.innerHTML=t,console.error(`math-tex-typesetting-lazy-load-failed: Lazy load failed: ${String(n)}`)}else e.innerHTML=t,console.warn(`math-tex-typesetting-missing: Missing the mathematical typesetting engine (${String(n)}) for tex.`)}function cR(t){const e=t.editing.view,n=op.defaultPositions,r=e.document.selection.getSelectedElement();if(r)return{target:e.domConverter.viewToDom(r),positions:[n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]};{const t=e.document.selection.getFirstRange();if(!t)throw new kr("math-missing-range");return{target:e.domConverter.viewRangeToDom(t),positions:[n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}}function dR(t,e,n,r,i){e?function(t,e,n,r){const i=function(t,e,n){let r=document.getElementById(e);if(!r){r=document.createElement("div"),r.setAttribute("id",e),r.classList.add(...n),r.style.visibility="hidden",document.body.appendChild(r);let i=!1;const o=()=>{i||(window.requestAnimationFrame((()=>{r&&(uR(t,r),i=!1)})),i=!0)};window.addEventListener("resize",o),window.addEventListener("scroll",o)}return r}(t,e,n);r(i)}(t,n,r,(t=>{i(t)})):i(t)}function hR(t,e){uR(t,e);const n=e.getBoundingClientRect();t.style.width=n.width+"px",t.style.height=n.height+"px"}function uR(t,e){const n=t.getBoundingClientRect(),r=window.scrollX+n.left,i=window.scrollY+n.top;e.style.position="absolute",e.style.left=r+"px",e.style.top=i+"px",e.style.zIndex="var(--ck-z-panel)",e.style.pointerEvents="none"}class mR extends Mo{value=null;execute(t,e,n="script",r){const i=this.editor.model,o=i.document.selection.getSelectedElement();i.change((s=>{let a;if(o&&(o.is("element","mathtex-inline")||o.is("element","mathtex-display"))){const i=o.getAttribute("type"),l=r?n:i||n;a=s.createElement(e?"mathtex-display":"mathtex-inline",{equation:t,type:l,display:e})}else a=s.createElement(e?"mathtex-display":"mathtex-inline",{equation:t,type:n,display:e});i.insertContent(a)}))}display=!1;refresh(){const t=this.editor.model.document.selection,e=t.getSelectedElement();this.isEnabled=null===e||e.is("element","mathtex-inline")||e.is("element","mathtex-display");const n=function(t){const e=t.getSelectedElement();return e&&(e.is("element","mathtex-inline")||e.is("element","mathtex-display"))?e:null}(t),r=n?.getAttribute("equation");this.value="string"==typeof r?r:null;const i=n?.getAttribute("display");this.display="boolean"==typeof i&&i}}class gR extends Lo{static get requires(){return[N_]}static get pluginName(){return"MathEditing"}constructor(t){super(t),t.config.define("math",{engine:"mathjax",outputType:"script",className:"math-tex",forceOutputType:!1,enablePreview:!0,previewClassName:[],popupClassName:[],katexRenderOptions:{}})}init(){const t=this.editor;t.commands.add("math",new mR(t)),this._defineSchema(),this._defineConverters(),t.editing.mapper.on("viewToModelPosition",C_(t.model,(t=>t.hasClass("math"))))}_defineSchema(){const t=this.editor.model.schema;t.register("mathtex-inline",{allowWhere:"$text",isInline:!0,isObject:!0,allowAttributes:["equation","type","display"]}),t.register("mathtex-display",{inheritAllFrom:"$blockObject",allowAttributes:["equation","type","display"]})}_defineConverters(){const t=this.editor.conversion,e=this.editor.config.get("math");function n(t,n){const r=String(t.getAttribute("equation")),i=!!t.getAttribute("display"),o="user-select: none; "+(i?"":"display: inline-block;"),s="ck-math-tex "+(i?"ck-math-tex-display":"ck-math-tex-inline"),a=n.createContainerElement(i?"div":"span",{style:o,class:s}),l=n.createUIElement("div",null,(function(t){const n=this.toDomElement(t);return lR(r,n,e.engine,e.lazyLoad,i,!1,`math-editing-${pr()}`,e.previewClassName,e.katexRenderOptions),n}));return n.insert(n.createPositionAt(a,0),l),a}function r(t,{writer:n}){const r=t.getAttribute("equation");if("string"!=typeof r)throw new kr("missing-equation",{pluginName:"math"});const i=t.getAttribute("type"),o=t.getAttribute("display");if("span"===i){const t=n.createContainerElement("span",{class:e.className});return o?n.insert(n.createPositionAt(t,0),n.createText("\\["+r+"\\]")):n.insert(n.createPositionAt(t,0),n.createText("\\("+r+"\\)")),t}{const t=n.createContainerElement("script",{type:o?"math/tex; mode=display":"math/tex"});return n.insert(n.createPositionAt(t,0),n.createText(r)),t}}t.for("upcast").elementToElement({view:{name:"script",attributes:{type:"math/tex"}},model:(t,{writer:n})=>{const r=t.getChild(0);if(r?.is("$text")){const t=r.data.trim();return n.createElement("mathtex-inline",{equation:t,type:e.forceOutputType?e.outputType:"script",display:!1})}return null}}).elementToElement({view:{name:"script",attributes:{type:"math/tex; mode=display"}},model:(t,{writer:n})=>{const r=t.getChild(0);if(r?.is("$text")){const t=r.data.trim();return n.createElement("mathtex-display",{equation:t,type:e.forceOutputType?e.outputType:"script",display:!0})}return null}}).elementToElement({view:{name:"span",classes:[e.className]},model:(t,{writer:n})=>{const r=t.getChild(0);if(r?.is("$text")){const t=r.data.trim(),i=Object.assign(aR(t),{type:e.forceOutputType?e.outputType:"span"});return n.createElement(i.display?"mathtex-display":"mathtex-inline",i)}return null}}).elementToElement({view:{name:"span",classes:["ql-formula"]},model:(t,{writer:n})=>{const r=t.getAttribute("data-value");if(null==r)throw new kr("missing-equation",{pluginName:"math"});return n.createElement("mathtex-inline",{equation:r.trim(),type:e.forceOutputType?e.outputType:"script",display:!1})}}),t.for("editingDowncast").elementToElement({model:"mathtex-inline",view:(t,{writer:e})=>f_(n(t,e),e)}).elementToElement({model:"mathtex-display",view:(t,{writer:e})=>f_(n(t,e),e)}),t.for("dataDowncast").elementToElement({model:"mathtex-inline",view:r}).elementToElement({model:"mathtex-display",view:r})}}class pR extends lm{previewUid;previewClassName;katexRenderOptions;engine;lazyLoad;constructor(t,e,n,r,i,o){super(n),this.engine=t,this.lazyLoad=e,this.previewUid=r,this.katexRenderOptions=o,this.previewClassName=i,this.set("value",""),this.set("display",!1),this.on("change",(()=>{this.isRendered&&this.updateMath()})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-math-preview"]}})}updateMath(){this.element&&lR(this.value,this.element,this.engine,this.lazyLoad,this.display,!0,this.previewUid,this.previewClassName,this.katexRenderOptions)}render(){super.render(),this.updateMath()}}var fR=n(8249),bR={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(fR.A,bR);fR.A.locals;const{check:kR,cancel:wR}=zu;class AR extends Sg{value=null;isReadOnly=!1;constructor(t){super(t,Rp)}}class _R extends lm{saveButtonView;mathInputView;displayButtonView;cancelButtonView;previewEnabled;previewLabel;mathView;locale=new yo;lazyLoad;constructor(t,e,n,r=!1,i,o,s,a){super(t);const l=t.t;this.saveButtonView=this._createButton(l("Save"),kR,"ck-button-save",null),this.saveButtonView.type="submit",this.mathInputView=this._createMathInput(),this.displayButtonView=this._createDisplayButton(),this.cancelButtonView=this._createButton(l("Cancel"),wR,"ck-button-cancel","cancel"),this.previewEnabled=r;let c=[];this.previewEnabled?(this.previewLabel=new Xm(t),this.previewLabel.text=l("Equation preview"),this.mathView=new pR(e,n,t,i,o,a),this.mathView.bind("display").to(this.displayButtonView,"isOn"),c=[this.mathInputView,this.displayButtonView,this.previewLabel,this.mathView]):c=[this.mathInputView,this.displayButtonView],this.setTemplate({tag:"form",attributes:{class:["ck","ck-math-form",...s],tabindex:"-1",spellcheck:"false"},children:[{tag:"div",attributes:{class:["ck-math-view"]},children:c},this.saveButtonView,this.cancelButtonView]})}render(){super.render(),hm({view:this});[this.mathInputView,this.displayButtonView,this.saveButtonView,this.cancelButtonView].forEach((t=>{t.element&&(this._focusables.add(t),this.focusTracker.add(t.element))})),this.element&&this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}get equation(){return this.mathInputView.fieldView.element?.value??""}set equation(t){this.mathInputView.fieldView.element&&(this.mathInputView.fieldView.element.value=t),this.previewEnabled&&this.mathView&&(this.mathView.value=t)}focusTracker=new Bo;keystrokes=new Do;_focusables=new Mu;_focusCycler=new ym({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});_createMathInput(){const t=this.locale.t,e=new AR(this.locale),n=e.fieldView;e.infoText=t("Insert equation in TeX format.");const r=()=>{if(null!=n.element){let t=n.element.value.trim();if(sR(t)){const e=aR(t);n.element.value=e.equation,t=e.equation,this.displayButtonView.isOn=e.display}this.previewEnabled&&this.mathView&&(this.mathView.value=t),this.saveButtonView.isEnabled=!!t}};return n.on("render",r),n.on("input",r),e}_createButton(t,e,n,r){const i=new wm(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}_createDisplayButton(){const t=this.locale.t,e=new og(this.locale);return e.set({label:t("Display mode"),withText:!0}),e.extendTemplate({attributes:{class:"ck-button-display-toggle"}}),e.on("execute",(()=>{e.isOn=!e.isOn,this.previewEnabled&&this.mathView&&(this.mathView.display=e.isOn)})),e}}const CR="Ctrl+M";class vR extends Lo{static get requires(){return[yb,gR]}static get pluginName(){return"MathUI"}_previewUid=`math-preview-${pr()}`;_balloon=this.editor.plugins.get(yb);formView=null;init(){this.editor.editing.view.addObserver(Oh),this._createToolbarMathButton(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}destroy(){super.destroy(),this.formView?.destroy();const t=document.getElementById(this._previewUid);t&&t.parentNode?.removeChild(t)}_showUI(){const t=this.editor.commands.get("math");t?.isEnabled&&(this._addFormView(),this._balloon.showStack("main"))}_createFormView(){const t=this.editor,e=t.commands.get("math");if(!(e instanceof mR))throw new kr("math-command");const n=t.config.get("math"),r=new _R(t.locale,n.engine,n.lazyLoad,n.enablePreview,this._previewUid,n.previewClassName,n.popupClassName,n.katexRenderOptions);return r.mathInputView.bind("value").to(e,"value"),r.displayButtonView.bind("isOn").to(e,"display"),r.mathInputView.bind("isReadOnly").to(e,"isEnabled",(t=>!t)),r.saveButtonView.bind("isEnabled").to(e),r.displayButtonView.bind("isEnabled").to(e),this.listenTo(r,"submit",(()=>{t.execute("math",r.equation,r.displayButtonView.isOn,n.outputType,n.forceOutputType),this._closeFormView()})),this.listenTo(r,"cancel",(()=>{this._closeFormView()})),r.keystrokes.set("esc",((t,e)=>{this._closeFormView(),e()})),r}_addFormView(){if(this._isFormInPanel)return;const t=this.editor,e=t.commands.get("math");if(!(e instanceof mR))throw new kr("plugin-load",{pluginName:"math"});if(null==this.formView)return;this._balloon.add({view:this.formView,position:cR(t)}),this._balloon.visibleView===this.formView&&this.formView.mathInputView.fieldView.element?.select();document.getElementById(this._previewUid)&&this.formView.previewEnabled&&this.formView.mathView?.updateMath(),this.formView.equation=e.value??"",this.formView.displayButtonView.isOn=e.display||!1}_hideUI(){if(!this._isFormInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView()}_closeFormView(){const t=this.editor.commands.get("math");null!=t?.value?this._removeFormView():this._hideUI()}_removeFormView(){if(this._isFormInPanel&&this.formView){this.formView.saveButtonView.focus(),this._balloon.remove(this.formView);const t=document.getElementById(this._previewUid);t&&(t.style.visibility="hidden"),this.editor.editing.view.focus()}}_createToolbarMathButton(){const t=this.editor,e=t.commands.get("math");if(!e)throw new kr("plugin-load",{pluginName:"math"});const n=t.t;t.keystrokes.set(CR,((t,n)=>{n(),e.isEnabled&&this._showUI()})),this.editor.ui.componentFactory.add("math",(t=>{const r=new wm(t);return r.isEnabled=!0,r.label=n("Insert math"),r.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.44 10.78" height="40.74" width="58.35"><path d="M8.15 0c-.06 0-.1.02-.11.03a.12.12 0 0 0-.02.01 6.81 6.81 0 0 0-2.32 4.9v.9a6.82 6.82 0 0 0 2.32 4.9.12.12 0 0 0 .02 0c.02.02.06.04.11.04.07 0 .12-.03.16-.07a.22.22 0 0 0 0-.32.12.12 0 0 0-.02-.02A4.4 4.4 0 0 1 7 8.44a7.62 7.62 0 0 1-.5-2.6v-.9c0-.82.19-1.76.5-2.6A4.4 4.4 0 0 1 8.3.42.12.12 0 0 0 8.3.39a.22.22 0 0 0 .08-.16.22.22 0 0 0-.07-.16.22.22 0 0 0-.16-.07zm4.83 0a.22.22 0 0 0-.16.07.22.22 0 0 0-.07.16c0 .08.05.13.08.16a.12.12 0 0 0 .01.02c.52.39.98 1.1 1.3 1.94.3.83.49 1.77.49 2.6v.88c0 .83-.18 1.78-.5 2.6a4.4 4.4 0 0 1-1.29 1.95.22.22 0 0 0-.01.33c.03.04.08.07.15.07.05 0 .09-.02.12-.03a.12.12 0 0 0 .02-.01 6.82 6.82 0 0 0 2.32-4.9v-.9a6.81 6.81 0 0 0-2.32-4.9.12.12 0 0 0-.02 0c-.03-.02-.06-.04-.12-.04zm-8.5.46c-.4 0-1.13.23-1.46 1.32-.06.2-.11.45-.33 1.58h-.64c-.1 0-.19-.01-.28.03a.25.25 0 0 0-.12.12.38.38 0 0 0-.03.17c0 .04 0 .1.04.14.03.04.07.07.11.08.09.03.16.02.26.02h.56l-.77 4.04c-.1.51-.19 1-.32 1.36-.06.18-.14.32-.22.4-.08.1-.16.13-.26.13-.03 0-.1 0-.2-.03.11-.05.2-.13.26-.2a.7.7 0 0 0 .13-.4.48.48 0 0 0-.16-.38.53.53 0 0 0-.35-.12c-.34 0-.7.3-.7.76 0 .27.14.5.34.64s.44.2.68.2c.33 0 .61-.17.83-.4.21-.21.37-.48.47-.69.18-.35.32-.84.43-1.25a14.17 14.17 0 0 0 .18-.8l.61-3.26h.81c.1 0 .2.01.3-.03.04-.03.09-.07.11-.13.02-.05.03-.1.03-.17 0-.05-.01-.1-.05-.14a.23.23 0 0 0-.11-.07c-.08-.03-.16-.02-.25-.02h-.73l.2-1.07a26.3 26.3 0 0 1 .24-1.07c.08-.17.22-.3.39-.3l.21.05a.7.7 0 0 0-.25.2.7.7 0 0 0-.13.4c0 .15.06.28.16.37.1.08.22.12.35.12.34 0 .7-.3.7-.76 0-.28-.15-.5-.35-.64-.2-.14-.45-.2-.7-.2zm5.4 2.78c-.6 0-1.06.37-1.36.76-.16.2-.27.4-.35.57-.07.18-.12.3-.12.42 0 .1.08.18.14.2.06.03.1.02.1.02.06 0 .12 0 .18-.04.05-.05.07-.1.08-.17v.02c.35-1.09 1-1.3 1.3-1.3.09 0 .2.01.29.09.09.07.17.2.17.5 0 .27-.18 1-.57 2.48a1.8 1.8 0 0 1-.37.75.7.7 0 0 1-.52.26c-.04 0-.13 0-.22-.03a.68.68 0 0 0 .3-.56.47.47 0 0 0-.18-.39.55.55 0 0 0-.32-.1c-.4 0-.7.33-.7.74 0 .28.16.5.38.63.21.13.48.18.73.18.39 0 .69-.2.89-.41.09-.1.15-.19.2-.27.2.36.59.68 1.16.68.6 0 1.05-.37 1.35-.76.15-.2.27-.4.34-.57.08-.18.12-.3.12-.42a.24.24 0 0 0-.11-.2c-.06-.03-.12-.02-.13-.02a.26.26 0 0 0-.18.06c-.05.05-.06.1-.07.14-.34 1.1-1.02 1.3-1.3 1.3-.17 0-.27-.06-.35-.17a.72.72 0 0 1-.11-.4c0-.22.06-.45.18-.91l.36-1.45c.03-.14.1-.44.25-.7.15-.25.36-.46.68-.46.03 0 .12 0 .22.03a.7.7 0 0 0-.32.56c0 .11.04.23.13.33.08.1.22.16.4.16.14 0 .3-.06.44-.18a.73.73 0 0 0 .24-.55c0-.32-.2-.54-.42-.66a1.52 1.52 0 0 0-.68-.16c-.34 0-.62.16-.82.34a1.8 1.8 0 0 0-.3.35 1.32 1.32 0 0 0-.5-.54 1.37 1.37 0 0 0-.63-.15z" style="line-height:1.25;-inkscape-font-specification:\'Latin Modern Math\'" font-weight="400" font-size="10.58" font-family="Latin Modern Math" letter-spacing="-1.06" word-spacing="0"/></svg>\r\n',r.keystroke=CR,r.tooltip=!0,r.isToggleable=!0,r.bind("isEnabled").to(e,"isEnabled"),this.listenTo(r,"execute",(()=>{this._showUI()})),r}))}_enableUserBalloonInteractions(){const t=this.editor,e=this.editor.editing.view.document;if(this.listenTo(e,"click",(()=>{const e=t.commands.get("math");e?.isEnabled&&e.value&&this._showUI()})),t.keystrokes.set("Esc",((t,e)=>{this._isUIVisible&&(this._hideUI(),e())})),!this.formView)throw new Error("missing form view");cm({emitter:this.formView,activator:()=>!!this._isFormInPanel,contextElements:this._balloon.view.element?[this._balloon.view.element]:[],callback:()=>{this._hideUI()}})}get _isUIVisible(){return this._balloon.visibleView==this.formView}get _isFormInPanel(){return this.formView&&this._balloon.hasView(this.formView)}}class yR extends Lo{static get requires(){return[mC,_C]}static get pluginName(){return"AutoMath"}_timeoutId;_positionToInsert;constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document;this.listenTo(t.plugins.get(mC),"inputTransformation",(()=>{const t=e.selection.getFirstRange();if(!t)return;const n=eh.fromPosition(t.start);n.stickiness="toPrevious";const r=eh.fromPosition(t.end);r.stickiness="toNext",e.once("change:data",(()=>{this._mathBetweenPositions(n,r),n.detach(),r.detach()}),{priority:"high"})})),t.commands.get("undo")?.on("execute",(()=>{this._timeoutId&&(window.clearTimeout(this._timeoutId),this._positionToInsert?.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_mathBetweenPositions(t,e){const n=this.editor,r=this.editor.config.get("math"),i=new uc(t,e),o=i.getWalker({ignoreElementEnd:!0});let s="";for(const t of o)t.item.is("$textProxy")&&(s+=t.item.data);if(s=s.trim(),!sR(s)||2!==function(t){return t.match(/(\\\[|\\\]|\\\(|\\\))/g)?.length}(s))return;const a=n.commands.get("math");a?.isEnabled&&(this._positionToInsert=eh.fromPosition(t),this._timeoutId=window.setTimeout((()=>{n.model.change((t=>{let e;this._timeoutId=null,t.remove(i),"$graveyard"!==this._positionToInsert?.root.rootName&&(e=this._positionToInsert),n.model.change((t=>{const i=Object.assign(aR(s),{type:r.outputType}),o=t.createElement(i.display?"mathtex-display":"mathtex-inline",i);n.model.insertContent(o,e),t.setSelection(o,"on")})),this._positionToInsert?.detach(),this._positionToInsert=null}))}),100))}}class xR extends Lo{static get requires(){return[gR,vR,yR,N_]}static get pluginName(){return"Math"}}const ER='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 1.219C4.254 1.219 1.219 4.28 1.219 8A6.78 6.78 0 0 0 8 14.781c3.719 0 6.781-3.035 6.781-6.781 0-3.719-3.062-6.781-6.781-6.781Zm0 12.25A5.45 5.45 0 0 1 2.531 8 5.467 5.467 0 0 1 8 2.531c3.008 0 5.469 2.461 5.469 5.469A5.467 5.467 0 0 1 8 13.469Zm0-9.242c-.656 0-1.148.52-1.148 1.148 0 .656.492 1.148 1.148 1.148.629 0 1.148-.492 1.148-1.148 0-.629-.52-1.148-1.148-1.148Zm1.531 6.945v-.656a.353.353 0 0 0-.328-.329h-.328V7.454a.353.353 0 0 0-.328-.328h-1.75a.332.332 0 0 0-.328.328v.656c0 .192.136.329.328.329h.328v1.75h-.328a.333.333 0 0 0-.328.328v.656c0 .191.136.328.328.328h2.406a.332.332 0 0 0 .328-.328Z"/></svg>\r\n',BR='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m8 11.5 3.004-3.004 3.003 3.004-3.003 3.004L8 11.5Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.504 2.863v3h3v-3h-3Zm-1 4h5v-5h-5v5Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.004 14.504 8 11.5l2.504-2.504V6.07h1v2.926l2.503 2.504-3.003 3.004ZM9.414 11.5l1.59-1.59 1.59 1.59-1.59 1.59-1.59-1.59ZM6.837 4.999h2.625v-1h-2.57a2.5 2.5 0 1 0-2.974 2.814V9h-2v5h5V9h-2V6.813c.934-.19 1.68-.9 1.919-1.814Zm-3.919-.636a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm0 5.637v3h3v-3h-3Z"/></svg>\r\n',DR='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.8 11.609V13.4a.4.4 0 0 1-.4.4H2.6a.4.4 0 0 1-.4-.4v-1.791H1V13.4A1.6 1.6 0 0 0 2.6 15h10.8a1.6 1.6 0 0 0 1.6-1.6v-1.791h-1.2ZM13.8 4.997H15V2.6A1.6 1.6 0 0 0 13.4 1H2.6A1.6 1.6 0 0 0 1 2.6v2.397h1.2V2.6c0-.22.18-.4.4-.4h10.8c.22 0 .4.18.4.4v2.397Z"/><path d="M8 11.095c-1.92 0-3.837-.919-5.749-2.757L2 8.095l.251-.242c3.815-3.677 7.683-3.677 11.498 0l.251.242-.251.243C11.84 10.176 9.925 11.095 8 11.096Zm-5.02-3c3.375 3.1 6.665 3.1 10.04 0-3.375-3.1-6.665-3.095-10.04 0Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.514 8.095c-3.676 3.543-7.352 3.543-11.028 0 3.676-3.542 7.352-3.542 11.028 0Zm-3.586 0A1.926 1.926 0 0 1 8 10.02a1.926 1.926 0 0 1-1.928-1.924c0-1.062.863-1.924 1.928-1.924s1.928.862 1.928 1.924Z"/><path d="M8 8.861a.767.767 0 1 0 .002-1.533A.767.767 0 0 0 8 8.86Z"/></svg>\r\n',SR='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8 3.076H8.588V13.8H13.4a.4.4 0 0 0 .4-.4V3.076Zm-6.412 0H2.2V13.4c0 .22.18.4.4.4h4.788V3.076ZM2.6 1A1.6 1.6 0 0 0 1 2.6v10.8A1.6 1.6 0 0 0 2.6 15h10.8a1.6 1.6 0 0 0 1.6-1.6V2.6A1.6 1.6 0 0 0 13.4 1H2.6Z"/></svg>\r\n',TR='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.609 2.2H13.4c.22 0 .4.18.4.4v10.8a.4.4 0 0 1-.4.4h-1.791V15H13.4a1.6 1.6 0 0 0 1.6-1.6V2.6A1.6 1.6 0 0 0 13.4 1h-1.791v1.2ZM4.997 2.2V1H2.6A1.6 1.6 0 0 0 1 2.6v10.8A1.6 1.6 0 0 0 2.6 15h2.397v-1.2H2.6a.4.4 0 0 1-.4-.4V2.6c0-.22.18-.4.4-.4h2.397Z"/><path d="M3.511 4.778a.75.75 0 0 1 .75-.75h3.697a.75.75 0 1 1 0 1.5H4.26a.75.75 0 0 1-.75-.75ZM6.595 7.629a.75.75 0 0 1 .75-.75h3.588a.75.75 0 0 1 0 1.5H7.345a.75.75 0 0 1-.75-.75ZM6.595 10.48a.75.75 0 0 1 .75-.75h1.143a.75.75 0 1 1 0 1.5H7.345a.75.75 0 0 1-.75-.75ZM3.511 7.629a.75.75 0 0 1 .75-.75h.983a.75.75 0 1 1 0 1.5h-.983a.75.75 0 0 1-.75-.75ZM3.511 10.48a.75.75 0 0 1 .75-.75h.983a.75.75 0 1 1 0 1.5h-.983a.75.75 0 0 1-.75-.75Z"/></svg>\r\n';function IR(t,e){const n=t.model.document.selection,r=n.getSelectedElement()||n.getLastPosition().parent;return!(!r||!r.is("element","mermaid")||r.getAttribute("displayMode")!==e)}class PR extends Mo{refresh(){const t=this.editor,e=t.model.document.selection,n=e.getSelectedElement();n&&"mermaid"===n.name||e.getLastPosition().findAncestor("mermaid")?this.isEnabled=!!n:this.isEnabled=!1,this.value=IR(t,"preview")}execute(){const t=this.editor.model,e=this.editor.model.document.selection,n=e.getSelectedElement()||e.getLastPosition().parent;t.change((t=>{"preview"!==n.getAttribute("displayMode")&&t.setAttribute("displayMode","preview",n)}))}}class VR extends Mo{refresh(){const t=this.editor,e=t.model.document.selection,n=e.getSelectedElement();n&&"mermaid"===n.name||e.getLastPosition().findAncestor("mermaid")?this.isEnabled=!!n:this.isEnabled=!1,this.value=IR(t,"source")}execute(){const t=this.editor.model,e=this.editor.model.document.selection,n=e.getSelectedElement()||e.getLastPosition().parent;t.change((t=>{"source"!==n.getAttribute("displayMode")&&t.setAttribute("displayMode","source",n)}))}}class FR extends Mo{refresh(){const t=this.editor,e=t.model.document.selection,n=e.getSelectedElement();n&&"mermaid"===n.name||e.getLastPosition().findAncestor("mermaid")?this.isEnabled=!!n:this.isEnabled=!1,this.value=IR(t,"split")}execute(){const t=this.editor.model,e=this.editor.model.document.selection,n=e.getSelectedElement()||e.getLastPosition().parent;t.change((t=>{"split"!==n.getAttribute("displayMode")&&t.setAttribute("displayMode","split",n)}))}}class RR extends Mo{refresh(){const t=this.editor.model.document.selection.getSelectedElement();t&&"mermaid"===t.name?this.isEnabled=!1:this.isEnabled=!0}execute(){const t=this.editor.model;let e;return t.change((n=>{e=n.createElement("mermaid",{displayMode:"split",source:"flowchart TB\nA --\x3e B\nB --\x3e C"}),t.insertContent(e)})),e}}class LR extends Lo{static get pluginName(){return"MermaidEditing"}init(){this._registerCommands(),this._defineConverters(),this._config=this.editor.config.get("mermaid")}afterInit(){this.editor.model.schema.register("mermaid",{allowAttributes:["displayMode","source"],allowWhere:"$block",isObject:!0})}_registerCommands(){const t=this.editor;t.commands.add("mermaidPreviewCommand",new PR(t)),t.commands.add("mermaidSplitViewCommand",new FR(t)),t.commands.add("mermaidSourceViewCommand",new VR(t)),t.commands.add("insertMermaidCommand",new RR(t))}_defineConverters(){const t=this.editor;t.data.downcastDispatcher.on("insert:mermaid",this._mermaidDataDowncast.bind(this)),t.editing.downcastDispatcher.on("insert:mermaid",this._mermaidDowncast.bind(this)),t.editing.downcastDispatcher.on("attribute:source:mermaid",this._sourceAttributeDowncast.bind(this)),t.data.upcastDispatcher.on("element:code",this._mermaidUpcast.bind(this),{priority:"high"}),t.conversion.for("editingDowncast").attributeToAttribute({model:{name:"mermaid",key:"displayMode"},view:t=>({key:"class",value:"ck-mermaid__"+t+"-mode"})})}_mermaidDataDowncast(t,e,n){const r=this.editor.model,{writer:i,mapper:o}=n;if(!n.consumable.consume(e.item,"insert"))return;const s=o.toViewPosition(r.createPositionBefore(e.item)),a=i.createContainerElement("code",{class:"language-mermaid"}),l=i.createContainerElement("pre",{spellcheck:"false"}),c=i.createText(e.item.getAttribute("source"));i.insert(r.createPositionAt(a,"end"),c),i.insert(r.createPositionAt(l,"end"),a),i.insert(s,l),o.bindElements(e.item,a)}_mermaidDowncast(t,e,n){const{writer:r,mapper:i,consumable:o}=n,{editor:s}=this,{model:a,t:l}=s,c=this;if(!o.consume(e.item,"insert"))return;const d=i.toViewPosition(a.createPositionBefore(e.item)),h={class:["ck-mermaid__editing-view"],placeholder:l("Insert mermaid source code"),"data-cke-ignore-events":!0},u=r.createContainerElement("div",{class:["ck-mermaid__wrapper"]}),m=r.createUIElement("textarea",h,(function(t){const n=this.toDomElement(t);n.value=e.item.getAttribute("source");const r=F((t=>{s.model.change((n=>{n.setAttribute("source",t.target.value,e.item)}))}),300);return n.addEventListener("input",r),n.addEventListener("focus",(()=>{const t=s.model;t.document.selection.getSelectedElement()!==e.item&&t.change((t=>t.setSelection(e.item,"on")))}),!0),n})),g=r.createUIElement("div",{class:["ck-mermaid__preview"]},(function(t){const n=e.item.getAttribute("source"),r=this.toDomElement(t);return r.innerHTML=n,window.setTimeout((()=>{c._renderMermaid(r)}),100),r}));return r.insert(r.createPositionAt(u,"start"),g),r.insert(r.createPositionAt(u,"start"),m),r.insert(d,u),i.bindElements(e.item,u),f_(u,r,{widgetLabel:l("Mermaid widget"),hasSelectionHandle:!0})}_sourceAttributeDowncast(t,e,n){const r=e.attributeNewValue,i=this.editor.editing.view.domConverter;if(r){const t=n.mapper.toViewElement(e.item);for(const e of t.getChildren())if("textarea"===e.name&&e.hasClass("ck-mermaid__editing-view")){const t=i.viewToDom(e,window.document);t.value!=r&&(t.value=r)}else if("div"===e.name&&e.hasClass("ck-mermaid__preview")){const t=i.viewToDom(e,window.document);t&&(t.innerHTML=r,t.removeAttribute("data-processed"),this._renderMermaid(t))}}}_mermaidUpcast(t,e,n){const r=e.viewItem,i=!r.parent||!r.parent.is("element","pre"),o=e.modelCursor.findAncestor("code"),{consumable:s,writer:a}=n;if(!r.hasClass("language-mermaid")||i||o)return;if(!s.test(r,{name:!0}))return;const l=Array.from(r.getChildren()).filter((t=>t.is("$text"))).map((t=>t.data)).join(""),c=a.createElement("mermaid",{source:l,displayMode:"split"});n.safeInsert(c,e.modelCursor)&&(s.consume(r,{name:!0}),n.updateConversionResult(c,e))}async _renderMermaid(t){window.mermaid||"function"!=typeof this._config?.lazyLoad||(this.mermaid=await this._config.lazyLoad()),this.mermaid.init(this._config.config,t)}}class zR extends Lo{static get requires(){return[H_]}static get pluginName(){return"MermaidToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(H_),r=["mermaidSourceView","mermaidSplitView","mermaidPreview","|","mermaidInfo"];r&&n.register("mermaidToolbar",{ariaLabel:e("Mermaid toolbar"),items:r,getRelatedElement:t=>function(t){const e=t.getSelectedElement();if(e&&e.hasClass("ck-mermaid__wrapper"))return e;return null}(t)})}}class MR extends Lo{static get pluginName(){return"MermaidUI"}init(){this._addButtons()}_addButtons(){const t=this.editor;this._addInsertMermaidButton(),this._addMermaidInfoButton(),this._createToolbarButton(t,"mermaidPreview","Preview",DR),this._createToolbarButton(t,"mermaidSourceView","Source view",TR),this._createToolbarButton(t,"mermaidSplitView","Split view",SR)}_addInsertMermaidButton(){const t=this.editor,e=t.t,n=t.editing.view;t.ui.componentFactory.add("mermaid",(r=>{const i=new wm(r),o=t.commands.get("insertMermaidCommand");return i.set({label:e("Insert Mermaid diagram"),icon:BR,tooltip:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),o.listenTo(i,"execute",(()=>{const e=t.execute("insertMermaidCommand"),r=t.editing.mapper.toViewElement(e);if(n.scrollToTheSelection(),n.focus(),r){const t=n.domConverter.viewToDom(r,document);t&&t.querySelector(".ck-mermaid__editing-view").focus()}})),i}))}_addMermaidInfoButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("mermaidInfo",(t=>{const n=new wm(t);return n.set({label:e("Read more about Mermaid diagram syntax"),icon:ER,tooltip:!0}),n.on("execute",(()=>{window.open("https://ckeditor.com/blog/basic-overview-of-creating-flowcharts-using-mermaid/","_blank","noopener")})),n}))}_createToolbarButton(t,e,n,r){const i=t.t;t.ui.componentFactory.add(e,(o=>{const s=new wm(o),a=t.commands.get(`${e}Command`);return s.set({label:i(n),icon:r,tooltip:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),a.listenTo(s,"execute",(()=>{t.execute(`${e}Command`),t.editing.view.scrollToTheSelection(),t.editing.view.focus()})),s}))}}var NR=n(7433),OR={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(NR.A,OR);NR.A.locals;var HR=n(3195),jR={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(HR.A,jR);HR.A.locals;const qR='<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">\r\n <text x="2" y="15" font-family="Arial, sans-serif" font-size="14" fill="currentColor">ab</text>\r\n <text x="17" y="10" font-family="Arial, sans-serif" font-size="8" fill="currentColor">1</text>\r\n</svg>\r\n',UR="footnoteItem",WR="footnoteReference",$R="footnoteSection",GR="footnoteContent",KR="footnoteBackLink",ZR="footnote-content",YR="footnote-item",JR="footnote-reference",QR="footnote-section",XR="footnote-back-link",tL="footnotes",eL="InsertFootnote",nL="data-footnote-content",rL="data-footnote-id",iL="data-footnote-index",oL="data-footnote-item",sL="data-footnote-reference",aL="data-footnote-section",lL="data-footnote-back-link",cL=(t,e,n=t=>!0)=>{const r=t.model.createRangeIn(e),i=[];for(const t of r.getItems())t instanceof ql&&n(t)&&i.push(t);return i},dL=(t,e,n=t=>!0)=>{const r=t.model.createRangeIn(e);for(const t of r.getItems())if(t instanceof ql&&n(t))return t;return null},hL=(t,e)=>{if(t.plugins.has("Autoformat")){const n=t.plugins.get("Autoformat");Dw(t,n,(e=>((t,e)=>{const n=t.model.document.selection.anchor,r=n&&(n.textNode||n.getShiftedBy(-1).textNode);if(!n||!r)return{remove:[],format:[]};const i=e.matchAll(/\[\^([0-9]+)\]/g);for(const t of i||[]){const i=e.indexOf(t[0]),o=i+t[0].length,s=n.parent.getChildStartOffset(r);if(null===s||n.offset!==s+o)continue;const a=i+2;return{remove:[[i,o]],format:[[a,a+t[1].length]]}}return{remove:[],format:[]}})(t,e)),((n,r)=>((t,e,n)=>{const r=e.commands.get(eL);if(!r||!r.isEnabled)return;const i=[...t[0].getItems()][0];if(!(i instanceof jl||i instanceof Hl))return!1;const o=i.data.match(/[0-9]+/);if(!o)return!1;const s=parseInt(o[0]),a=dL(e,n,(t=>t.is("element",$R)));if(!a)return 1===s&&void e.execute(eL);const l=cL(e,a,(t=>t.is("element",UR))).length;if(s!==l+1){if(!(s>=1&&s<=l))return!1;e.execute(eL,{footnoteIndex:s})}else e.execute(eL)})(r,t,e)))}},uL=t=>{const e=t.conversion;e.for("downcast").attributeToAttribute({model:rL,view:rL}),e.for("downcast").attributeToAttribute({model:iL,view:iL}),e.for("upcast").elementToElement({view:{attributes:{[aL]:!0}},model:$R,converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:$R,view:{name:"ol",attributes:{[aL]:"",role:"doc-endnotes"},classes:[QR,tL]}}),e.for("editingDowncast").elementToElement({model:$R,view:(t,e)=>{const n=e.writer;return f_(n.createContainerElement("div",{[aL]:"",role:"doc-endnotes list",class:QR}),n,{label:"footnote widget"})}}),e.for("upcast").elementToElement({view:{attributes:{[nL]:!0}},model:(t,e)=>e.writer.createElement(GR)}),e.for("dataDowncast").elementToElement({model:GR,view:{name:"div",attributes:{[nL]:""},classes:[ZR]}}),e.for("editingDowncast").elementToElement({model:GR,view:(t,e)=>{const n=e.writer;return A_(n.createEditableElement("div",{[nL]:"",class:ZR}),n)}}),e.for("upcast").elementToElement({view:{attributes:{[oL]:!0}},model:(t,e)=>{const n=e.writer,r=t.getAttribute(rL),i=t.getAttribute(iL);return void 0===r||void 0===i?null:n.createElement(UR,{[iL]:i,[rL]:r})},converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:UR,view:pL}),e.for("editingDowncast").elementToElement({model:UR,view:pL}),e.for("upcast").elementToElement({view:{attributes:{[sL]:!0}},model:(t,e)=>{const n=e.writer,r=t.getAttribute(iL),i=t.getAttribute(rL);return void 0===r||void 0===i?null:n.createElement(WR,{[iL]:r,[rL]:i})}}),e.for("editingDowncast").elementToElement({model:WR,view:(t,e)=>{const n=e.writer;return f_(gL(t,e),n)}}),e.for("dataDowncast").elementToElement({model:WR,view:gL}),e.for("editingDowncast").add((e=>{e.on(`attribute:${iL}:${WR}`,((e,n,r)=>function(t,e,n){const{item:r,attributeNewValue:i}=t;if(!(r instanceof ql&&e.consumable.consume(r,`attribute:${iL}:${WR}`)))return;const o=e.mapper.toViewElement(r);if(!o)return;const s=e.writer,a=((t,e,n=t=>!0)=>{const r=t.editing.view.createRangeIn(e);for(const t of r.getItems())if(t instanceof Os&&n(t))return t;return null})(n,o,(t=>"a"===t.name)),l=null==a?void 0:a.getChild(0);if(!l||!a)return void s.remove(o);s.remove(l);const c=s.createText(`[${i}]`);s.insert(s.createPositionAt(a,0),c),s.setAttribute("href",`#fn${r.getAttribute(rL)}`,a),s.setAttribute(iL,i,o)}(n,r,t)),{priority:"high"})})),e.for("upcast").elementToElement({view:{attributes:{[lL]:!0}},model:(t,e)=>{const n=e.writer,r=t.getAttribute(rL);return void 0===r?null:n.createElement(KR,{[rL]:r})}}),e.for("dataDowncast").elementToElement({model:KR,view:mL}),e.for("editingDowncast").elementToElement({model:KR,view:mL})};function mL(t,e){const n=e.writer,r=`${t.getAttribute(rL)}`;if(void 0===r)throw new Error("Footnote return link has no provided Id.");const i=n.createContainerElement("span",{class:XR,[lL]:"",[rL]:r}),o=n.createContainerElement("sup"),s=n.createContainerElement("strong"),a=n.createContainerElement("a",{href:`#fnref${r}`}),l=n.createText("^");return n.insert(n.createPositionAt(a,0),l),n.insert(n.createPositionAt(s,0),a),n.insert(n.createPositionAt(o,0),s),n.insert(n.createPositionAt(i,0),o),i}function gL(t,e){const n=e.writer,r=`${t.getAttribute(iL)}`,i=`${t.getAttribute(rL)}`;if("undefined"===r)throw new Error("Footnote reference has no provided index.");if("undefined"===i)throw new Error("Footnote reference has no provided id.");const o=n.createContainerElement("span",{class:JR,[sL]:"",[iL]:r,[rL]:i,role:"doc-noteref",id:`fnref${i}`}),s=n.createText(`[${r}]`),a=n.createContainerElement("a",{href:`#fn${i}`}),l=n.createContainerElement("sup");return n.insert(n.createPositionAt(a,0),s),n.insert(n.createPositionAt(l,0),a),n.insert(n.createPositionAt(o,0),l),o}function pL(t,e){const n=e.writer,r=t.getAttribute(iL),i=t.getAttribute(rL);if(!r)throw new Error("Footnote item has no provided index.");if(!i)throw new Error("Footnote item has no provided id.");return n.createContainerElement("li",{class:YR,[oL]:"",[iL]:`${r}`,[rL]:`${i}`,role:"doc-endnote",id:`fn${i}`})}class fL extends Mo{execute({footnoteIndex:t}={footnoteIndex:0}){this.editor.model.enqueueChange((e=>{const n=this.editor.model.document,r=n.getRoot();if(!r)return;const i=this._getFootnoteSection(e,r);let o,s;if(0===t)o=`${i.maxOffset+1}`,s=Math.random().toString(36).slice(2);else{o=`${t}`;const e=dL(this.editor,i,(t=>t.is("element",UR)&&t.getAttribute(iL)===o));e&&(s=e.getAttribute(rL))}if(!s||!o)return;e.setSelection(n.selection.getLastPosition());const a=e.createElement(WR,{[rL]:s,[iL]:o});if(this.editor.model.insertContent(a),e.setSelection(a,"after"),0!==t)return;const l=e.createElement(GR),c=e.createElement(UR,{[rL]:s,[iL]:o}),d=e.createElement(KR,{[rL]:s}),h=e.createElement("paragraph");e.append(h,l),e.append(l,c),e.insert(d,c,0),this.editor.model.insertContent(c,e.createPositionAt(i,i.maxOffset))}))}refresh(){const t=this.editor.model,e=t.document.selection.getLastPosition(),n=e&&t.schema.findAllowedParent(e,$R);this.isEnabled=null!==n}_getFootnoteSection(t,e){const n=dL(this.editor,e,(t=>t.is("element",$R)));if(n)return n;const r=t.createElement($R);return this.editor.model.insertContent(r,t.createPositionAt(e,e.maxOffset)),r}}class bL extends Lo{static get requires(){return[N_,Tw]}get rootElement(){const t=this.editor.model.document.getRoot();if(!t)throw new Error("Document has no rootElement element.");return t}init(){var t;(t=this.editor.model.schema).register($R,{isObject:!0,allowWhere:"$block",allowIn:"$root",allowChildren:UR,allowAttributes:[aL]}),t.register(UR,{isBlock:!0,isObject:!0,allowContentOf:"$root",allowAttributes:[aL,rL,iL]}),t.register(GR,{allowIn:UR,allowContentOf:"$root",allowAttributes:[aL]}),t.register(WR,{allowWhere:"$text",isInline:!0,isObject:!0,allowAttributes:[sL,rL,iL]}),t.register(KR,{allowIn:UR,isInline:!0,isSelectable:!1,allowAttributes:[lL,rL]}),t.addChildCheck(((t,e)=>(!t.endsWith(GR)||e.name!==$R)&&(!t.endsWith(GR)||"listItem"!==e.name)&&void 0)),uL(this.editor),this.editor.commands.add(eL,new fL(this.editor)),hL(this.editor,this.rootElement),this.editor.model.document.on("change:data",((t,e)=>{const n=[...t.source.differ.getChanges()];n.some((t=>"insert"===t.type&&t.name===WR))&&this._orderFootnotes(e),n.forEach((t=>{if("attribute"===t.type&&t.attributeKey===iL){const{attributeNewValue:n}=t,r=[...t.range.getItems()].find((t=>t.is("element",UR))),i=r instanceof ql&&r.getAttribute(rL);if(!i)return;this._updateReferenceIndices(e,`${i}`,n)}}))}),{priority:"high"}),this._handleDelete(),this.editor.editing.mapper.on("viewToModelPosition",C_(this.editor.model,(t=>t.hasAttribute(sL))))}_handleDelete(){const t=this.editor.editing.view.document,e=this.editor;this.listenTo(t,"delete",((t,n)=>{const r=e.model.document,i=r.selection.getSelectedElement(),o=r.selection.getLastPosition(),s=r.selection.getFirstPosition();if(!o||!s)throw new Error("Selection must have at least one range to perform delete operation.");this.editor.model.change((e=>{i&&i.is("element",$R)&&this._removeReferences(e);const r=i&&i.is("element",UR),a=r?i:o.findAncestor(UR);if(!a)return;const l=o.findAncestor("paragraph"),c=s.findAncestor("paragraph"),d=o.findAncestor(GR);if(!d||!c||!l)return;const h=0===c.maxOffset&&1===d.childCount;(r||h)&&(this._removeFootnote(e,a),n.preventDefault(),t.stop())}))}),{priority:"high"})}_clearContents(t,e){const n=t.createRangeIn(e);t.appendElement("paragraph",e),t.remove(n)}_removeFootnote(t,e){if(!this.editor)return;const n=e.findAncestor($R);if(!n)return void t.remove(e);const r=n.getChildIndex(e),i=e.getAttribute(rL);if(this._removeReferences(t,`${i}`),t.remove(e),0===n.childCount)t.remove(n),this._removeReferences(t);else{if(null==r)throw new Error("Index is nullish");const e=0===r?n.getChild(r):n.getChild((null!=r?r:0)-1);if(!(e instanceof ql))return;const i=cL(this.editor,e,(t=>t.is("element","paragraph"))).pop();i&&t.setSelection(i,"end")}if(null==r)throw new Error("Index is nullish");const o=[...n.getChildren()].slice(null!=r?r:0);for(const[e,n]of o.entries())t.setAttribute(iL,`${null!=r?r:0+e+1}`,n)}_removeReferences(t,e=void 0){const n=[];if(!this.rootElement)throw new Error("Document has no root element.");cL(this.editor,this.rootElement,(t=>t.is("element",WR))).forEach((t=>{const r=t.getAttribute(rL);e&&r!==e||n.push(t)}));for(const e of n)t.remove(e)}_updateReferenceIndices(t,e,n){const r=cL(this.editor,this.rootElement,(t=>t.is("element",WR)&&t.getAttribute(rL)===e));this.editor.model.enqueueChange(t,(t=>{r.forEach((e=>{t.setAttribute(iL,n,e)}))}))}_orderFootnotes(t){const e=cL(this.editor,this.rootElement,(t=>t.is("element",WR))),n=[...new Set(e.map((t=>t.getAttribute(rL))))].map((t=>dL(this.editor,this.rootElement,(e=>e.is("element",UR)&&e.getAttribute(rL)===t))));this.editor.model.enqueueChange(t,(e=>{var r;const i=dL(this.editor,this.rootElement,(t=>t.is("element",$R)));if(i){for(const t of n.reverse())t&&e.move(e.createRangeOn(t),i,0);for(const n of cL(this.editor,i,(t=>t.is("element",UR)))){const o=`${(null!==(r=null==i?void 0:i.getChildIndex(n))&&void 0!==r?r:-1)+1}`;n&&e.setAttribute(iL,o,n);const s=n.getAttribute(rL);s&&this._updateReferenceIndices(t,`${s}`,`${o}`)}}}))}}class kL extends Lo{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("footnote",(n=>{const r=Dp(n,vp),i=r.buttonView,o=t.commands.get(eL);if(!o)throw new Error("Command not found.");return i.set({label:e("Footnote"),icon:qR,tooltip:!0,isToggleable:!0}),i.bind("isOn").to(o,"value",(t=>!!t)),i.on("execute",(()=>{t.execute(eL,{footnoteIndex:0}),t.editing.view.focus()})),r.class="ck-code-block-dropdown",r.bind("isEnabled").to(o),r.on("change:isOpen",((t,e,n)=>{var i,o,s;if(null===(i=null==r?void 0:r.listView)||void 0===i||i.items.clear(),n)Ip(r,this.getDropdownItemsDefinitions());else{null===(o=null==r?void 0:r.listView)||void 0===o||o.items.clear();const t=null===(s=null==r?void 0:r.listView)||void 0===s?void 0:s.element;t&&t.parentNode&&t.parentNode.removeChild(t)}})),this.listenTo(r,"execute",(e=>{t.execute(eL,{footnoteIndex:e.source.commandParam}),t.editing.view.focus()})),r}))}getDropdownItemsDefinitions(){const t=new xo,e={type:"button",model:new kb({commandParam:0,label:"New footnote",withText:!0})};t.add(e);const n=this.editor.model.document.getRoot();if(!n)throw new Error("Document has no root element.");if(dL(this.editor,n,(t=>t.is("element",$R)))){cL(this.editor,n,(t=>t.is("element",UR))).forEach((e=>{const n=e.getAttribute(iL),r={type:"button",model:new kb({commandParam:n,label:`Insert footnote ${n}`,withText:!0})};t.add(r)}))}return t}}const wL="kbd";class AL extends Lo{static get pluginName(){return"KbdEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:wL}),t.model.schema.setAttributeProperties(wL,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:wL,view:wL}),t.commands.add(wL,new Pw(t,wL)),t.keystrokes.set("CTRL+ALT+K",wL)}}const _L="kbd";class CL extends Lo{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(_L,(n=>{const r=t.commands.get(_L),i=new wm(n);return i.set({label:e("Keyboard shortcut"),icon:'\x3c!-- Came from IceMoon\'s free package (https://icomoon.io/#preview-free) licensed under CC BY 4.0 --\x3e\r\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 32">\r\n<path d="M34 4h-32c-1.1 0-2 0.9-2 2v20c0 1.1 0.9 2 2 2h32c1.1 0 2-0.9 2-2v-20c0-1.1-0.9-2-2-2zM20 8h4v4h-4v-4zM26 14v4h-4v-4h4zM14 8h4v4h-4v-4zM20 14v4h-4v-4h4zM8 8h4v4h-4v-4zM14 14v4h-4v-4h4zM4 8h2v4h-2v-4zM4 14h4v4h-4v-4zM6 24h-2v-4h2v4zM24 24h-16v-4h16v4zM32 24h-6v-4h6v4zM32 18h-4v-4h4v4zM32 12h-6v-4h6v4z"></path>\r\n</svg>',keystroke:"CTRL+ALT+K",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(i,"execute",(()=>{t.execute(_L),t.editing.view.focus()})),i}))}}const vL=["note","tip","important","caution","warning"],yL="admonitionType",xL=vL[0];class EL extends Mo{_lastType;refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,r=e.document.selection,i=Array.from(r.getSelectedBlocks()),o=this._getType(t);e.change((t=>{if(o){const e=i.filter((t=>BL(t)||SL(n,t)));this._applyQuote(t,e,o)}else this._removeQuote(t,i.filter(BL))}))}_getType(t){const e=void 0===t.forceValue?!this.value:t.forceValue;return!!e&&("string"==typeof e?e:t.usePreviousChoice&&this._lastType?this._lastType:"note")}_getValue(){const t=Eo(this.editor.model.document.selection.getSelectedBlocks());if(!t)return!1;const e=BL(t);return!!e?.is("element")&&e.getAttribute(yL)}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Eo(t.getSelectedBlocks());return!!n&&SL(e,n)}_removeQuote(t,e){DL(t,e).reverse().forEach((e=>{if(e.start.isAtStart&&e.end.isAtEnd)return void t.unwrap(e.start.parent);if(e.start.isAtStart){const n=t.createPositionBefore(e.start.parent);return void t.move(e,n)}e.end.isAtEnd||t.split(e.end);const n=t.createPositionAfter(e.end.parent);t.move(e,n)}))}_applyQuote(t,e,n){this._lastType=n;const r=[];DL(t,e).reverse().forEach((e=>{let i=BL(e.start);if(i)i.is("element")&&this.editor.model.change((t=>{t.setAttribute(yL,n,i)}));else{const r={};r[yL]=n,i=t.createElement("aside",r),t.wrap(e,i)}r.push(i)})),r.reverse().reduce(((e,n)=>e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n))}}function BL(t){return"aside"==t.parent.name?t.parent:null}function DL(t,e){let n,r=0;const i=[];for(;r<e.length;){const o=e[r],s=e[r+1];n||(n=t.createPositionBefore(o)),s&&o.nextSibling==s||(i.push(t.createRange(n,t.createPositionAfter(o))),n=null),r++}return i}function SL(t,e){const n=t.checkChild(e.parent,"aside"),r=t.checkChild(["$root","aside"],e);return n&&r}class TL extends Lo{static get pluginName(){return"AdmonitionEditing"}static get requires(){return[pA,sw]}init(){const t=this.editor,e=t.model.schema;t.commands.add("admonition",new EL(t)),e.register("aside",{inheritAllFrom:"$container",allowAttributes:yL}),t.conversion.for("upcast").elementToElement({view:{name:"aside",classes:"admonition"},model:(t,{writer:e})=>{let n=xL;for(const e of t.getClassNames())"admonition"!==e&&vL.includes(e)&&(n=e);const r={};return r[yL]=n,e.createElement("aside",r)}}),t.conversion.for("downcast").elementToElement({model:"aside",view:"aside"}).attributeToAttribute({model:yL,view:t=>({key:"class",value:["admonition",t]})}),t.model.document.registerPostFixer((n=>{const r=t.model.document.differ.getChanges();for(const t of r)if("insert"==t.type){const r=t.position.nodeAfter;if(!r)continue;if(r.is("element","aside")&&r.isEmpty)return n.remove(r),!0;if(r.is("element","aside")&&!e.checkChild(t.position,r))return n.unwrap(r),!0;if(r.is("element")){const t=n.createRangeIn(r);for(const r of t.getItems())if(r.is("element","aside")&&!e.checkChild(n.createPositionBefore(r),r))return n.unwrap(r),!0}}else if("remove"==t.type){const e=t.position.parent;if(e.is("element","aside")&&e.isEmpty)return n.remove(e),!0}return!1}));const n=this.editor.editing.view.document,r=t.model.document.selection,i=t.commands.get("admonition");this.listenTo(n,"enter",((e,n)=>{if(!r.isCollapsed||!i.value)return;r.getLastPosition().parent.isEmpty&&(t.execute("admonition"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"aside"}),this.listenTo(n,"delete",((e,n)=>{if("backward"!=n.direction||!r.isCollapsed||!i.value)return;const o=r.getLastPosition().parent;o.isEmpty&&!o.previousSibling&&(t.execute("admonition"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"aside"})}}var IL=n(5024),PL={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$o()(IL.A,PL);IL.A.locals;const VL={note:{title:"Note"},tip:{title:"Tip"},important:{title:"Important"},caution:{title:"Caution"},warning:{title:"Warning"}};class FL extends Lo{static get pluginName(){return"AdmonitionUI"}init(){this.editor.ui.componentFactory.add("admonition",(()=>this._createButton()))}_createButton(){const t=this.editor,e=t.locale,n=t.commands.get("admonition"),r=Dp(e,vp),i=r.buttonView,o=e.t;return Ip(r,this._getDropdownItems()),i.set({label:o("Admonition"),icon:'<?xml version="1.0" encoding="iso-8859-1"?>\r\n\x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\r\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\r\n\t viewBox="0 0 511.936 511.936" style="enable-background:new 0 0 511.936 511.936;" xml:space="preserve">\r\n<g>\r\n\t<g>\r\n\t\t<g>\r\n\t\t\t<path d="M255.959,128c11.776,0,21.333-9.557,21.333-21.333s-9.557-21.333-21.333-21.333s-21.333,9.557-21.333,21.333\r\n\t\t\t\tS244.183,128,255.959,128z"/>\r\n\t\t\t<path d="M383.968,0h-256C80.907,0,42.635,38.272,42.635,85.333v213.333c0,47.061,38.272,85.333,85.333,85.333h64l0.085,92.075\r\n\t\t\t\tc0,14.571,8.683,27.584,22.165,33.173c4.331,1.792,8.875,2.688,13.397,2.688c9.557,0,19.157-3.968,27.051-11.968L350.475,384\r\n\t\t\t\th33.493c47.061,0,85.333-38.272,85.333-85.333V85.333C469.301,38.272,431.029,0,383.968,0z M426.635,298.667\r\n\t\t\t\tc0,23.531-19.157,42.667-42.667,42.667h-36.629c-9.621,0-18.645,3.755-26.752,12.011l-85.888,103.979l-0.064-80.085\r\n\t\t\t\tc0-19.797-16.107-35.904-35.904-35.904h-70.763c-23.531,0-42.667-19.136-42.667-42.667V85.333\r\n\t\t\t\tc0-23.531,19.136-42.667,42.667-42.667h256c23.509,0,42.667,19.136,42.667,42.667V298.667z"/>\r\n\t\t\t<path d="M298.626,256h-21.333v-85.333c0-11.776-9.536-21.333-21.333-21.333h-21.333c-11.797,0-21.333,9.557-21.333,21.333\r\n\t\t\t\tS222.829,192,234.626,192v64h-21.333c-11.797,0-21.333,9.557-21.333,21.333s9.536,21.333,21.333,21.333h85.333\r\n\t\t\t\tc11.797,0,21.333-9.557,21.333-21.333S310.423,256,298.626,256z"/>\r\n\t\t</g>\r\n\t</g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n<g>\r\n</g>\r\n</svg>\r\n',isToggleable:!0,tooltip:!0}),i.on("execute",(()=>{t.execute("admonition",{usePreviousChoice:!0}),t.editing.view.focus()})),i.bind("isOn").to(n,"value",(t=>!!t)),r.bind("isEnabled").to(n,"isEnabled"),r.on("execute",(e=>{t.execute("admonition",{forceValue:e.source.commandParam}),t.editing.view.focus()})),r}_getDropdownItems(){const t=new xo,e=this.editor.commands.get("admonition");for(const[n,r]of Object.entries(VL)){const i={type:"button",model:new kb({commandParam:n,label:r.title,role:"menuitemradio",withText:!0})};i.model.bind("isOn").to(e,"value",(t=>t===n)),t.add(i)}return t}}class RL extends Lo{static get requires(){return[Tw]}afterInit(){if(!this.editor.commands.get("admonition"))return;Bw(this.editor,this,/^\!\!\[*\! (.+) $/,(({match:t})=>{const e=function(t){if(2===t.length)return vL.includes(t[1])?t[1]:void 0}(t);e?this.editor.execute("admonition",{forceValue:e}):(this.editor.execute("admonition"),t.length>1&&this.editor.execute("insertText",{text:(t[1]??"")+" "}))}))}}const LL=[mC,pA,vP,wA,aw,_C,class extends Lo{static get requires(){return[Mk]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(Mk).createUploadAdapter=e=>new qk(e,t,this.editor.t))}},Tw,class extends Lo{static get requires(){return[Fw,zw]}static get pluginName(){return"Bold"}},class extends Lo{static get requires(){return[Ww,Gw]}static get pluginName(){return"Italic"}},class extends Lo{static get requires(){return[aA,cA]}static get pluginName(){return"Underline"}},class extends Lo{static get requires(){return[Zw,Jw]}static get pluginName(){return"Strikethrough"}},class extends Lo{static get requires(){return[Nw,qw]}static get pluginName(){return"Code"}},class extends Lo{static get requires(){return[rA,oA]}static get pluginName(){return"Superscript"}},class extends Lo{static get requires(){return[Xw,eA]}static get pluginName(){return"Subscript"}},class extends Lo{static get requires(){return[yA,BA]}static get pluginName(){return"BlockQuote"}},class extends Lo{static get requires(){return[RA,NA]}static get pluginName(){return"Heading"}},class extends Lo{static get requires(){return[nv,iv]}static get pluginName(){return"Image"}},class extends Lo{static get requires(){return[av,lv]}static get pluginName(){return"ImageCaption"}},class extends Lo{static get requires(){return[iy,ay]}static get pluginName(){return"ImageStyle"}},class extends Lo{static get requires(){return[H_,DC]}static get pluginName(){return"ImageToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(H_),r=t.plugins.get("ImageUtils");var i;n.register("image",{ariaLabel:e("Image toolbar"),items:(i=t.config.get("image.toolbar")||[],i.map((t=>s(t)?t.name:t))),getRelatedElement:t=>r.getClosestSelectedImageWidget(t)})}},class extends Lo{static get pluginName(){return"ImageUpload"}static get requires(){return[Dv,gv,_v]}},class extends Lo{static get requires(){return[Fv,Hv,Kv,Lv]}static get pluginName(){return"ImageResize"}},iv,class extends Lo{static get requires(){return[Yy,ix,ax]}static get pluginName(){return"Link"}},ax,aE,RE,GE,IA,class extends Lo{static get pluginName(){return"PasteFromOffice"}static get requires(){return[l_]}init(){const t=this.editor,e=t.plugins.get("ClipboardPipeline"),n=t.editing.view.document,r=[],i=this.editor.plugins.has("MultiLevelList");r.push(new cB(n,i)),r.push(new mB(n)),r.push(new pB(n)),e.on("inputTransformation",((e,i)=>{if(i._isTransformedWithPasteFromOffice)return;if(t.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const o=i.dataTransfer.getData("text/html"),s=r.find((t=>t.isActive(o)));s&&(i._parsedData||(i._parsedData=bB(o,n.stylesProcessor)),s.execute(i),i._isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}},class extends Lo{static get requires(){return[qC,DC]}static get pluginName(){return"PictureEditing"}afterInit(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),t.plugins.has("ImageInlineEditing")&&t.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("upcast").add(function(t){const e=["srcset","media","type","sizes"],n=(n,r,i)=>{const o=r.viewItem;if(!i.consumable.test(o,{name:!0}))return;const s=new Map;for(const t of o.getChildren())if(t.is("element","source")){const n={};for(const r of e)t.hasAttribute(r)&&i.consumable.test(t,{attributes:r})&&(n[r]=t.getAttribute(r));Object.keys(n).length&&s.set(t,n)}const a=t.findViewImgElement(o);if(!a)return;let l=r.modelCursor.parent;if(!l.is("element","imageBlock")){const t=i.convertItem(a,r.modelCursor);r.modelRange=t.modelRange,r.modelCursor=t.modelCursor,l=Eo(t.modelRange.getItems())}i.consumable.consume(o,{name:!0});for(const[t,e]of s)i.consumable.consume(t,{attributes:Object.keys(e)});s.size&&i.writer.setAttribute("sources",Array.from(s.values()),l),i.convertChildren(o,l)};return t=>{t.on("element:picture",n)}}(n)),e.for("downcast").add(function(t){const e=(e,n,r)=>{if(!r.consumable.consume(n.item,e.name))return;const i=r.writer,o=r.mapper.toViewElement(n.item),s=t.findViewImgElement(o),a=n.attributeNewValue;if(a&&a.length){const t=i.createContainerElement("picture",null,a.map((t=>i.createEmptyElement("source",t)))),e=[];let n=s.parent;for(;n&&n.is("attributeElement");){const t=n.parent;i.unwrap(i.createRangeOn(s),n),e.unshift(n),n=t}i.insert(i.createPositionBefore(s),t),i.move(i.createRangeOn(s),i.createPositionAt(t,"end"));for(const n of e)i.wrap(i.createRangeOn(t),n)}else if(s.parent.is("element","picture")){const t=s.parent;i.move(i.createRangeOn(s),i.createPositionBefore(t)),i.remove(t)}};return t=>{t.on("attribute:sources:imageBlock",e),t.on("attribute:sources:imageInline",e)}}(n))}_setupImageUploadEditingIntegration(){const t=this.editor;if(!t.plugins.has("ImageUploadEditing"))return;const e=t.plugins.get("ImageUploadEditing");this.listenTo(e,"uploadComplete",((e,{imageElement:n,data:r})=>{const i=r.sources;i&&t.model.change((t=>{t.setAttributes({sources:i},n)}))}))}},class extends Lo{static get requires(){return[MD,qD,GD,tS,QD,KD,N_]}static get pluginName(){return"Table"}},class extends Lo{static get requires(){return[H_]}static get pluginName(){return"TableToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(H_),r=t.config.get("table.contentToolbar"),i=t.config.get("table.tableToolbar");r&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:r,getRelatedElement:sS}),i&&n.register("table",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:oS})}},class extends Lo{static get pluginName(){return"TableProperties"}static get requires(){return[bT,yT]}},class extends Lo{static get pluginName(){return"TableCellProperties"}static get requires(){return[sT,$S]}},GD,class extends Lo{static get pluginName(){return"TableCaption"}static get requires(){return[TT,IT]}},class extends Lo{static get requires(){return[LT,ZS]}static get pluginName(){return"TableColumnResize"}},class extends Lo{static get pluginName(){return"Indent"}static get requires(){return[uP,mP]}},class extends Lo{constructor(t){super(t),t.config.define("indentBlock",{offset:40,unit:"px"})}static get pluginName(){return"IndentBlock"}init(){const t=this.editor,e=t.config.get("indentBlock");e.classes&&e.classes.length?(this._setupConversionUsingClasses(e.classes),t.commands.add("indentBlock",new gP(t,new fP({direction:"forward",classes:e.classes}))),t.commands.add("outdentBlock",new gP(t,new fP({direction:"backward",classes:e.classes})))):(t.data.addStyleProcessorRules(Bu),this._setupConversionUsingOffset(),t.commands.add("indentBlock",new gP(t,new pP({direction:"forward",offset:e.offset,unit:e.unit}))),t.commands.add("outdentBlock",new gP(t,new pP({direction:"backward",offset:e.offset,unit:e.unit}))))}afterInit(){const t=this.editor,e=t.model.schema,n=t.commands.get("indent"),r=t.commands.get("outdent"),i=t.config.get("heading.options");(i&&i.map((t=>t.model))||bP).forEach((t=>{e.isRegistered(t)&&e.extend(t,{allowAttributes:"blockIndent"})})),e.setAttributeProperties("blockIndent",{isFormatting:!0}),n.registerChildCommand(t.commands.get("indentBlock")),r.registerChildCommand(t.commands.get("outdentBlock"))}_setupConversionUsingOffset(){const t=this.editor.conversion,e="rtl"===this.editor.locale.contentLanguageDirection?"margin-right":"margin-left";t.for("upcast").attributeToAttribute({view:{styles:{[e]:/[\s\S]+/}},model:{key:"blockIndent",value:t=>{if(!t.is("element","li"))return t.getStyle(e)}}}),t.for("downcast").attributeToAttribute({model:"blockIndent",view:t=>({key:"style",value:{[e]:t}})})}_setupConversionUsingClasses(t){const e={model:{key:"blockIndent",values:[]},view:{}};for(const n of t)e.model.values.push(n),e.view[n]={key:"class",value:[n]};this.editor.conversion.attributeToAttribute(e)}},class extends Lo{static get requires(){return[IA]}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("paragraph",(n=>{const r=new wm(n),i=t.commands.get("paragraph");return r.label=e("Paragraph"),r.icon=zu.paragraph,r.tooltip=!0,r.isToggleable=!0,r.bind("isEnabled").to(i),r.bind("isOn").to(i,"value"),r.on("execute",(()=>{t.execute("paragraph")})),r}))}},class extends Lo{init(){LA(this.editor).filter((t=>"paragraph"!==t.model)).map((t=>this._createButton(t)))}_createButton(t){const e=this.editor;e.ui.componentFactory.add(t.model,(n=>{const r=new wm(n),i=e.commands.get("heading");return r.label=t.title,r.icon=t.icon||OA[t.model],r.tooltip=!0,r.isToggleable=!0,r.bind("isEnabled").to(i),r.bind("isOn").to(i,"value",(e=>e==t.model)),r.on("execute",(()=>{e.execute("heading",{value:t.model}),e.editing.view.focus()})),r}))}},class extends Lo{static get requires(){return[bF]}static get pluginName(){return"fileUploadPlugin"}},class extends Lo{static get requires(){return[Mk]}static get pluginName(){return"UploadimagePlugin"}init(){this.editor.plugins.get("FileRepository").createUploadAdapter=t=>new QF(t)}},class extends Lo{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(t){super(t),t.config.define("typing",{transformations:{include:ww}})}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}_enableTransformationWatchers(){const t=this.editor,e=t.model,n=t.plugins.get("Delete"),r=function(t){const e=t.extra||[],n=t.remove||[],r=t=>!n.includes(t);return function(t){const e=new Set;for(const n of t)if("string"==typeof n&&kw[n])for(const t of kw[n])e.add(t);else e.add(n);return Array.from(e)}(t.include.concat(e).filter(r)).filter(r).map((t=>"string"==typeof t&&bw[t]?bw[t]:t)).filter((t=>"object"==typeof t)).map((t=>({from:Aw(t.from),to:_w(t.to)})))}(t.config.get("typing.transformations")),i=new cw(t.model,(t=>{for(const e of r){if(e.from.test(t))return{normalizedTransformation:e}}}));i.on("matched:data",((t,r)=>{if(!r.batch.isTyping)return;const{from:i,to:o}=r.normalizedTransformation,s=i.exec(r.text),a=o(s.slice(1)),l=r.range;let c=s.index;e.enqueueChange((t=>{for(let n=1;n<s.length;n++){const r=s[n],i=a[n-1];if(null==i){c+=r.length;continue}const o=l.start.getShiftedBy(c),d=e.createRange(o,o.getShiftedBy(r.length)),h=Cw(o);e.insertContent(t.createText(i,h),d),c+=i.length}e.enqueueChange((()=>{n.requestUndoOnBackspace()}))}))})),i.bind("isEnabled").to(this)}},class extends Lo{static get requires(){return[tI,hI,fI,AI]}static get pluginName(){return"Font"}},fI,AI,class extends Lo{static get requires(){return[RI,OI]}static get pluginName(){return"CodeBlock"}},vP,class extends Lo{static get requires(){return[BP,DP,N_]}static get pluginName(){return"HorizontalLine"}},class extends Lo{static get requires(){return[PP,TP]}static get pluginName(){return"RemoveFormat"}},class extends Lo{_characters;_groups;_allSpecialCharactersGroupLabel;static get requires(){return[aw,qm]}static get pluginName(){return"SpecialCharacters"}constructor(t){super(t);const e=t.t;this._characters=new Map,this._groups=new Map,this._allSpecialCharactersGroupLabel=e("All")}init(){const t=this.editor;t.ui.componentFactory.add("specialCharacters",(()=>{const t=this._createDialogButton(wm);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:specialCharacters",(()=>this._createDialogButton(Ym)))}addItems(t,e,n={label:t}){if(t===UP)throw new kr("special-character-invalid-group-name",null);const r=this._getGroup(t,n.label);for(const t of e)r.items.add(t.title),this._characters.set(t.title,t.character)}getGroups(){const t=Array.from(this._groups.keys()),e=this.editor.config.get("specialCharacters.order")||[],n=e.find((e=>!t.includes(e)));if(n)throw new kr("special-character-invalid-order-group-name",null,{invalidGroup:n});return new Set([...e,...t])}getCharactersForGroup(t){if(t===UP)return new Set(this._characters.keys());const e=this._groups.get(t);return e?e.items:void 0}getCharacter(t){return this._characters.get(t)}_getGroup(t,e){return this._groups.has(t)||this._groups.set(t,{items:new Set,label:e}),this._groups.get(t)}_updateGrid(t,e){e.tiles.clear();const n=this.getCharactersForGroup(t);for(const t of n){const n=this.getCharacter(t);e.tiles.add(e.createTile(n,t))}}_createDropdownPanelContent(t){const e=Array.from(this.getGroups()).map((t=>[t,this._groups.get(t).label])),n=new Map([[UP,this._allSpecialCharactersGroupLabel],...e]),r=new qP(t,n),i=new RP(t),o=new MP(t);return i.on("tileHover",((t,e)=>{o.set(e)})),i.on("tileFocus",((t,e)=>{o.set(e)})),r.on("change:currentGroupName",((t,e,n)=>{this._updateGrid(n,i)})),this._updateGrid(r.currentGroupName,i),{categoriesView:r,gridView:i,infoView:o}}_createDialogButton(t){const e=this.editor,n=e.locale,r=new t(e.locale),i=e.commands.get("insertText"),o=n.t,s=this.editor.plugins.get("Dialog");return r.set({label:o("Special characters"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2.5a7.47 7.47 0 0 1 4.231 1.31 7.268 7.268 0 0 1 2.703 3.454 7.128 7.128 0 0 1 .199 4.353c-.39 1.436-1.475 2.72-2.633 3.677h2.013c0-.226.092-.443.254-.603a.876.876 0 0 1 1.229 0c.163.16.254.377.254.603v.853c0 .209-.078.41-.22.567a.873.873 0 0 1-.547.28l-.101.006h-4.695a.517.517 0 0 1-.516-.518v-1.265c0-.21.128-.398.317-.489a5.601 5.601 0 0 0 2.492-2.371 5.459 5.459 0 0 0 .552-3.693 5.53 5.53 0 0 0-1.955-3.2A5.71 5.71 0 0 0 10 4.206 5.708 5.708 0 0 0 6.419 5.46 5.527 5.527 0 0 0 4.46 8.663a5.457 5.457 0 0 0 .554 3.695 5.6 5.6 0 0 0 2.497 2.37.55.55 0 0 1 .317.49v1.264c0 .286-.23.518-.516.518H2.618a.877.877 0 0 1-.614-.25.845.845 0 0 1-.254-.603v-.853c0-.226.091-.443.254-.603a.876.876 0 0 1 1.228 0c.163.16.255.377.255.603h1.925c-1.158-.958-2.155-2.241-2.545-3.678a7.128 7.128 0 0 1 .199-4.352 7.268 7.268 0 0 1 2.703-3.455A7.475 7.475 0 0 1 10 2.5z"/></svg>',isToggleable:!0}),r.bind("isOn").to(s,"id",(t=>"specialCharacters"===t)),r.bind("isEnabled").to(i,"isEnabled"),r.on("execute",(()=>{"specialCharacters"!==s.id?this._showDialog():s.hide()})),r}_showDialog(){const t=this.editor,e=t.plugins.get("Dialog"),n=t.locale,r=n.t,{categoriesView:i,gridView:o,infoView:s}=this._createDropdownPanelContent(n),a=new OP(n,i,o,s);o.on("execute",((e,n)=>{t.execute("insertText",{text:n.character})})),e.show({id:"specialCharacters",title:r("Special characters"),className:"ck-special-characters",content:a,position:Lm})}},class extends Lo{static get pluginName(){return"SpecialCharactersEssentials"}static get requires(){return[ZP,$P,GP,WP,KP]}},function(t){t.plugins.get("SpecialCharacters").addItems("Emoji",[{title:"smiley face",character:"😊"},{title:"grinning face",character:"😄"},{title:"grinning face with big eyes",character:"😃"},{title:"grinning face with sweat",character:"😅"},{title:"beaming face with smiling eyes",character:"😃"},{title:"neutral face",character:"😐"},{title:"rolling on the floor laughing",character:"🤣"},{title:"face with tears of joy",character:"😂"},{title:"heart",character:"❤️"},{title:"hands pressed together",character:"🙏"},{title:"thumbs up",character:"👍"},{title:"rocket",character:"🚀"},{title:"100",character:"💯"},{title:"wind blowing face",character:"🌬️"},{title:"floppy disk",character:"💾"}],{label:"Emoji"})},class extends Lo{static get requires(){return[Lk,yk]}static get pluginName(){return"FindAndReplace"}init(){const t=this.editor.plugins.get("FindAndReplaceUI"),e=this.editor.plugins.get("FindAndReplaceEditing"),n=e.state;t.on("findNext",((t,r)=>{r?(n.searchText=r.searchText,e.find(r.searchText,r)):this.editor.execute("findNext")})),t.on("findPrevious",((t,r)=>{r&&n.searchText!==r.searchText?e.find(r.searchText):this.editor.execute("findPrevious")})),t.on("replace",((t,r)=>{n.searchText!==r.searchText&&e.find(r.searchText);const i=n.highlightedResult;i&&this.editor.execute("replace",r.replaceText,i)})),t.on("replaceAll",((t,r)=>{n.searchText!==r.searchText&&e.find(r.searchText),this.editor.execute("replaceAll",r.replaceText,n.results)})),t.on("searchReseted",(()=>{n.clear(this.editor.model),e.stop()}))}},class extends Lo{toMentionAttribute(t,e){return WI(t,e)}static get pluginName(){return"Mention"}static get requires(){return[qI,rP]}},class extends Lo{init(){const t=this.editor;t.ui.componentFactory.add("internalLink",(e=>{const n=new wm(e);return n.set({label:"Internal Trilium link (CTRL-L)",icon:'<?xml version="1.0" encoding="UTF-8"?>\r\n<svg enable-background="new 0 0 256 256" version="1.1" viewBox="0 0 256 256" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">\r\n\t<path d="m232.6 27.598c-17.706 0.092041-40.298 3.7127-58.258 10.104-1.7959 0.63909-3.5465 1.3043-5.2402 1.998-3.1 1.2-6.0988 2.6016-8.7988 4.1016-2.2 1.2-4.3016 2.4988-6.1016 3.7988-21.6 15.5-27.9 44.2-28.6 65.4l14.9-10.5 14.301-10 51.199-35.9-49.1 39.301-14.1 11.299-14.801 11.801c20.4 6.5 52.4 9.7992 74.9-6.3008 3.1886-2.319 6.4708-5.1162 9.7559-8.459 0.14708-0.08175 0.29689-0.1571 0.44336-0.24023 2.3386-2.3386 4.7705-4.8714 7.0215-7.5898 0.02928-0.033868 0.05864-0.065681 0.08789-0.099609 0.0964-0.038723 0.1948-0.072111 0.29102-0.11133 14.544-16.737 27.833-39.152 32.252-55.658 0.67979-2.5395 1.1487-4.9387 1.3809-7.1562 0.11607-1.1088 0.17422-2.173 0.16797-3.1855-1.0438-0.3625-2.1849-0.68557-3.4121-0.9707-1.2272-0.28513-2.542-0.53096-3.9336-0.74024s-2.8595-0.38069-4.3965-0.51562c-3.0739-0.26987-6.4198-0.39341-9.9609-0.375zm-202.79 20.252c-11.737-0.05-22.113 1.4004-28.312 4.6504 0.9 5.6625 4.3309 13.419 9.3125 21.77v0.001953c3.3209 5.5664 7.332 11.395 11.74 17.043v0.001953c6.6127 8.4716 14.122 16.534 21.547 22.684 2.3 1.9 4.5008 3.5996 6.8008 5.0996 0.048555 0.0124 0.097907 0.019 0.14648 0.03125 1.7845 1.2837 3.569 2.2777 5.3535 3.1699 20.8 10.4 45.5 3.7984 62.1-4.1016l-14.301-7.2988-13.6-6.9004-48.127-24.607 49.928 21.707 14.5 6.3008 15.199 6.5996c-3.4-18.3-14.099-44-35.799-54.9-3.3-1.6-6.9004-3.1004-10.9-4.4004-2.9-0.9-5.8996-1.7-9.0996-2.5-11.65-2.75-24.751-4.2996-36.488-4.3496zm97.488 73.85 3.6992 13.9 3.5996 13.201 12.801 47.6-15.9-47-4.5-13.4-4.8008-14.199c-10.3 13.4-21.3 36.199-15.5 57.199 0.8747 3.11 2.1333 6.3182 3.6719 9.709 0.01066 0.06374 0.01836 0.12769 0.0293 0.19141 1.1 2.5 2.3988 5.0992 3.7988 7.6992 10.4 18.8 27.701 38.501 39.701 42.801 0.00763-0.00936 0.01581-0.01991 0.02344-0.0293 0.02502 0.00909 0.05119 0.02035 0.07617 0.0293 8.8-10.8 16.8-42.601 15.9-65.701-0.1-2.7-0.30117-5.2992-0.70117-7.6992-0.3-1.9-0.69922-3.8-1.1992-5.5-5.6-20.2-25.199-32.601-40.699-38.801z"/>\r\n</svg>\r\n',tooltip:!0}),n.bind("isEnabled").to(t,"isReadOnly",(t=>!t)),n.on("execute",(()=>{const e=t.editing.view.getDomRoot();glob.getComponentByEl(e).triggerCommand("addLinkToText")})),n}))}},class extends Lo{init(){this.editor.conversion.for("downcast").attributeToElement({model:"italic",view:"em",converterPriority:"high"})}},class extends Lo{init(){this.editor.ui.componentFactory.add("markdownImport",(t=>{const e=new wm(t);return e.set({label:"Markdown import from clipboard",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="208" height="128" viewBox="0 0 208 128"><rect width="198" height="118" x="5" y="5" ry="10" stroke="#000" stroke-width="10" fill="none"/><path d="M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39zm125 0l-30-33h20V30h20v35h20z"/></svg>',tooltip:!0}),e.on("execute",(()=>{glob.importMarkdownInline()})),e}))}},class extends Lo{init(){this.htmlDataProcessor=new bd,this.editor.ui.componentFactory.add("cutToNote",(t=>{const e=new wm(t);return e.set({label:"Cut & paste selection to sub-note",icon:'<?xml version="1.0" encoding="utf-8"?>\r\n\x3c!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon --\x3e\r\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\r\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">\r\n<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>\r\n<g><g><path d="M853.9,754.9c-26-45.4-66.5-76.2-109.1-87.8c-33.7-9.2-68.7-6.4-98.9,10.7l-90-157.3C611.6,409.5,736.5,160.5,759,121.2C788,70.4,736,10,736,10L500,422.8L264,10c0,0-52,60.4-22.9,111.2c22.5,39.3,147.5,288.3,203.1,399.3l-89.9,157.3c-30.2-17.1-65.3-19.9-98.9-10.7c-42.7,11.6-83.1,42.3-109.1,87.8c-46.8,81.7-28.9,179.7,39.7,219c30.4,17.5,65.7,20.3,99.6,11.1c42.6-11.6,83.1-42.4,109.1-87.7c11.4-20,18.9-41,22.8-61.8v0c0-0.2,0-0.3,0.2-0.5c0.2-1.7,0.5-3.5,0.7-5.4c19.3-129.5,55.8-195.7,81.6-227.8c25.9,32.1,62.4,98.3,81.7,227.8c0.2,1.9,0.5,3.6,0.7,5.4c0.1,0.2,0.1,0.3,0.2,0.5v0c3.9,20.8,11.4,41.8,22.7,61.8c26,45.3,66.5,76.1,109.2,87.7c34,9.2,69.2,6.4,99.7-11.1C882.8,934.5,900.6,836.5,853.9,754.9z M327.9,858.9c-14.8,25.8-38.1,45.2-62.5,51.8c-10.8,3-26.7,4.7-41.3-3.6c-31.1-17.8-36.2-70.1-11.1-114c15-26,37.8-45,62.5-51.8c10.7-2.9,26.7-4.7,41.3,3.6C347.9,762.7,353,814.9,327.9,858.9z M775.9,907.1c-14.6,8.4-30.4,6.6-41.3,3.6c-24.4-6.6-47.7-26-62.5-51.8c-25.1-44-20-96.2,11.1-114c14.7-8.3,30.6-6.5,41.3-3.6C749.3,748,772.1,767,787,793C812.1,837,807.1,889.3,775.9,907.1z"/><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></g>\r\n</svg>',tooltip:!0}),e.on("execute",(()=>{const t=this.editor.editing.view.getDomRoot();glob.getComponentByEl(t).triggerCommand("cutIntoNote")})),e})),this.editor.getSelectedHtml=()=>this.getSelectedHtml(),this.editor.removeSelection=()=>this.removeSelection()}getSelectedHtml(){const t=this.editor.model,e=t.document,n=this.editor.data.toView(t.getSelectedContent(e.selection));return this.htmlDataProcessor.toData(n)}async removeSelection(){const t=this.editor.model;t.deleteContent(t.document.selection),this.editor.execute("paragraph");const e=this.getComponent();await e.triggerCommand("saveNoteDetailNow")}getComponent(){const t=this.editor.editing.view.getDomRoot();return glob.getComponentByEl(t)}},class extends Lo{afterInit(){const t=this.editor;t.commands.add("mention",new JF(t))}},class extends Lo{static get requires(){return[tR,XF]}},class extends Lo{static get requires(){return[rR]}},function(t){function e(){let e=t.model.document.selection.getFirstPosition();for(;e;){if("tableCell"===e.name)return!0;e=e.parent}return!1}t.keystrokes.set("Tab",((n,r)=>{const i=t.commands.get("indentBlock");i.isEnabled&&!e()&&(i.execute(),r())})),t.keystrokes.set("Shift+Tab",((n,r)=>{const i=t.commands.get("outdentBlock");i.isEnabled&&!e()&&(i.execute(),r())}))},function(t){t.model.schema.setAttributeProperties("linkHref",{isFormatting:!0})},class extends Lo{static get requires(){return[CF,vF,N_]}static get pluginName(){return"PageBreak"}},class extends Lo{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[ZV,eF,nF,rF,oF,sF,aF,lF,cF,dF,mF]}init(){const t=this.editor,e=t.plugins.get(ZV);e.loadAllowedEmptyElementsConfig(t.config.get("htmlSupport.allowEmpty")||[]),e.loadAllowedConfig(t.config.get("htmlSupport.allow")||[]),e.loadDisallowedConfig(t.config.get("htmlSupport.disallow")||[])}getGhsAttributeNameForElement(t){const e=this.editor.plugins.get("DataSchema"),n=Array.from(e.getDefinitionsForView(t,!1)),r=n.find((t=>t.isInline&&!n[0].isObject));return r?r.model:FV(t)}addModelHtmlClass(t,e,n){const r=this.editor.model,i=this.getGhsAttributeNameForElement(t);r.change((t=>{for(const o of gF(r,n,i))VV(t,o,i,"classes",(t=>{for(const n of eo(e))t.add(n)}))}))}removeModelHtmlClass(t,e,n){const r=this.editor.model,i=this.getGhsAttributeNameForElement(t);r.change((t=>{for(const o of gF(r,n,i))VV(t,o,i,"classes",(t=>{for(const n of eo(e))t.delete(n)}))}))}setModelHtmlAttributes(t,e,n){const r=this.editor.model,i=this.getGhsAttributeNameForElement(t);r.change((t=>{for(const o of gF(r,n,i))VV(t,o,i,"attributes",(t=>{for(const[n,r]of Object.entries(e))t.set(n,r)}))}))}removeModelHtmlAttributes(t,e,n){const r=this.editor.model,i=this.getGhsAttributeNameForElement(t);r.change((t=>{for(const o of gF(r,n,i))VV(t,o,i,"attributes",(t=>{for(const n of eo(e))t.delete(n)}))}))}setModelHtmlStyles(t,e,n){const r=this.editor.model,i=this.getGhsAttributeNameForElement(t);r.change((t=>{for(const o of gF(r,n,i))VV(t,o,i,"styles",(t=>{for(const[n,r]of Object.entries(e))t.set(n,r)}))}))}removeModelHtmlStyles(t,e,n){const r=this.editor.model,i=this.getGhsAttributeNameForElement(t);r.change((t=>{for(const o of gF(r,n,i))VV(t,o,i,"styles",(t=>{for(const n of eo(e))t.delete(n)}))}))}},class extends Lo{static get requires(){return[EF,BF]}static get pluginName(){return"TextPartLanguage"}},class extends Lo{static get pluginName(){return"Style"}static get requires(){return[YF,qF]}},xR,class extends Lo{static get requires(){return[xR,"Autoformat"]}init(){const t=this.editor;t.plugins.has("Math")||wr("autoformat-math-feature-missing",t)}afterInit(){const t=this.editor,e=t.commands.get("math");if(e instanceof mR){const n=()=>{if(!e.isEnabled)return!1;e.display=!0,window.setTimeout((()=>{const e=t.plugins.get("MathUI");e instanceof vR&&e._showUI()}),50)};Bw(t,this,/^\$\$$/,n),Bw(t,this,/^\\\[$/,n)}}static get pluginName(){return"AutoformatMath"}},class extends Lo{static get pluginName(){return"Footnotes"}static get requires(){return[bL,kL]}},class extends Lo{static get requires(){return[LR,zR,MR]}static get pluginName(){return"Mermaid"}},class extends Lo{static get requires(){return[AL,CL]}static get pluginName(){return"Kbd"}},class extends Lo{static get requires(){return[TL,FL,RL]}static get pluginName(){return"Admonition"}}];class zL extends gk{static builtinPlugins=[...LL,Zb]}class ML extends db{view;constructor(t,e){super(t),this.view=e}init(){const t=this.editor,e=this.view,n=t.editing.view,r=e.editable,i=n.document.getRoot();r.name=i.rootName,e.render();const o=r.element;this.setEditableElement(r.name,o),e.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(o),this._initPlaceholder(),this._initToolbar(),this._initMenuBar(this.view.menuBarView),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;e.getDomRoot(t.editable.name)&&e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.editor,e=this.view;e.toolbar.fillFromConfig(t.config.get("toolbar"),this.componentFactory),this.addToolbar(e.toolbar)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),r=t.config.get("placeholder");if(r){const t="string"==typeof r?r:r[n.rootName];t&&(n.placeholder=t)}Jo({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}}class NL extends gb{toolbar;editable;menuBarView;constructor(t,e,n={}){super(t),this.toolbar=new bp(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.menuBarView=new hk(t),this.editable=new fb(t,e,n.editableElement,{label:n.label}),this.toolbar.extendTemplate({attributes:{class:["ck-reset_all","ck-rounded-corners"],dir:t.uiLanguageDirection}}),this.menuBarView.extendTemplate({attributes:{class:["ck-reset_all","ck-rounded-corners"],dir:t.uiLanguageDirection}})}render(){super.render(),this.registerChild([this.menuBarView,this.toolbar,this.editable])}}class OL extends(Fu(Vu)){ui;constructor(t,e={}){if(!HL(t)&&void 0!==e.initialData)throw new kr("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return HL(t)?ci(t):t}(t)),HL(t)&&(this.sourceElement=t,Ru(this,t)),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),r=new NL(this.locale,this.editing.view,{editableElement:this.sourceElement,shouldToolbarGroupWhenFull:n,label:this.config.get("label")});this.ui=new ML(this,r)}destroy(){const t=this.getData();return this.ui.destroy(),super.destroy().then((()=>{this.sourceElement&&this.updateSourceElement(t)}))}static create(t,e={}){return new Promise((n=>{if(HL(t)&&"TEXTAREA"===t.tagName)throw new kr("editor-wrong-element",null);const r=new this(t,e);n(r.initPlugins().then((()=>r.ui.init())).then((()=>r.data.init(r.config.get("initialData")))).then((()=>r.fire("ready"))).then((()=>r)))}))}}function HL(t){return U(t)}class jL extends OL{static builtinPlugins=[...LL]}const qL={BalloonEditor:zL,DecoupledEditor:jL,EditorWatchdog:qn}})(),r=r.default})()));
//# sourceMappingURL=ckeditor.js.map